/* ==========================================================================
   Ahmed Elshamy — main stylesheet (v2, Arabic-first)
   Dark matte editorial system · layered glass · RTL by default, LTR override
   --------------------------------------------------------------------------
   01 Tokens             11 Intro & pillars        21 Contact & form
   02 Reset / base       12 Work                   22 CV
   03 Typography         13 Case studies           23 About
   04 Layout             14 Services               24 Posts & search
   05 Glass & surfaces   15 Brands                 25 Footer
   06 Buttons & chips    16 Experience & timeline  26 404
   07 Header             17 Skills                 27 Motion
   08 Mega menu          18 Project / case study   28 Responsive
   09 Overlay menu       19 Testimonials           29 Light · print
   10 Hero & page hero   20 Empty states
   Writing direction is handled with logical properties (inline-start/end),
   so the same rule reads right-to-left in Arabic and left-to-right in English.
   ========================================================================== */

/* 01 — Tokens ------------------------------------------------------------ */
:root {
	--bg: #080808;
	--bg-2: #0f0f0f;
	--surface: #141414;
	--surface-2: #1a1a1a;
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.16);
	--text: #f4f4f2;
	--text-2: #b0b0ad;
	--muted: #8a8a8a; /* ≥ 4.5:1 on --bg */
	--ink-on-accent: #140a06;

	--accent: #d4562e;
	--accent-2: #c98b45;
	--accent-soft: color-mix(in srgb, var(--accent) 13%, transparent);
	--accent-line: color-mix(in srgb, var(--accent) 45%, transparent);

	/* Glass tiers: 1 = chips/bars, 2 = panels, 3 = floating menus. */
	--glass-1: rgba(255, 255, 255, 0.04);
	--glass-2: rgba(255, 255, 255, 0.055);
	--glass-3: rgba(16, 16, 16, 0.78);
	--glass-border: rgba(255, 255, 255, 0.1);
	--glass-hi: rgba(255, 255, 255, 0.22);
	--blur: 18px;

	/* Type — Arabic is the default reading language. */
	--font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Instrument Serif", Georgia, serif;
	--font-ar-display: Alexandria, "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--font-ar-body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
	--font-head: var(--font-ar-display);
	--font-text: var(--font-ar-body);
	--font-accent: var(--font-ar-display);
	--track: 0;           /* Arabic is never letter-spaced (breaks joining). */
	--track-label: 0;
	--case: none;
	--lh-head: 1.22;
	--lh-text: 1.85;
	--w-head: 600;

	--wrap: 1440px;
	--gutter: clamp(20px, 4.2vw, 64px);
	--space: 1;
	--section: calc(clamp(72px, 8.6vw, 140px) * var(--space));
	--header-alpha: 0.3;
	--radius: 6px;
	--radius-lg: 14px;
	--radius-xl: 22px;
	--pill: 999px;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--motion: 1;
	--header-h: 76px;
	--noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[lang="en"] {
	--font-head: var(--font-display);
	--font-text: var(--font-body);
	--font-accent: var(--font-serif);
	--track: -0.035em;
	--track-label: 0.18em;
	--case: uppercase;
	--lh-head: 0.98;
	--lh-text: 1.6;
	--w-head: 500;
}

/* Older Safari (< 16.2) has no color-mix(): static fallbacks for the default accent. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	:root { --accent-soft: rgba(212, 86, 46, 0.13); --accent-line: rgba(212, 86, 46, 0.45); }
}

/* 02 — Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 24px);
	background: var(--bg);
	color-scheme: dark;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--bg);
	color: var(--text);
	font-family: var(--font-text);
	font-size: clamp(16px, 0.25vw + 15px, 18px);
	line-height: var(--lh-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	-webkit-tap-highlight-color: transparent;
}
@supports not (overflow: clip) {
	body { overflow-x: hidden; } /* Safari < 16 */
}
/* Matte film grain painted on the body itself — no extra fixed layer to composite. */
body.has-grain {
	background-image: var(--noise);
	background-size: 160px;
	background-blend-mode: soft-light;
}
img, video, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-head); font-weight: var(--w-head); line-height: var(--lh-head); letter-spacing: var(--track); }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink-on-accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }
.screen-reader-text, .hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link {
	position: fixed; inset-inline-start: 16px; top: -100px; z-index: 1000;
	padding: 12px 18px; border-radius: var(--pill);
	background: var(--text); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: 16px; }
.icon { flex: none; }
/* Directional icons mirror in RTL. */
html[dir="rtl"] .icon-arrow, html[dir="rtl"] .icon-arrow-up { transform: scaleX(-1); }

/* 03 — Typography -------------------------------------------------------- */
.sec-title, .page-hero__title, .hero__title, .intro__title, .project-hero__title, .site-footer__title, .next-project__title {
	font-family: var(--font-head);
	font-weight: var(--w-head);
	letter-spacing: var(--track);
	line-height: var(--lh-head);
	text-wrap: balance;
}
.sec-title { font-size: clamp(2rem, 4.4vw, 4.4rem); max-width: 18ch; }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 7.2rem); max-width: 14ch; }
html[lang="en"] .page-hero__title { font-size: clamp(2.8rem, 8vw, 8.4rem); line-height: 0.95; }
.serif, .sec-title em, .page-hero__title em { font-family: var(--font-accent); font-style: normal; }
html[lang="en"] .serif, html[lang="en"] .sec-title em, html[lang="en"] .page-hero__title em { font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.prose { color: var(--text-2); max-width: 68ch; }
.prose--lg { font-size: clamp(1.05rem, 0.55vw + 0.92rem, 1.28rem); }
.prose--xl { font-size: clamp(1.15rem, 0.8vw + 0.95rem, 1.5rem); color: var(--text); max-width: 46ch; }
.prose--xl p + p { color: var(--text-2); }
.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { color: var(--text); margin: 2em 0 0.6em; font-size: 1.5em; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 5px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul { list-style: disc; padding-inline-start: 1.2em; }
.prose ol { list-style: decimal; padding-inline-start: 1.2em; }
.prose blockquote { margin: 2em 0; padding-inline-start: 1.2em; border-inline-start: 2px solid var(--accent); color: var(--text); font-size: 1.2em; }
.prose img { border-radius: var(--radius); }
.prose strong { color: var(--text); font-weight: 600; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 12px;
	margin: 0 0 22px;
	font-size: 0.88rem; font-weight: 500;
	letter-spacing: var(--track-label); text-transform: var(--case);
	color: var(--text-2);
}
html[lang="en"] .eyebrow { font-size: 0.75rem; }
.eyebrow__num { color: var(--accent); font-family: var(--font-body); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.eyebrow__line { width: 36px; height: 1px; background: var(--line-strong); }
.block-title { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: 1.2rem; }
.link-arrow {
	display: inline-flex; align-items: center; gap: 10px;
	color: var(--text); font-weight: 500;
	border-bottom: 1px solid var(--line-strong); padding-bottom: 4px;
	transition: gap 0.4s var(--ease), border-color 0.4s var(--ease);
}
.link-arrow:hover { gap: 16px; border-color: var(--accent); }
.num { font-family: var(--font-body); font-variant-numeric: tabular-nums; }

/* 04 — Layout ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1040px; }
.section { position: relative; padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.55); }
.section--flush-top { padding-top: 0; }
.site-main { display: block; outline: none; }
.sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.page-intro { margin-bottom: clamp(48px, 6vw, 88px); }

.sec-head { position: relative; display: grid; gap: 22px 48px; margin-bottom: clamp(36px, 4.4vw, 68px); }
.sec-head .eyebrow { margin-bottom: 0; }
.sec-head__aside { display: grid; gap: 22px; justify-items: start; max-width: 44ch; }
.sec-head__lead { margin: 0; color: var(--text-2); }
@media (min-width: 900px) {
	.sec-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
	.sec-head .eyebrow { grid-column: 1 / -1; }
}

.crumbs { margin-bottom: 30px; font-size: 0.82rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-inline-start: 8px; color: var(--line-strong); }
html[dir="rtl"] .crumbs li:not(:last-child)::after { content: "\\"; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text-2); }

/* 05 — Glass & surfaces -------------------------------------------------- */
.glass {
	position: relative;
	background: var(--glass-2);
	border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
	backdrop-filter: blur(var(--blur)) saturate(140%);
	isolation: isolate;
}
/* Specular top edge — a 1px highlight that fades towards the sides. */
.glass::before {
	content: "";
	position: absolute; inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(180deg, var(--glass-hi), transparent 42%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	pointer-events: none;
	opacity: 0.55;
}
.glass--panel { border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 34px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.glass { background: rgba(24, 24, 24, 0.94); }
}

/* 06 — Buttons & chips (flat: no shadows, ever) ---------------------------- */
.btn {
	--bx: 0px; --by: 0px;
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	min-height: 52px; padding: 0 26px;
	border-radius: var(--pill);
	border: 1px solid transparent;
	font-family: var(--font-text);
	font-weight: 500; font-size: 0.95rem; line-height: 1;
	white-space: nowrap;
	box-shadow: none;
	transform: translate3d(var(--bx), var(--by), 0);
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.45s var(--ease);
	isolation: isolate;
}
.btn__icon { display: inline-flex; transition: transform 0.45s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .btn__icon { transform: translateX(-4px); }
.btn:active { transform: translate3d(var(--bx), calc(var(--by) + 1px), 0) scale(0.985); }
.btn--solid { background: var(--accent); color: var(--ink-on-accent); }
.btn--solid:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.btn--glass {
	background: var(--glass-1);
	border-color: var(--glass-border);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-strong); }
.btn--ghost { min-height: 44px; padding: 0 2px; border-radius: 0; border-bottom: 1px solid var(--line-strong); }
.btn--ghost:hover { border-bottom-color: var(--accent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.85rem; }
button.btn { font-family: var(--font-text); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px;
	border: 1px solid var(--line-strong); border-radius: var(--pill);
	font-size: 0.85rem; color: var(--text-2);
	transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}
a.chip:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.chip--live { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); font-size: 0.78rem; padding: 5px 12px; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); animation: ae-pulse 2.4s var(--ease) infinite; }
@keyframes ae-pulse { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 24px; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.9em; width: 12px; height: 1px; background: var(--accent); }
html[lang="en"] .ticks li::before { top: 0.75em; }
.ticks--sm li { font-size: 0.92rem; }

.stat { display: grid; gap: 8px; align-content: start; }
.stat__num { font-family: var(--font-body); font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; direction: ltr; text-align: start; unicode-bidi: isolate; }
html[dir="rtl"] .stat__num { text-align: right; }
.stat--accent .stat__num { color: var(--accent); }
.stat--xl .stat__num { font-size: clamp(4.4rem, 9vw, 8rem); }
.stat__label { font-size: 0.88rem; color: var(--text-2); max-width: 22ch; }

/* 07 — Header ------------------------------------------------------------ */
.site-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 500;
	padding: 14px var(--gutter) 0;
	transition: transform 0.6s var(--ease);
	pointer-events: none;
}
.site-header.is-hidden:not(.has-open) { transform: translateY(-120%); }
.site-header__bar {
	position: relative;
	pointer-events: auto;
	max-width: calc(var(--wrap) - var(--gutter) * 2 + 40px);
	margin-inline: auto;
	height: 62px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	padding-inline: 22px 10px;
	border-radius: var(--pill);
	background: rgba(14, 14, 14, var(--header-alpha));
	border-color: transparent;
	transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), border-radius 0.4s var(--ease);
}
.site-header.is-scrolled .site-header__bar, .site-header.has-open .site-header__bar { background: rgba(14, 14, 14, max(0.7, var(--header-alpha))); border-color: var(--glass-border); }
/* Full-width bar variant (Theme Settings → Header). */
.header-bar .site-header { padding: 0; }
.header-bar .site-header__bar { max-width: none; height: 70px; border-radius: 0; border-width: 0 0 1px; padding-inline: var(--gutter); }
.header-bar .site-header__bar::before { display: none; }
.header-bar .mega { border-radius: 0 0 var(--radius-xl) var(--radius-xl); top: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 64px; color: var(--accent); display: block; transition: color 0.4s; }
.brand__mark svg { width: 100%; height: auto; }
.brand:hover .brand__mark { color: var(--text); }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; letter-spacing: var(--track); white-space: nowrap; }
html[lang="en"] .brand__name { letter-spacing: -0.01em; }
.brand__img { max-height: 34px; width: auto; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item.has-mega { position: static; } /* mega panels align to the header bar */
.nav__link {
	position: relative;
	display: inline-flex; align-items: center;
	height: 40px; padding: 0 12px;
	font-size: 0.92rem; color: var(--text-2);
	border-radius: var(--pill);
	transition: color 0.3s, background-color 0.3s;
}
html[lang="en"] .nav__link { font-size: 0.88rem; }
.nav__item.has-sub > .nav__link { padding-inline-end: 2px; }
.nav__link:hover, .nav__item:focus-within > .nav__link, .nav__item.is-open > .nav__link { color: var(--text); }
.nav__item.is-current > .nav__link { color: var(--text); }
.nav__item.is-current > .nav__link::after {
	content: ""; position: absolute; bottom: 5px; inset-inline-start: 50%;
	width: 4px; height: 4px; margin-inline-start: -2px; border-radius: 50%; background: var(--accent);
}
.nav__toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 32px; color: var(--muted);
	transition: transform 0.35s var(--ease), color 0.3s;
}
.nav__toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--text); }

/* Simple dropdown */
.nav__sub {
	position: absolute; top: calc(100% + 16px); inset-inline-start: -10px;
	min-width: 250px; padding: 8px;
	border-radius: var(--radius-lg);
	background: var(--glass-3);
	border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(24px) saturate(140%);
	backdrop-filter: blur(24px) saturate(140%);
	opacity: 0; visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.3s var(--ease), transform 0.45s var(--ease), visibility 0.3s;
}
.nav__sub::after, .mega::after { content: ""; position: absolute; bottom: 100%; inset-inline: 0; height: 18px; } /* hover bridge */
.nav__item.is-open > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a {
	display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px;
	padding: 11px 12px; border-radius: 10px;
	font-size: 0.92rem; color: var(--text-2);
	transition: background-color 0.3s, color 0.3s;
}
.nav__sub a:hover, .nav__sub a[aria-current] { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav__sub-num { font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav__sub-arrow { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.4s var(--ease); color: var(--accent); }
html[dir="rtl"] .nav__sub-arrow { transform: scaleX(-1) translateX(-6px); }
.nav__sub a:hover .nav__sub-arrow { opacity: 1; transform: none; }
html[dir="rtl"] .nav__sub a:hover .nav__sub-arrow { transform: scaleX(-1); }

.site-header__actions { display: flex; align-items: center; gap: 8px; flex: none; }


.menu-btn {
	display: inline-flex; align-items: center; gap: 12px;
	height: 42px; padding-inline: 18px 7px;
	border-radius: var(--pill);
	background: var(--text); color: var(--bg);
	font-size: 0.85rem; font-weight: 600;
	transition: background-color 0.3s;
}
.menu-btn:hover { background: #fff; }
.menu-btn__lines { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.menu-btn__lines span { position: absolute; inset-inline-start: 8px; width: 12px; height: 1.5px; background: var(--text); transition: transform 0.5s var(--ease), top 0.5s var(--ease); }
.menu-btn__lines span:first-child { top: 11px; }
.menu-btn__lines span:last-child { top: 16px; }
.menu-open .menu-btn__lines span:first-child { top: 13.5px; transform: rotate(45deg); }
.menu-open .menu-btn__lines span:last-child { top: 13.5px; transform: rotate(-45deg); }

.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 600; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: var(--accent); transform-origin: right; transform: scaleX(var(--p, 0)); }
html[dir="ltr"] .progress__bar { transform-origin: left; }

/* Custom cursor (fine pointers only, opt-in) */
.cursor { display: none; }
.has-fine-pointer.cursor-on .cursor { display: block; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; z-index: 2000; pointer-events: none; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--text); mix-blend-mode: difference; }
.cursor__ring {
	width: 38px; height: 38px; margin: -19px 0 0 -19px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	display: grid; place-items: center;
	transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.45s var(--ease), border-color 0.45s, opacity 0.3s;
}
.cursor__label { font-size: 0.68rem; font-weight: 700; color: var(--ink-on-accent); opacity: 0; transition: opacity 0.3s; }
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--accent-line); }
.cursor.has-label .cursor__ring { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--accent); border-color: var(--accent); }
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.cursor-on body, .cursor-on a, .cursor-on button, .cursor-on summary, .cursor-on label { cursor: none; }
.cursor-on input, .cursor-on textarea, .cursor-on select { cursor: auto; }

