/* ==========================================================================
   Dither India — "Quantizing demands to achieve success"
   Design system: Premium Black + Gold accent / Scroll-Triggered Storytelling
   Generated from ui-ux-pro-max design system (see design-system/dither-india/)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS  (semantic only — never use raw hex in components)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: dark;

  /* Colour channels, so alpha tints can follow the active theme */
  --gold-rgb: 212 162 76;
  --gold-deep-rgb: 161 98 7;
  --bg-rgb: 8 8 10;
  --surface-rgb: 16 16 19;
  --surface2-rgb: 22 22 26;
  --surface3-rgb: 13 13 16;
  --tint-rgb: 255 255 255;      /* a "lighten" tint on dark surfaces */
  --success-rgb: 87 185 138;

  /* Brand — sampled from the Dither India logo gradient */
  --color-gold-hi: #fbebb4;
  --color-gold: #d4a24c;
  --color-gold-mid: #d9ae52;
  --color-gold-deep: #a16207;
  --gradient-gold: linear-gradient(135deg, #8a6316 0%, #d9ae52 22%, #fbebb4 48%, #d2a244 64%, #7e5a13 100%);

  /* Surfaces (dark-first: the brand lives on near-black) */
  --color-background: #08080a;
  --color-surface: #101013;
  --color-surface-2: #16161a;
  --color-surface-3: #1d1d22;

  /* Content */
  --color-foreground: #f6f4f1;
  --color-muted-foreground: #a8a29c;
  --color-subtle-foreground: #8a857f;   /* 4.9:1 on cards — safe for 12px text */

  /* Lines & accents */
  --color-border: rgb(var(--gold-rgb) / 0.16);
  --color-border-strong: rgb(var(--gold-rgb) / 0.34);
  --color-ring: #d4a24c;

  /* Status */
  --color-destructive: #f0685f;
  --color-success: #57b98a;

  /* Type */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Fluid type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
  --text-xl: clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2vw + 1.2rem, 2rem);
  --text-3xl: clamp(1.875rem, 2.2vw + 1.3rem, 2.75rem);
  --text-4xl: clamp(2.25rem, 3.6vw + 1.3rem, 4rem);
  --text-5xl: clamp(2.75rem, 6vw + 1rem, 6rem);

  /* Spacing — density 4/10 "Standard" (16→64) */
  --space-2xs: 0.5rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Radius / elevation */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-glow: 0 0 80px -20px rgb(var(--gold-rgb) / 0.35);
  --shadow-card: 0 24px 60px -32px rgb(0 0 0 / 0.9);

  /* Motion tokens (shared, not one-size-fits-all) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-mid: 260ms;
  --dur-slow: 420ms;

  --container: 76rem;
  --header-h: 72px;

  /* Component colour roles that differ between themes */
  --color-on-gold: #0a0a0b;
  --btn-primary-bg: var(--gradient-gold);
  --btn-primary-fg: #0a0a0b;
  --shadow-card: 0 24px 60px -32px rgb(0 0 0 / 0.9);
}

