/* Atelier Média Alsace — site stylesheet
   Palette: the brand's own colours. Navy #13265A carries depth and text, Atelier orange #C8842A is the
   accent and the one drenched band, brand grey #9B9B9B stays decorative. Light mode sits on warm ivory;
   dark mode sits on deep navy. Every colour is a token so both themes share one stylesheet. */

@font-face {
  font-family: 'Averta';
  src: url('../assets/fonts/averta-extrabold.woff2') format('woff2'),
       url('../assets/fonts/AvertaStd-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ground: oklch(96% 0.009 85);
  --ground-2: oklch(93% 0.012 85);
  --ground-3: oklch(88% 0.014 85);
  --ink: oklch(26% 0.085 268);
  --ink-soft: oklch(40% 0.06 268);
  --muted: oklch(52% 0.035 268);
  --mist: oklch(86% 0.012 80);
  --numeral: oklch(84% 0.005 85);
  --navy: oklch(28% 0.095 268);
  --navy-deep: oklch(21% 0.08 268);
  --line-strong: oklch(36% 0.08 268);
  --accent: oklch(66% 0.135 65);
  --accent-strong: oklch(58% 0.14 60);
  --signal: oklch(72% 0.15 68);
  --signal-ink: oklch(56% 0.14 60);
  --band: oklch(66% 0.135 65);
  --band-ink: oklch(24% 0.08 268);
  --band-deep: oklch(50% 0.13 60);
  --on-dark: oklch(94% 0.01 85);
  --on-dark-soft: oklch(84% 0.02 80);
  --on-dark-muted: oklch(70% 0.03 268);
  --nav-bg: oklch(96% 0.009 85 / .92);
  --glass: oklch(96% 0.009 85 / .9);
  --glow-a: oklch(99% 0.006 85 / .95);
  --glow-b: oklch(92% 0.02 80 / .8);
  --field-bg: oklch(98.5% 0.005 85);
  --overlay: oklch(20% 0.08 268 / .55);
  --focus: oklch(66% 0.135 65 / .28);
  --btn-bg: var(--navy);
  --btn-fg: var(--ground);
  --btn-dot: var(--signal);
  --btn-hover: var(--navy-deep);
  --logo-light: block;
  --logo-dark: none;

  --font-display: 'Averta', 'Almarai', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Archivo', 'Almarai', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-quart: cubic-bezier(.25, 1, .5, 1);
  --nav-h: 76px;
  --track: -0.035em;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: oklch(21% 0.07 268);
  --ground-2: oklch(24.5% 0.075 268);
  --ground-3: oklch(31% 0.075 268);
  --ink: oklch(94% 0.012 85);
  --ink-soft: oklch(84% 0.02 80);
  --muted: oklch(70% 0.03 268);
  --mist: oklch(33% 0.06 268);
  --numeral: oklch(33% 0.065 268);
  --navy: oklch(16% 0.055 268);
  --navy-deep: oklch(12.5% 0.045 268);
  --line-strong: oklch(30% 0.07 268);
  --accent: oklch(72% 0.14 68);
  --accent-strong: oklch(78% 0.14 72);
  --signal: oklch(76% 0.15 70);
  --signal-ink: oklch(78% 0.14 72);
  --band: oklch(62% 0.13 62);
  --band-ink: oklch(15% 0.06 268);
  --band-deep: oklch(42% 0.11 55);
  --nav-bg: oklch(21% 0.07 268 / .9);
  --glass: oklch(21% 0.07 268 / .88);
  --glow-a: oklch(32% 0.09 268 / .95);
  --glow-b: oklch(27% 0.085 268 / .8);
  --field-bg: oklch(24% 0.07 268);
  --overlay: oklch(10% 0.05 268 / .6);
  --focus: oklch(72% 0.14 68 / .3);
  --btn-bg: var(--accent);
  --btn-fg: oklch(14% 0.05 268);
  --btn-dot: oklch(14% 0.05 268);
  --btn-hover: var(--accent-strong);
  --logo-light: none;
  --logo-dark: block;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-strong) var(--ground);
  scrollbar-width: thin;
  transition: background .4s, color .4s;
}

body { margin: 0; min-height: 100vh; overflow-x: clip; }

html[lang="ar"] {
  --font-display: 'Almarai', 'Averta', system-ui, sans-serif;
  --font-body: 'Almarai', 'Archivo', system-ui, sans-serif;
  --track: 0;
  line-height: 1.75;
}
html[lang="ar"] .u-caps { letter-spacing: 0; }

::selection { background: var(--accent); color: var(--navy-deep); }

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 4px; border-radius: 2px; }

.skip {
  position: fixed; inset-block-start: -80px; inset-inline-start: 20px; z-index: 60;
  background: var(--navy); color: var(--on-dark); padding: 12px 18px; text-decoration: none;
}
.skip:focus { inset-block-start: 14px; }