/* 08 — Mega menu --------------------------------------------------------- */
/* The header bar is itself a backdrop root, so panels nested in it cannot blur
   the page behind — they use a near-opaque matte surface instead. */
.nav__sub, .mega { background: rgba(13, 13, 13, 0.985) !important; }
html[data-theme="light"] .nav__sub, html[data-theme="light"] .mega { background: rgba(246, 244, 241, 0.98) !important; }
.mega {
	position: absolute; top: calc(100% + 12px); inset-inline: 0;
	border-radius: var(--radius-xl);
	background: var(--glass-3);
	border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(28px) saturate(140%);
	backdrop-filter: blur(28px) saturate(140%);
	opacity: 0; visibility: hidden;
	transform: translateY(-8px) scale(0.995);
	transform-origin: top center;
	transition: opacity 0.3s var(--ease), transform 0.5s var(--ease), visibility 0.3s;
	overflow: hidden;
}
.nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { position: relative; padding: clamp(22px, 2.4vw, 34px); }
.mega__inner--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 36px; }
.mega__col ul { display: grid; gap: 2px; }
.mega__heading {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	padding: 4px 10px 14px; margin-bottom: 8px;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-head); font-size: 1.08rem; font-weight: var(--w-head); color: var(--text);
	transition: color 0.3s;
}
.mega__heading:hover { color: var(--accent); }
.mega__count { font-family: var(--font-body); font-size: 0.72rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.mega__col a:not(.mega__heading) {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 10px; border-radius: 10px;
	font-size: 0.9rem; color: var(--text-2); line-height: 1.45;
	transition: background-color 0.3s, color 0.3s;
}
.mega__col a:not(.mega__heading):hover, .mega__col a[aria-current] { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.mega__icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 18px; margin-top: 6px; border-top: 1px solid var(--line); }

.nav__item.has-mega:has(> .mega--feature) { position: relative; } /* feature panel anchors to its own item */
.mega--feature { inset-inline: auto; inset-inline-start: -24px; top: calc(100% + 16px); width: min(600px, calc(100vw - var(--gutter) * 2)); }
.mega--feature .mega__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 22px; align-items: stretch; }
.mega__links { display: grid; align-content: start; gap: 2px; }
.mega__links a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; font-size: 1rem; color: var(--text-2); transition: background-color 0.3s, color 0.3s; }
.mega__links a:hover, .mega__links a[aria-current] { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.mega__card { position: relative; display: grid; align-content: end; gap: 4px; min-height: 210px; padding: 18px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: var(--surface); }
.mega__card-media { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; color: rgba(255, 255, 255, 0.06); padding: 18%; }
.mega__card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mega__card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(8, 8, 8, 0.85)); }
.mega__card:hover .mega__card-media img { transform: scale(1.05); }
.mega__card-label { font-size: 0.75rem; color: var(--accent); letter-spacing: var(--track-label); text-transform: var(--case); }
.mega__card-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: var(--w-head); line-height: 1.3; }

/* 09 — Overlay menu (mobile & tablet) --------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 450; display: grid; }
.overlay__bg { position: absolute; inset: 0; background: rgba(6, 6, 6, 0.6); -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%); opacity: 0; transition: opacity 0.6s var(--ease); }
.overlay__panel {
	position: relative;
	display: flex; flex-direction: column; justify-content: space-between;
	min-height: 100%;
	padding: calc(var(--header-h) + 40px) var(--gutter) 28px;
	overflow-y: auto; overscroll-behavior: contain;
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.8s var(--ease-in-out);
	background: linear-gradient(180deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.985));
}
.overlay__mark { position: absolute; inset-inline-end: -6vw; bottom: 8vh; width: min(90vw, 760px); color: var(--accent); opacity: 0.06; pointer-events: none; }
.overlay__mark svg { width: 100%; height: auto; }
.overlay.is-open .overlay__bg { opacity: 1; }
.overlay.is-open .overlay__panel { clip-path: inset(0 0 0 0); }
.overlay__nav { position: relative; max-width: var(--wrap); width: 100%; margin-inline: auto; }
.overlay__item { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); transition-delay: calc(0.16s + var(--i) * 0.05s); }
.overlay.is-open .overlay__item { opacity: 1; transform: none; }
.overlay__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.overlay__link {
	display: flex; align-items: baseline; gap: 18px;
	padding: 12px 0;
	font-family: var(--font-head); font-weight: var(--w-head);
	font-size: clamp(1.9rem, 6vw, 4.4rem); line-height: 1.3; letter-spacing: var(--track);
	transition: color 0.3s, transform 0.5s var(--ease);
}
html[lang="en"] .overlay__link { line-height: 1.05; }
.overlay__link:hover, .overlay__link[aria-current] { color: var(--accent); }
.overlay__link:hover { transform: translateX(-10px); }
html[dir="ltr"] .overlay__link:hover { transform: translateX(10px); }
.overlay__num { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.overlay__toggle { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.4s var(--ease), background-color 0.3s; }
.overlay__toggle[aria-expanded="true"] { transform: rotate(45deg); background: var(--glass-2); }
.overlay__sub { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-block: 0 22px; padding-inline-start: calc(18px + 1.4rem); }
.overlay__sub a { color: var(--text-2); font-size: 1.05rem; transition: color 0.3s; }
.overlay__sub a:hover { color: var(--text); }
.overlay__foot {
	position: relative;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 22px;
	max-width: var(--wrap); width: 100%; margin: 44px auto 0;
	opacity: 0; transition: opacity 0.6s var(--ease) 0.45s;
}
.overlay.is-open .overlay__foot { opacity: 1; }
.overlay__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.menu-open, .menu-open body { overflow: hidden; overscroll-behavior: none; }
.overlay__panel { overscroll-behavior: contain; }

/* 10 — Hero ---------------------------------------------------------------- */
.hero {
	--mx: 0; --my: 0;
	position: relative;
	min-height: 100vh; min-height: 100svh;
	display: grid; grid-template-rows: 1fr auto;
	overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__glow {
	position: absolute; width: 80vmax; height: 80vmax;
	inset-inline-end: -20vmax; top: 50%; margin-top: -42vmax;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 32%, transparent), transparent 72%);
	opacity: 0.55;
}
.hero__grid {
	position: absolute; inset: 0;
	background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: calc((min(100vw, var(--wrap)) - var(--gutter) * 2) / 6) 100%;
	background-position: center;
	-webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
	mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.28; filter: saturate(0.8); }
.hero__callig { position: absolute; inset-inline-start: -2vw; top: 16vh; width: min(74vw, 1150px); color: var(--accent); opacity: 0.05; }
.hero__callig svg { width: 100%; height: auto; }

/* Light streaks — the cinematic motif replacing particles (pure CSS). */
.hero__streaks { position: absolute; inset: 0; overflow: hidden; }
.hero__streaks span {
	position: absolute; top: -30%; height: 160%; width: 1px;
	background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 65%, #fff) 50%, transparent);
	opacity: 0;
	rotate: 24deg;
}
html[dir="rtl"] .hero__streaks span { rotate: -24deg; }
.hero__streaks span:nth-child(1) { inset-inline-end: 34%; }
.hero__streaks span:nth-child(2) { inset-inline-end: 22%; width: 2px; filter: blur(1px); }
.hero__streaks span:nth-child(3) { inset-inline-end: 12%; }
.has-streaks .hero__streaks span { animation: ae-streak calc(9s / var(--motion)) var(--ease-in-out) infinite; }
.has-streaks .hero__streaks span:nth-child(2) { animation-delay: 2.6s; }
.has-streaks .hero__streaks span:nth-child(3) { animation-delay: 5.1s; }
@keyframes ae-streak {
	0% { opacity: 0; translate: 0 -20%; }
	18% { opacity: 0.55; }
	45% { opacity: 0; translate: 0 22%; }
	100% { opacity: 0; translate: 0 22%; }
}
body:not(.has-streaks) .hero__streaks { display: none; }

[data-depth] { will-change: transform; }

.hero__portrait {
	position: absolute; z-index: -1;
	inset-inline-end: max(0px, calc((100vw - var(--wrap)) / 2));
	bottom: 0;
	width: min(52vw, 840px); height: 100%;
	pointer-events: none;
}
.hero__portrait-frame {
	position: absolute; inset: 0;
	-webkit-mask-image: radial-gradient(52% 66% at 50% 38%, #000 46%, rgba(0, 0, 0, 0.5) 70%, transparent 94%);
	mask-image: radial-gradient(52% 66% at 50% 38%, #000 46%, rgba(0, 0, 0, 0.5) 70%, transparent 94%);
}
.hero__portrait-frame picture, .hero__portrait-frame img { width: 100%; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.9) contrast(1.04); }
.hero__tag {
	position: absolute; inset-inline-start: 4%; top: 62%;
	display: grid; gap: 2px; justify-items: start;
	padding: 14px 18px; border-radius: var(--radius-lg);
	background: rgba(10, 10, 10, 0.42);
}
.hero__tag strong { font-family: var(--font-body); font-size: 2rem; font-weight: 500; line-height: 1; color: var(--accent); direction: ltr; unicode-bidi: isolate; }
.hero__tag span { font-size: 0.8rem; color: var(--text-2); max-width: 16ch; }

.hero__content { align-self: center; position: relative; padding-top: calc(var(--header-h) + 64px); padding-bottom: 36px; }
.hero__label {
	display: inline-flex; align-items: center; gap: 14px;
	margin-bottom: 26px;
	font-size: 0.95rem; color: var(--text-2);
	letter-spacing: var(--track-label); text-transform: var(--case);
}
html[lang="en"] .hero__label { font-size: 0.78rem; letter-spacing: 0.22em; }
.hero__label-line { width: 44px; height: 1px; background: var(--accent); }
.hero__title { font-size: clamp(3.2rem, 10.5vw, 11rem); line-height: 1.12; font-weight: 700; margin-bottom: 30px; }
html[lang="en"] .hero__title { font-size: clamp(3.6rem, 12.5vw, 13.5rem); line-height: 0.86; letter-spacing: -0.055em; font-weight: 500; margin-bottom: 36px; }
.hero__line { display: block; overflow: hidden; padding-bottom: 0.12em; }
html[lang="en"] .hero__line { padding-bottom: 0.06em; }
.hero__word { display: inline-block; }
.hero__line--accent { padding-inline-start: 0.9em; }
.hero__line--accent .hero__word { color: var(--accent); }
html[lang="en"] .hero__line--accent .hero__word { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
/* Signature line: the الشامي calligraphy replaces the second word. */
.hero__line--sig { padding: 0.04em 0 0.1em; padding-inline-start: 0.5em; overflow: visible; }
.hero__sig { display: inline-block; color: var(--accent); }
.hero__sig svg { height: 1.02em; width: auto; }
.hero__statement { max-width: 46ch; font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.22rem); color: var(--text-2); margin-bottom: 34px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; padding-bottom: 28px; font-size: 0.85rem; color: var(--text-2); }
.hero__rail { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: var(--pill); background: var(--glass-1); }
.hero__rail a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--pill); color: var(--text-2); transition: background-color 0.3s, color 0.3s; }
.hero__rail a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.hero__rail sup { font-family: var(--font-body); font-size: 0.65rem; color: var(--accent); }
.hero__meta { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.hero__scroll { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 12px; color: var(--text-2); }
.hero__scroll-track { position: relative; width: 1px; height: 44px; background: var(--line-strong); overflow: hidden; }
.hero__scroll-track span { position: absolute; inset-inline: 0; top: 0; height: 40%; background: var(--accent); animation: ae-scroll 2.2s var(--ease-in-out) infinite; }
@keyframes ae-scroll { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
.hero__scroll-text { font-size: 0.78rem; letter-spacing: var(--track-label); text-transform: var(--case); }

/* Inner page hero */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(72px, 10vw, 150px)) 0 clamp(56px, 7vw, 104px); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.page-hero__bg::before { content: ""; position: absolute; width: 70vmax; height: 70vmax; inset-inline-end: -26vmax; top: -40vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%); }
.page-hero__mark { position: absolute; inset-inline-end: -4vw; bottom: 6%; width: min(56vw, 820px); color: var(--text); opacity: 0.018; }
.page-hero__mark svg { width: 100%; height: auto; }
.page-hero__streak { position: absolute; top: -20%; inset-inline-end: 18%; width: 1px; height: 140%; rotate: -24deg; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 60%, #fff) 50%, transparent); opacity: 0.18; }
html[dir="ltr"] .page-hero__streak { rotate: 24deg; }
.page-hero__grid { display: grid; gap: 48px; align-items: end; }
.page-hero__lead { max-width: 54ch; margin: 28px 0 0; font-size: clamp(1.05rem, 0.55vw + 0.92rem, 1.28rem); color: var(--text-2); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (min-width: 1000px) {
	.page-hero--split .page-hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: 5vw; }
}
.hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-index { display: grid; border-top: 1px solid var(--line); }
.hero-index a { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 1.15rem; transition: color 0.3s, padding 0.5s var(--ease); }
.hero-index a:hover { color: var(--accent); padding-inline-start: 8px; }
.hero-index span { font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); }
.hero-index sup { margin-inline-start: auto; font-family: var(--font-body); font-size: 0.72rem; color: var(--accent); }
.hero-icon { display: grid; place-items: center; width: clamp(120px, 14vw, 180px); aspect-ratio: 1; margin-inline-start: auto; border-radius: 32%; color: var(--accent); background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 70%), var(--surface); border: 1px solid var(--line); }

