/* Mudrik landing v3. Page layer (header, scenes, logo strip, footer).
   The particle engine (particles.js) owns the canvas and the per-scene panel vars. */

:root {
  --black: #000;
  --white: #fff;
  --violet: #8052ff;
  --amber: #ffb829;
  --teal: #15846e;
  --grey: #9a9a9a;
  --silver: #bdbdbd;
  --body-ink: #c6c6c6;
  --hair: rgba(255, 255, 255, .1);

  --font: 'Switzer', 'Almarai', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --expo: cubic-bezier(.16, 1, .3, 1);
  --ease-sweep: cubic-bezier(.215, .61, .355, 1);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --header-h: 76px;
  --header-drop: 12px;
  --header-gutter: clamp(20px, 2.6vw, 48px);
  --gutter: clamp(24px, 5.2vw, 104px);
  --page-max: 1320px;
  --panel-top: calc(var(--header-h) + var(--safe-t) + 16px);
  --panel-bottom: 44px;

  --fs-display: clamp(44px, min(6.4vw, 12svh), 118px);
  --fs-headline: clamp(34px, min(4.8vw, 9.2svh), 84px);
  --fs-lead: clamp(17px, 1.3vw, 20px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--black);
  color-scheme: dark;
  font-family: var(--font);
  font-synthesis-weight: none;
  font-synthesis-style: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--violet); color: #fff; }
[lang="en"], .num { font-family: 'Switzer', system-ui, sans-serif; }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 6px; }
.skip-link {
  position: fixed; z-index: 2000; top: calc(var(--safe-t) + 12px); right: 16px;
  padding: 10px 18px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 700;
  transform: translateY(-160%); transition: transform .4s var(--expo);
}
.skip-link:focus { transform: none; }

#constellation { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 95% 90% at 50% 45%, transparent 60%, rgba(0, 0, 0, .28) 100%);
}

/* ================================================================
   Header: two states. At the top it floats, transparent, a little lower.
   Any scroll (> 1px) unrolls a frosted panel from the top edge. */
.site-header {
  position: fixed; z-index: 1000; top: 0; left: 0; right: 0;
  padding-top: var(--safe-t);
}
.site-header::before { /* seals the hairline above the bar and the iOS notch area */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--safe-t) + 1px);
  background: #000; opacity: 0; transition: opacity .6s var(--expo);
}
.site-header.is-compact::before { opacity: 1; }
.header-panel {
  position: absolute; inset: 0; pointer-events: none;
  transform: scaleY(0); transform-origin: 50% 0;
  transition: transform 1s var(--expo);
}
.header-glass {
  position: absolute; inset: 0;
  transform: scaleY(1.1); transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, .1));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-glass, .menu-glass { background: rgba(0, 0, 0, .88); }
}
.site-header.is-compact .header-panel { transform: scaleY(1); }

.header-row {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 30px;
  height: var(--header-h);
  padding-inline: calc(var(--header-gutter) + var(--safe-r)) calc(var(--header-gutter) + var(--safe-l));
  transform: translate3d(0, var(--header-drop), 0);
  transition: transform 1s var(--expo);
}
.site-header.is-compact .header-row { transform: none; }
.site-header.is-instant, .site-header.is-instant * { transition: none !important; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; }
.brand-mark { width: 38px; height: auto; aspect-ratio: 1007 / 806; filter: brightness(2.35) saturate(1.15); }
.brand-clip {
  display: inline-block; overflow: hidden;
  padding-block: .32em .2em; margin-block: -.32em -.2em;
}
.brand-word {
  display: inline-block; font-family: 'Almarai', var(--font);
  font-size: 25px; font-weight: 700; line-height: 1.25;
  transition: transform 1s var(--expo);
}
.site-header .brand[data-word="out"] .brand-word { transform: translate3d(0, -135%, 0); }
.site-header .brand[data-word="parked"] .brand-word { transform: translate3d(0, 135%, 0); transition: none; }