.u-caps { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 500; }
.wrap { padding-inline: var(--gutter); }
.rtl-flip { display: inline-block; }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }
.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--track);
  line-height: .96;
  text-wrap: balance;
}
html[lang="ar"] .display { line-height: 1.18; }
.h1 { font-size: clamp(46px, 7.2vw, 108px); }
html[lang="ar"] .h1 { font-size: clamp(40px, 6.2vw, 92px); }
.h2 { font-size: clamp(36px, 4.6vw, 68px); }
.h3 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.02em; line-height: 1.1; }
.lead { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.body { max-width: var(--measure); color: var(--ink-soft); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--btn-bg); --fg: var(--btn-fg); --bd: var(--btn-bg); --dot: var(--btn-dot);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  padding: 15px 22px; text-decoration: none; font-weight: 600; font-size: 15px;
  line-height: 1; border-radius: 3px; white-space: nowrap;
  transition: background .3s var(--ease-quart), color .3s var(--ease-quart), border-color .3s var(--ease-quart), transform .3s var(--ease-quart);
}
.btn::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot);
  animation: rec 2.4s ease-out infinite;
}
.btn:hover { --bg: var(--btn-hover); --bd: var(--btn-hover); transform: translateY(-1px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--mist); --dot: var(--accent); }
.btn--ghost::before { animation: none; }
.btn--ghost:hover { --bg: var(--ground-2); --fg: var(--ink); --bd: var(--ink); }
.btn--light { --bg: var(--on-dark); --fg: var(--navy-deep); --bd: var(--on-dark); --dot: var(--accent); }
.btn--light:hover { --bg: var(--accent); --bd: var(--accent); --fg: var(--navy-deep); --dot: var(--navy-deep); }
@keyframes rec { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--dot) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500;
  border-block-end: 1px solid var(--mist); padding-block: 6px; transition: border-color .3s, color .3s;
}
.link:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; padding-inline: var(--gutter);
  color: var(--ink);
  transition: background .4s var(--ease-quart), box-shadow .4s var(--ease-quart), transform .5s var(--ease-quart);
}
.nav.is-scrolled { background: var(--nav-bg); box-shadow: 0 1px 0 var(--mist); backdrop-filter: blur(10px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; width: 100%; }
.nav__logo { display: block; height: 34px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 38px); }
.nav__links a { text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-block: 8px; }
.nav__links a::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 2px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-quart);
}
[dir="rtl"] .nav__links a::after { transform-origin: right; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__end { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid var(--mist); border-radius: 3px; overflow: hidden; }
.lang button {
  background: transparent; border: 0; padding: 8px 11px; font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); transition: background .25s, color .25s;
}
.lang button + button { border-inline-start: 1px solid var(--mist); }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.theme {
  width: 38px; height: 34px; border: 1px solid var(--mist); border-radius: 3px; background: transparent;
  display: grid; place-items: center; color: var(--ink); padding: 0; transition: background .25s, border-color .25s;
}
.theme:hover { border-color: var(--accent); color: var(--accent-strong); }
.theme svg { width: 16px; height: 16px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
.nav__burger {
  display: none; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 14px; border: 1px solid var(--btn-bg); border-radius: 6px;
  background: var(--btn-bg); color: var(--btn-fg); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.nav__burger:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.nav__burger-icon { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.nav__burger-icon > span { display: block; height: 2px; width: 18px; border-radius: 1px; background: currentColor; transition: transform .2s, opacity .2s; }
body.menu-open .nav__burger { background: var(--on-dark); border-color: var(--on-dark); color: var(--navy-deep); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--navy-deep); color: var(--on-dark);
  padding: calc(var(--nav-h) + 16px) var(--gutter) max(22px, env(safe-area-inset-bottom));
  display: none; flex-direction: column; gap: 24px; overflow-y: auto; overscroll-behavior: contain;
}
.menu.is-open { display: flex; animation: menu-enter .25s var(--ease-out) both; }
@keyframes menu-enter { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.menu nav { display: flex; flex-direction: column; flex-shrink: 0; }
.menu nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 54px; padding-block: 10px; border-block-end: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(29px, 8vw, 40px);
  text-decoration: none; letter-spacing: -.025em; line-height: 1.15;
  transition: color .2s;
}
.menu nav a:first-child { border-block-start: 1px solid var(--line-strong); }
.menu nav a:hover, .menu nav a:focus-visible { color: var(--signal); }
.menu__arrow { flex-shrink: 0; color: var(--signal); transition: transform .2s; }
.menu nav a:hover .menu__arrow { transform: translateX(4px); }
[dir="rtl"] .menu__arrow { transform: scaleX(-1); }
[dir="rtl"] .menu nav a:hover .menu__arrow { transform: scaleX(-1) translateX(4px); }
.menu__foot { margin-block-start: auto; display: flex; flex-direction: column; gap: 18px; flex-shrink: 0; }
.menu__socials { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu__socials a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--on-dark); text-decoration: none; transition: color .2s, border-color .2s; }
.menu__socials a:hover, .menu__socials a:focus-visible { color: var(--signal); border-color: var(--signal); }
.menu__tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.menu .lang { border-color: var(--line-strong); border-radius: 6px; padding: 3px; gap: 3px; }
.menu .lang button { min-width: 48px; min-height: 36px; border: 0; border-radius: 3px; color: var(--on-dark-soft); }
.menu .lang button[aria-pressed="true"] { background: var(--on-dark); color: var(--navy-deep); }
.menu .theme { width: 44px; height: 44px; border-color: var(--line-strong); border-radius: 6px; color: var(--on-dark); }
.menu .theme:hover { border-color: var(--signal); }
.menu__foot > .btn { --bg: var(--signal); --fg: var(--navy-deep); --bd: var(--signal); --dot: var(--navy-deep); width: 100%; justify-content: center; border-radius: 6px; min-height: 48px; }
.menu__foot > .btn::before { animation: none; }
.menu__foot > .btn:hover { --bg: var(--on-dark); --bd: var(--on-dark); }
@media (max-height: 680px) {
  .menu { padding-block-start: calc(var(--nav-h) + 8px); gap: 18px; }
  .menu nav a { min-height: 49px; padding-block: 8px; font-size: 29px; }
  .menu__foot { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .menu.is-open { animation: none; } }
body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent; box-shadow: none; color: var(--on-dark); backdrop-filter: none; }
body.menu-open .nav__burger-icon > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger-icon > span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger-icon > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
body.menu-open .nav__logo .logo-light { display: none; }
body.menu-open .nav__logo .logo-dark { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 210svh; background: var(--ground); }
.hero__stage {
  position: sticky; inset-block-start: 0; height: 100svh; min-height: 640px; overflow: hidden;
  isolation: isolate; display: block;
}
.hero__stage::before {
  /* studio backdrop: a soft pool of light behind the rig */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 68% 58%, var(--glow-a), transparent 70%),
    radial-gradient(40% 30% at 30% 90%, var(--glow-b), transparent 70%);
}
[dir="rtl"] .hero__stage::before {
  background:
    radial-gradient(60% 45% at 32% 58%, var(--glow-a), transparent 70%),
    radial-gradient(40% 30% at 70% 90%, var(--glow-b), transparent 70%);
}
.hero__grid {
  position: absolute; inset-block-start: 8%; inset-inline-start: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 84%; opacity: .55;
  background-image: linear-gradient(var(--mist) 1px, transparent 1px), linear-gradient(90deg, var(--mist) 1px, transparent 1px);
  background-size: 120px 120px; background-position: center;
  mask-image: radial-gradient(70% 70% at 62% 55%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 62% 55%, #000 30%, transparent 100%);
}
[dir="rtl"] .hero__grid { mask-image: radial-gradient(70% 70% at 38% 55%, #000 30%, transparent 100%); -webkit-mask-image: radial-gradient(70% 70% at 38% 55%, #000 30%, transparent 100%); }
.hero__copy {
  position: absolute; inset-inline-start: var(--gutter); inset-block-start: calc(var(--nav-h) + 8vh);
  width: min(38%, 560px); z-index: 3;
}
.hero__kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); margin-block-end: 26px; }
.hero__kicker::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.hero__title { margin-block-end: 22px; }
.hero__lead { margin-block-end: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual { position: absolute; inset: 9% -3% 12% 30%; z-index: 1; }
[dir="rtl"] .hero__visual { inset: 9% 30% 12% -3%; }
.hero__canvas, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__poster { transition: opacity .25s; }
.hero__stage.is-ready .hero__poster { opacity: 0; }

/* Callouts anchor to physical image coordinates, so the layout stays LTR in every language;
   only the text inside follows the document direction. */
.callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; --reveal: 0; direction: ltr; }
.callout {
  position: absolute;
  left: calc(var(--ix, 0px) + var(--iw, 0px) * var(--x)); top: calc(var(--iy, 0px) + var(--ih, 0px) * var(--y));
  display: flex; align-items: center; gap: 0; white-space: nowrap;
  --o: clamp(0, calc((var(--reveal) - var(--d)) / .28), 1);
  opacity: var(--o); transform: translate(0, calc((1 - var(--o)) * 10px));
  transition: none;
}
.callout__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); border: 2px solid var(--ink); flex: none; transform: translate(-50%, -50%); }
.callout__line { width: 52px; height: 1px; background: var(--ink); flex: none; margin-left: -4px; }
.callout__text { display: block; line-height: 1.2; padding: 6px 10px; background: var(--glass); border: 1px solid var(--mist); border-radius: 3px; text-align: left; }
[dir="rtl"] .callout__text { direction: rtl; }
.callout__text small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.callout__text b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.callout--l { flex-direction: row-reverse; transform: translate(-100%, calc((1 - var(--o)) * 10px)); }
.callout--l .callout__dot { transform: translate(50%, -50%); }
.callout--l .callout__line { margin-left: 0; margin-right: -4px; }
.callout--l .callout__text { text-align: right; }
.callout--t { flex-direction: column-reverse; align-items: center; transform: translate(-50%, calc(-100% + 4px + (1 - var(--o)) * 10px)); }
.callout--t .callout__dot { transform: translate(0, 50%); }
.callout--t .callout__line { width: 1px; height: 40px; margin: 0; }
.callout--t .callout__text { text-align: center; }
.callout--b { flex-direction: column; align-items: center; transform: translate(-50%, calc(-4px + (1 - var(--o)) * 10px)); }
.callout--b .callout__dot { transform: translate(0, -50%); }
.callout--b .callout__line { width: 1px; height: 40px; margin: 0; }
.callout--b .callout__text { text-align: center; }
html[lang="ar"] .callout__text small { letter-spacing: 0; }