/* 11 — Intro & pillars --------------------------------------------------- */
.intro__grid { display: grid; gap: 40px; }
.intro__title { font-size: clamp(1.9rem, 4vw, 3.8rem); max-width: 17ch; }
.intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 34px; }
@media (min-width: 1000px) {
	.intro__grid { grid-template-columns: 1.05fr 1fr; gap: 7vw; }
	.intro__body { padding-top: 10px; }
}
.intro__stats {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px;
	margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 1px solid var(--line);
}
@media (min-width: 800px) { .intro__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillars { display: grid; gap: 1px; margin-top: clamp(40px, 5vw, 64px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: clamp(24px, 2.4vw, 36px); background: var(--bg); transition: background-color 0.5s; overflow: hidden; }
.pillar::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.7s var(--ease); }
html[dir="ltr"] .pillar::after { transform-origin: left; }
.pillar:hover { background: var(--surface); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__num { font-family: var(--font-body); font-size: 0.8rem; color: var(--accent); margin-bottom: auto; padding-bottom: 48px; }
.pillar__title { font-family: var(--font-head); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: var(--w-head); letter-spacing: var(--track); line-height: 1.3; }
.pillar__text { color: var(--text-2); font-size: 0.95rem; }

/* 12 — Work -------------------------------------------------------------- */
.work-grid { display: grid; gap: clamp(36px, 4vw, 56px) clamp(16px, 2vw, 28px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-grid--featured { grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.work-grid--featured { grid-template-columns: repeat(12, 1fr); row-gap: clamp(48px, 6vw, 96px); }
	.work-grid--featured > :nth-child(6n + 1) { grid-column: 1 / span 7; }
	.work-grid--featured > :nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: 16vh; }
	.work-grid--featured > :nth-child(6n + 3) { grid-column: 2 / span 5; }
	.work-grid--featured > :nth-child(6n + 4) { grid-column: 7 / span 6; margin-top: 10vh; }
	.work-grid--featured > :nth-child(6n + 5) { grid-column: 1 / span 6; }
	.work-grid--featured > :nth-child(6n + 6) { grid-column: 8 / span 5; margin-top: 12vh; }
}
.work-card__link { display: block; transform-style: preserve-3d; }
.work-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.work-grid--featured > :nth-child(6n + 1) .work-card__media, .work-grid--featured > :nth-child(6n + 4) .work-card__media { aspect-ratio: 16 / 11; }
.work-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: saturate(0.92); transition: transform 1.2s var(--ease), opacity 0.6s var(--ease), filter 0.8s var(--ease); }
.work-card__img--alt { opacity: 0; }
.work-card__link:hover .work-card__img { transform: scale(1); filter: saturate(1); }
.work-card__link:hover .work-card__img--alt { opacity: 1; }
.work-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 18%; color: rgba(255, 255, 255, 0.06); background: radial-gradient(circle at 70% 20%, var(--accent-soft), transparent 60%), var(--surface); }
.work-card__placeholder svg { width: 100%; height: auto; }
.work-card__index, .work-card__badge {
	position: absolute; top: 14px;
	padding: 6px 11px; border-radius: var(--pill);
	font-size: 0.74rem;
	background: rgba(8, 8, 8, 0.5); border: 1px solid var(--glass-border);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.work-card__index { inset-inline-start: 14px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.work-card__badge { inset-inline-end: 14px; color: var(--text); border-color: var(--accent-line); background: color-mix(in srgb, var(--accent) 22%, rgba(8, 8, 8, 0.5)); }
.work-card__meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-top: 18px; }
.work-card__title { font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.3; }
.work-card__sub { grid-column: 1; margin: 0; font-size: 0.86rem; color: var(--muted); }
.work-card__arrow { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease), border-color 0.4s; }
.work-card__link:hover .work-card__arrow { background: var(--text); color: var(--bg); border-color: var(--text); transform: rotate(45deg); }
html[dir="rtl"] .work-card__link:hover .work-card__arrow { transform: rotate(-45deg); }
.work-card.is-filtered-out, .work-index__item.is-filtered-out { display: none; }

.work-toolbar { position: sticky; top: calc(var(--header-h) + 18px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: var(--pill); background: rgba(14, 14, 14, 0.6); }
.filters__btn { position: relative; z-index: 1; padding: 10px 16px; border-radius: var(--pill); font-size: 0.88rem; color: var(--text-2); transition: color 0.35s; }
.filters__btn sup { font-family: var(--font-body); font-size: 0.65em; color: var(--muted); margin-inline-start: 2px; }
.filters__btn.is-active { color: var(--bg); }
.filters__btn.is-active sup { color: inherit; opacity: 0.7; }
.filters__thumb { position: absolute; z-index: 0; top: 0; left: 0; border-radius: var(--pill); background: var(--text); transition: transform 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease); }
.view-toggle { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--pill); }
.view-toggle__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: background-color 0.3s, color 0.3s; }
.view-toggle__btn.is-active { background: var(--glass-2); color: var(--text); }
.work-views[data-view="grid"] .work-index { display: none; }
.work-views[data-view="list"] .work-grid { display: none; }
.work-index { border-top: 1px solid var(--line); }
.work-index__item { border-bottom: 1px solid var(--line); }
.work-index a { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: center; padding: 24px 0; transition: padding 0.5s var(--ease); }
.work-index a:hover { padding-inline-start: 14px; }
.work-index__num { font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); }
.work-index__title { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.5rem); letter-spacing: var(--track); line-height: 1.25; }
.work-index__cat { display: none; color: var(--text-2); font-size: 0.9rem; }
.work-index__year { font-family: var(--font-body); color: var(--muted); font-size: 0.85rem; }
@media (min-width: 800px) { .work-index a { grid-template-columns: 60px 1.4fr 1fr 80px; } .work-index__cat { display: block; } }
.hover-preview { position: fixed; top: 0; left: 0; z-index: 300; width: 280px; aspect-ratio: 4 / 5; margin: -175px 0 0 -140px; border-radius: var(--radius-lg); overflow: hidden; pointer-events: none; opacity: 0; transform: scale(0.85); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.hover-preview img { width: 100%; height: 100%; object-fit: cover; }
.hover-preview.is-visible { opacity: 1; transform: scale(1); }

/* 13 — Case studies ------------------------------------------------------- */
.case-list { display: grid; gap: clamp(28px, 4vw, 56px); }
.case-card__link { display: grid; gap: 24px; align-items: center; padding-bottom: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .case-card__link { grid-template-columns: 1.2fr 1fr; gap: 5vw; } .case-card:nth-child(even) .case-card__media { order: 2; } }
.case-card__media { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.case-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.case-card__link:hover .case-card__media img { transform: scale(1.04); }
.case-card__body { display: grid; gap: 12px; justify-items: start; }
.case-card__num { font-family: var(--font-body); color: var(--accent); font-size: 0.8rem; }
.case-card__title { font-size: clamp(1.8rem, 3.4vw, 3.2rem); }
.case-card__sub { margin: 0; color: var(--text-2); max-width: 46ch; }
.case-card__meta { margin: 0 0 8px; color: var(--muted); font-size: 0.88rem; }

/* 14 — Services ----------------------------------------------------------- */
.svc-groups { display: grid; gap: clamp(48px, 6vw, 88px); }
.svc-group { display: grid; gap: 24px; }
@media (min-width: 1000px) { .svc-group { grid-template-columns: 300px 1fr; gap: 5vw; align-items: start; } .svc-group__label { position: sticky; top: calc(var(--header-h) + 40px); } }
.svc-group__label { display: grid; gap: 8px; justify-items: start; }
.svc-group__num { font-family: var(--font-body); font-size: 0.8rem; color: var(--accent); }
.svc-group__title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.svc-group__title a { transition: color 0.3s; }
.svc-group__title a:hover { color: var(--accent); }
.svc-group__count { font-size: 0.85rem; color: var(--muted); }
.svc-list { border-top: 1px solid var(--line); }
.svc { border-bottom: 1px solid var(--line); }
.svc__head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; }
.svc__head::-webkit-details-marker { display: none; }
.svc__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); transition: background-color 0.4s, color 0.4s; }
.svc[open] .svc__icon, .svc__head:hover .svc__icon { background: var(--accent-soft); }
.svc__title { font-family: var(--font-head); font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: var(--w-head); letter-spacing: var(--track); line-height: 1.4; transition: color 0.3s; }
.svc__head:hover .svc__title { color: var(--accent); }
.svc__plus { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s; }
.svc[open] .svc__plus { transform: rotate(45deg); background: var(--text); color: var(--bg); }
.svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.svc[open] .svc__body { grid-template-rows: 1fr; }
.svc__inner { overflow: hidden; padding-inline-start: 62px; }
.svc__bullets { display: grid; gap: 10px 32px; padding-bottom: 20px; }
.svc__bullets li { position: relative; padding-inline-start: 22px; color: var(--text-2); }
.svc__bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.9em; width: 10px; height: 1px; background: var(--accent); }
.svc__inner .link-arrow { margin-bottom: 26px; }
@media (min-width: 900px) { .svc__bullets { grid-template-columns: repeat(2, 1fr); } }

.svc-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: background-color 0.5s, border-color 0.5s; }
.svc-card:hover { border-color: var(--line-strong); }
.svc-card:hover { background: var(--bg-2); }
.svc-card__link { display: flex; flex-direction: column; height: 100%; padding: clamp(26px, 2.8vw, 40px); }
.svc-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.svc-card__num { font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); }
.svc-card__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.svc-card__title { font-family: var(--font-head); font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: var(--w-head); letter-spacing: var(--track); line-height: 1.35; margin-bottom: 20px; transition: color 0.3s; }
.svc-card__link:hover .svc-card__title { color: var(--accent); }
.svc-card .ticks { margin-bottom: 28px; }
.svc-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; font-weight: 500; color: var(--text); transition: gap 0.4s var(--ease); }
.svc-card__link:hover .svc-card__more { gap: 16px; }

.service { max-width: 980px; }
.service__media { margin-bottom: 48px; border-radius: var(--radius-lg); overflow: hidden; }
.service__included { margin-top: 56px; }
.numbered { display: grid; border-top: 1px solid var(--line); counter-reset: none; }
.numbered li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.2rem); }
.numbered__n { font-family: var(--font-body); color: var(--accent); font-size: 0.85rem; padding-top: 0.3em; }

/* 15 — Brands ------------------------------------------------------------- */
.brand-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
@media (min-width: 640px) { .brand-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .brand-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.brand-wall__item { position: relative; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); transition: background-color 0.5s; }
.brand-wall__item:hover { background: rgba(255, 255, 255, 0.025); }
.brand-wall__item > a, .brand-wall__item > img, .brand-wall__item > span { display: grid; place-items: center; }
.brand-wall__item > a { height: 100%; }
.brand-wall__item { display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 16%; min-width: 0; }
.brand-wall__logo { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; opacity: 0.62; filter: grayscale(1); transition: opacity 0.4s, transform 0.6s var(--ease); }
.brand-wall__item:hover .brand-wall__logo { opacity: 1; transform: scale(1.04); }
.brand-wall__name { font-family: var(--font-head); color: var(--text-2); text-align: center; }
.brand-wall--compact { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 1000px) { .brand-wall--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand-wall--compact .brand-wall__item { padding: 18%; }
.brand-wall--compact .brand-wall__logo { max-height: 40px; }

/* 16 — Experience & timeline ---------------------------------------------- */
.experience__grid { display: grid; gap: 48px; }
@media (min-width: 1100px) { .experience__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 5vw; align-items: start; } }
.timeline { position: relative; display: grid; }
.timeline__rail { position: absolute; top: 8px; bottom: 8px; inset-inline-start: 7px; width: 1px; background: var(--line); }
.timeline__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.timeline__item { position: relative; display: grid; gap: 12px; padding-block: 0 48px; padding-inline-start: 44px; }
.timeline__node { position: absolute; inset-inline-start: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); transition: border-color 0.5s, background-color 0.5s; }
.timeline__item.is-in .timeline__node { border-color: var(--accent); }
.timeline__item.is-current .timeline__node { background: var(--accent); border-color: var(--accent); }
.timeline__when { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.88rem; color: var(--text-2); }
.timeline__period { font-variant-numeric: tabular-nums; }
.timeline__loc { color: var(--muted); }
.timeline__card { padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent); transition: border-color 0.5s; }
.timeline__item:hover .timeline__card { border-color: var(--line-strong); }
.timeline__head { display: flex; align-items: flex-start; gap: 16px; }
.timeline__titles { flex: 1; min-width: 0; }
.timeline__logo { width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; padding: 8px; }
.timeline__company { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.timeline__company a:hover { color: var(--accent); }
html[dir="rtl"] .timeline__company, html[dir="rtl"] .skill__name, html[dir="rtl"] .work-card__title { text-align: right; }
.timeline__role { margin: 8px 0 0; color: var(--text-2); }
.timeline__desc { color: var(--text-2); margin-top: 16px; }
.timeline__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.timeline__roles li { padding: 6px 13px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 0.84rem; color: var(--text-2); }
@media (min-width: 900px) {
	.timeline__item { grid-template-columns: 190px 1fr; gap: 32px; }
	.timeline__when { flex-direction: column; padding-top: 22px; }
}

.cv-card { display: grid; gap: 22px; }
.cv-card__top { display: flex; align-items: center; gap: 16px; }
.cv-card__photo { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); }
.cv-card__photo img, .cv-card__photo picture { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.cv-card__name { display: block; font-family: var(--font-head); font-size: 1.2rem; font-weight: var(--w-head); }
.cv-card__role { display: block; margin-top: 4px; font-size: 0.85rem; color: var(--text-2); line-height: 1.5; }
.cv-card .facts { margin: 0; }
.cv-card .facts__row { grid-template-columns: 88px 1fr; }
.cv-card__actions { display: grid; gap: 10px; }
.cv-card__actions .btn { width: 100%; }

.facts { display: grid; margin: 0 0 24px; }
.facts__row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.facts__row:first-child { padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--text); }

/* 17 — Skills --------------------------------------------------------------- */
.skills { display: grid; gap: 16px; }
@media (min-width: 760px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .skills { grid-template-columns: repeat(3, 1fr); } }
.skills__group { display: flex; flex-direction: column; }
.skills__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--line-strong); }
.skills__num { font-family: var(--font-body); font-size: 0.75rem; color: var(--muted); }
.skills__title { font-size: 1.3rem; flex: 1; }
.skills__count { font-family: var(--font-body); font-size: 0.75rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.skills__list { display: grid; }
.skill { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text-2); transition: color 0.3s, padding 0.5s var(--ease); }
.skill:last-child { border-bottom: 0; }
.skill:hover { color: var(--text); padding-inline-start: 6px; }
.skill__icon { width: 26px; height: 26px; }
.skill__icon img { width: 100%; height: 100%; object-fit: contain; }
.skill:not(:has(.skill__icon)) .skill__name { grid-column: 1 / -1; }
.skill__note { grid-column: 1 / -1; font-size: 0.8rem; color: var(--muted); }

/* Homepage toolkit band */
.toolkit { display: grid; border-top: 1px solid var(--line); }
.toolkit__group { display: grid; gap: 18px; padding-block: 26px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .toolkit__group { grid-template-columns: 300px 1fr; gap: 5vw; align-items: center; } }
.toolkit__title { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.2rem, 1.6vw, 1.5rem); }
.toolkit__num { font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; color: var(--accent); }
.toolkit__list { display: flex; flex-wrap: wrap; gap: 8px; }
.toolkit__item {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px; padding: 0 18px;
	border-radius: var(--pill);
	border: 1px solid var(--glass-border);
	background: var(--glass-1);
	color: var(--text-2); font-size: 0.95rem;
	transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}
.toolkit__item:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.toolkit__icon { width: 22px; height: 22px; }
.toolkit__icon img { width: 100%; height: 100%; object-fit: contain; }
.service__skills { margin-top: 48px; }