/* ==========================================================================
   LIGHT THEME
   Every value below was solved against WCAG AA on all three light surfaces
   (#f7f4ee page, #ffffff card, #eee8dc muted). Gold has to darken
   substantially on light — the dark-theme #d4a24c only reaches 1.9:1 on white.
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;

  --gold-rgb: 138 99 22;
  --gold-deep-rgb: 92 62 8;
  --bg-rgb: 247 244 238;
  --surface-rgb: 255 255 255;
  --surface2-rgb: 238 232 220;
  --surface3-rgb: 250 248 243;
  --tint-rgb: 20 18 9;          /* on light, the tint darkens instead */
  --success-rgb: 26 122 74;

  --color-gold-hi: #4d3406;
  --color-gold: #7f5812;
  --color-gold-mid: #6b4a0c;
  --color-gold-deep: #5c3e08;
  --gradient-gold: linear-gradient(135deg, #5c3e08 0%, #7f5812 26%, #6b4a0c 50%, #7f5812 74%, #4d3406 100%);

  --color-background: #f7f4ee;
  --color-surface: #ffffff;
  --color-surface-2: #eee8dc;
  --color-surface-3: #faf8f3;

  --color-foreground: #141209;
  --color-muted-foreground: #55504a;
  --color-subtle-foreground: #67614f;

  --color-border: rgb(var(--gold-rgb) / 0.26);
  --color-border-strong: rgb(var(--gold-rgb) / 0.48);
  --color-ring: #755110;

  --color-destructive: #b3261e;
  --color-success: #1a7a4a;

  /* A gold pill would fail with dark text on light, so the primary action
     inverts to a near-black pill with a gold label. */
  --color-on-gold: #fbebb4;
  --btn-primary-bg: linear-gradient(135deg, #24211a 0%, #17150f 100%);
  --btn-primary-fg: #fbebb4;

  --shadow-glow: 0 0 80px -20px rgb(var(--gold-rgb) / 0.3);
  --shadow-card: 0 20px 50px -30px rgb(20 18 9 / 0.28);
}

/* --------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background-color: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient brand field: subtle gold bloom + dither texture, fixed behind content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgb(var(--gold-rgb) / 0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 15%, rgb(var(--gold-deep-rgb) / 0.1), transparent 70%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* 2px dither dot lattice — the brand motif as texture */
  background-image: radial-gradient(rgb(var(--gold-rgb) / 0.22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;      /* prevents orphan heading lines */
}

p { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

/* Visible focus for every interactive element — never removed */
:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

::selection { background: var(--color-gold); color: var(--color-on-gold); }

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -120%;
  z-index: 200;
  background: var(--color-gold);
  color: var(--color-on-gold);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: translate var(--dur-mid) var(--ease-out);
}
.skip-link:focus-visible { translate: -50% 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.gold-text {
  background: var(--gradient-gold);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Fallback for clip-text failures keeps the text readable */
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold-text { color: var(--color-gold); -webkit-text-fill-color: currentColor; }
}

.section {
  position: relative;
  padding-block: clamp(var(--space-2xl), 12vh, var(--space-3xl));
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.section-title { font-size: var(--text-4xl); max-width: 22ch; }

.section-lead {
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
  max-width: 58ch;
}

.section-head { margin-bottom: var(--space-xl); }

/* --------------------------------------------------------------------------
   4. BUTTONS  (min 44×44 hit area, 8px+ spacing, smooth state change)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    color var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    background-color var(--dur-mid) var(--ease-out),
    translate var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 10px 34px -14px rgb(var(--gold-rgb) / 0.7);
}
.btn--primary:hover { translate: 0 -2px; box-shadow: 0 16px 44px -14px rgb(var(--gold-rgb) / 0.85); }
.btn--primary:active { translate: 0 0; }

.btn--ghost {
  background: rgb(var(--tint-rgb) / 0.02);
  border-color: var(--color-border-strong);
  color: var(--color-foreground);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--color-gold);
  color: var(--color-gold-hi);
  background: rgb(var(--gold-rgb) / 0.08);
  translate: 0 -2px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;                /* > 8px separation between targets */
  margin-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   5. HEADER / NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur-slow) var(--ease-out),
              border-color var(--dur-slow) var(--ease-out),
              backdrop-filter var(--dur-slow) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled="true"] {
  background: rgb(var(--bg-rgb) / 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

/* Lockup: mark + wordmark, matching the logo's wide tracking */
.lockup { display: inline-flex; align-items: center; gap: 0.7rem; }
.lockup__mark { width: 34px; height: auto; }
.lockup__word {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lockup__word em {
  font-style: normal;
  font-weight: 300;
  color: var(--color-gold);
}

.nav { display: none; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted-foreground);
  position: relative;
  transition: color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.nav__link:hover { color: var(--color-foreground); background: rgb(var(--tint-rgb) / 0.04); }
.nav__link[aria-current="true"] { color: var(--color-gold); }

.header__cta { display: none; }

/* Mobile disclosure */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: rgb(var(--tint-rgb) / 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-mid) var(--ease-out);
}
.nav-toggle:hover { border-color: var(--color-gold); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: rgb(var(--bg-rgb) / 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0 var(--space-md);
  transform-origin: top;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav__list { list-style: none; padding: 0; display: grid; gap: 0.25rem; }
.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-foreground);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.mobile-nav__link:hover { background: rgb(var(--gold-rgb) / 0.1); color: var(--color-gold-hi); }

/* Scroll progress — orientation cue for a long scroll narrative */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gradient-gold);
  z-index: 110;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: calc(var(--header-h) + var(--space-xl)) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.hero__inner { position: relative; z-index: 2; }

.hero__mark {
  width: clamp(112px, 16vw, 188px);
  margin: 0 auto var(--space-md);
  filter: drop-shadow(0 0 70px rgb(var(--gold-rgb) / 0.45));
}

.hero__wordmark {
  font-size: var(--text-5xl);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--space-sm);
}
/* Solid gold, not a clipped gradient: the wordmark is split into per-character
   spans for the intro animation, and background-clip:text cannot paint across
   inline-block children — the gradient version rendered invisible. Solid gold
   also matches the logo sheet, where INDIA is flat gold. */
.hero__wordmark em {
  font-style: normal;
  font-weight: 200;
}
.hero__wordmarkAccent { color: var(--color-gold); }

/* Hairline rule under the wordmark, as in the logo sheet */
.hero__rule {
  width: min(320px, 62vw);
  height: 1px;
  margin: 0 auto var(--space-sm);
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--color-foreground);
  letter-spacing: 0.01em;
  max-width: 34ch;          /* keeps the slogan on one line where it fits */
  margin-inline: auto;
}

.hero__sub {
  margin-top: var(--space-sm);
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
  max-width: 54ch;
  margin-inline: auto;
}

.hero .btn-row { justify-content: center; margin-top: var(--space-lg); }

.hero__meta {
  margin-top: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-subtle-foreground);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 4px; height: 4px;
  background: var(--color-gold);
  border-radius: 1px;                /* square pip = dither pixel */
}

/* Decorative dither canvas behind the hero */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-subtle-foreground);
}
.scroll-cue__track {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--color-gold), transparent);
}