.hero__state { position: absolute; inset-inline-start: var(--gutter); inset-block-end: 150px; z-index: 3; max-width: 240px; }
.hero__state-name { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--accent-strong); }
.hero__state-note { font-size: 13px; line-height: 1.55; color: var(--muted); margin-block-start: 8px; min-height: 40px; }
html[lang="ar"] .hero__state-name { letter-spacing: 0; }

.hero__notice { position: absolute; inset-inline-end: var(--gutter); inset-block-start: calc(var(--nav-h) + 12px); z-index: 5; font-size: 12px; color: var(--muted); max-width: 260px; text-align: end; }
.hero__notice:empty { display: none; }
.hero__notice button { background: transparent; border: 0; text-decoration: underline; padding: 6px; color: var(--ink); }

.hero__bottom {
  position: absolute; inset-inline: var(--gutter); inset-block-end: 34px; z-index: 4;
  display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 36px; align-items: end;
}
.hero__cue { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.45; }
.hero__cue svg { width: 18px; height: 30px; flex: none; animation: cue 2.2s var(--ease-quart) infinite; color: var(--accent-strong); }
.hero__cue small { display: block; color: var(--muted); font-size: 12px; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.hero__rail-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-block-end: 12px; }
.hero__rail-head output { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.hero__rail input {
  display: block; width: 100%; height: 24px; margin: 0; appearance: none; background: transparent; cursor: ew-resize;
}
.hero__rail input::-webkit-slider-runnable-track { height: 2px; background: var(--mist); }
.hero__rail input::-moz-range-track { height: 2px; background: var(--mist); }
.hero__rail input::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); border: 3px solid var(--ink); margin-top: -6px; }
.hero__rail input::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); border: 3px solid var(--ink); }
.hero__ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-block-start: 6px; }
.hero__reassemble {
  justify-self: end; background: transparent; border: 0; border-block-end: 1px solid var(--mist);
  padding: 10px 0; font-size: 13px; display: flex; gap: 12px; align-items: center; transition: border-color .3s, color .3s; color: inherit;
}
.hero__reassemble:hover { border-color: var(--accent); color: var(--accent-strong); }

