.neto-portfolio {
	--taban-navy: #102e4a;
	--taban-ink: #000418;
	--taban-gold: #bd892f;
	--neto-cols: 4;
	--neto-bg: transparent;
	--neto-card: linear-gradient(145deg, var(--taban-navy), var(--taban-ink));
	--neto-card-border: rgba(255, 255, 255, .14);
	--neto-text: #fff;
	--neto-muted: rgba(255, 255, 255, .72);
	--neto-accent: var(--taban-navy);
	--neto-radius: 18px;
	--neto-shadow: 0 18px 42px -18px rgba(6, 24, 42, .45);
	--neto-font: "VazirMatn", Sans-serif;
	font-family: "VazirMatn", Sans-serif;
	direction: rtl;
	color: var(--taban-navy);
	box-sizing: border-box;
}

.neto-portfolio *,
.neto-portfolio *::before,
.neto-portfolio *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.neto-portfolio--light {
	--neto-card: linear-gradient(145deg, var(--taban-navy), var(--taban-ink));
	--neto-card-border: rgba(255, 255, 255, .14);
	--neto-text: #fff;
	--neto-muted: rgba(255, 255, 255, .72);
	--neto-accent: var(--taban-navy);
	--neto-shadow: 0 18px 42px -18px rgba(6, 24, 42, .45);
}

.neto-empty {
	padding: 28px;
	text-align: center;
	opacity: 0.8;
	color: var(--taban-navy);
}

.neto-grid {
	display: grid;
	grid-template-columns: repeat(var(--neto-cols, 4), minmax(0, 1fr));
	gap: clamp(14px, 2vw, 28px);
}

.neto-filters {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 2px 2px 14px;
	margin-bottom: 18px;
	-webkit-overflow-scrolling: touch;
}

.neto-filter {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 1px solid rgba(16, 46, 74, .18);
	border-radius: 999px;
	color: var(--taban-navy);
	background: rgba(16, 46, 74, .06);
	cursor: pointer;
	font: inherit;
	white-space: nowrap;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.neto-filter:hover,
.neto-filter.is-active {
	border-color: transparent;
	color: #fff;
	background: var(--taban-navy);
}

.neto-card[hidden] {
	display: none !important;
}

.neto-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
	min-height: 24px;
}

.neto-pagination[hidden] {
	display: none !important;
}

.neto-pagination__loading {
	display: block;
	color: rgba(16, 46, 74, .55);
	font-size: 14px;
	text-align: center;
}

.neto-pagination__loading::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 8px;
	border: 2px solid currentColor;
	border-left-color: transparent;
	border-radius: 50%;
	vertical-align: -1px;
	animation: neto-loading-spin 0.7s linear infinite;
}

@keyframes neto-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.neto-pagination__btn {
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid rgba(16, 46, 74, .18);
	border-radius: 12px;
	color: var(--taban-navy);
	background: rgba(16, 46, 74, .06);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.neto-pagination__btn:hover:not(:disabled):not(.is-active) {
	border-color: var(--taban-navy);
	color: var(--taban-navy);
}

.neto-pagination__btn.is-active {
	border-color: transparent;
	color: #fff;
	background: var(--taban-navy);
}

.neto-pagination__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.neto-pagination__btn--prev,
.neto-pagination__btn--next {
	font-size: 22px;
	font-weight: 400;
}

.neto-card {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--neto-card);
	border: 1.5px solid var(--neto-card-border);
	border-radius: var(--neto-radius);
	overflow: hidden;
	box-shadow: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	min-width: 0;
	transition: border-color 0.25s ease;
}

.neto-card--cinematic,
.neto-card--photography {
	aspect-ratio: 2 / 3;
}

.neto-card:hover,
.neto-card:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--neto-shadow);
	border-color: rgba(189, 137, 47, .45);
	outline: none;
}

.neto-card__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: transparent;
	aspect-ratio: auto;
	height: 100%;
}