.site-nav { display: flex; align-items: center; gap: 34px; margin-inline-start: auto; }
.nav-link {
  display: inline-flex; padding-block: 8px;
  color: var(--grey); font-size: 15px; font-weight: 400; line-height: 1.5;
  transition: color .5s cubic-bezier(.5, 1, .89, 1);
}
.roll { display: block; height: 1.5em; overflow: hidden; }
.roll > span { display: block; transition: transform .7s var(--expo); }
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-active { color: #fff; }
.nav-link:hover .roll > span, .nav-link:focus-visible .roll > span { transform: translate3d(0, -100%, 0); }

/* Pills: violet, with a teal layer that sweeps up from the bottom on hover. */
.pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 42px; padding-inline: 22px;
  border-radius: 999px; background: var(--violet); color: #fff;
  font-family: 'Almarai', var(--font); font-size: 15px; font-weight: 700; line-height: 1; white-space: nowrap;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* keeps the sweep clipped to the radius in Safari */
}
.pill::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--teal);
  clip-path: ellipse(75% 0% at 50% 100%);
  transition: clip-path 1.1s var(--ease-sweep);
}
.pill:hover::before, .pill:focus-visible::before { clip-path: ellipse(160% 190% at 50% 100%); }
.pill:focus-visible { outline-offset: 4px; border-radius: 999px; }
.pill-label { position: relative; padding-top: 1px; }
.pill-lg { height: 58px; padding-inline: 28px 9px; gap: 18px; font-size: 16px; }
.pill-icon {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  background: rgba(255, 255, 255, .16);
  transition: background .6s var(--expo);
}
.pill-icon .icon { grid-area: 1 / 1; width: 18px; height: 18px; stroke-width: 1.8; transition: transform .75s var(--expo); }
.pill-icon .icon + .icon { transform: translate3d(170%, 0, 0); }
.pill:hover .pill-icon, .pill:focus-visible .pill-icon { background: rgba(255, 255, 255, .22); }
.pill:hover .pill-icon .icon:first-child, .pill:focus-visible .pill-icon .icon:first-child { transform: translate3d(-170%, 0, 0); }
.pill:hover .pill-icon .icon + .icon, .pill:focus-visible .pill-icon .icon + .icon { transform: none; }

.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ================================================================
   Scenes. Without WebGL they are plain full-height sections in flow. */
main { position: relative; z-index: 2; display: block; }
main:focus { outline: none; }
.scene {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: var(--panel-top) max(var(--gutter), var(--safe-r)) var(--panel-bottom) max(var(--gutter), var(--safe-l));
}
.scene-inner {
  position: relative; width: 100%; max-width: var(--page-max); height: 100%;
  min-height: calc(100svh - var(--panel-top) - var(--panel-bottom));
  margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); grid-template-areas: "art copy";
  column-gap: clamp(32px, 5vw, 80px); align-items: center;
  direction: ltr;
}
.scene-idea .scene-inner, .scene-understand .scene-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "copy art"; }
.copy { grid-area: copy; position: relative; z-index: 2; width: 100%; max-width: 620px; direction: rtl; text-align: start; }
.scene-idea .copy, .scene-understand .copy { justify-self: end; }
.hero .scene-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); }
.hero-copy { max-width: 760px; }
.visual-slot { grid-area: art; width: 100%; height: min(100%, 660px); min-height: 300px; align-self: center; pointer-events: none; }

.eyebrow {
  margin-bottom: 26px;
  color: var(--amber); font-size: 15px; font-weight: 400; line-height: 1.6;
}
.display, .headline { font-weight: 300; line-height: 1.24; letter-spacing: 0; text-wrap: balance; }
.display { font-size: var(--fs-display); }
.headline { font-size: var(--fs-headline); line-height: 1.26; }
.line { display: block; overflow: hidden; padding-block: .1em .16em; margin-block: -.1em -.16em; }
.line > span { display: block; transform-origin: 100% 0; }
.line-muted { color: var(--grey); }
.lead {
  max-width: 30em; margin-top: 30px;
  color: var(--body-ink); font-size: var(--fs-lead); font-weight: 300; line-height: 1.85;
  text-wrap: pretty; text-shadow: 0 0 10px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6);
}
.actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; }