/* intro choreography */
.hero__copy > * { opacity: 0; transform: translateY(18px); }
.hero__visual { opacity: 0; transform: translateY(24px) scale(.985); }
.hero__bottom, .hero__state { opacity: 0; }
.js-loaded .hero__copy > * { animation: rise .9s var(--ease-out) forwards; }
.js-loaded .hero__copy > :nth-child(1) { animation-delay: .1s; }
.js-loaded .hero__copy > :nth-child(2) { animation-delay: .2s; }
.js-loaded .hero__copy > :nth-child(3) { animation-delay: .32s; }
.js-loaded .hero__copy > :nth-child(4) { animation-delay: .42s; }
.js-loaded .hero__visual { animation: rise-visual 1.2s var(--ease-out) .25s forwards; }
.js-loaded .hero__bottom, .js-loaded .hero__state { animation: fade .8s var(--ease-out) .8s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-visual { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

.hero.is-reduced { height: auto; }
.hero.is-reduced .hero__stage { position: relative; }
.hero.is-reduced .hero__cue { display: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--mist); background: var(--ground); overflow: hidden; padding-block: 18px; position: relative; }
.marquee__track { display: flex; width: max-content; gap: 0; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: center; gap: 40px; padding-inline-end: 40px; font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.marquee__set b { font-weight: 600; color: var(--ink); }
.marquee__set i { font-style: normal; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 160px); }
.section-head { display: grid; grid-template-columns: auto 1fr; gap: 24px clamp(20px, 3vw, 48px); align-items: end; margin-block-end: clamp(40px, 6vw, 80px); }
.section-head__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 92px); line-height: .8; color: var(--numeral); letter-spacing: -.04em; transform: translateY(6px); }
html[lang="ar"] .section-head__num { letter-spacing: 0; font-family: 'Averta', var(--font-display); }
.section-head__body { display: grid; gap: 18px; max-width: 900px; }