.neto-card--photography .neto-card__media,
.neto-card--webdesign .neto-card__media,
.neto-card--instagram .neto-card__media,
.neto-card--scroll .neto-card__media {
	aspect-ratio: auto;
}

.neto-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s ease;
}

.neto-card:not(.neto-card--scroll):hover .neto-card__media img {
	transform: scale(1.06);
}

.neto-card--scroll .neto-card__media img {
	height: auto;
	min-height: 100%;
	object-fit: unset;
	object-position: top center;
	transform: translateY(0);
	transition: transform var(--neto-duration, 8s) linear;
	will-change: transform;
}

.neto-card--scroll:hover .neto-card__media img,
.neto-card--scroll:focus-visible .neto-card__media img {
	transform: translateY(var(--neto-scroll, 0px));
}

.neto-card__placeholder {
	width: 100%;
	height: 100%;
	background: transparent;
}

.neto-card__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(0, 4, 24, .55);
	border: 1.5px solid rgba(255, 255, 255, .55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	pointer-events: none;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.neto-card__play::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin: 0;
	transform: translateX(2px);
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}

.neto-card__hover-hint {
	position: absolute;
	left: 12px;
	right: 12px;
	top: 12px;
	bottom: auto;
	z-index: 3;
	text-align: center;
	font-size: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(10, 10, 12, 0.72);
	color: #f4f1ea;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.neto-card--scroll:hover .neto-card__hover-hint {
	opacity: 1;
}

.neto-card__shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, .82) 0%,
		rgba(0, 0, 0, .48) 38%,
		rgba(0, 0, 0, .12) 68%,
		rgba(0, 0, 0, 0) 100%
	);
}

.neto-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 20px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: none;
}

.neto-card__row {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.7;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}

.neto-card__row span {
	color: #fff;
	font-weight: 700;
	margin-left: 4px;
}

.neto-card__row--goal {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.neto-modal {
	--taban-navy: #102e4a;
	--taban-ink: #000418;
	--taban-gold: #bd892f;
	--neto-accent: #102e4a;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(10px, 2.5vw, 28px);
	font-family: "VazirMatn", Sans-serif;
	direction: rtl;
	color-scheme: dark;
	box-sizing: border-box;
}

.neto-modal *,
.neto-modal *::before,
.neto-modal *::after {
	box-sizing: border-box;
}

.neto-modal,
.neto-modal button,
.neto-modal h2,
.neto-modal p,
.neto-modal span,
.neto-modal strong,
.neto-modal a,
.neto-modal div,
.neto-modal aside {
	font-family: "VazirMatn", Sans-serif;
}

.neto-modal.is-open {
	display: flex;
}

.neto-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 8, 14, 0.78);
	backdrop-filter: blur(12px) saturate(120%);
	-webkit-backdrop-filter: blur(12px) saturate(120%);
}

.neto-modal__panel {
	position: relative;
	z-index: 1;
	width: min(1120px, 100%);
	height: min(820px, calc(100dvh - 2 * clamp(10px, 2.5vw, 28px)));
	max-height: min(900px, calc(100dvh - 2 * clamp(10px, 2.5vw, 28px)));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 22px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: linear-gradient(160deg, #121820 0%, #0a0e14 100%);
	box-shadow:
		0 40px 90px -28px rgba(0, 0, 0, 0.75),
		inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: #f4f1ea;
	animation: neto-modal-in 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes neto-modal-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.neto-modal__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.9fr);
	min-height: 0;
	flex: 1 1 auto;
	height: 100%;
	max-height: inherit;
}