/* --------------------------------------------------------------------------
   7. CLIENT MARQUEE (pausable, reduced-motion safe)
   -------------------------------------------------------------------------- */
.marquee-section {
  border-block: 1px solid var(--color-border);
  background: rgb(var(--surface-rgb) / 0.6);
  padding-block: var(--space-md);
}

.marquee-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.marquee-head p {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-subtle-foreground);
}

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  width: max-content;
  will-change: transform;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-subtle-foreground);
  white-space: nowrap;
  transition: color var(--dur-mid) var(--ease-out);
}
.marquee__item:hover { color: var(--color-gold); }

.marquee-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.875rem;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: border-color var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
}
.marquee-toggle:hover { border-color: var(--color-gold); color: var(--color-gold); }
.marquee-toggle svg { width: 14px; height: 14px; }
.marquee-toggle .icon-play { display: none; }
.marquee-toggle[aria-pressed="true"] .icon-play { display: block; }
.marquee-toggle[aria-pressed="true"] .icon-pause { display: none; }

/* --------------------------------------------------------------------------
   8. APPROACH — the one pinned, scrub-driven chapter sequence
   -------------------------------------------------------------------------- */
.approach { position: relative; }

/* Sticky stacked chapters — each card parks under the header and the next
   one rises to cover it. Pure CSS; GSAP only adds the depth cues. */
.stack {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 62rem;
  display: grid;
  gap: var(--space-md);
}

.stack__item {
  position: sticky;
  /* staircase: each card rests a few px lower than the one before */
  top: calc(var(--header-h) + 1.5rem + (var(--i, 0) * 14px));
  will-change: transform;
}

.stack__item .chapter { margin: 0; }

.chapter {
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(var(--surface2-rgb) / 0.9), rgb(var(--surface-rgb) / 0.7));
  box-shadow: var(--shadow-card);
}

.chapter__index {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 200;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  padding-top: 0.1em;
}

.chapter__title { font-size: var(--text-2xl); margin-bottom: 0.5rem; }
.chapter__body { color: var(--color-muted-foreground); max-width: 62ch; }

.chapter__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-xs);
  list-style: none;
  padding: 0;
}
.chapter__tags li {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.75rem;
  white-space: nowrap;      /* chips must never wrap mid-label */
}