/* Intro */
.intro { padding-block: clamp(80px, 10vw, 150px) clamp(60px, 8vw, 120px); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.intro__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
html[lang="ar"] .intro__text { line-height: 1.4; letter-spacing: 0; }
.intro__text em { font-style: normal; color: var(--accent-strong); }
.facts { display: grid; gap: 0; border-block-start: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 18px; border-block-end: 1px solid var(--mist); font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }

/* Services */
.services { background: var(--ground-2); }
.services__list { border-block-start: 1px solid var(--ink); }
.svc { border-block-end: 1px solid var(--mist); scroll-margin-top: calc(var(--nav-h) + 14px); }
.svc__head {
  width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 24px; align-items: center;
  background: transparent; border: 0; padding: 26px 0; text-align: start; cursor: pointer; color: inherit;
  transition: padding .35s var(--ease-quart);
}
.svc__head:hover { padding-inline-start: 8px; }
.svc__num { font-family: 'Averta', var(--font-display); font-weight: 800; font-size: 15px; color: var(--accent-strong); letter-spacing: 0; }
.svc__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 44px); letter-spacing: -.025em; line-height: 1.05; }
html[lang="ar"] .svc__name { letter-spacing: 0; line-height: 1.35; }
.svc__toggle { position: relative; width: 40px; height: 40px; border: 1px solid var(--mist); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s, transform .4s var(--ease-quart); }
.svc__toggle::before, .svc__toggle::after { content: ""; position: absolute; width: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease-quart); }
.svc__toggle::after { transform: rotate(90deg); }
.svc__head[aria-expanded="true"] .svc__toggle { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.svc__head[aria-expanded="true"] .svc__toggle::after { transform: rotate(0); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-quart); }
.svc__panel > div { overflow: hidden; }
.svc__body { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, .9fr) 220px; gap: 24px; padding-block: 8px 34px; }
.svc__body > :first-child { grid-column: 2; }
.svc__desc { color: var(--ink-soft); max-width: 52ch; text-wrap: pretty; }
.svc__items { display: grid; gap: 8px; font-size: 14px; }
.svc__items li { display: flex; gap: 10px; align-items: baseline; }
.svc__items li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.svc__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--ground-3); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out); }
.svc.is-open .svc__img img { transform: scale(1); }
.svc.is-open .svc__panel { grid-template-rows: 1fr; }

/* Work */
.work__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.proj { grid-column: span 4; min-width: 0; }
.proj__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--ground-3); }
.proj__media iframe { display: block; width: 100%; height: 100%; border: 0; }
.proj__meta { padding-block: 16px 2px; }
.proj__title { font-size: 16px; line-height: 1.5; font-weight: 600; }
.proj__watch { display: inline-block; margin-block-start: 12px; font-size: 14px; }
.work__foot { margin-block-start: clamp(32px, 5vw, 64px); }

/* Studio */
.studio { background: var(--navy); color: var(--on-dark); }
.studio .section-head__num { color: var(--line-strong); }
.studio .lead, .studio .body { color: var(--on-dark-soft); }
.studio__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.studio__fig { overflow: hidden; border-radius: 3px; background: var(--navy-deep); }
.studio__fig img { width: 100%; height: 100%; object-fit: cover; }
.studio__fig--a { aspect-ratio: 16 / 10; }
.studio__fig--b { aspect-ratio: 4 / 3; margin-block-start: clamp(24px, 4vw, 64px); }
.studio__text { display: grid; gap: 22px; }
.studio__caption { font-size: 13px; color: var(--on-dark-muted); margin-block-start: 10px; }
.studio__stack { display: grid; gap: 22px; }