.neto-modal__close {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 6;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.neto-modal__close:hover,
.neto-modal__close:focus-visible {
	background: #fff;
	color: var(--taban-ink);
	outline: none;
	transform: rotate(90deg);
}

.neto-modal__media-col {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
	background: #05070a;
}

.neto-modal__media {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 220px;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	background: #000;
	position: relative;
	display: flex;
	flex-direction: column;
}

.neto-modal__aside {
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	background: linear-gradient(180deg, #102e4a 0%, #0a1c2e 55%, #071420 100%);
}

.neto-modal__details {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.neto-modal__aside-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: clamp(18px, 2.2vw, 28px) clamp(16px, 2vw, 24px) 12px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.neto-modal__aside-scroll::-webkit-scrollbar {
	width: 8px;
}

.neto-modal__aside-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.28);
	border-radius: 8px;
}

.neto-modal__aside-foot {
	flex: 0 0 auto;
	padding: 12px clamp(16px, 2vw, 24px) clamp(16px, 2vw, 22px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(0, 4, 12, 0.35);
	backdrop-filter: blur(8px);
}

.neto-modal__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.neto-modal__tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.88);
	font-size: 12px;
	line-height: 1.3;
}

.neto-modal__frame {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 220px;
	aspect-ratio: auto;
}

.neto-modal__frame iframe,
.neto-modal__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.neto-modal__web img {
	width: 100%;
	height: auto;
	display: block;
}

.neto-modal__image {
	position: absolute;
	inset: 0;
	display: block;
}

.neto-modal__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.neto-modal__web {
	flex: 1;
	min-height: 0;
	overflow: auto;
	background: #12141a;
	color-scheme: dark;
	scrollbar-width: thin;
	scrollbar-color: #3a424c #12141a;
}

.neto-modal__web::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.neto-modal__web::-webkit-scrollbar-track {
	background: #12141a;
}

.neto-modal__web::-webkit-scrollbar-thumb {
	background: #3a424c;
	border-radius: 10px;
	border: 2px solid #12141a;
}