/* --------------------------------------------------------------------------
   9. SERVICES — bento grid
   -------------------------------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(var(--surface2-rgb) / 0.85), rgb(var(--surface3-rgb) / 0.85));
  overflow: hidden;
  transition: border-color var(--dur-slow) var(--ease-out),
              translate var(--dur-slow) var(--ease-out),
              box-shadow var(--dur-slow) var(--ease-out);
}

/* Gold bloom that tracks the pointer; purely decorative */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    380px circle at var(--pointer-x, 50%) var(--pointer-y, 0%),
    rgb(var(--gold-rgb) / 0.14),
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card:hover, .card:focus-within {
  border-color: var(--color-border-strong);
  translate: 0 -4px;
  box-shadow: var(--shadow-card), 0 0 40px -24px rgb(var(--gold-rgb) / 0.6);
}
.card > * { position: relative; z-index: 1; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: rgb(var(--gold-rgb) / 0.08);
  color: var(--color-gold);
}
.card__icon svg { width: 22px; height: 22px; }

.card__title { font-size: var(--text-xl); }
.card__body { color: var(--color-muted-foreground); font-size: var(--text-sm); }

.card__list {
  list-style: none;
  padding: 0;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.card__list li {
  font-size: var(--text-xs);
  color: var(--color-subtle-foreground);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. CAPABILITIES
   -------------------------------------------------------------------------- */
.capabilities__layout { display: grid; gap: var(--space-xl); }

.stack-list { display: grid; gap: 0.75rem; }

.stack-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-xs);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.stack-row__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
}
.stack-row__note { font-size: var(--text-sm); color: var(--color-muted-foreground); }
.stack-row__meter {
  grid-column: 1 / -1;
  height: 3px;
  background: rgb(var(--tint-rgb) / 0.06);
  border-radius: 2px;
  overflow: hidden;
}
.stack-row__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--fill, 1));   /* stays readable with JS off */
  background: var(--gradient-gold);
}

/* --------------------------------------------------------------------------
   11. STATS
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--color-surface);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  display: block;
}
.stat__label {
  margin-top: 0.6rem;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

/* --------------------------------------------------------------------------
   12. TEAM
   -------------------------------------------------------------------------- */
.team-grid { display: grid; gap: var(--space-xs); grid-template-columns: 1fr; }

.person { text-align: left; }
.person__avatar {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: rgb(var(--gold-rgb) / 0.07);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-gold);
  letter-spacing: 0.04em;
}
.person__name { font-size: var(--text-xl); margin-top: 0.25rem; }
.person__role {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* --------------------------------------------------------------------------
   13. CONTACT
   -------------------------------------------------------------------------- */
.contact__layout { display: grid; gap: var(--space-xl); }

.contact__panel {
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(var(--surface2-rgb) / 0.9), rgb(var(--surface3-rgb) / 0.9));
}

.detail-list { list-style: none; padding: 0; display: grid; gap: var(--space-sm); }
.detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.875rem;
  align-items: start;
}
.detail__icon { color: var(--color-gold); padding-top: 0.15rem; }
.detail__icon svg { width: 20px; height: 20px; }
.detail__label {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-subtle-foreground);
  display: block;
  margin-bottom: 0.2rem;
}
.detail__value { font-size: var(--text-lg); }
.detail__value a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.detail__value a:hover { color: var(--color-gold); border-bottom-color: var(--color-gold); }
.detail__value--stack { display: grid; }

/* Form — visible labels, helper text, inline errors near the field */
.form { display: grid; gap: var(--space-sm); }
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: var(--text-sm); font-weight: 500; }
.field__label .req { color: var(--color-gold); }
.field__hint { font-size: var(--text-xs); color: var(--color-subtle-foreground); }

.field__input {
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: rgb(var(--bg-rgb) / 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.field__input::placeholder { color: var(--color-subtle-foreground); }
.field__input:hover { border-color: var(--color-border-strong); }
.field__input:focus-visible { border-color: var(--color-gold); outline-offset: 1px; }
textarea.field__input { min-height: 132px; resize: vertical; }

.field__error {
  font-size: var(--text-sm);
  color: var(--color-destructive);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 0;
}
.field__error:empty { display: none; }
.field__input[aria-invalid="true"] { border-color: var(--color-destructive); }

.form__status {
  font-size: var(--text-sm);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: rgb(var(--success-rgb) / 0.08);
  color: var(--color-success);
}
.form__status:empty { display: none; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-xl) var(--space-md);
  background: rgb(var(--bg-rgb) / 0.9);
}
.footer__top {
  display: grid;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.footer__tagline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-muted-foreground);
  margin-top: var(--space-xs);
  max-width: 30ch;
}
.footer__colTitle {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-subtle-foreground);
  margin-bottom: var(--space-xs);
}
.footer__list { list-style: none; padding: 0; display: grid; gap: 0.2rem; }
.footer__list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--color-muted-foreground);
  font-size: var(--text-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__list a:hover { color: var(--color-gold); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  padding-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-subtle-foreground);
}