/* 18 — Project / case study ------------------------------------------------- */
.project-hero { padding-top: calc(var(--header-h) + clamp(72px, 9vw, 140px)); }
.project-hero__title { font-size: clamp(2.6rem, 7vw, 7rem); max-width: 16ch; }
html[lang="en"] .project-hero__title { line-height: 0.95; }
.project-hero__media { margin-top: clamp(44px, 6vw, 88px); overflow: hidden; height: min(82vh, 56vw); min-height: 320px; }
.project-hero__media-inner { height: 116%; margin-top: -8%; }
.project-hero__media img, .project-hero__video { width: 100%; height: 100%; object-fit: cover; }
.project-layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .project-layout { grid-template-columns: 340px minmax(0, 1fr); gap: 6vw; align-items: start; } .project-layout--solo { grid-template-columns: minmax(0, 1fr); max-width: 980px; } }
.project-layout__aside .btn { width: 100%; }
.project-block { margin-top: 64px; }
.chapters {
	position: sticky; top: calc(var(--header-h) + 18px); z-index: 30;
	display: flex; gap: 4px; overflow-x: auto;
	width: max-content; max-width: calc(100% - var(--gutter) * 2);
	margin: 32px auto 0; padding: 4px; border-radius: var(--pill);
	scrollbar-width: none;
}
.chapters::-webkit-scrollbar { display: none; }
.chapters a { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: var(--pill); font-size: 0.85rem; color: var(--text-2); white-space: nowrap; transition: background-color 0.3s, color 0.3s; }
.chapters a span { font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); }
.chapters a.is-active, .chapters a:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.chapter { padding-top: clamp(64px, 8vw, 120px); }
.chapter__label { display: flex; align-items: baseline; gap: 18px; margin-bottom: 24px; }
.chapter__num { font-family: var(--font-body); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 500; color: var(--accent); line-height: 1; }
html[lang="en"] .chapter__num { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.chapter__title { font-size: clamp(1.6rem, 3vw, 2.8rem); }
.chapter .gallery-grid { margin-top: 36px; }
.results { display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.results li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; background: var(--bg-2); padding: 22px 26px; font-size: 1.08rem; }
.results__n { font-family: var(--font-body); color: var(--accent); font-size: 0.82rem; padding-top: 0.3em; }
.credits { display: grid; gap: 8px; color: var(--text-2); }
.gallery-grid { display: grid; gap: clamp(12px, 1.6vw, 24px); grid-template-columns: repeat(2, 1fr); }
.gallery-grid__item { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); }
.gallery-grid__item.is-wide { grid-column: 1 / -1; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery-grid__item:hover img { transform: scale(1.03); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.next-project { position: relative; display: block; overflow: hidden; padding: clamp(80px, 12vw, 170px) 0; border-top: 1px solid var(--line); isolation: isolate; }
.next-project__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transform: scale(1.08); transition: opacity 0.8s var(--ease), transform 1.4s var(--ease); }
.next-project__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.35) saturate(0.8); }
.next-project:hover .next-project__bg { opacity: 1; transform: none; }
.next-project__inner { display: grid; }
.next-project__title { font-size: clamp(2.2rem, 7vw, 7rem); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 4vh 4vw; border: 0; background: rgba(6, 6, 6, 0.94); display: grid; place-items: center; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox__close { position: fixed; top: 20px; inset-inline-end: 20px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); font-size: 1.6rem; line-height: 1; background: var(--glass-2); }

/* 19 — Testimonials ---------------------------------------------------------- */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(86vw, 460px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.quote { scroll-snap-align: start; border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote blockquote { margin: 0; font-size: 1.12rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--text-2); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

/* 20 — Empty states -------------------------------------------------------- */
.empty-state { display: grid; justify-items: center; text-align: center; gap: 8px; padding: clamp(40px, 6vw, 80px) 24px; border-radius: var(--radius-lg); border: 1px dashed var(--line-strong); color: var(--text-2); }
.empty-state__mark { width: 160px; color: var(--accent); opacity: 0.5; margin-bottom: 12px; }
.empty-state__mark svg { width: 100%; height: auto; }
.empty-state__hint { font-size: 0.82rem; color: var(--muted); }

/* 21 — Contact & form -------------------------------------------------------- */
.contact { display: grid; gap: 32px; }
@media (min-width: 1000px) { .contact { grid-template-columns: 0.78fr 1.22fr; gap: 3.4vw; align-items: start; } .contact__channels { position: sticky; top: calc(var(--header-h) + 32px); } }
.contact__channels { display: grid; gap: 12px; }
@media (min-width: 600px) and (max-width: 999px) { .contact__channels { grid-template-columns: repeat(2, 1fr); } }
.channel { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "icon label arrow" "icon value arrow"; align-items: center; gap: 2px 16px; transition: border-color 0.4s, background-color 0.4s; }
a.channel:hover { border-color: var(--accent-line); background: rgba(255, 255, 255, 0.07); }
.channel__icon { grid-area: icon; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.channel__label { grid-area: label; font-size: 0.82rem; color: var(--muted); letter-spacing: var(--track-label); text-transform: var(--case); }
html[lang="en"] .channel__label { font-size: 0.72rem; }
.channel__value { grid-area: value; font-size: 1.05rem; color: var(--text); overflow-wrap: anywhere; }
.channel__arrow { grid-area: arrow; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s; }
a.channel:hover .channel__arrow { background: var(--text); color: var(--bg); transform: rotate(45deg); }
html[dir="rtl"] a.channel:hover .channel__arrow { transform: rotate(-45deg); }
.channel--static { grid-template-areas: "icon label" "icon value"; grid-template-columns: auto 1fr; }
.channel--static:not(:has(.channel__icon)) { grid-template-areas: "label" "value"; grid-template-columns: 1fr; gap: 14px; }
.channel--static .socials { grid-area: value; }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 0.85rem; color: var(--text-2); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.socials a:hover { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.socials--compact a { position: relative; padding: 0; width: 42px; height: 42px; justify-content: center; }
.socials--compact a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.form { border-radius: var(--radius-xl); padding: clamp(24px, 3.4vw, 48px); }
.form__title { font-size: clamp(1.5rem, 2.4vw, 2.2rem); margin-bottom: 28px; }
.form__grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .form__grid { grid-template-columns: repeat(2, 1fr); } .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 0.88rem; color: var(--text-2); }
.field label > span[aria-hidden] { color: var(--accent); }
.field input, .field textarea, .field select, .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; min-height: 52px; padding: 14px 16px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--line-strong); border-radius: 12px;
	color: var(--text);
	transition: border-color 0.3s, background-color 0.3s;
	-webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.7; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.38); outline: none; }