/* Process */
.process { background: var(--navy-deep); color: var(--on-dark); border-block-start: 1px solid var(--line-strong); }
.process .section-head__num { color: var(--line-strong); }
.process .lead { color: var(--on-dark-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; border-block-start: 1px solid var(--line-strong); }
.step { padding: 34px 28px 10px 0; position: relative; }
.step + .step { border-inline-start: 1px solid var(--line-strong); padding-inline-start: 28px; }
.step::before { content: ""; position: absolute; inset-block-start: -1px; inset-inline-start: 0; width: 0; height: 2px; background: var(--accent); transition: width 1.2s var(--ease-out); transition-delay: calc(var(--i) * .18s); }
.step.is-in::before { width: 100%; }
.step__num { font-family: 'Averta', var(--font-display); font-weight: 800; font-size: 13px; color: var(--accent); letter-spacing: .08em; margin-block-end: 26px; }
.step__name { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.02em; margin-block-end: 14px; line-height: 1.1; }
html[lang="ar"] .step__name { letter-spacing: 0; line-height: 1.4; }
.step__desc { color: var(--on-dark-soft); font-size: 15px; max-width: 32ch; text-wrap: pretty; }

/* Quote */
.quote { background: var(--band); color: var(--band-ink); }
.quote__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.quote__text { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.1; letter-spacing: -.025em; max-width: 24ch; text-wrap: balance; }
html[lang="ar"] .quote__text { line-height: 1.45; letter-spacing: 0; }
.quote__by { font-size: 14px; display: grid; gap: 2px; }
.quote__by b { font-weight: 600; }
.quote__mark { font-family: 'Averta', var(--font-display); font-size: 120px; line-height: .5; font-weight: 800; color: var(--band-deep); margin-block-end: 24px; display: block; }

/* Contact */
.contact { background: var(--ground); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.contact__direct { display: grid; gap: 0; border-block-start: 1px solid var(--ink); margin-block-start: 34px; }
.contact__direct div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-block: 16px; border-block-end: 1px solid var(--mist); font-size: 15px; }
.contact__direct dt { color: var(--muted); }
.contact__direct dd { margin: 0; }
.contact__direct a { text-decoration: none; font-weight: 500; }
.contact__direct a:hover { color: var(--accent-strong); text-decoration: underline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--mist); background: var(--field-bg); border-radius: 3px; padding: 14px 14px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.form__foot { grid-column: 1 / -1; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.form .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--accent-strong); box-shadow: 0 0 0 3px var(--focus); }
.field__error { font-size: 12px; color: var(--accent-strong); line-height: 1.4; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form__note { font-size: 13px; color: var(--muted); max-width: 40ch; }
.form__sent { display: none; padding: 40px; border: 1px solid var(--mist); border-radius: 3px; background: var(--ground-2); }
.form.is-sent { display: none; }
.form.is-sent + .form__sent { display: block; }

/* Footer */
.footer { background: var(--navy-deep); color: var(--on-dark); padding-block: clamp(56px, 7vw, 96px) 32px; }
.footer__grid { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(140px, 1fr)); gap: 40px; }
.footer__logo { width: 150px; }
.footer__tag { color: var(--on-dark-soft); font-size: 14px; max-width: 30ch; margin-block-start: 18px; text-wrap: pretty; }
.footer h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); margin-block-end: 16px; font-weight: 600; }
html[lang="ar"] .footer h4 { letter-spacing: 0; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; color: var(--on-dark); font-size: 15px; }
.footer a:hover { color: var(--accent); }
.footer__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; margin-block-start: clamp(40px, 6vw, 72px); padding-block-start: 22px; border-block-start: 1px solid var(--line-strong); font-size: 12px; color: var(--on-dark-muted); }
.footer__bottom a { font-size: 12px; color: inherit; }
.footer .lang, .footer .theme { border-color: var(--line-strong); color: var(--on-dark-soft); }
.footer .lang button { color: var(--on-dark-muted); }
.footer .lang button + button { border-color: var(--line-strong); }
.footer .lang button[aria-pressed="true"] { background: var(--on-dark); color: var(--navy-deep); }

/* ---------- Reveals & section animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Titles: each word rises out of its own clipped line box, one after another. */
.reveal--words { opacity: 1; transform: none; transition: none; }
.reveal--words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: .14em; margin-block: -.14em; }
.reveal--words .w > span { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--wi, 0) * 45ms + var(--i, 0) * 90ms); }
.reveal--words.is-in .w > span { transform: none; }

/* Images: wipe up from the bottom while the picture settles in scale; a light parallax follows the scroll. */
@property --ps { syntax: '<number>'; inherits: false; initial-value: 1.08; }
/* The clip lives on the inner media box, never on the observed element: a fully clipped target
   is reported as non-intersecting (and its lazy images never load). */