.social { display: flex; gap: 0.5rem; list-style: none; padding: 0; }
.social a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;       /* full 44px target even though icon-only */
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted-foreground);
  transition: color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.social a:hover { color: var(--color-gold); border-color: var(--color-gold); }
.social svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   15. RESPONSIVE  (mobile-first: 375 → 768 → 1024 → 1440)
   -------------------------------------------------------------------------- */
@media (min-width: 48rem) {              /* 768 */
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chapter { grid-template-columns: auto 1fr; padding: var(--space-lg); }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; }
  .contact__layout { grid-template-columns: 1fr 1fr; align-items: start; }
  .capabilities__layout { grid-template-columns: 0.9fr 1.1fr; }
  .contact__panel { padding: var(--space-lg); }
}

@media (min-width: 64rem) {              /* 1024 */
  :root { --header-h: 80px; }
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* First card spans two columns — bento rhythm */
  .service-grid > .card:first-child { grid-column: span 2; }
}

@media (min-width: 90rem) {              /* 1440 */
  :root { --container: 82rem; }
}

/* --------------------------------------------------------------------------
   16. REDUCED MOTION
   Every scroll effect is opt-in; here we hard-stop decoration and let
   JS render each chapter in its final readable state.
   -------------------------------------------------------------------------- */
/* The reduced set is driven by a class on <html> that JS owns, so the
   in-page Motion toggle can override the OS preference in either direction.
   `html:not(.js)` repeats it as a media query for the no-JS case. */
html.motion-reduced,
html.motion-reduced * ,
html.motion-reduced *::before,
html.motion-reduced *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
html.motion-reduced { scroll-behavior: auto; }
html.motion-reduced .hero__canvas,
html.motion-reduced .scroll-cue,
html.motion-reduced .cursor,
html.motion-reduced .preloader { display: none; }
html.motion-reduced .stack__item { position: static; }
html.motion-reduced .btn:hover,
html.motion-reduced .card:hover { translate: none; }

@media (prefers-reduced-motion: reduce) {
  html:not(.js),
  html:not(.js) *,
  html:not(.js) *::before,
  html:not(.js) *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html:not(.js) .hero__canvas,
  html:not(.js) .scroll-cue { display: none; }
}

/* Honour the user's data-saving preference for the decorative canvas too */
@media (prefers-reduced-data: reduce) {
  .hero__canvas { display: none; }
}

/* No-JS: nothing is hidden by default, so content is fully readable.
   We only hide the JS-only affordances. */
html:not(.js) .scroll-progress,
html:not(.js) .marquee-toggle,
html:not(.js) .nav-toggle { display: none; }
html:not(.js) .mobile-nav { position: static; inset: auto; }