.field.has-error input, .field.has-error textarea { border-color: #e06c5a; }
.field__error { margin: 0; font-size: 0.82rem; color: #ef8a78; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { padding-inline-end: 44px; cursor: pointer; }
.select .icon { position: absolute; inset-inline-end: 16px; top: 50%; margin-top: -8px; pointer-events: none; color: var(--text-2); }
.select option { background: var(--surface); color: var(--text); }
.field--consent { margin-top: 22px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.check input, .field .check input { position: absolute; top: 0.15em; inset-inline-start: 0; opacity: 0; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 0; border: 0; cursor: pointer; z-index: 1; }
.check__box { width: 22px; height: 22px; flex: none; margin-top: 0.15em; border-radius: 7px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.28); display: grid; place-items: center; transition: background-color 0.3s, border-color 0.3s; }
.check__box::after { content: ""; width: 10px; height: 5px; border-inline-start: 2px solid var(--ink-on-accent); border-bottom: 2px solid var(--ink-on-accent); rotate: -45deg; translate: 0 -1px; opacity: 0; transition: opacity 0.2s; }
html[dir="rtl"] .check__box::after { border-inline-start: 0; border-inline-end: 2px solid var(--ink-on-accent); rotate: 45deg; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.field--consent.has-error .check__box { border-color: #e06c5a; }
.check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 4px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; }
.form__status { margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: 0.95rem; }
.form__status:empty { display: none; }
.form__status[data-state="ok"] { border-color: color-mix(in srgb, #6fbf8b 50%, transparent); background: color-mix(in srgb, #6fbf8b 10%, transparent); }
.form__status[data-state="err"] { border-color: color-mix(in srgb, #e06c5a 50%, transparent); background: color-mix(in srgb, #e06c5a 10%, transparent); }
.form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* 22 — CV ---------------------------------------------------------------- */
.cv { display: grid; gap: 32px; }
@media (min-width: 1000px) { .cv { grid-template-columns: 340px minmax(0, 1fr); gap: 4vw; align-items: start; } .cv__side { position: sticky; top: calc(var(--header-h) + 32px); } }
.cv__photo { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 22px; background: var(--surface); }
.cv__photo picture, .cv__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.cv__name { font-size: 1.7rem; }
.cv__role { color: var(--accent); margin: 8px 0 24px; font-size: 0.95rem; line-height: 1.6; }
.cv__h { font-family: var(--font-text); font-size: 0.88rem; font-weight: 500; color: var(--muted); letter-spacing: var(--track-label); text-transform: var(--case); margin: 0 0 18px; }
html[lang="en"] .cv__h { font-size: 0.75rem; }
.cv__side .cv__h { margin-top: 26px; }
.cv__contact { display: grid; gap: 12px; font-size: 0.92rem; color: var(--text-2); }
.cv__contact li { display: flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.cv__contact a:hover { color: var(--text); }
.cv__plain { display: grid; gap: 8px; color: var(--text-2); margin-bottom: 22px; }
.cv__side .socials { margin-top: 22px; }
.cv__block { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.cv__block:last-child { border-bottom: 0; }
.cv__label { margin: 0 0 10px; font-size: 0.9rem; color: var(--text); }
.cv .timeline__item { padding-bottom: 28px; }
@media (min-width: 900px) { .cv .timeline__item { grid-template-columns: 150px 1fr; gap: 24px; } }

/* 23 — About ------------------------------------------------------------- */
.portrait-card { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); max-width: 460px; margin-inline-start: auto; }
.portrait-card picture, .portrait-card__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.portrait-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 8, 0.6)); pointer-events: none; }
.portrait-card__tag { position: absolute; z-index: 1; bottom: 16px; inset-inline-start: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: var(--pill); font-size: 0.85rem; background: rgba(10, 10, 10, 0.45); }
.about__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 6vw; } }
.about__aside { display: grid; gap: 36px; align-content: start; }
.about__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.about__stats .stat--xl { grid-column: 1 / -1; }
.about__approach { margin-top: clamp(64px, 8vw, 120px); }
.about__approach .pillars { margin-top: 0; }

/* 24 — Posts & search ----------------------------------------------------------- */
.post-list { border-top: 1px solid var(--line); }
.post-row__link { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.post-row__num { font-family: var(--font-body); color: var(--muted); font-size: 0.8rem; padding-top: 6px; }
.post-row__meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.post-row__title { font-size: clamp(1.35rem, 2.4vw, 2.1rem); margin-bottom: 10px; transition: color 0.3s; }
.post-row__link:hover .post-row__title { color: var(--accent); }
.post-row__excerpt { color: var(--text-2); margin: 0; max-width: 64ch; }
.post-row__media { display: none; }
@media (min-width: 900px) {
	.post-row__link { grid-template-columns: 60px 1fr 240px; gap: 32px; }
	.post-row__media { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
	.post-row__media img { width: 100%; height: 100%; object-fit: cover; }
}
.entry-media { margin-bottom: 48px; border-radius: var(--radius-lg); overflow: hidden; }
.entry-content > * + * { margin-top: 1em; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a:hover { color: var(--accent); }
.post-nav__next { margin-inline-start: auto; text-align: end; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 64px; }
.nav-links .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); font-size: 0.9rem; }
.nav-links .page-numbers.current { background: var(--text); color: var(--bg); border-color: var(--text); }
.search-form { display: flex; align-items: center; border-radius: var(--pill); padding-block: 4px; padding-inline: 20px 4px; }
.search-form input { flex: 1; min-width: 0; background: none; border: 0; outline: none; min-height: 44px; }
.search-form button { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); }
.comments { margin-top: 80px; }
.comment-list { display: grid; gap: 24px; margin-bottom: 40px; }
.comment-body { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* 25 — Footer ------------------------------------------------------------- */
.site-footer { position: relative; padding: clamp(64px, 9vw, 130px) 0 24px; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; background: var(--bg); }
.site-footer__glow { position: absolute; z-index: -1; left: 50%; top: -6vw; width: 110vw; height: 50vw; margin-left: -55vw; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 11%, transparent), transparent); pointer-events: none; }

.site-footer__cta { padding-bottom: clamp(56px, 8vw, 110px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.site-footer__title { font-size: clamp(2.4rem, 6.4vw, 6.6rem); max-width: 15ch; margin-bottom: clamp(36px, 5vw, 64px); }
html[lang="en"] .site-footer__title { line-height: 0.96; }
.site-footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.site-footer__grid { display: grid; gap: 48px; }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: 6vw; } }
.site-footer__brand { display: grid; gap: 8px; align-content: start; justify-items: start; }
.site-footer__logo { width: 120px; color: var(--accent); margin-bottom: 12px; transition: color 0.4s; }
.site-footer__logo:hover { color: var(--text); }
.site-footer__logo svg { width: 100%; height: auto; }
.site-footer__name { margin: 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: var(--w-head); }
.site-footer__role { margin: 0; color: var(--text-2); font-size: 0.92rem; max-width: 34ch; }
.site-footer__statement { margin: 10px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 40ch; }
.site-footer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 0; font-size: 0.85rem; color: var(--text-2); }
.site-footer__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__clock { padding: 4px 10px; border-radius: var(--pill); border: 1px solid var(--line); font-family: var(--font-body); font-variant-numeric: tabular-nums; direction: ltr; }
.site-footer__clock::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 8px; border-radius: 50%; background: #6fbf8b; vertical-align: middle; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
@media (min-width: 760px) { .site-footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.site-footer__heading { margin: 0 0 16px; font-size: 0.85rem; color: var(--muted); letter-spacing: var(--track-label); text-transform: var(--case); }
html[lang="en"] .site-footer__heading { font-size: 0.72rem; }
.site-footer__heading a:hover { color: var(--text); }
.site-footer__col ul { display: grid; gap: 10px; }
.site-footer__col a { color: var(--text-2); font-size: 0.93rem; transition: color 0.3s; }
.site-footer__col a:hover { color: var(--text); }
.site-footer__col .socials { margin-top: 18px; }
.site-footer__col .socials a { color: var(--text-2); }

.site-footer__signature { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 3vw; margin: clamp(56px, 8vw, 120px) var(--gutter) 24px; max-width: calc(var(--wrap) - var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.site-footer__signature-text { font-family: var(--font-head); font-size: clamp(2.2rem, 8.4vw, 10rem); font-weight: 600; line-height: 1.1; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
html[lang="en"] .site-footer__signature-text { font-weight: 500; letter-spacing: -0.06em; line-height: 0.82; font-size: clamp(2.4rem, 9.4vw, 11.5rem); }
.site-footer__signature-mark { width: clamp(110px, 18vw, 300px); flex: none; color: var(--accent); opacity: 0.9; }
html[lang="en"] .site-footer__signature-mark { width: clamp(80px, 10vw, 170px); }
.site-footer__signature-mark svg { width: 100%; height: auto; }
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a:hover { color: var(--text); }
.site-footer__note { display: block; }
.to-top { display: inline-flex; gap: 8px; align-items: center; color: var(--text-2); }

/* 26 — 404 ----------------------------------------------------------------- */
.not-found { position: relative; min-height: 92vh; display: grid; align-items: center; padding: calc(var(--header-h) + 60px) 0 80px; overflow: hidden; isolation: isolate; }
.not-found__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.not-found__num { position: absolute; inset-inline-end: -2vw; bottom: -5vw; font-family: var(--font-display); font-size: 36vw; font-weight: 600; line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06); direction: ltr; }
.not-found__mark { position: absolute; inset-inline-start: 4vw; top: 18vh; width: min(50vw, 640px); color: var(--accent); opacity: 0.05; }
.not-found__mark svg { width: 100%; height: auto; }
.not-found__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .not-found__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 6vw; } }
.not-found__search { margin-top: 32px; max-width: 520px; }
.not-found__search .search-form { background: var(--glass-1); border: 1px solid var(--glass-border); }
.not-found__links { display: grid; padding: 10px; }
.not-found__links a { display: flex; align-items: center; gap: 14px; padding: 15px 14px; border-radius: 10px; color: var(--text-2); transition: background-color 0.3s, color 0.3s; }
.not-found__links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.not-found__links span { font-family: var(--font-body); font-size: 0.72rem; color: var(--muted); }
.not-found__links .icon { margin-inline-start: auto; color: var(--accent); }

/* 27 — Motion ----------------------------------------------------------------- */
/* Hero entrances are CSS-only, so the first paint never waits for JavaScript.
   The portrait (LCP image) has no entrance at all. */
@keyframes ae-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes ae-rise-line { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes ae-sig { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }      /* draws right → left */
@keyframes ae-sig-ltr { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: no-preference) {
	.rise { animation: ae-rise calc(1s * var(--motion)) var(--ease) var(--d, 0ms) both; }
	.rise-line { animation: ae-rise-line calc(1.15s * var(--motion)) var(--ease) var(--d, 0ms) both; }
	.rise-sig { animation: ae-sig calc(1.4s * var(--motion)) var(--ease-in-out) var(--d, 0ms) both; }
	html[dir="ltr"] .rise-sig { animation-name: ae-sig-ltr; }
}

.js [data-reveal] { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity calc(0.9s * var(--motion)) var(--ease) var(--d, 0ms), transform calc(1.1s * var(--motion)) var(--ease) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(10% 5% 10% 5% round var(--radius-lg)); transition: clip-path calc(1.3s * var(--motion)) var(--ease-in-out); }
.js [data-reveal="img"] img { transform: scale(1.1); transition: transform calc(1.7s * var(--motion)) var(--ease); }
.js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js [data-reveal="img"].is-in img { transform: scale(1); }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.32em; margin-bottom: -0.32em; }
html[lang="en"].js [data-split] .w { padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-split] .w__i { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform calc(1.05s * var(--motion)) var(--ease); transition-delay: calc(var(--wi) * 45ms); }
.js [data-split].is-in .w__i { transform: none; }
[data-tilt] { transform-style: preserve-3d; transition: transform 0.6s var(--ease); will-change: transform; }
[data-parallax] { will-change: transform; }

/* Reveal-on-scroll switched off in settings → content is simply there. */
.no-reveal [data-reveal], .no-reveal [data-reveal="img"], .no-reveal [data-reveal="img"] img, .no-reveal [data-split] .w__i { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.hero--still .rise, .hero--still .rise-line, .hero--still .rise-sig { animation: none !important; }

/* Optional loading screen — CSS only, removes itself after ~0.8 s even without JavaScript. */
.loader { display: none; }
.has-loader .loader { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--bg); pointer-events: none; animation: ae-loader-out 0.5s var(--ease-in-out) 0.75s forwards; }
.loader__mark { width: min(220px, 46vw); color: var(--accent); animation: ae-loader-in 0.7s var(--ease) both; }
.loader__mark svg { width: 100%; height: auto; }
@keyframes ae-loader-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes ae-loader-out { to { opacity: 0; visibility: hidden; } }

/* Failsafe: main.js did not boot within 2.5 s → show everything. */
.no-motion-fallback [data-reveal], .no-motion-fallback [data-reveal="img"], .no-motion-fallback [data-reveal="img"] img, .no-motion-fallback [data-split] .w__i { opacity: 1 !important; transform: none !important; clip-path: none !important; }

.page-fade { position: fixed; inset: 0; z-index: 2500; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease); }
.is-leaving .page-fade { opacity: 1; }
::view-transition-old(root) { animation: ae-vt-out 0.3s var(--ease) both; }
::view-transition-new(root) { animation: ae-vt-in 0.55s var(--ease) both; }
@keyframes ae-vt-out { to { opacity: 0; } }
@keyframes ae-vt-in { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
	.js [data-reveal], .js [data-reveal="img"], .js [data-reveal="img"] img, .js [data-split] .w__i { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.timeline__fill { transform: none !important; }
	.cursor, .hero__streaks, .page-hero__streak, .loader { display: none !important; }
	[data-depth], [data-parallax], [data-tilt] { transform: none !important; }
}

/* 28 — Responsive ---------------------------------------------------------- */
@media (min-width: 1100px) {
	.menu-btn { display: none; }
}
@media (max-width: 1259px) {
	.site-header__cta { display: none; }
}
@media (max-width: 1099px) {
	.nav { display: none; }
	.site-header__bar { justify-content: space-between; }
}
@media (max-width: 900px) {
	:root { --header-h: 66px; }
	.site-header { padding-top: 10px; }
	.site-header__bar { height: 56px; padding-inline: 16px 6px; }
	.brand__name { display: none; }
	.brand__mark { width: 66px; }

	/* Mobile hero: the portrait leads, text overlaps its faded base. */
	.hero { grid-template-rows: auto auto auto; min-height: auto; }
	.hero__portrait { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 4.3; max-height: 62vh; max-height: 62svh; margin-top: calc(var(--header-h) + 8px); grid-row: 1; }
	.hero__portrait-frame { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
	.hero__img { object-position: 50% 22%; }
	.hero__tag { top: auto; bottom: 30%; inset-inline-start: var(--gutter); padding: 10px 14px; }
	.hero__tag strong { font-size: 1.5rem; }
	.hero__content { grid-row: 2; padding-top: 0; margin-top: min(-20vw, -60px); margin-top: clamp(-150px, -20vw, -60px); padding-bottom: 26px; }
	.hero__title { font-size: clamp(3rem, 15vw, 5.4rem); margin-bottom: 22px; }
	html[lang="en"] .hero__title { font-size: clamp(3.4rem, 17vw, 6rem); }
	.hero__line--accent, .hero__line--sig { padding-inline-start: 0.3em; }
	.hero__foot { grid-row: 3; }
	.hero__rail { border-radius: 18px; }
	.hero__scroll { display: none; }
	.hero__callig { top: 30vh; width: 120vw; inset-inline-start: -10vw; }
	.hero__glow { top: 0; margin-top: -20vmax; inset-inline-end: -40vmax; }
	.hero__ctas .btn { flex: 1 1 auto; }
	.hero__streaks, .page-hero__streak { display: none; }

	.work-toolbar { position: static; }
	.filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; border-radius: 18px; }
	.filters::-webkit-scrollbar { display: none; }
	.filters__btn { white-space: nowrap; }
	.view-toggle { display: none; }
	.timeline__item { padding-inline-start: 34px; }
	.timeline__card { padding: 18px; }
	.svc__head { grid-template-columns: 1fr 40px; gap: 12px; }
	.svc__icon { display: none; }
	.svc__plus { width: 40px; height: 40px; }
	.svc__inner { padding-inline-start: 0; }
	.site-footer__signature { flex-direction: column; align-items: flex-start; }
	.mega__card { min-height: 160px; }
}
@media (max-width: 699px) {
	.pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pillar { min-height: 0; padding: 20px; }
	.pillar__num { padding-bottom: 28px; }
	.pillar__title { font-size: 1.25rem; }
	.channel__value { font-size: clamp(0.92rem, 3.8vw, 1.05rem); }
}
@media (max-width: 599px) {
}
@media (max-width: 480px) {
	.hero__tag { display: none; } /* the same figure leads the intro stats right below */
	.btn { min-height: 50px; padding: 0 20px; }
	.hero__foot { font-size: 0.8rem; }
	.overlay__link { font-size: clamp(1.8rem, 9vw, 2.5rem); }
	.hero-stats, .about__stats { gap: 20px; }
	.page-hero__actions .btn, .site-footer__actions .btn { flex: 1 1 auto; }
	.numbered li { grid-template-columns: 40px 1fr; }
}
@media (min-width: 1920px) {
	:root { --wrap: 1680px; }
	body { font-size: 19px; }
}

/* 29 — Light mode (prepared) & print ------------------------------------ */
html[data-theme="light"] {
	color-scheme: light;
	--bg: #f3f1ee;
	--bg-2: #ebe8e4;
	--surface: #e4e0db;
	--surface-2: #dcd7d1;
	--glass-1: rgba(255, 255, 255, 0.45);
	--glass-2: rgba(255, 255, 255, 0.55);
	--glass-3: rgba(246, 244, 241, 0.92);
	--glass-border: rgba(0, 0, 0, 0.08);
	--glass-hi: rgba(255, 255, 255, 0.9);
	--line: rgba(0, 0, 0, 0.09);
	--line-strong: rgba(0, 0, 0, 0.18);
	--text: #111111;
	--text-2: #454545;
	--muted: #6b6b6b;
}
html[data-theme="light"] .site-header__bar, html[data-theme="light"] .site-header.is-scrolled .site-header__bar { background: rgba(243, 241, 238, 0.72); }
html[data-theme="light"] .overlay__panel { background: rgba(243, 241, 238, 0.97); }
html[data-theme="light"] .cursor__dot { background: #111; mix-blend-mode: normal; }
html[data-theme="light"] .work-card__index { background: rgba(255, 255, 255, 0.6); }

@media print {
	body { background: #fff !important; color: #111; }
	.site-header, .site-footer, .progress, .cursor, .overlay, .page-hero__actions, .page-hero__bg, .page-hero__aside, .crumbs, .hero__streaks, .cv__side .socials { display: none !important; }
	.glass { background: none !important; border: 1px solid #ddd !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
	.glass::before { display: none; }
	[data-reveal], [data-split] .w__i { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.prose, .timeline__role, .ticks li, .cv__contact, .timeline__roles li, .chip { color: #333 !important; }
	.page-hero { padding: 0 0 18px; }
	.page-hero__title { font-size: 28pt; }
	.cv { grid-template-columns: 220px 1fr; }
	.cv__side { position: static; }
	.timeline__card { border-color: #ddd; background: none; }
	.brand-wall__logo { filter: invert(1) grayscale(1); opacity: 1; }
	a { color: inherit; }
}

/* 30 — Blog (Insights) ------------------------------------------------------ */
.blog__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(32px, 4vw, 56px); }
.blog__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.blog__topics .chip { min-height: 40px; }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.blog__search { flex: 0 1 340px; min-width: 240px; }
.blog__search .search-form { background: var(--glass-1); border: 1px solid var(--glass-border); }
.blog__featured { margin-bottom: clamp(40px, 5vw, 72px); }

.post-grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card__link { display: flex; flex-direction: column; height: 100%; }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.post-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; filter: saturate(0.92); }
.post-card__link:hover .post-card__media img { transform: scale(1.04); filter: saturate(1); }
.post-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 22%; color: rgba(255, 255, 255, 0.07); background: radial-gradient(circle at 75% 20%, var(--accent-soft), transparent 60%), linear-gradient(160deg, var(--surface-2), var(--bg-2)); }
.post-card__placeholder svg { width: 100%; height: auto; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.8rem; color: var(--muted); }
.post-card__meta > span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-inline-end: 14px; border-radius: 50%; background: var(--line-strong); vertical-align: middle; }
.post-card__cat { color: var(--accent); }
.post-card__title { font-family: var(--font-head); font-size: clamp(1.15rem, 1.4vw, 1.4rem); font-weight: var(--w-head); line-height: 1.5; letter-spacing: var(--track); transition: color 0.3s; }
html[lang="en"] .post-card__title { line-height: 1.25; letter-spacing: -0.015em; }
.post-card__link:hover .post-card__title { color: var(--accent); }
.post-card__excerpt { color: var(--text-2); font-size: 0.95rem; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 0.88rem; font-weight: 500; color: var(--text); transition: gap 0.4s var(--ease); }
.post-card__link:hover .post-card__more { gap: 14px; }
/* Featured story: image + text side by side. */
@media (min-width: 900px) {
	.post-card--featured .post-card__link { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4vw; align-items: center; }
	.post-card--featured .post-card__media { aspect-ratio: 16 / 10.5; }
	.post-card--featured .post-card__body { padding-top: 0; }
}
.post-card--featured .post-card__title { font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.35; }
html[lang="en"] .post-card--featured .post-card__title { line-height: 1.1; letter-spacing: -0.03em; }
.post-card--featured .post-card__excerpt { font-size: 1.05rem; }

/* Article */
.article-hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 8vw, 120px)) 0 clamp(36px, 4vw, 56px); overflow: hidden; isolation: isolate; }
.article-hero .eyebrow a { color: var(--accent); }
.article-hero__title { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.35; max-width: 22ch; text-wrap: balance; }
html[lang="en"] .article-hero__title { line-height: 1.05; letter-spacing: -0.035em; }
.article-hero__lead { max-width: 60ch; margin: 22px 0 0; font-size: clamp(1.05rem, 0.5vw + 0.95rem, 1.25rem); color: var(--text-2); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); }
.article-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta__avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface); }
.article-meta__avatar img, .article-meta__avatar picture { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.article-meta__label { color: var(--muted); }
.article-meta a { color: var(--text); }
.article-media { margin-bottom: clamp(40px, 5vw, 72px); }
.article-media > img { display: block; }
.article-media { overflow: hidden; overflow: clip; border-radius: var(--radius-xl); padding: 0; margin-inline: auto; max-width: calc(var(--wrap) - var(--gutter) * 2); width: calc(100% - var(--gutter) * 2); }
.article-media img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius-xl); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: var(--section); }
.article-layout > *, .cv-doc > * { min-width: 0; }
@media (min-width: 1100px) {
	.article-layout { grid-template-columns: 280px minmax(0, 760px); gap: 6vw; justify-content: center; align-items: start; }
	.article-layout--solo { grid-template-columns: minmax(0, 760px); }
	.article-toc { position: sticky; top: calc(var(--header-h) + 32px); }
}
.toc { padding: 18px 20px; }
.toc__title { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.toc__title::-webkit-details-marker { display: none; }
.toc__list { display: grid; gap: 2px; margin-top: 14px; counter-reset: toc; max-height: 60vh; overflow: auto; scrollbar-width: thin; }
.toc__item a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 7px 8px; border-radius: 8px; font-size: 0.86rem; line-height: 1.55; color: var(--text-2); transition: background-color 0.3s, color 0.3s; }
.toc__item a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); padding-top: 0.2em; }
.toc__item a:hover, .toc__item a.is-active { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.toc__item a.is-active::before { color: var(--accent); }

.prose--article { max-width: 760px; color: var(--text-2); font-size: clamp(1.06rem, 0.35vw + 1rem, 1.2rem); line-height: 2; }
html[lang="en"] .prose--article { line-height: 1.75; }
.prose--article > * + * { margin-top: 1.1em; }
.prose--article p { margin-bottom: 0; }
.prose--article > :first-child { margin-top: 0; }
.prose--article h2 { margin: 2.2em 0 0.6em; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.45; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose--article h3 { margin: 1.8em 0 0.4em; font-size: clamp(1.18rem, 1.5vw, 1.4rem); line-height: 1.55; color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); }
html[lang="en"] .prose--article h2, html[lang="en"] .prose--article h3 { line-height: 1.2; letter-spacing: -0.02em; }
.prose--article ul, .prose--article ol { padding-inline-start: 1.3em; display: grid; gap: 0.5em; }
.prose--article li::marker { color: var(--accent); }
.prose--article strong { color: var(--text); }
.prose--article a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 6px; text-decoration-thickness: 1px; }
.prose--article a:hover { text-decoration-color: var(--accent); }
.prose--article blockquote { margin: 1.8em 0; padding: 18px 22px; border-inline-start: 2px solid var(--accent); background: rgba(255, 255, 255, 0.025); border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-size: 1.05em; }
html[dir="rtl"] .prose--article blockquote { border-radius: var(--radius) 0 0 var(--radius); }
.prose--article table { width: 100%; border-collapse: collapse; font-size: 0.92em; line-height: 1.6; display: block; overflow-x: auto; }
.prose--article th, .prose--article td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.prose--article th { color: var(--text); font-weight: 600; background: rgba(255, 255, 255, 0.03); white-space: nowrap; }
.prose--article .faq { margin-top: 2.4em; display: grid; gap: 10px; }
.prose--article .faq details { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0 20px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s; }
.prose--article .faq details[open] { border-color: var(--line-strong); }
.prose--article .faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-weight: 600; color: var(--text); line-height: 1.6; }
.prose--article .faq summary::-webkit-details-marker { display: none; }
.prose--article .faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-weight: 400; transition: transform 0.4s var(--ease); }
.prose--article .faq details[open] summary::after { transform: rotate(45deg); }
.prose--article .faq details > div, .prose--article .faq details > p { padding-bottom: 18px; }
.prose--article .note { padding: 18px 22px; border-radius: var(--radius-lg); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.article-updated { margin-top: 32px; font-size: 0.85rem; color: var(--muted); }
.article-tags { margin-top: 28px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.share__label { font-size: 0.88rem; color: var(--muted); }
.share__list { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-2); transition: color 0.3s, border-color 0.3s, background-color 0.3s; }
.share__btn:hover, .share__btn.is-done { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; margin-top: 40px; }
.author-box__photo { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--surface); }
.author-box__photo img, .author-box__photo picture { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.author-box__label { margin: 0; font-size: 0.8rem; color: var(--muted); }
.author-box__name { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: var(--w-head); }
.author-box__role { margin: 4px 0 14px; color: var(--text-2); font-size: 0.92rem; }
.author-box__actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.author-box__actions .btn--glass { min-height: 44px; }
@media (max-width: 560px) { .author-box { grid-template-columns: 1fr; } }
.article-related { border-top: 1px solid var(--line); }
@media print {
	.article-toc, .share, .author-box, .article-related, .blog__toolbar { display: none !important; }
	.prose--article { color: #222 !important; }
}

/* 31 — CV (interactive document) -------------------------------------------- */
.cv-hero { position: relative; padding: calc(var(--header-h) + clamp(56px, 7vw, 110px)) 0 clamp(48px, 6vw, 88px); overflow: hidden; isolation: isolate; }
.cv-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .cv-hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 6vw; } }
.cv-hero__name { font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: 1.2; }
html[lang="en"] .cv-hero__name { line-height: 0.95; letter-spacing: -0.045em; }
.cv-hero__role { margin: 18px 0 0; font-size: clamp(1.1rem, 1.4vw, 1.4rem); color: var(--accent); }
.cv-hero__intro { max-width: 52ch; margin: 18px 0 0; color: var(--text-2); }
.cv-hero__facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cv-hero__facts li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: var(--pill); border: 1px solid var(--glass-border); background: var(--glass-1); font-size: 0.9rem; color: var(--text-2); }
.cv-hero__facts strong { font-family: var(--font-body); font-size: 1.1rem; color: var(--accent); }
.cv-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.cv-hero__photo { position: relative; aspect-ratio: 4 / 5; max-width: 380px; width: 100%; margin-inline-start: auto; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cv-hero__photo picture, .cv-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (max-width: 959px) { .cv-hero__photo { max-width: 260px; margin-inline-start: 0; grid-row: 1; } }

.cv-doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1100px) { .cv-doc { grid-template-columns: 240px minmax(0, 1fr); gap: 5vw; align-items: start; } .cv-index { position: sticky; top: calc(var(--header-h) + 32px); } }
.cv-index__list { display: grid; gap: 2px; counter-reset: toc; padding: 10px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--glass-1); }
.cv-index__list a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 9px 10px; border-radius: 8px; font-size: 0.9rem; color: var(--text-2); transition: background-color 0.3s, color 0.3s; }
.cv-index__list a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-family: var(--font-body); font-size: 0.7rem; color: var(--muted); padding-top: 0.25em; }
.cv-index__list a:hover, .cv-index__list a.is-active { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.cv-index__list a.is-active::before { color: var(--accent); }
@media (max-width: 1099px) { .cv-index__list { display: flex; overflow-x: auto; scrollbar-width: none; } .cv-index__list a { white-space: nowrap; } }

.cv-sheet { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)); overflow: hidden; }
.cv-sec { padding: clamp(26px, 3.4vw, 48px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.cv-sec:last-child { border-bottom: 0; }
.cv-sec__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 26px; }
.cv-sec__num { font-family: var(--font-body); font-size: 0.8rem; color: var(--accent); }
.cv-sec__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.cv-sec .timeline__item { padding-bottom: 26px; }
@media (min-width: 900px) { .cv-sec .timeline__item { grid-template-columns: 150px 1fr; gap: 24px; } }
.cv-expertise { display: grid; gap: 14px; }
@media (min-width: 760px) { .cv-expertise { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
.cv-card-block { padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.cv-card-block__title { font-size: 1.05rem; margin-bottom: 14px; color: var(--text); }
.cv-list { display: grid; gap: 8px; }
.cv-list li { position: relative; padding-inline-start: 18px; color: var(--text-2); font-size: 0.95rem; }
.cv-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.85em; width: 8px; height: 1px; background: var(--accent); }
.cv-list a:hover { color: var(--text); }
.cv-toolkit { display: grid; gap: 22px; }
.cv-toolkit .chips { margin: 0; }
.cv-defs { display: grid; margin: 0; }
.cv-defs__row { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv-defs__row:first-child { padding-top: 0; }
.cv-defs__row:last-child { border-bottom: 0; }
@media (min-width: 700px) { .cv-defs__row { grid-template-columns: 180px 1fr; gap: 24px; } }
.cv-defs dt { color: var(--muted); font-size: 0.9rem; }
.cv-defs dd { margin: 0; }
.cv-list--plain li { padding-inline-start: 0; color: var(--text); }
.cv-list--plain li::before { display: none; }
.cv-work { display: grid; border-top: 1px solid var(--line); }
.cv-work a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cv-work__title { font-family: var(--font-head); font-weight: var(--w-head); }
.cv-work__meta { color: var(--muted); font-size: 0.88rem; }
.cv-contact { display: grid; gap: 14px; margin-bottom: 20px; }
@media (min-width: 700px) { .cv-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cv-contact li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); min-width: 0; }
.cv-contact li > span:last-child { display: grid; min-width: 0; overflow-wrap: anywhere; }
.cv-contact__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.cv-contact__label { font-size: 0.78rem; color: var(--muted); }
.cv-contact a:hover { color: var(--accent); }

@media print {
	@page { size: A4; margin: 14mm; }
	.cv-index, .cv-hero__actions, .cv-hero .page-hero__bg, .crumbs { display: none !important; }
	.cv-hero { padding: 0 0 12px; }
	.cv-hero__grid { grid-template-columns: 1fr 120px; gap: 20px; }
	.cv-hero__photo { max-width: 120px; border: 0; }
	.cv-hero__name { font-size: 26pt; color: #111; }
	.cv-hero__role { color: #8a3a1f; }
	.cv-hero__facts li { border-color: #ddd; background: none; color: #333; }
	.cv-doc { display: block; }
	.cv-sheet { border: 0; background: none; }
	.cv-sec { padding: 14px 0; break-inside: avoid-page; border-color: #ddd; }
	.cv-sec__title { color: #111; }
	.cv-card-block, .cv-contact li { border-color: #ddd; background: none; }
	.cv-list li, .cv-defs dd, .cv-work__title, .cv-contact { color: #222 !important; }
}
.article-hero .container--narrow { max-width: calc(280px + 760px + 6vw + var(--gutter) * 2); }
@media (max-width: 1099px) { .article-hero .container--narrow { max-width: calc(760px + var(--gutter) * 2); } }

/* 32 — Phones (≤ 599px): an intentional mobile composition -------------------
   Not the desktop layout shrunk: tighter section rhythm, one idea per screen,
   collapsed/condensed lists, a 3-up logo wall, compact timeline, a calm CV
   call to action and a short footer. Applies to 320–599px (tested at 320, 360,
   375, 390, 393, 414, 430). */
@media (max-width: 599px) {
	:root { --section: calc(64px * var(--space)); }
	.sec-head { margin-bottom: 28px; gap: 16px; }
	.sec-title { font-size: clamp(1.75rem, 8.2vw, 2.2rem); }
	.sec-head__aside { gap: 14px; }

	/* Header: respect the notch / status bar. */
	.site-header { padding-top: env(safe-area-inset-top, 0px); }

	/* Hero: portrait, name, role, statement, two calm buttons — nothing else. */
	.hero { min-height: 0; }
	.hero__foot { display: none; } /* disciplines + location appear right below and in the footer */
	.hero__title { margin-bottom: 18px; }
	.hero__statement { font-size: 0.98rem; line-height: 1.75; margin-bottom: 24px; }
	.hero__ctas { gap: 10px; }
	.hero__ctas .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
	.hero__content { padding-bottom: 28px; }

	/* Intro: one paragraph (the rest lives on the About page), compact numbers. */
	.intro__grid { gap: 22px; }
	.intro__title { font-size: clamp(1.6rem, 7.4vw, 2rem); }
	.intro .prose > p + p { display: none; }
	.intro__actions { gap: 10px; margin-top: 22px; }
	.intro__actions .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
	.intro__stats { gap: 22px 16px; margin-top: 36px; }
	.intro__stats .stat__num { font-size: clamp(2.2rem, 11vw, 2.8rem); }
	.intro__stats .stat__label { font-size: 0.8rem; }
	.pillars { margin-top: 28px; }
	.pillar { padding: 16px; gap: 6px; }
	.pillar__num { padding-bottom: 14px; }
	.pillar__title { font-size: 1.1rem; }
	.pillar__text { display: none; }

	/* Services: scannable collapsed rows grouped by discipline. */
	.svc-groups { gap: 34px; }
	.svc-group { gap: 12px; }
	.svc-group__title { font-size: 1.35rem; }
	.svc__head { padding: 15px 0; }
	.svc__title { font-size: 1.04rem; }
	.svc__plus { width: 34px; height: 34px; }

	/* Skills / toolkit: tight chips, short groups. */
	.toolkit__group { gap: 12px; padding-block: 18px; }
	.toolkit__title { font-size: 1.05rem; }
	.toolkit__list { gap: 6px; }
	.toolkit__item { padding: 7px 12px; font-size: 0.82rem; }

	/* Work: a swipeable row instead of a tall stack (cards stay fully labelled —
	   no hover-only information on touch screens). */
	.work .work-grid--featured { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
	.work .work-grid--featured::-webkit-scrollbar { display: none; }
	.work .work-grid--featured > * { flex: 0 0 82%; scroll-snap-align: start; }
	.work .work-grid--featured .work-card__media { aspect-ratio: 4 / 5; }
	.work-card__link:active .work-card__img { transform: scale(1); }

	/* Partners: a dense 3-up wall. */
	.brand-wall:not(.brand-wall--compact) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.brand-wall__item { aspect-ratio: 4 / 3; padding: 14%; }
	.brand-wall__logo { max-height: 30px; }
	.brand-wall__name { font-size: 0.8rem; }

	/* Experience: compact timeline + CV card with side-by-side actions. */
	.experience__grid { gap: 28px; }
	.timeline__item { padding-block: 0 26px; padding-inline-start: 28px; gap: 8px; }
	.timeline__when { font-size: 0.82rem; }
	.timeline__card { padding: 15px 16px; }
	.timeline__company { font-size: 1.12rem; }
	.timeline__roles { gap: 6px; margin-top: 10px; }
	.timeline__roles li { padding: 4px 10px; font-size: 0.76rem; }
	.cv-card { gap: 16px; padding: 18px; }
	.cv-card .facts__row { grid-template-columns: 72px 1fr; font-size: 0.86rem; }
	.cv-card__actions { display: flex; gap: 8px; }
	.cv-card__actions .btn { width: auto; flex: 1 1 0; min-width: 0; min-height: 46px; padding: 0 12px; font-size: 0.88rem; }

	/* Footer: one clear call to action, then a short, tidy footer. */
	.site-footer { padding-top: 56px; }
	.site-footer__cta { padding-bottom: 40px; margin-bottom: 36px; }
	.site-footer__title { font-size: clamp(1.8rem, 8.6vw, 2.3rem); margin-bottom: 22px; }
	.site-footer__actions .btn { flex: 1 1 100%; }
	.site-footer__grid { gap: 32px; }
	.site-footer__logo { width: 84px; margin-bottom: 6px; }
	.site-footer__statement { display: none; }
	.site-footer__nav { gap: 26px 18px; }
	.site-footer__heading { margin-bottom: 10px; }
	.site-footer__col ul { gap: 8px; }
	.site-footer__col a { font-size: 0.9rem; }
	.site-footer__col ul li:nth-child(n+5):not(:last-child) { display: none; } /* long lists: first four + "all" */
	.site-footer__col:last-child { grid-column: 1 / -1; }
	.site-footer__signature { display: none; }
	.site-footer__bottom { margin-top: 32px; flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
	.site-footer__bottom .to-top { align-self: center; }
}
@media (max-width: 360px) {
	.hero__ctas .btn, .intro__actions .btn, .cv-card__actions .btn { font-size: 0.82rem; padding: 0 10px; }
}

/* 33 — Final audit refinements ---------------------------------------------
   Rhythm, approach section, count-aware featured work, footer signature,
   project pager, compact language toggle. Loaded last so it refines, never
   fights, the sections above. */

/* Featured work adapts to how many projects exist (1–3 never leave holes). */
@media (min-width: 900px) {
	.work-grid--n1 > :nth-child(1) { grid-column: 1 / -1; margin-top: 0; }
	.work-grid--n1 .work-card__media { aspect-ratio: 21 / 9; }
	.work-grid--n2 > :nth-child(1) { grid-column: 1 / span 7; }
	.work-grid--n2 > :nth-child(2) { grid-column: 9 / span 4; margin-top: 12vh; }
	.work-grid--n3 { grid-auto-flow: row dense; }
	.work-grid--n3 > :nth-child(1) { grid-column: 1 / span 7; grid-row: 1 / span 2; }
	.work-grid--n3 > :nth-child(2) { grid-column: 9 / span 4; grid-row: 1; margin-top: 0; }
	.work-grid--n3 > :nth-child(3) { grid-column: 9 / span 4; grid-row: 2; }
	.work-grid--n3 > :nth-child(1) .work-card__media { aspect-ratio: 4 / 4.4; }
	.work-grid--n3 > :nth-child(n + 2) .work-card__media { aspect-ratio: 16 / 11; }
}

/* Creative approach ------------------------------------------------------- */
.approach__pillars { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-bottom: clamp(40px, 5vw, 72px); }
.approach__pillars-label { margin: 0; font-size: 0.85rem; color: var(--muted); letter-spacing: var(--track-label); text-transform: var(--case); }
html[lang="en"] .approach__pillars-label { font-size: 0.74rem; }
.approach__pillar-list { display: flex; flex-wrap: wrap; gap: 8px 0; }
.approach__pillar-list li { font-family: var(--font-head); font-weight: var(--w-head); font-size: clamp(1.15rem, 1.8vw, 1.6rem); letter-spacing: var(--track); color: var(--text); }
.approach__pillar-list li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline: 18px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.process { position: relative; display: grid; gap: 0; counter-reset: step; }
.process__step { position: relative; display: grid; align-content: start; gap: 12px; padding: 0 0 clamp(32px, 4vw, 44px); padding-inline-start: 34px; border-inline-start: 1px solid var(--line-strong); }
.process__node { position: absolute; top: 4px; inset-inline-start: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); transition: background-color 0.4s, transform 0.5s var(--ease); }
.process__step:hover .process__node { background: var(--accent); transform: scale(1.25); }
.process__num { font-family: var(--font-body); font-size: 0.8rem; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.process__title { font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.25; }
html[lang="en"] .process__title { line-height: 1.1; letter-spacing: -0.025em; }
.process__text { margin: 0; color: var(--text-2); font-size: 0.98rem; line-height: 1.75; max-width: 34ch; }
@media (min-width: 900px) {
	.process { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
	.process__step { padding: clamp(36px, 3.6vw, 52px) 0 0; padding-inline-end: clamp(20px, 2.6vw, 40px); border-inline-start: 0; }
	.process__node { top: -6px; inset-inline-start: 0; }
	.process__step::after { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.8s var(--ease); }
	html[dir="ltr"] .process__step::after { transform-origin: left; }
	.process__step:hover::after { transform: scaleX(1); }
}

/* Footer: one calm, filled signature (no outline seams, no duplicate mark). */
.site-footer__lead { margin: calc(clamp(36px, 5vw, 64px) * -0.5) 0 clamp(28px, 4vw, 48px); max-width: 52ch; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.site-footer__signature { justify-content: center; overflow: hidden; margin-top: clamp(28px, 4.5vw, 72px); margin-bottom: 8px; }
.site-footer__signature-text {
	color: transparent; -webkit-text-stroke: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 10%, rgba(255, 255, 255, 0.012) 92%);
	-webkit-background-clip: text; background-clip: text;
	line-height: 1.4; padding-bottom: 0.08em; font-size: clamp(2.2rem, 10.5vw, 12rem);
}
html[lang="en"] .site-footer__signature-text { line-height: 1.05; font-size: clamp(2.4rem, 11.4vw, 13rem); }

/* Page heroes with a portrait/stat aside: drop the watermark that would sit behind it. */
.page-hero--split .page-hero__mark { display: none; }

/* Articles: a cinematic cover band instead of a full-height image. */
.article-media img { aspect-ratio: 16 / 7.2; height: auto; max-height: 640px; }
@media (max-width: 699px) { .article-media img { aspect-ratio: 16 / 10; } }

/* Project pager: previous (slim) + next (large). */
.project-pager__prev { display: block; border-top: 1px solid var(--line); transition: background-color 0.4s; }
.project-pager__prev:hover { background: var(--surface); }
.project-pager__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; padding-block: 26px; }
.project-pager__label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.project-pager__label .icon-arrow { transform: scaleX(-1); }
html[dir="rtl"] .project-pager__label .icon-arrow { transform: none; }
.project-pager__title { font-family: var(--font-head); font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: var(--w-head); }

/* Compact language toggle (phones, where the full switcher is hidden). */

/* Large screens: keep line lengths and the hero composition in proportion. */
@media (min-width: 1680px) {
	:root { --wrap: 1520px; }
}
@media (max-width: 899px) {
	.approach__pillars { display: grid; gap: 12px; }
	.approach__pillar-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.approach__pillar-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.02rem; }
	.approach__pillar-list li + li::before { display: none; }
}
/* Tablets (600–899px): two-up compositions instead of stretched single cards. */
@media (min-width: 600px) and (max-width: 899px) {
	.work .work-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 18px; }
	.work .work-grid--featured > * { margin-top: 0 !important; }
	.work .work-grid--featured .work-card__media { aspect-ratio: 4 / 5; }
	.work .work-grid--n1 > :first-child, .work .work-grid--n3 > :first-child { grid-column: 1 / -1; }
	.work .work-grid--n1 > :first-child .work-card__media, .work .work-grid--n3 > :first-child .work-card__media { aspect-ratio: 16 / 10; }
	.process { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* Search results: stacked meta / title / excerpt (spans inside the row link). */
.post-row__body { display: grid; align-content: start; min-width: 0; }
.post-row__meta, .post-row__title, .post-row__excerpt { display: block; }
.post-row__title { font-family: var(--font-head); font-weight: var(--w-head); line-height: 1.35; letter-spacing: var(--track); }
html[lang="en"] .post-row__title { line-height: 1.15; letter-spacing: -0.02em; }
.post-row__media img { display: block; }

/* Print (all pages, CV first): white paper, no repeated fixed UI, sections flow. */
@media print {
	html, body { background: #fff !important; background-image: none !important; color-scheme: light !important; }
	.skip-link, .lang-toggle, .menu-btn, .loader, .hover-preview, .to-top, .site-footer__signature { display: none !important; }
	.cv-hero__grid { grid-template-columns: minmax(0, 1fr) 110px; align-items: start; }
	.cv-hero__main { grid-column: 1; grid-row: 1; }
	.cv-hero__photo { grid-column: 2; grid-row: 1; margin: 0; max-width: 110px; }
	.cv-hero__intro, .cv-hero .eyebrow { color: #444 !important; }
	.cv-sec { break-inside: auto; }
	.cv-sec__title, .cv-sec h2, .cv-sec h3 { break-after: avoid; }
	.timeline__item, .cv-card-block, .cv-contact li, .cv-work li, .facts__row { break-inside: avoid; }
	.cv-doc, .cv-doc * { color: #222 !important; -webkit-text-fill-color: currentColor; }
	.cv-doc .eyebrow__num, .cv-doc [class*="__num"] { color: #8a3a1f !important; }
	.timeline__line, .timeline__fill { background: #ccc !important; }
}

/* 34 — Footer: a closing brand statement -------------------------------------
   Desktop: the invitation on the reading side, contact tiles + one button on
   the other. Below: brand, navigation and social in a quiet grid. The contact
   column only appears when the tiles are hidden (e.g. on the contact page). */
.site-footer__cta { display: grid; gap: clamp(28px, 4vw, 44px); }
.site-footer__cta-head .site-footer__title { margin-bottom: 0; }
.site-footer__cta-head .site-footer__lead { margin: clamp(18px, 2vw, 26px) 0 0; }
@media (min-width: 1000px) {
	.site-footer__cta { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); grid-template-rows: auto auto; column-gap: clamp(48px, 6vw, 110px); align-items: end; }
	.site-footer__cta-head { grid-row: 1 / span 2; align-self: center; }
	.site-footer__cta .site-footer__title { font-size: clamp(2.6rem, 4.7vw, 5.4rem); max-width: 12ch; }
	.contact-tiles, .site-footer__cta .site-footer__actions { grid-column: 2; }
}
.contact-tiles { display: grid; gap: 10px; }
.contact-tile {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon label arrow" "icon value arrow";
	align-items: center; column-gap: 16px; row-gap: 3px;
	padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, 0.022);
	transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.contact-tile:hover, .contact-tile:focus-visible { border-color: var(--accent-line); background: var(--accent-soft); }
.contact-tile__icon { grid-area: icon; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.contact-tile__label { grid-area: label; font-size: 0.8rem; color: var(--muted); }
.contact-tile__value { grid-area: value; min-width: 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.4rem); font-weight: 500; letter-spacing: -0.01em; color: var(--text); overflow-wrap: anywhere; text-align: start; unicode-bidi: isolate; }
html[dir="rtl"] .contact-tile__value[dir="ltr"] { text-align: right; }
.contact-tiles__item--mail .contact-tile__value { font-size: clamp(1.1rem, 1.9vw, 1.75rem); }
.contact-tile__arrow { grid-area: arrow; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-2); transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s, border-color 0.4s; }
.contact-tile:hover .contact-tile__arrow { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--ink-on-accent); }
html[dir="rtl"] .contact-tile:hover .contact-tile__arrow { transform: rotate(-45deg); }
@media (min-width: 600px) and (max-width: 999px) {
	.contact-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-tiles__item--mail { grid-column: 1 / -1; }
}

.site-footer__social { margin-top: 18px; }
.site-footer__social .site-footer__heading { margin-bottom: 10px; }
.socials--footer { gap: 8px; }
.socials--footer a { width: 44px; height: 44px; color: var(--text-2); }
@media (min-width: 760px) { .site-footer__nav { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.site-footer__bottom { justify-content: space-between; }
.site-footer__bottom-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.site-footer__legal:hover, .to-top:hover { color: var(--text); }
.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }

/* 35 — Phones (≤ 599px): homepage + footer, composed for the hand ----------- */
.hero__disc { display: none; }
.hero__quick { display: inline-flex; gap: 10px; }
.hero__quick-btn {
	display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	border: 1px solid var(--glass-border); background: var(--glass-1); color: var(--text);
	transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s;
}
.hero__quick-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__quick-btn:hover { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

@media (max-width: 900px) {
	.site-header { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
}
@media (max-width: 599px) {
	/* Header floats over the portrait; nothing above the photo but the bar. */
	.site-header { padding-top: max(8px, env(safe-area-inset-top, 0px)); padding-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px)); }
	.site-header__bar { height: 54px; }
	.brand__mark { width: 60px; }

	/* Hero: an immersive portrait, then name → role → what he does → actions. */
	.hero__portrait { margin-top: 0; aspect-ratio: 4 / 4.9; max-height: 72vh; max-height: 72svh; }
	.hero__portrait-frame { -webkit-mask-image: linear-gradient(180deg, #000 44%, rgba(0, 0, 0, 0.32) 70%, transparent 88%); mask-image: linear-gradient(180deg, #000 44%, rgba(0, 0, 0, 0.32) 70%, transparent 88%); }
	.hero__img { object-position: 50% 18%; }
	.hero__content { margin-top: clamp(-190px, -38vw, -110px); padding-bottom: 34px; }
	.hero__label { margin-bottom: 12px; font-size: 0.84rem; gap: 10px; }
	.hero__label-line { width: 28px; }
	.hero__title { font-size: clamp(2.9rem, 14.6vw, 4.3rem); margin-bottom: 12px; }
	html[lang="en"] .hero__title { font-size: clamp(3.1rem, 16vw, 4.8rem); margin-bottom: 16px; }
	.hero__statement { max-width: 34ch; font-size: 0.97rem; line-height: 1.8; margin-bottom: 14px; }
	html[lang="en"] .hero__statement { line-height: 1.6; }
	.hero__disc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 22px; font-size: 0.84rem; color: var(--text); }
	html[lang="en"] .hero__disc { font-size: 0.8rem; letter-spacing: 0.01em; }
	.hero__disc-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
	.hero__disc-item + .hero__disc-item::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
	html[lang="en"] .hero__label { font-size: 0.68rem; letter-spacing: 0.14em; }
	.hero__ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hero__ctas > .btn--solid, .hero__ctas:not(.hero__ctas--quick) > .btn--glass { grid-column: 1 / -1; }
	.hero__ctas .btn { width: 100%; min-height: 54px; padding: 0 14px; }
	.hero__quick { gap: 10px; }
	.hero__quick-btn { flex: 1 1 0; width: auto; height: 54px; min-width: 0; border-radius: var(--pill); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.92rem; font-weight: 500; }
	.hero__quick-btn span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

	/* Intro: a hairline 2×2 figure grid instead of floating numbers. */
	.intro__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
	.intro__stats .stat { padding: 18px 0 16px; border-bottom: 1px solid var(--line); align-content: start; }
	.intro__stats .stat:nth-child(odd) { padding-inline-end: 14px; border-inline-end: 1px solid var(--line); }
	.intro__stats .stat:nth-child(even) { padding-inline-start: 16px; }
	.intro__stats .stat__num { font-size: clamp(2rem, 10vw, 2.5rem); }

	/* Approach: pillars as a quiet chip line, steps as a tight rail. */
	.approach__pillars { gap: 10px; margin-bottom: 28px; }
	.approach__pillar-list { display: flex; flex-wrap: wrap; gap: 8px; }
	.approach__pillar-list li { padding: 8px 14px; border-radius: var(--pill); font-size: 0.92rem; }
	.process__step { gap: 6px; padding-bottom: 24px; padding-inline-start: 26px; }
	.process__title { font-size: 1.22rem; }
	.process__text { font-size: 0.9rem; line-height: 1.75; }
	html[lang="en"] .process__text { line-height: 1.55; }

	/* Services: denser rows. */
	.svc__head { padding: 13px 0; }
	.svc__title { font-size: 1rem; }
	.svc-group__title { font-size: 1.28rem; }

	/* Footer: brand → contact actions → navigation → social → legal. */
	.site-footer { padding-top: 52px; }
	.site-footer__cta { gap: 22px; padding-bottom: 36px; margin-bottom: 32px; }
	.site-footer__title { font-size: clamp(1.75rem, 8.4vw, 2.2rem); }
	.contact-tile { padding: 13px 14px; column-gap: 12px; border-radius: var(--radius); }
	.contact-tile__icon { width: 40px; height: 40px; }
	.contact-tile__value, .contact-tiles__item--mail .contact-tile__value { font-size: clamp(0.94rem, 4.2vw, 1.06rem); overflow-wrap: normal; word-break: normal; }
	.contact-tile__arrow { width: 32px; height: 32px; }
	.site-footer__actions .btn { width: 100%; }
	.site-footer__grid { gap: 30px; }
	.site-footer__brand { gap: 6px; }
	.site-footer__logo { width: 76px; margin-bottom: 4px; }
	.site-footer__statement { display: block; margin-top: 6px; font-size: 0.86rem; }
	.site-footer__social { margin-top: 12px; }
	.site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; padding-top: 26px; border-top: 1px solid var(--line); }
	.site-footer__col:last-child { grid-column: auto; }
	.site-footer__col:nth-child(3):last-child { grid-column: 1 / -1; }
	.site-footer__col:nth-child(3):last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
	.site-footer__col a { display: inline-block; padding-block: 3px; }
	.site-footer__bottom { margin-top: 28px; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
	.site-footer__bottom-end { justify-content: center; gap: 8px 18px; }
}
@media (max-width: 360px) {
	.hero__quick-btn { font-size: 0.84rem; gap: 6px; }
	.contact-tile__icon { width: 36px; height: 36px; }
}
/* Menu dialog: a round call shortcut beside the main button. */
.overlay__call.hero__quick-btn { flex: 0 0 auto; width: 52px; height: 52px; padding: 0; border-radius: 50%; }
.overlay__call.hero__quick-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Contact channels: an e-mail address never splits mid-word on phones. */
@media (max-width: 599px) {
	.channel__value { font-size: clamp(0.84rem, 3.9vw, 1rem); overflow-wrap: normal; word-break: normal; min-width: 0; }
	.channel { column-gap: 12px; }
}
/* Tablets: the portrait runs under the floating header, as on phones. */
@media (min-width: 600px) and (max-width: 900px) {
	.hero__portrait { margin-top: 0; max-height: 70vh; max-height: 70svh; }
	.hero__portrait-frame { -webkit-mask-image: linear-gradient(180deg, #000 46%, rgba(0, 0, 0, 0.3) 72%, transparent 90%); mask-image: linear-gradient(180deg, #000 46%, rgba(0, 0, 0, 0.3) 72%, transparent 90%); }
}

/* ==========================================================================
   36 — Motion system, performance layer, language control, brand mark,
        experience typography (v2.6)
   ========================================================================== */

/* Motion tokens — one vocabulary for the whole site.
   Primary (hero, section entrances, work, timeline) · secondary (buttons,
   icons, navigation) · micro (tags, small UI). Durations scale with the
   "Animation intensity" setting through --motion. */
:root {
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* entrances: fast start, long soft landing */
	--ease-soft: cubic-bezier(0.33, 1, 0.68, 1);    /* hovers */
	--dur-micro: calc(0.22s * var(--motion));
	--dur-ui: calc(0.45s * var(--motion));
	--dur-enter: calc(0.9s * var(--motion));
	--dur-hero: calc(1.15s * var(--motion));
	--stagger: 70ms;
}

/* ---- Performance layer -----------------------------------------------------
   Measured causes of dropped frames (Chrome trace, 4× CPU throttle):
   1. backdrop-filter on every glass card/button → one extra off-screen
      render pass per element, every frame it is on screen;
   2. the glass highlight drawn with mask-composite → another render pass;
   3. always-promoted layers (will-change on parallax/depth/tilt even on
      phones) and static CSS filters on composited images;
   4. infinite hero loops running while off screen.
   Fix: real blur only where it is visible and small (header, menus, photo
   captions); everything else is a matte translucent surface. */
.glass {
	background: rgba(255, 255, 255, 0.035);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.glass::before { content: none; }
.site-header__bar.glass,
.hero__tag.glass,
.portrait-card__tag.glass {
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
.site-header__bar.glass { background: rgba(14, 14, 14, max(0.55, var(--header-alpha))); }
.site-header.is-scrolled .site-header__bar.glass { background: rgba(12, 12, 12, 0.82); }
.btn--glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, 0.045); }
.work-card__index, .work-card__badge { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(8, 8, 8, 0.66); }
.work-card__badge { background: color-mix(in srgb, var(--accent) 26%, rgba(8, 8, 8, 0.72)); }
.nav__sub, .mega { -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.overlay__bg { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.site-header__bar.glass { background: rgba(12, 12, 12, 0.92); }
}

/* Layers are promoted only where a pointer effect can actually run. */
[data-depth], [data-parallax], [data-tilt] { will-change: auto; }
.has-fine-pointer [data-depth] { will-change: transform; }
.work-card__link.is-tilting { will-change: transform; }

/* No static filters on composited photos (a hidden render pass each frame). */
.hero__img { filter: none; }
.work-card__img { filter: none; transition: transform 1.1s var(--ease-out), opacity 0.6s var(--ease-out); }
.work-card__link:hover .work-card__img { filter: none; }
.post-card__media img { filter: none; transition: transform 1.1s var(--ease-out); }
.post-card__link:hover .post-card__media img { filter: none; }

/* Decorative loops sleep off screen. */
.hero.is-offscreen .hero__streaks span, .hero.is-offscreen .hero__scroll-track span,
.is-offscreen .pulse::after { animation-play-state: paused; }
.hero__bg { contain: paint; }

/* Hover preview follows the pointer with transforms (no left/top layout). */
.hover-preview { left: 0; top: 0; transform: translate3d(var(--hx, -999px), var(--hy, -999px), 0) scale(0.85); transition: opacity 0.35s var(--ease-out), scale 0.5s var(--ease-out); }
.hover-preview.is-visible { transform: translate3d(var(--hx, -999px), var(--hy, -999px), 0) scale(1); }

/* Hover nudges with transforms instead of animated padding. */
.hero-index a, .work-index a, .skill { transition: color var(--dur-ui) var(--ease-soft), transform var(--dur-ui) var(--ease-soft); }
.hero-index a:hover, .work-index a:hover, .skill:hover { padding-inline-start: 0; transform: translateX(8px); }
html[dir="rtl"] .hero-index a:hover, html[dir="rtl"] .work-index a:hover, html[dir="rtl"] .skill:hover { transform: translateX(-8px); }
.hero-index a:hover { padding-inline-start: 0; }

/* Image reveals: a curtain that slides away (compositor-only transform)
   instead of an animated clip-path, which repaints every frame. */
.js [data-reveal="img"] { clip-path: none; position: relative; overflow: hidden; }
.js [data-reveal="img"]::after {
	content: ""; position: absolute; inset: -1px; z-index: 2; pointer-events: none;
	background: var(--bg); transform-origin: 50% 0;
	transition: transform calc(1.05s * var(--motion)) var(--ease-in-out) 80ms;
}
.js [data-reveal="img"].is-in { clip-path: none; }
.js [data-reveal="img"].is-in::after { transform: scaleY(0); }
.js .article-media[data-reveal="img"]::after { content: none; } /* the article cover is the LCP — never hidden */

/* ---- Header & brand --------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.site-header__bar { animation: ae-head-in calc(0.9s * var(--motion)) var(--ease-out) 60ms both; }
}
@keyframes ae-head-in { from { opacity: 0; transform: translate3d(0, -14px, 0); } }
/* The الشامي mark in both languages, at one size. */
.brand__mark { width: 64px; }
.brand__mark svg, .site-footer__logo svg, .overlay__mark svg { overflow: visible; }
.brand__mark svg { transition: transform var(--dur-ui) var(--ease-soft); transform-origin: 50% 60%; }
.brand:hover .brand__mark svg { transform: translate3d(0, -1px, 0) scale(1.04); }
.overlay__mark { opacity: 0.05; }
@media (max-width: 900px) { .brand__mark { width: 62px; } }
@media (max-width: 599px) { .brand__mark { width: 58px; } }

/* Menu button: lines draw into an × with a short delay chain. */
.menu-btn { transition: background-color var(--dur-ui) var(--ease-soft), transform var(--dur-micro) var(--ease-soft); }
.menu-btn:active { transform: scale(0.97); }
.menu-btn__lines span { transition: transform var(--dur-ui) var(--ease-out), top var(--dur-ui) var(--ease-out); }

/* ---- Language control --------------------------------------------------------- */
.lang-toggle {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-width: 44px; height: 42px; padding-inline: 12px 16px;
	border-radius: var(--pill);
	border: 1px solid var(--line-strong);
	color: var(--text);
	background: rgba(255, 255, 255, 0.03);
	font-size: 0.86rem; font-weight: 500; line-height: 1;
	transition: background-color var(--dur-ui) var(--ease-soft), border-color var(--dur-ui) var(--ease-soft), color var(--dur-ui) var(--ease-soft), transform var(--dur-micro) var(--ease-soft);
	-webkit-tap-highlight-color: transparent;
}
.lang-toggle__icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--accent); }
.lang-toggle__svg { transition: transform calc(0.7s * var(--motion)) var(--ease-out); }
.lang-toggle__meridian { transform-origin: 12px 12px; transition: transform calc(0.7s * var(--motion)) var(--ease-out); }
.lang-toggle__label { font-family: var(--font-body); letter-spacing: 0.005em; }
.lang-toggle__label[lang="ar"] { font-family: var(--font-ar-display); font-size: 0.95rem; letter-spacing: 0; }
.lang-toggle:hover, .lang-toggle:focus-visible { border-color: var(--accent-line); background: var(--accent-soft); }
.lang-toggle:hover .lang-toggle__svg, .lang-toggle:focus-visible .lang-toggle__svg { transform: rotate(-18deg); }
html[dir="rtl"] .lang-toggle:hover .lang-toggle__svg { transform: rotate(18deg); }
.lang-toggle:hover .lang-toggle__meridian { transform: scaleX(0.55); }
.lang-toggle:active { transform: scale(0.96); }
.lang--header.lang-toggle { padding-inline: 10px 14px; }
@media (max-width: 599px) {
	.lang--header.lang-toggle { width: 44px; height: 44px; padding: 0; }
	.lang--header .lang-toggle__label { display: none; }
	.lang--header .lang-toggle__icon { width: 24px; height: 24px; }
}
.lang--footer.lang-toggle, .lang--overlay.lang-toggle { height: 44px; }

/* ---- Experience: company names as editorial titles ------------------------
   Arabic company names were set in the Latin display face (Inter Tight) and
   fell back to a system font; they now use the Arabic display face. */
.timeline__company {
	font-family: var(--font-head);
	font-weight: 600;
	font-size: clamp(1.32rem, 1.1vw + 1rem, 1.9rem);
	line-height: 1.38;
	letter-spacing: var(--track);
	color: var(--text);
	overflow-wrap: anywhere;
	text-wrap: balance;
}
html[lang="en"] .timeline__company { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.028em; font-size: clamp(1.4rem, 1.3vw + 1rem, 2.05rem); }
.timeline__role {
	display: flex; align-items: center; gap: 10px;
	margin: 10px 0 0; font-size: 0.95rem; font-weight: 500; color: var(--accent-2, #c98b45);
}
.timeline__role::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; flex: none; }
.timeline__when { font-size: 0.84rem; letter-spacing: 0.01em; }
.timeline__period { font-family: var(--font-body); color: var(--text); font-weight: 500; }
html[dir="rtl"] .timeline__period { font-family: var(--font-text); }
.timeline__loc { position: relative; }
.timeline__loc::before { content: "·"; margin-inline-end: 8px; color: var(--muted); }
@media (min-width: 900px) { .timeline__loc::before { content: none; } }
.timeline__roles { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.timeline__roles li { font-size: 0.8rem; padding: 5px 12px; background: rgba(255, 255, 255, 0.02); }
.timeline__card { background: rgba(255, 255, 255, 0.022); }
.chip--live { gap: 8px; font-size: 0.74rem; padding: 5px 11px; white-space: nowrap; }

/* Rail + nodes: centred on one axis, nodes ring in when their item enters. */
.timeline__rail { inset-inline-start: 7px; width: 1px; }
.timeline__node { width: 15px; height: 15px; top: 4px; background: var(--bg); }
.timeline__node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform calc(0.6s * var(--motion)) var(--ease-out) 0.25s; }
.timeline__item.is-in .timeline__node::after { transform: scale(1); }
.timeline__item.is-current .timeline__node { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 16%, transparent); }

@media (max-width: 599px) {
	.timeline__rail { top: 10px; bottom: 26px; inset-inline-start: 6px; }
	.timeline__item { padding-inline-start: 32px; padding-bottom: 30px; gap: 10px; }
	.timeline__node { width: 13px; height: 13px; top: 3px; }
	.timeline__when { gap: 4px 10px; font-size: 0.8rem; line-height: 1.5; }
	.timeline__card { padding: 18px 18px 16px; border-radius: var(--radius-lg); }
	.timeline__head { flex-wrap: wrap; gap: 10px 12px; }
	.timeline__titles { flex: 1 1 100%; order: 2; }
	.chip--live { order: 1; }
	.timeline__company { font-size: clamp(1.22rem, 5.4vw, 1.42rem); line-height: 1.4; }
	html[lang="en"] .timeline__company { font-size: clamp(1.3rem, 6vw, 1.55rem); line-height: 1.1; }
	.timeline__role { font-size: 0.88rem; margin-top: 8px; }
	.timeline__roles { gap: 6px; margin-top: 14px; padding-top: 12px; }
	.timeline__roles li { font-size: 0.76rem; padding: 4px 10px; }
}

/* ---- Timeline motion: card rises, then title, then tags (staggered). ----- */
@media (prefers-reduced-motion: no-preference) {
	.js .timeline__item[data-reveal] { transform: translate3d(0, 22px, 0); }
	.js .timeline__item .timeline__company,
	.js .timeline__item .timeline__role,
	.js .timeline__item .timeline__roles li { opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity var(--dur-enter) var(--ease-out), transform var(--dur-enter) var(--ease-out); }
	.js .timeline__item .timeline__company { transition-delay: 0.12s; }
	.js .timeline__item .timeline__role { transition-delay: 0.2s; }
	.js .timeline__item .timeline__roles li { transition-duration: var(--dur-ui); transition-delay: calc(0.3s + var(--i, 0) * 50ms); }
	.js .timeline__item.is-in .timeline__company,
	.js .timeline__item.is-in .timeline__role,
	.js .timeline__item.is-in .timeline__roles li { opacity: 1; transform: none; }
}

/* ---- Work cards: image curtain + gentle settle -------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.js .work-card[data-reveal] .work-card__media::after {
		content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none;
		background: var(--bg); transform-origin: 50% 0;
		transition: transform calc(1s * var(--motion)) var(--ease-in-out) calc(var(--d, 0ms) + 60ms);
	}
	.js .work-card[data-reveal].is-in .work-card__media::after { transform: scaleY(0); }
	.js .work-card[data-reveal] .work-card__img { transform: scale(1.12); }
	.js .work-card[data-reveal].is-in .work-card__img { transform: scale(1.04); }
	.js .work-card[data-reveal].is-in .work-card__link:hover .work-card__img { transform: scale(1); }
}

/* ---- Buttons: secondary motion ------------------------------------------------ */
.btn { transition: background-color var(--dur-ui) var(--ease-soft), border-color var(--dur-ui) var(--ease-soft), color var(--dur-ui) var(--ease-soft), transform var(--dur-ui) var(--ease-out); }
.btn__icon { transition: transform var(--dur-ui) var(--ease-out); }
.btn:active { transform: translate3d(var(--bx), var(--by), 0) scale(0.97); transition-duration: var(--dur-micro); }
.btn--ghost .btn__icon { transition-duration: var(--dur-ui); }
.hero__quick-btn:active, .contact-tile:active { transform: scale(0.98); }
.contact-tile { transition: border-color var(--dur-ui) var(--ease-soft), background-color var(--dur-ui) var(--ease-soft), transform var(--dur-micro) var(--ease-soft); }

/* ---- Section entrances: a shorter travel on phones (feels faster). ------------- */
@media (max-width: 599px) {
	.js [data-reveal] { transform: translate3d(0, 18px, 0); transition-duration: calc(0.75s * var(--motion)); }
	.js [data-reveal].is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.site-header__bar { animation: none !important; }
	.js [data-reveal="img"]::after, .js .work-card .work-card__media::after { content: none !important; }
	.timeline__node::after { transform: scale(1) !important; }
	.hover-preview { display: none !important; }
}
