/* Reveal */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal .9s var(--ease) var(--d, 0s) both; }
@keyframes reveal {
	from { opacity: 0; translate: 0 28px; }
	to { opacity: 1; translate: 0 0; }
}
.theme-anim *, .theme-anim *::before, .theme-anim *::after {
	transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), fill .45s, stroke .45s !important;
}

/* Icons / RTL */
.i { width: 18px; height: 18px; }
[dir="rtl"] .i-arrow, [dir="rtl"] .i-arrow-ur { transform: scaleX(-1); }

/* Buttons */
.btn {
	--h: 44px;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	height: var(--h);
	padding-inline: 1.25rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: .95rem;
	font-weight: 600;
	white-space: nowrap;
	isolation: isolate;
	overflow: hidden;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn .i { transition: translate .35s var(--ease); }
.btn:hover .i-arrow { translate: 4px 0; }
[dir="rtl"] .btn:hover .i-arrow { translate: -4px 0; }
.btn:active { transform: scale(.97); }
.btn-primary {
	background: var(--grad);
	background-size: 160% 100%;
	color: #fff;
	box-shadow: 0 10px 30px -10px var(--accent);
	transition: background-position .6s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 14px 40px -10px var(--accent); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-lg { --h: 54px; padding-inline: 1.7rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; pointer-events: none; }

/* Header */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color .35s var(--ease), border-color .35s, backdrop-filter .35s;
}
.site-header.is-scrolled, .nav-open .site-header {
	background: var(--glass);
	border-color: var(--border);
	backdrop-filter: saturate(180%) blur(18px);
	-webkit-backdrop-filter: saturate(180%) blur(18px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.nav-wrap { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { max-height: 40px; width: auto; }
.brand-mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--grad);
	color: #fff;
	font-family: var(--font-en);
	font-weight: 800;
	box-shadow: 0 8px 22px -8px var(--accent);
	transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-text { font-family: var(--font-en); }
.brand-text span { margin-inline-start: .3rem; color: var(--muted); font-weight: 500; }

.main-nav { margin-inline: auto; }
.nav-list { display: flex; gap: .2rem; }
.nav-list a {
	display: block;
	padding: .5rem .95rem;
	border-radius: 999px;
	color: var(--muted);
	font-size: .94rem;
	font-weight: 500;
	transition: color .25s, background-color .25s;
}
.nav-list a:hover, .nav-list a.is-active, .nav-list .current-menu-item > a { color: var(--text); background: var(--surface-2); }

.nav-actions { display: flex; align-items: center; gap: .55rem; }
.lang-switch {
	display: flex;
	align-items: center;
	gap: .1rem;
	padding: 4px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-family: var(--font-en);
	font-size: .78rem;
	font-weight: 700;
}
.lang-switch .sep { color: var(--border-strong); }
.lang-btn { padding: .32rem .62rem; border-radius: 999px; color: var(--muted); transition: background-color .3s, color .3s; }
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.icon-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	transition: border-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn .i { grid-area: 1 / 1; transition: transform .55s var(--ease), opacity .3s; }
[data-theme="dark"] .theme-toggle .i-moon,
[data-theme="light"] .theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
.burger { display: none; }
.burger .i-close, .nav-open .burger .i-menu { opacity: 0; transform: rotate(-90deg) scale(.4); }
.nav-open .burger .i-close { opacity: 1; transform: none; }
.nav-cta-mobile { display: none; }

@media (max-width: 960px) {
	.burger { display: grid; }
	.nav-cta { display: none; }
	.nav-actions { margin-inline-start: auto; }
	.main-nav {
		position: fixed;
		inset: var(--header-h) 0 auto;
		margin: 0;
		padding: 1rem 1.25rem 1.5rem;
		background: var(--bg-2);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
	}
	.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: .85rem 1rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
	.nav-cta-mobile { display: flex; width: 100%; margin-top: 1rem; }
}
@media (max-width: 420px) {
	.nav-wrap { gap: .75rem; }
	.brand-text span { display: none; }
}

/* Layout */
.site-main { padding-top: var(--header-h); }
.site-main--front { padding-top: 0; }
.section { position: relative; padding-block: clamp(5rem, 10vw, 8rem); }
.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.kicker {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	color: var(--accent);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: .9rem; }
.section-title { margin-top: 1rem; font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; }
[dir="rtl"] .section-title { letter-spacing: 0; }

/* Hero */
.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 100svh;
	padding-block: calc(var(--header-h) + 4rem) 5rem;
	overflow: hidden;
	isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.grid-lines {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%);
	mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 25%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: orb 16s var(--ease) infinite alternate; }
.orb-1 { top: -160px; inset-inline-end: -140px; width: 560px; height: 560px; background: var(--accent); }
.orb-2 { bottom: -180px; inset-inline-start: -140px; width: 440px; height: 440px; background: var(--accent-2); opacity: .32; animation-delay: -7s; }
[data-theme="light"] .orb { opacity: .22; }
@keyframes orb { to { transform: translate3d(-50px, 50px, 0) scale(1.12); } }
.hero-geo {
	position: absolute;
	top: 50%;
	inset-inline-end: -6%;
	width: min(600px, 75vw);
	color: var(--border-strong);
	opacity: .7;
	translate: 0 -50%;
	animation: spin 80s linear infinite;
}
.geo-dot { fill: var(--accent); stroke: none; }
@keyframes spin { to { rotate: 360deg; } }

.hero-inner { position: relative; }
.hero-inner > * { max-width: 920px; }
.badge {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	padding: .42rem 1rem .42rem .7rem;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	backdrop-filter: blur(10px);
	color: var(--muted);
	font-size: .82rem;
	font-weight: 600;
}
[dir="rtl"] .badge { padding: .42rem .7rem .42rem 1rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); animation: pulse 2.2s infinite; }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); }
	100% { box-shadow: 0 0 0 10px transparent; }
}
.hero-title {
	margin-block: 1.6rem 1.4rem;
	font-size: clamp(2.7rem, 7.4vw, 6rem);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.05em;
}
[dir="rtl"] .hero-title { line-height: 1.3; letter-spacing: 0; font-size: clamp(2.4rem, 6.4vw, 5.2rem); }
.hero-sub { max-width: 620px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }

/* Marquee */
.marquee { overflow: hidden; padding-block: 1.2rem; border-block: 1px solid var(--border); background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
	display: inline-flex;
	align-items: center;
	padding-inline-end: 2.5rem;
	color: var(--muted);
	font-size: clamp(1.05rem, 2vw, 1.45rem);
	font-weight: 700;
	white-space: nowrap;
}
.marquee-item::after { content: "✦"; margin-inline-start: 2.5rem; color: var(--accent); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.service-card {
	position: relative;
	display: flex;
	flex-direction: column;
	grid-column: span 2;
	min-height: 310px;
	padding: 2rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	isolation: isolate;
	transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.service-card:nth-child(-n+2) { grid-column: span 3; }
.service-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%);
	opacity: 0;
	transition: opacity .4s;
}
.service-card:hover, .service-card:focus-within { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before, .service-card:focus-within::before { opacity: 1; }
.service-num { position: absolute; top: 1.6rem; inset-inline-end: 1.8rem; color: var(--muted); font-family: var(--font-en); font-size: .85rem; font-weight: 700; }
.service-icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: auto;
	border: 1px solid var(--border);
	border-radius: 16px;
	background: var(--surface-2);
	color: var(--accent);
	transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s;
}
.service-icon .i { width: 26px; height: 26px; }
.service-card:hover .service-icon { background: var(--grad); border-color: transparent; color: #fff; transform: rotate(-8deg) scale(1.06); }
.service-card h3 { margin-top: 2.5rem; font-size: 1.35rem; }
.service-card p { margin-top: .6rem; color: var(--muted); }
.service-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.5rem; font-size: .92rem; font-weight: 600; }
.service-link .i { width: 16px; height: 16px; transition: translate .35s var(--ease); }
.service-link:hover { color: var(--accent); }
.service-link:hover .i { translate: 4px 0; }
[dir="rtl"] .service-link:hover .i { translate: -4px 0; }
@media (max-width: 960px) {
	.services-grid { grid-template-columns: 1fr 1fr; }
	.service-card, .service-card:nth-child(-n+2) { grid-column: span 1; }
	.service-card:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
	.services-grid { grid-template-columns: 1fr; }
	.service-card:last-child { grid-column: auto; }
	.service-card { min-height: 0; }
}

/* Work */
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.work-head .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .3rem; padding: 5px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.filter-btn { padding: .55rem 1.15rem; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 600; transition: background-color .3s, color .3s; }
.filter-btn:hover { color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.1rem; }
.work-card {
	position: relative;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	cursor: pointer;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.work-card[hidden] { display: none; }
.work-card.pop { animation: pop .55s var(--ease) both; }
@keyframes pop { from { opacity: 0; scale: .95; } to { opacity: 1; scale: 1; } }
.work-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }

.work-thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background:
		radial-gradient(circle at 80% 10%, rgba(255, 255, 255, .25), transparent 45%),
		linear-gradient(135deg, hsl(var(--h) 78% 58%), hsl(calc(var(--h) + 45) 82% 52%));
}
.work-thumb::before, .work-thumb::after { content: ""; position: absolute; transition: transform .8s var(--ease); }

.thumb-web::before {
	inset: 18% 12% -8%;
	border: 1px solid rgba(255, 255, 255, .45);
	border-radius: 12px 12px 0 0;
	background:
		radial-gradient(circle, #ff6b6b 3px, transparent 3.5px) 10px 9px / 12px 12px no-repeat,
		radial-gradient(circle, #ffd166 3px, transparent 3.5px) 24px 9px / 12px 12px no-repeat,
		radial-gradient(circle, #06d6a0 3px, transparent 3.5px) 38px 9px / 12px 12px no-repeat,
		linear-gradient(rgba(10, 12, 20, .55) 0 30px, rgba(255, 255, 255, .16) 30px);
	backdrop-filter: blur(6px);
}
.thumb-web::after {
	inset: 42% 20% auto;
	height: 38%;
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(255, 255, 255, .85) 0 45%, transparent 45%) 0 0 / 100% 12px no-repeat,
		repeating-linear-gradient(rgba(255, 255, 255, .45) 0 6px, transparent 6px 16px) 0 26px / 70% 100% no-repeat;
}
.work-card:hover .thumb-web::before, .work-card:hover .thumb-web::after { transform: translateY(-8px); }

.thumb-design::before {
	top: 16%;
	left: 14%;
	width: 52%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: rgba(255, 255, 255, .88);
	mix-blend-mode: overlay;
}
.thumb-design::after {
	right: 12%;
	bottom: 14%;
	width: 38%;
	aspect-ratio: 1;
	border: 2px solid rgba(255, 255, 255, .85);
	border-radius: 22px;
	transform: rotate(18deg);
}
.work-card:hover .thumb-design::before { transform: scale(1.12); }
.work-card:hover .thumb-design::after { transform: rotate(60deg) scale(.9); }

.thumb-academic::after {
	inset: 18% 32% -6% 24%;
	z-index: 0;
	border-radius: 8px 8px 0 0;
	background: rgba(255, 255, 255, .4);
	transform: rotate(-7deg);
}
.thumb-academic::before {
	inset: 14% 26% -6% 30%;
	z-index: 1;
	border-radius: 8px 8px 0 0;
	background:
		linear-gradient(rgba(10, 12, 20, .7) 0 0) 14% 14% / 50% 6px no-repeat,
		repeating-linear-gradient(transparent 0 14px, rgba(10, 12, 20, .14) 14px 16px) 50% 75% / 74% 62% no-repeat,
		#fbfbfd;
	box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .35);
}
.work-card:hover .thumb-academic::before { transform: translateY(-10px) rotate(2deg); }
.work-card:hover .thumb-academic::after { transform: rotate(-12deg); }

.work-meta { display: flex; flex-direction: column; gap: .3rem; padding: 1.25rem 1.4rem 1.45rem; }
.work-cat { color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
[dir="rtl"] .work-cat { letter-spacing: 0; font-size: .82rem; }
.work-meta h3 { font-size: 1.1rem; }
.work-arrow {
	position: absolute;
	top: 1rem;
	inset-inline-end: 1rem;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #0a0c12;
	opacity: 0;
	scale: .6;
	transition: opacity .4s var(--ease), scale .4s var(--ease);
}
.work-card:hover .work-arrow { opacity: 1; scale: 1; }

/* Why */
.why { background: var(--bg-2); border-block: 1px solid var(--border); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.metric {
	position: relative;
	padding: 2.4rem 2.2rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	transition: transform .5s var(--ease), border-color .3s;
}
.metric:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.metric::after {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 2px;
	background: var(--grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 1s var(--ease) .2s;
}
[dir="rtl"] .metric::after { transform-origin: right; }
.metric.is-visible::after { transform: scaleX(1); }
.metric-value { font-family: var(--font-en); font-size: clamp(3.2rem, 6vw, 4.8rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric h3 { margin-top: 1.4rem; font-size: 1.15rem; }
.metric p { margin-top: .45rem; color: var(--muted); }
@media (max-width: 860px) { .metrics { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: start; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-sub { max-width: 460px; margin-top: 1.2rem; color: var(--muted); font-size: 1.1rem; }
.info-list { display: grid; gap: 1.1rem; margin-top: 2.5rem; }
.info-item { display: flex; align-items: center; gap: 1rem; }
.info-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--accent); }
.info-label { display: block; color: var(--muted); font-size: .8rem; }
.info-value { font-weight: 600; }
a.info-value { transition: color .25s; }
a.info-value:hover { color: var(--accent); }
[dir="rtl"] .info-value[dir="ltr"] { display: inline-block; }

.contact-form {
	display: grid;
	gap: 1rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--border);
	border-radius: calc(var(--radius) + 4px);
	background: var(--surface);
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; }
.field input, .field select, .field textarea {
	width: 100%;
	padding: 1.5rem 1rem .55rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-2);
	font-size: .98rem;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .25s, box-shadow .25s, background-color .3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field label {
	position: absolute;
	top: 1.05rem;
	inset-inline-start: 1rem;
	color: var(--muted);
	font-size: .98rem;
	pointer-events: none;
	transition: top .2s var(--ease), font-size .2s var(--ease), color .2s;
}
.field :is(input, textarea):focus + label,
.field :is(input, textarea):not(:placeholder-shown) + label,
.field-static label { top: .45rem; font-size: .74rem; font-weight: 600; }
.field :is(input, select, textarea):focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.field :is(input, select, textarea):focus + label { color: var(--accent); }
.field select {
	padding-inline-end: 2.75rem;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c93a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 18px;
}
[dir="rtl"] .field select { background-position: left 1rem center; }
.field select option { background: var(--bg-2); color: var(--text); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.form-status { min-height: 1.5em; font-size: .92rem; font-weight: 600; text-align: center; }
.form-status[data-state="success"] { color: var(--accent-2); }
.form-status[data-state="error"] { color: var(--accent-3); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* Socials */
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.socials a {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	color: var(--muted);
	transition: color .3s, background .3s, border-color .3s, transform .35s var(--ease);
}
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-3px); }

/* Footer */
.site-footer { padding-top: 4.5rem; border-top: 1px solid var(--border); background: var(--bg); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 2.5rem; padding-bottom: 2rem; }
.footer-brand p { max-width: 330px; margin-top: 1.1rem; color: var(--muted); }
.footer-brand .socials { margin-top: 1.5rem; }
.footer-col h4 { margin-bottom: 1.1rem; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
[dir="rtl"] .footer-col h4 { letter-spacing: 0; font-size: .9rem; }
.footer-list { display: grid; gap: .65rem; }
.footer-list a { opacity: .85; transition: color .25s, opacity .25s; }
.footer-list a:hover { color: var(--accent); opacity: 1; }
.footer-mega {
	font-family: var(--font-en);
	font-size: clamp(5rem, 24vw, 20rem);
	font-weight: 800;
	line-height: .78;
	letter-spacing: -.07em;
	text-align: center;
	background: linear-gradient(180deg, var(--border-strong), transparent 85%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
	margin-bottom: -.08em;
}
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: .88rem;
}
.to-top { display: inline-flex; align-items: center; gap: .4rem; transition: color .25s; }
.to-top:hover { color: var(--text); }
.to-top .i { width: 16px; height: 16px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Blog / pages */
.page-wrap { padding-block: clamp(3rem, 8vw, 6rem); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.post-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-body { display: grid; gap: .5rem; padding: 1.5rem; }
.post-body h2 { font-size: 1.25rem; }
.post-body h2 a:hover { color: var(--accent); }
.post-body p { color: var(--muted); }
.entry { max-width: 780px; margin-inline: auto; }
.entry-header { margin-bottom: 2rem; }
.entry-thumb { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; }
.entry-content { font-size: 1.08rem; }
.entry-content > * + * { margin-top: 1.25rem; }
.entry-content h2, .entry-content h3 { margin-top: 2.5rem; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4rem; list-style: revert; }
.entry-content blockquote { margin-inline: 0; padding: 1rem 1.5rem; border-inline-start: 3px solid var(--accent); background: var(--surface); border-radius: var(--radius-sm); }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border-radius: 6px; }
.entry-content code { padding: .15em .4em; font-size: .9em; }
.entry-content pre { padding: 1.25rem; overflow-x: auto; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: .8rem; border: 1px solid var(--border); border-radius: 999px; }
.pagination .current, .pagination a.page-numbers:hover { background: var(--text); color: var(--bg); }
.empty-state { display: grid; justify-items: start; gap: 1.25rem; padding-block: 4rem; color: var(--muted); }
.empty-state .section-title { color: var(--text); }