/* ==========================================================================
   17. SMOOTH SCROLL (Lenis)
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   18. MOTION TOGGLE
   The site honours prefers-reduced-motion by default, but visitors can
   still opt into the full choreography here.
   ========================================================================== */
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  margin-right: 0.25rem;
  background: rgb(var(--tint-rgb) / 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.motion-toggle__text { white-space: nowrap; }
.motion-toggle:hover { color: var(--color-gold); border-color: var(--color-border-strong); }

/* On narrow headers the label wraps and crowds the nav, so it collapses to
   the indicator dot. The text stays in the accessibility tree as the name. */
@media (max-width: 30rem) {
  .motion-toggle { width: 44px; padding: 0; justify-content: center; }
  .motion-toggle__text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.motion-toggle[aria-pressed="true"] { color: var(--color-gold); border-color: var(--color-border-strong); }

.motion-toggle__dot {
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--color-subtle-foreground);
  transition: background-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.motion-toggle[aria-pressed="true"] .motion-toggle__dot {
  background: var(--color-gold);
  box-shadow: 0 0 10px 1px rgb(var(--gold-rgb) / 0.8);
}

/* ==========================================================================
   19. LINE MASK REVEALS
   ========================================================================== */
.line-mask { display: block; overflow: hidden; }
.line-mask__inner { display: block; will-change: transform; }

/* ==========================================================================
   20. HORIZONTAL SCROLL SERVICES (desktop, full motion only)
   Default state is the vertical bento grid; JS opts in.
   ========================================================================== */
.hscroll__hint {
  margin-top: var(--space-sm);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-subtle-foreground);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hscroll__hint[hidden] { display: none; }

.hscroll.is-hscroll {
  overflow: hidden;
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.hscroll.is-hscroll .service-grid {
  display: flex;
  width: max-content;
  gap: var(--space-xs);
  grid-template-columns: none;
  will-change: transform;
}
.hscroll.is-hscroll .service-grid > .card {
  width: clamp(20rem, 26vw, 24rem);
  flex: none;
}
/* the bento span does not apply in a horizontal track */
.hscroll.is-hscroll .service-grid > .card:first-child { grid-column: auto; }

/* ==========================================================================
   21. CUSTOM CURSOR (pointer devices, full motion only)
   ========================================================================== */
/* No mix-blend-mode: `screen` lightens, so on the light theme the cursor
   disappeared into the background. Solid token colours instead, plus a halo in
   the page colour so the dot stays visible over gold, cards and imagery alike. */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
}
.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  translate: -50% -50%;
}
.cursor__dot {
  width: 7px; height: 7px;
  background: var(--color-gold);
  border-radius: 1px;
  box-shadow: 0 0 0 1.5px rgb(var(--bg-rgb) / 0.75), 0 0 12px 1px rgb(var(--gold-rgb) / 0.55);
}
.cursor__ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgb(var(--gold-rgb) / 0.6);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-mid) var(--ease-out);
}
/* colour change on hover is CSS, so it follows the theme; GSAP only scales */
.cursor.is-hot .cursor__ring { border-color: var(--color-gold); }

html.has-cursor,
html.has-cursor a,
html.has-cursor button { cursor: none; }
/* text fields keep a real caret — a dot is not a usable text cursor */
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select { cursor: auto; }

/* ==========================================================================
   22. PRELOADER (injected by JS, so it can never trap a no-JS visitor)
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: var(--color-background);
}
.preloader__inner { text-align: center; }
.preloader__mark { width: 84px; margin: 0 auto 1.25rem; }
.preloader__count {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.24em;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
}
.preloader__bar {
  width: min(220px, 50vw);
  height: 1px;
  margin: 0.9rem auto 0;
  background: rgb(var(--tint-rgb) / 0.1);
  overflow: hidden;
}
.preloader__fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--gradient-gold);
}

/* Cards sit in a 3D context so the tilt reads as depth, not shear */
.service-grid, .team-grid { perspective: 1200px; }



/* A horizontally pinned section must fit exactly one viewport, otherwise its
   heading is clipped above the fold. Only applied while the pin is active. */
.section.is-hpinned {
  padding-block: calc(var(--header-h) + 0.5rem) var(--space-xs);
}
.section.is-hpinned .section-head { margin-bottom: var(--space-sm); }
.section.is-hpinned .section-lead { margin-top: 0.75rem; }
.section.is-hpinned .hscroll__hint { margin-top: 0.75rem; }

/* ==========================================================================
   23. THEME TOGGLE  +  cross-theme colour transition
   ========================================================================== */
html { transition: background-color 400ms var(--ease-out); }
body,
.site-header,
.card,
.chapter,
.contact__panel,
.field__input,
.stat,
.site-footer {
  transition:
    background-color 400ms var(--ease-out),
    border-color 400ms var(--ease-out),
    color 400ms var(--ease-out);
}
html.theme-switching * { transition-duration: 400ms !important; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  background: rgb(var(--tint-rgb) / 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted-foreground);
  cursor: pointer;
  transition: color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.icon-btn:hover { color: var(--color-gold); border-color: var(--color-border-strong); }
.icon-btn svg { width: 19px; height: 19px; grid-area: 1 / 1; }
.icon-btn .icon-sun { display: none; }
[data-theme="light"] .icon-btn .icon-sun { display: block; }
[data-theme="light"] .icon-btn .icon-moon { display: none; }

/* ==========================================================================
   24. HERO — industry motion layers
   ========================================================================== */

/* receding perspective grid: the "infrastructure" floor */
.hero__grid {
  position: absolute;
  inset: auto 0 0 0;
  height: 42vh;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(var(--gold-rgb) / 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(var(--gold-rgb) / 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(64deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 5%, transparent 85%);
  opacity: 0.55;
}

/* a single scanline sweeping the hero, like a monitoring pass */
.hero__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 28vh;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgb(var(--gold-rgb) / 0.09), transparent);
  opacity: 0;
}

/* rotating technology stack */
.hero__rotator {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
}
.hero__rotatorLabel { letter-spacing: 0.02em; }
.hero__rotatorViewport {
  display: block;
  height: 1.6em;
  overflow: hidden;
  text-align: left;
  min-width: 11ch;
}
.hero__rotatorWords { display: block; will-change: transform; }
.hero__rotatorWords > span {
  display: block;
  height: 1.6em;
  line-height: 1.6em;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-gold);
  white-space: nowrap;
}