.reveal--wipe { opacity: 1; transform: none; transition: none; }
.reveal--wipe [data-parallax] { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.reveal--wipe.is-in [data-parallax] { clip-path: inset(0 0 0 0); }
.reveal--wipe .proj__meta, .reveal--wipe .studio__caption { opacity: 0; transform: translateY(8px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + .35s); }
.reveal--wipe.is-in .proj__meta, .reveal--wipe.is-in .studio__caption { opacity: 1; transform: none; }
[data-parallax] img { --ps: 1.08; transform: translate3d(0, var(--py, 0%), 0) scale(var(--ps)); transition: --ps 1.4s var(--ease-out); will-change: transform; }
.reveal--wipe:not(.is-in) [data-parallax] img { --ps: 1.22; }
.proj:hover [data-parallax] img { --ps: 1.14; }

/* Definition rows: the rule draws from the start edge, then the text lifts in. */
.reveal--rows { opacity: 1; transform: none; transition: none; }
.reveal--rows > div { position: relative; border-block-end: 0; opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal--rows > div::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px; background: var(--mist); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out); }
[dir="rtl"] .reveal--rows > div::after { transform-origin: right; }
.reveal--rows.is-in > div { opacity: 1; transform: none; }
.reveal--rows.is-in > div::after { transform: scaleX(1); }
.reveal--rows > div:nth-child(1), .reveal--rows > div:nth-child(1)::after { transition-delay: .05s; }
.reveal--rows > div:nth-child(2), .reveal--rows > div:nth-child(2)::after { transition-delay: .17s; }
.reveal--rows > div:nth-child(3), .reveal--rows > div:nth-child(3)::after { transition-delay: .29s; }
.reveal--rows > div:nth-child(4), .reveal--rows > div:nth-child(4)::after { transition-delay: .41s; }