.neto-modal__gallery {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.neto-modal__gallery-stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 200px;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.neto-modal__gallery-stage img {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.neto-modal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
	background: rgba(16, 46, 74, 0.72);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.neto-modal__nav:hover,
.neto-modal__nav:focus-visible {
	background: var(--taban-navy);
	outline: none;
}

.neto-modal__nav--prev {
	right: 12px;
}

.neto-modal__nav--next {
	left: 12px;
}

.neto-modal__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 10px;
	background: rgba(0, 0, 0, 0.55);
	scrollbar-width: thin;
}

.neto-modal__thumbs img {
	width: 64px;
	height: 48px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	opacity: 0.6;
	flex: 0 0 auto;
	border: 2px solid transparent;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.neto-modal__thumbs img.is-active,
.neto-modal__thumbs img:hover {
	opacity: 1;
	border-color: rgba(189, 137, 47, 0.85);
}

.neto-modal__title {
	margin: 0 0 16px;
	font-size: clamp(1.2rem, 2.1vw, 1.75rem);
	line-height: 1.45;
	font-weight: 700;
	color: #fff;
}

.neto-modal__meta {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.neto-modal__order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 13px 16px;
	border-radius: 14px;
	background: #fff;
	color: var(--taban-navy) !important;
	font-family: "VazirMatn", Sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
	transition: background 0.2s ease, transform 0.2s ease;
}

.neto-modal__order:hover,
.neto-modal__order:focus-visible {
	background: #f0f4f8;
	color: var(--taban-ink) !important;
	outline: none;
	transform: translateY(-1px);
}

.neto-modal__meta-item {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 12px 14px;
}

.neto-modal__meta-item span {
	display: block;
	font-size: 12px;
	color: rgba(189, 137, 47, 0.95);
	margin-bottom: 4px;
}

.neto-modal__meta-item strong {
	font-size: 14px;
	font-weight: 600;
	color: #f4f1ea;
}

.neto-modal__desc {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.9;
	color: rgba(244, 241, 234, 0.92);
}

.neto-modal__meta-item--desc .neto-modal__desc p:last-child,
.neto-modal__meta-item--desc .neto-modal__desc ul:last-child,
.neto-modal__meta-item--desc .neto-modal__desc ol:last-child {
	margin-bottom: 0;
}

.neto-modal__desc p,
.neto-modal__desc ul,
.neto-modal__desc ol {
	margin: 0 0 12px;
}

.neto-modal__desc h1,
.neto-modal__desc h2,
.neto-modal__desc h3,
.neto-modal__desc h4 {
	margin: 0 0 10px;
	color: #f4f1ea;
	line-height: 1.5;
}

.neto-modal__desc ul,
.neto-modal__desc ol {
	padding-right: 1.4em;
}

.neto-modal__desc a {
	color: var(--taban-gold);
}

.neto-modal__desc img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.neto-modal__desc blockquote {
	margin: 0 0 12px;
	padding: 8px 14px;
	border-right: 3px solid var(--taban-gold);
	color: rgba(244, 241, 234, 0.75);
}

.neto-carousel {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	direction: ltr;
}

.neto-carousel__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	border-radius: 12px;
}

.neto-carousel__track {
	display: flex;
	gap: 8px;
	transition: transform 0.3s ease;
	will-change: transform;
}

.neto-carousel__slide {
	position: relative;
	flex: 0 0 calc((100% - 16px) / 3);
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	background: #0d0f14;
	cursor: pointer;
}

.neto-carousel__slide.is-active {
	border-color: var(--taban-gold);
}

.neto-carousel__slide img,
.neto-carousel__ph {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #12141a;
}

.neto-carousel__play {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 4, 24, .55);
	border: 1.5px solid rgba(255, 255, 255, .55);
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.neto-carousel__play::after {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
	transform: translateX(2px);
}

.neto-carousel__nav {
	flex: 0 0 auto;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--taban-navy);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.neto-carousel__nav[hidden] {
	display: none;
}

.neto-carousel__nav--prev {
	order: -1;
}

.neto-carousel__nav--next {
	order: 1;
}

@media (max-width: 1024px) {
	.neto-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.neto-modal {
		padding: 0;
		align-items: stretch;
	}

	.neto-modal__panel {
		width: 100%;
		max-height: 100dvh;
		height: 100dvh;
		border-radius: 0;
		border: 0;
	}

	.neto-modal__layout {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.95fr);
	}

	.neto-modal__media-col {
		padding: 52px 12px 8px;
	}

	.neto-modal__media {
		min-height: min(42vh, 420px);
	}

	.neto-modal__aside {
		border-right: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
	}

	.neto-carousel__slide {
		flex-basis: calc((100% - 8px) / 2);
	}

	.neto-modal__web {
		max-height: none;
	}
}

@media (max-width: 767px) {
	.neto-grid {
		grid-template-columns: 1fr;
	}

	.neto-modal__layout {
		grid-template-rows: auto minmax(0, 1fr);
	}

	.neto-modal__media-col {
		padding: 52px 10px 6px;
		gap: 8px;
		flex: 0 0 auto;
	}

	.neto-modal__media {
		min-height: min(38vh, 320px);
		aspect-ratio: 16 / 10;
		flex: 0 0 auto;
	}

	.neto-modal__frame {
		min-height: 0;
		aspect-ratio: 16 / 9;
		height: auto;
	}

	.neto-modal__gallery-stage {
		min-height: min(34vh, 280px);
	}

	.neto-modal__aside-scroll {
		padding: 14px 14px 8px;
	}

	.neto-modal__aside-foot {
		padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.neto-modal__title {
		font-size: 1.15rem;
		margin-bottom: 12px;
	}

	.neto-modal__order {
		font-size: 16px;
		padding: 14px 16px;
	}

	.neto-modal__nav {
		width: 38px;
		height: 38px;
		font-size: 18px;
	}

	.neto-card__play {
		width: 54px;
		height: 54px;
	}

	.neto-carousel__slide {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.neto-modal__panel {
		animation: none;
	}

	.neto-modal__close,
	.neto-modal__order {
		transition: none;
	}
}

body.neto-modal-open {
	overflow: hidden;
}