/* terminal flavour line */
.hero__terminal {
  margin-top: var(--space-sm);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: var(--text-sm);
  color: var(--color-subtle-foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgb(var(--surface-rgb) / 0.5);
  max-width: 100%;
}
.hero__prompt { color: var(--color-gold); }
.hero__caret {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--color-gold);
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
html.motion-reduced .hero__caret { animation: none; opacity: 1; }

/* ==========================================================================
   25. APPROACH RAIL
   ========================================================================== */
.stack-wrap { position: relative; }
.stack__rail {
  position: absolute;
  left: -1.5rem;
  top: 0; bottom: 0;
  width: 2px;
  background: rgb(var(--gold-rgb) / 0.12);
  border-radius: 2px;
  overflow: hidden;
  display: none;
}
.stack__railFill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: 50% 0;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-deep));
}
@media (min-width: 64rem) { .stack__rail { display: block; } }

/* ==========================================================================
   26. CAPABILITIES ORBIT
   ========================================================================== */
.capabilities__head { position: relative; }
.orbit {
  position: absolute;
  right: 0; top: -2rem;
  width: 200px; height: 200px;
  pointer-events: none;
  display: none;
}
.orbit__ring {
  position: absolute;
  inset: calc(var(--r) * 26px);
  border: 1px solid rgb(var(--gold-rgb) / 0.22);
  border-radius: 50%;
}
/* one lit node riding each ring */
.orbit__ring::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 5px; height: 5px;
  border-radius: 1px;
  background: var(--color-gold);
  box-shadow: 0 0 10px 1px rgb(var(--gold-rgb) / 0.7);
}
.orbit__core {
  position: absolute;
  inset: calc(3 * 26px + 14px);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--gold-rgb) / 0.55), transparent 70%);
}
@media (min-width: 64rem) { .orbit { display: block; } }

/* ==========================================================================
   27. ANIMATED IT SCENES (inline SVG line-art per chapter)
   ========================================================================== */
.scene {
  width: 100%;
  max-width: 260px;
  margin-top: var(--space-sm);
  overflow: visible;
}
.scene * { vector-effect: non-scaling-stroke; }
.scene .s-line {
  fill: none;
  stroke: rgb(var(--gold-rgb) / 0.45);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.scene .s-line--dim { stroke: rgb(var(--gold-rgb) / 0.2); }
.scene .s-node {
  fill: var(--color-surface-2);
  stroke: var(--color-gold);
  stroke-width: 1.2;
}
.scene .s-chip { fill: rgb(var(--gold-rgb) / 0.16); stroke: var(--color-gold); stroke-width: 1.1; }
.scene .s-dot { fill: var(--color-gold); }
.scene .s-pulse { fill: var(--color-gold-hi); }
.scene .s-label {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 7px;
  fill: var(--color-muted-foreground);
  letter-spacing: 0.08em;
}

.chapter { position: relative; }
.chapter__grid { display: grid; gap: var(--space-sm); }
@media (min-width: 48rem) {
  .chapter__grid { grid-template-columns: 1fr 260px; align-items: center; }
  .scene { margin-top: 0; }
}

/* ==========================================================================
   28. FOOTER SLOGAN MARQUEE
   ========================================================================== */
.footer__marquee {
  overflow: hidden;
  margin-block: var(--space-md) 0;
  padding-block: var(--space-xs);
  border-top: 1px solid var(--color-border);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.footer__marqueeTrack {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  will-change: transform;
}
.footer__marqueeTrack > span {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgb(var(--gold-rgb) / 0.55);
}