/* Service rows: same rule-draw, then the heading lifts. */
.reveal--row { opacity: 1; transform: none; transition: none; position: relative; border-block-end: 0; }
.reveal--row::after { content: ""; position: absolute; inset-inline: 0; inset-block-end: 0; height: 1px; background: var(--mist); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
[dir="rtl"] .reveal--row::after { transform-origin: right; }
.reveal--row .svc__head { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), padding .35s var(--ease-quart); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal--row.is-in::after { transform: scaleX(1); }
.reveal--row.is-in .svc__head { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s; }

/* Quote mark swings in; section numerals count up like a slate (driven by JS). */
.reveal--mark { transform: translateY(24px) rotate(-10deg) scale(.7); transform-origin: left bottom; transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal--mark.is-in { transform: none; }
.section-head__num { font-variant-numeric: tabular-nums; }

/* Process: a playhead travels along the timeline as the section scrolls through. */
.steps { position: relative; }
.steps__play {
  position: absolute; inset-block-start: -5px; inset-inline-start: calc(var(--play, 0) * 100%); width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 28%, transparent); transform: translateX(-50%); z-index: 1;
}
[dir="rtl"] .steps__play { transform: translateX(50%); }
.step__name { transition: color .5s; }
.step.is-live .step__name { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (min-width: 1600px) {
  .hero__visual { inset: 9% 2% 12% 32%; }
  [dir="rtl"] .hero__visual { inset: 9% 32% 12% 2%; }
}
@media (max-width: 1100px) {
  /* Tablet: copy above, camera below; side-by-side gets too crowded here. */
  .hero__copy { width: min(100% - 2 * var(--gutter), 560px); inset-block-start: calc(var(--nav-h) + 3vh); }
  .hero__title { font-size: clamp(40px, 6.4vw, 68px); }
  html[lang="ar"] .hero__title { font-size: clamp(36px, 5.6vw, 60px); }
  .hero__lead { font-size: 16px; margin-block-end: 20px; max-width: 40ch; }
  .hero__visual, [dir="rtl"] .hero__visual { inset: 36% -3% 17% -3%; }
  .hero__state { inset-block-end: 118px; }
  .hero__state-note { display: none; }
  .hero__bottom { inset-block-end: 26px; }
  .svc__body { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); }
  .svc__img { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero__bottom { grid-template-columns: 1fr 1.4fr 1fr; gap: 20px; }
  .intro__grid, .studio__grid, .contact__grid { grid-template-columns: 1fr; }
  .studio__fig--b { margin-block-start: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .step:nth-child(n+3) { border-block-start: 1px solid var(--line-strong); }
  .proj { grid-column: span 12; }
  .quote__inner { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .nav__inner { grid-template-columns: auto 1fr; gap: 20px; }
  .nav__end { display: none; }
  .nav__links { justify-content: flex-end; gap: 18px; }
  .nav__links a { font-size: 13px; }
  .nav__logo, .nav__logo img { height: 28px; }
}
@media (min-width: 701px) { .menu.is-open { display: none; } }
@media (max-width: 700px) {
  .nav__inner { grid-template-columns: auto auto; justify-content: space-between; gap: 12px; }
  .nav__links { display: none; }
  .nav__end .btn, .nav__end .lang, .nav__end .theme { display: none; }
  .nav__burger { display: inline-flex; }
  :root { --nav-h: 64px; }
  .nav__logo, .nav__logo img { height: 28px; }
  /* Phone: the stage becomes a column (copy, camera, chips, rail) so nothing can overlap;
     the camera takes whatever height is left. */
  .hero { height: 190svh; }
  .hero__stage { min-height: 640px; display: flex; flex-direction: column; padding: calc(var(--nav-h) + 10px) var(--gutter) 18px; }
  .hero__copy { position: static; width: auto; }
  .hero__kicker { display: none; }
  .hero__title { font-size: clamp(38px, 11vw, 56px); margin-block-end: 10px; }
  html[lang="ar"] .hero__title { font-size: clamp(32px, 9.5vw, 48px); }
  .hero__lead { font-size: 14px; line-height: 1.45; margin-block-end: 12px; max-width: 34ch; }
  html[lang="ar"] .hero__lead { line-height: 1.6; }
  .hero__actions .btn { padding: 11px 15px; font-size: 14px; }
  .hero__actions .btn--ghost { display: none; }
  .hero__visual, [dir="rtl"] .hero__visual { position: relative; inset: auto; flex: 1 1 auto; min-height: 120px; margin: 2px -6% 0; }
  .hero__canvas, .hero__poster { height: auto; inset: 0 0 var(--chips, 64px) 0; }
  .callouts { position: absolute; inset: auto 6% 0; display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; }
  .callout, .callout--l, .callout--t, .callout--b { position: static; flex-direction: row; transform: translateY(calc((1 - var(--o)) * 6px)); }
  .callout__dot, .callout__line { display: none; }
  .callout__text { padding: 4px 7px; }
  .callout__text small { display: none; }
  .callout__text b { font-size: 11px; }
  .hero__state { display: none; }
  .hero__bottom { position: static; inset: auto; margin-block-start: 12px; grid-template-columns: 1fr auto; row-gap: 12px; }
  .hero__rail { grid-column: 1 / -1; grid-row: 1; }
  .hero__rail-head { margin-block-end: 4px; }
  .hero__cue { font-size: 12px; }
  .hero__cue small { display: none; }
  .hero__cue svg { height: 22px; }
  .hero__reassemble { font-size: 12px; padding-block: 6px; }
  .hero__notice { inset-block-start: calc(var(--nav-h) + 6px); font-size: 11px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head__num { font-size: 44px; transform: none; }
  .facts div, .contact__direct div { grid-template-columns: 90px 1fr; }
  .svc__head { grid-template-columns: 40px 1fr auto; gap: 14px; padding-block: 20px; }
  .svc__head:hover { padding-inline-start: 0; }
  .svc__body { grid-template-columns: 1fr; gap: 16px; padding-block-end: 26px; }
  .svc__body > :first-child { grid-column: 1; }
  .proj { grid-column: span 12; }
  .steps { grid-template-columns: 1fr; }
  .steps__play { display: none; }
  .step, .step + .step { border-inline-start: 0; padding-inline-start: 0; padding-block: 26px 22px; }
  .step:nth-child(n+2) { border-block-start: 1px solid var(--line-strong); }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-height: 700px) and (min-width: 1101px) {
  .hero__stage { min-height: 560px; }
  .hero__copy { inset-block-start: calc(var(--nav-h) + 3vh); }
  .hero__title { font-size: clamp(40px, 5.6vw, 72px); }
  .hero__lead { font-size: 15px; margin-block-end: 18px; }
  .hero__state { inset-block-end: 120px; }
  .hero__bottom { inset-block-end: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hero__copy > *, .hero__visual, .hero__bottom, .hero__state, .reveal { opacity: 1; transform: none; }
  .reveal--words .w > span, .reveal--rows > div, .reveal--rows > div::after, .reveal--row::after, .reveal--row .svc__head, .reveal--mark, .reveal--wipe .proj__meta, .reveal--wipe .studio__caption { opacity: 1; transform: none; }
  .reveal--wipe [data-parallax] { clip-path: none; }
  [data-parallax] img { transform: none; }
  .steps__play { display: none; }
  .marquee__track { animation: none; }
  .hero__cue { display: none; }
}

/* Video players connect to YouTube only after an explicit play action. */
.video-preview { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: var(--navy-deep); cursor: pointer; overflow: hidden; }
.video-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-preview__play { position: absolute; inset-inline-start: 50%; inset-block-start: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 6px; background: var(--btn-bg); color: var(--btn-fg); white-space: nowrap; font-size: 14px; font-weight: 600; }
[dir="rtl"] .video-preview__play { transform: translate(50%, -50%); }
.video-preview:hover .video-preview__play { background: var(--btn-hover); }
.video-preview:focus-visible { outline: 3px solid var(--accent); outline-offset: -4px; }