.text-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  color: var(--amber); font-size: 16px; font-weight: 400; line-height: 1.5;
  transition: color .4s var(--expo);
}
.text-link .icon { width: 18px; height: 18px; stroke-width: 1.7; transition: transform .6s var(--expo); }
.text-link:hover { color: #ffd27a; }
.text-link:hover .icon { transform: translate3d(-4px, 0, 0); }
.text-link[href^="#"]:hover .icon { transform: translate3d(-3px, 3px, 0); }

.steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 34px;
  color: var(--silver); font-size: 15px; font-weight: 400; line-height: 1.6;
}
.steps li { display: inline-flex; align-items: center; gap: 16px; }
.steps li + li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--amber); opacity: .85; flex: none;
}
.steps li:last-child { color: #fff; }

.scroll-cue {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; width: max-content; margin-inline: auto;
  display: inline-flex; align-items: center; gap: 10px;
  direction: rtl; color: var(--grey); font-size: 14px; font-weight: 400; line-height: 1.5;
  text-shadow: 0 0 8px #000, 0 0 2px #000;
  transition: color .4s var(--expo);
}
.scroll-cue:hover { color: #fff; }
.cue-arrow {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.cue-arrow .icon { width: 15px; height: 15px; animation: cue 2.4s var(--expo) infinite; }
@keyframes cue {
  0% { transform: translate3d(0, -130%, 0); opacity: 0; }
  30% { transform: translate3d(0, 0, 0); opacity: 1; }
  70% { transform: translate3d(0, 0, 0); opacity: 1; }
  100% { transform: translate3d(0, 130%, 0); opacity: 0; }
}

/* Chaos: one centred statement over the whole-panel cloud. */
.scene-chaos .scene-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "center"; }
.scene-chaos .copy { grid-area: center; justify-self: center; max-width: 1100px; text-align: center; }
.scene-chaos .visual-slot { grid-area: center; position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.scene-chaos .headline { font-size: clamp(34px, min(4.6vw, 8.2svh), 76px); line-height: 1.3; }
.scene-chaos .lead { margin-inline: auto; max-width: 34em; }
.scene-chaos .copy::before { content: ""; position: absolute; z-index: -1; inset: -22% -14%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .86), rgba(0, 0, 0, .62) 58%, rgba(0, 0, 0, 0)); }
.display, .headline { text-shadow: 0 0 22px rgba(0, 0, 0, .75), 0 0 3px rgba(0, 0, 0, .5); }

/* Hero entrance on first paint (pure CSS, ends fully visible). */
@keyframes line-in {
  from { transform: translate3d(0, 128%, 0) rotate(-6deg); }
  to { transform: none; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
.hero .line > span { animation: line-in 1.3s var(--expo) calc(.12s + var(--i, 0) * 70ms) backwards; }
.hero .reveal { animation: rise-in 1.2s var(--expo) calc(.42s + var(--d, 0) * 110ms) backwards; }
.hero .scroll-cue { animation: rise-in 1.2s var(--expo) .9s backwards; }

/* ================================================================
   Enhanced: the engine pins every panel and cross-fades them. */
body.is-enhanced .scene { height: 100vh; height: 100svh; min-height: 0; padding: 0; }
body.is-enhanced .scene-inner {
  position: fixed; z-index: 2;
  top: var(--panel-top); bottom: var(--panel-bottom);
  left: max(var(--gutter), var(--safe-l)); right: max(var(--gutter), var(--safe-r));
  width: auto; height: auto; min-height: 0; max-width: var(--page-max); margin-inline: auto;
  visibility: hidden; opacity: var(--panel-opacity, 0); pointer-events: none;
}
body.is-enhanced .scene.is-active .scene-inner { visibility: visible; }
body.is-enhanced .scene-inner > .copy { transform: translate3d(0, var(--panel-y, 0px), 0); }
body.is-enhanced .scene.is-active .copy, body.is-enhanced .scene.is-active .scroll-cue { pointer-events: auto; }

/* Headline lines rise in (60 ms apart) each time a scene becomes active. */
body.is-enhanced .scene:not(.is-active) .line > span { transform: translate3d(0, 128%, 0) rotate(-6deg); }
body.is-enhanced .scene.is-active .line > span {
  transform: none;
  transition: transform 1.25s var(--expo) calc(var(--i, 0) * 60ms);
}
body.is-enhanced .scene:not(.is-active) .reveal { opacity: 0; transform: translate3d(0, 16px, 0); }
body.is-enhanced .scene.is-active .reveal {
  opacity: 1; transform: none;
  transition: opacity 1s var(--expo) calc(.26s + var(--d, 0) * 90ms), transform 1.2s var(--expo) calc(.26s + var(--d, 0) * 90ms);
}

/* ================================================================
   Page end: logo strip and footer on an opaque layer above the panels. */
.page-end {
  position: relative; z-index: 10; background: #000;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
}
.page-end > .sources { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.page-end::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 96px; pointer-events: none;
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0));
}
.sources { padding: clamp(104px, 13vw, 184px) 0 clamp(72px, 8vw, 120px); }
.sources-head { max-width: 980px; margin: 0 auto; padding-inline: max(var(--gutter), var(--safe-r)) max(var(--gutter), var(--safe-l)); text-align: center; }
.sources-head h2 { font-size: clamp(34px, 4.4vw, 68px); font-weight: 300; line-height: 1.26; text-wrap: balance; }
.sources-head p {
  max-width: 36em; margin: 26px auto 0;
  color: var(--body-ink); font-size: var(--fs-lead); font-weight: 300; line-height: 1.85; text-wrap: pretty;
}

.marquee { position: relative; margin-top: clamp(64px, 7.5vw, 112px); }
.marquee-viewport {
  --fade: clamp(56px, 13vw, 240px);
  position: relative; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee var(--marquee-duration, 38s) linear infinite;
  will-change: transform;
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.marquee-group {
  --gap: clamp(56px, 6.6vw, 104px);
  display: flex; flex: none; align-items: center; justify-content: space-around;
  gap: var(--gap); min-width: 100vw;
  padding-inline: calc(var(--gap) / 2);
  padding-block: 18px;
}
.source {
  display: inline-flex; align-items: center; gap: 14px; flex: none;
  color: rgba(255, 255, 255, .7);
  font-size: clamp(22px, 2.3vw, 38px); font-weight: 380; letter-spacing: -.02em; line-height: 1;
  transition: color .5s var(--expo);
}
.source:hover { color: #fff; }
.glyph { width: 1.4em; height: 1.4em; flex: none; overflow: visible; }
.glyph .s { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.glyph .f { fill: currentColor; }
.glyph .k { fill: none; stroke: #000; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }


/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--hair); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap;
  max-width: calc(var(--page-max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 34px max(var(--gutter), var(--safe-r)) calc(34px + var(--safe-b)) max(var(--gutter), var(--safe-l));
  color: var(--grey); font-size: 14px; font-weight: 400; line-height: 1.6;
}
.footer-id { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand .brand-mark { width: 34px; }
.footer-brand .brand-word { font-size: 22px; }
.footer-tagline { color: var(--silver); }
.footer-links { display: flex; align-items: center; gap: 30px; }
.footer-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--grey); transition: color .5s cubic-bezier(.5, 1, .89, 1); }
.footer-links a:hover, .footer-links a:focus-visible { color: #fff; }
.footer-links .icon { width: 14px; height: 14px; transition: transform .6s var(--expo); }
.footer-links a:hover .icon { transform: translate3d(-2px, -2px, 0); }
.footer-copy { color: #7d7d7d; font-size: 13px; }

/* ================================================================
   Responsive */
@media (min-width: 1680px) {
  :root { --page-max: 1440px; }
}
@media (min-width: 768px) and (max-height: 800px) {
  :root { --panel-bottom: 36px; }
  .eyebrow { margin-bottom: 20px; }
  .lead { margin-top: 22px; line-height: 1.75; }
  .actions { margin-top: 28px; }
  .text-link, .steps { margin-top: 24px; }
}
@media (max-width: 1100px) {
  .site-nav { gap: 26px; }
  .header-row { gap: 24px; }
}

/* Tablet portrait and phones: text on top, formation below. */
@media (max-width: 640px), (max-width: 1100px) and (orientation: portrait) {
  :root {
    --fs-display: clamp(36px, min(12.6vw, 8svh), 96px);
    --fs-headline: clamp(31px, min(10.6vw, 6.4svh), 84px);
  }
  .scene-inner, .scene-idea .scene-inner, .scene-understand .scene-inner {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(200px, 1fr);
    grid-template-areas: "copy" "art"; align-content: start; align-items: start; column-gap: 0; row-gap: 20px;
  }
  .copy { max-width: 640px; justify-self: end; }
  .visual-slot { height: 100%; min-height: 200px; max-height: none; align-self: stretch; }
  .scene-chaos .scene-inner { grid-template-rows: minmax(0, 1fr); grid-template-areas: "center"; align-items: center; }
  .scene-chaos .copy { align-self: center; justify-self: center; }
  .scene-chaos .headline { font-size: clamp(30px, min(6.6vw, 5.4svh), 56px); line-height: 1.34; }
  .hero .scene-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  :root {
    --header-h: 68px;
    --header-drop: 0px;
    --header-gutter: 16px;
    --gutter: 20px;
    --panel-top: calc(var(--header-h) + var(--safe-t) + 10px);
    --panel-bottom: 24px;
    --fs-lead: 16px;
  }
  .header-row { gap: 10px; }
  .site-nav { display: none; }
  .brand { gap: 9px; margin-inline-end: auto; }
  .brand-mark { width: 34px; }
  .brand-word { font-size: 22px; }
  .pill-header { height: 40px; padding-inline: 18px; font-size: 14px; }
  .menu-toggle {
    position: relative; display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
    background: var(--violet); cursor: pointer;
    transition: background .5s var(--expo);
  }
  .menu-toggle:focus-visible { border-radius: 50%; }
  .burger { position: relative; width: 16px; height: 10px; }
  .burger i {
    position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: #fff;
    transition: transform .6s var(--expo), top .6s var(--expo);
  }
  .burger i:first-child { top: 1px; }
  .burger i:last-child { top: 7.5px; }
  .site-header.is-menu-open .burger i { top: 4.25px; }
  .site-header.is-menu-open .burger i:first-child { transform: rotate(45deg); }
  .site-header.is-menu-open .burger i:last-child { transform: rotate(-45deg); }

  .mobile-menu {
    display: block; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 100vh; height: 100svh;
    visibility: hidden; pointer-events: none;
    transition: visibility 0s linear .9s;
  }
  .menu-glass {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .94), rgba(0, 0, 0, .82));
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hair);
    transform: scaleY(0); transform-origin: 50% 0;
    transition: transform .9s var(--expo);
  }
  .menu-nav {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: calc(var(--safe-t) + var(--header-h) + 14px) 24px 32px;
  }
  .menu-link {
    display: block; padding: 10px 20px; color: #fff; font-size: 18px; font-weight: 400; line-height: 1.5;
    opacity: 0; transform: translate3d(0, -10px, 0);
    transition: opacity .3s ease, transform .3s ease, color .4s var(--expo);
  }
  .menu-link.is-active { color: var(--amber); }
  .menu-cta { margin-top: 14px; opacity: 0; transform: translate3d(0, -10px, 0); transition: opacity .3s ease, transform .3s ease; }
  .site-header.is-menu-open .mobile-menu { visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .site-header.is-menu-open .menu-glass { transform: scaleY(1); }
  .site-header.is-menu-open .menu-link,
  .site-header.is-menu-open .menu-cta {
    opacity: 1; transform: none;
    transition: opacity .7s var(--expo) calc(.12s + var(--i) * 55ms), transform .9s var(--expo) calc(.12s + var(--i) * 55ms), color .4s var(--expo);
  }

  .scene-inner { row-gap: 14px; }
  .eyebrow { margin-bottom: 14px; font-size: 14px; }
  .display { line-height: 1.22; }
  .headline { line-height: 1.24; }
  .lead { margin-top: 18px; line-height: 1.8; }
  .actions { margin-top: 24px; }
  .pill-lg { height: 52px; padding-inline: 22px 7px; gap: 14px; font-size: 15px; }
  .pill-icon { width: 38px; height: 38px; }
  .text-link { margin-top: 18px; font-size: 15px; }
  .steps { margin-top: 20px; font-size: 14px; gap: 8px 12px; }
  .steps li { gap: 12px; }
  .scroll-cue { font-size: 13px; }
  .cue-arrow { width: 26px; height: 26px; }

  .sources { padding-top: 96px; padding-bottom: 64px; }
  .sources-head p { margin-top: 18px; }
  .marquee-viewport { --fade: 44px; }
  .marquee-group { --gap: 48px; padding-block: 12px; }
  .source { font-size: 21px; gap: 11px; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-top: 40px; padding-bottom: calc(36px + var(--safe-b)); }
  .footer-id { flex-direction: column; gap: 12px; }
}

@media (max-width: 767px) and (max-height: 700px) {
  :root {
    --fs-display: clamp(36px, min(10.4vw, 6.9svh), 52px);
    --fs-headline: clamp(31px, min(9vw, 6.2svh), 46px);
    --fs-lead: 15px;
    --panel-bottom: 16px;
  }
  .eyebrow { margin-bottom: 8px; font-size: 13px; }
  .lead { margin-top: 12px; line-height: 1.7; }
  .actions { margin-top: 16px; }
  .pill-lg { height: 46px; font-size: 14px; }
  .pill-icon { width: 34px; height: 34px; }
  .text-link, .steps { margin-top: 12px; }
  .scene-inner { row-gap: 8px; }
}
@media (max-width: 374px) {
  .pill-header { padding-inline: 14px; font-size: 13px; }
  .brand-word { font-size: 20px; }
}

/* ================================================================
   Reduced motion: no transforms, no loops. Everything is simply there. */
@media (prefers-reduced-motion: reduce) {
  .hero .line > span, .hero .reveal, .hero .scroll-cue { animation: none; }
  body.is-enhanced .scene .line > span,
  body.is-enhanced .scene .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }
  body.is-enhanced .scene-inner > .copy { transform: none; }
  .header-panel, .header-row, .brand-word, .roll > span, .pill::before, .pill-icon .icon,
  .menu-glass, .menu-link, .menu-cta, .text-link .icon, .footer-links .icon { transition-duration: .01s !important; transition-delay: 0s !important; }
  .cue-arrow .icon { animation: none; }
  .marquee-track { animation: none; width: auto; }
  .marquee-group { flex-wrap: wrap; justify-content: center; min-width: 0; width: 100%; row-gap: 28px; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-viewport { -webkit-mask-image: none; mask-image: none; }
}
