/* ==========================================================================
   MAR. Creative Intelligence — Editorial Design System
   Mobile-first. Motion is transform/opacity only. Reduced-motion safe.
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

/* Palette constants (MAR Logo Production Package v2) — never themed. */
:root {
  --bone:        #F3EEE7;
  --ink:         #11100F;
  --oxblood:     #7A1E27;
  --stone:       #A9A198;
  --signal:      #D92D35;
  --ultramarine: #315BFF;
  --white:       #FFFFFF;

  --paper:     #FAF8F4;
  --bone-deep: #E9E2D8;
  --ink-raise: #1B1917;
  --ink-lift:  #24211E;
  --rose:      #C9707A;   /* oxblood lightened for dark grounds — 5.5:1 on ink */

  /* Type */
  --font-display: "Bodoni Moda", "Playfair Display", Didot, Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.32rem, 1.22rem + 0.50vw, 1.70rem);
  --step-3:  clamp(1.52rem, 1.34rem + 0.90vw, 2.15rem);
  --step-4:  clamp(1.80rem, 1.48rem + 1.60vw, 2.90rem);
  --step-5:  clamp(2.15rem, 1.66rem + 2.45vw, 3.90rem);

  /* Space (8pt rhythm) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --pad-x: clamp(20px, 5.5vw, 96px);
  --shell: 1360px;
  --measure: 62ch;

  /* Motion */
  --e-out:   cubic-bezier(0.16, 1, 0.30, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --e-soft:  cubic-bezier(0.33, 1, 0.68, 1);
  --t-1: 160ms; --t-2: 260ms; --t-3: 420ms; --t-4: 720ms; --t-5: 1100ms;

  --z-base: 1; --z-sticky: 40; --z-header: 60; --z-menu: 80; --z-curtain: 100;
}

/* ---- Semantic tokens: LIGHT theme ----
   Components only ever read these, so a theme swap is a token swap.
   `--band-*` is the alternating full-bleed section; in light mode it is ink. */
:root,
:root[data-theme="light"] {
  color-scheme: light;

  --bg:          var(--bone);
  --surface:     var(--paper);
  --fg:          var(--ink);
  --fg-muted:    #5C574F;
  --fg-faint:    #6F695E;
  --accent:      var(--oxblood);
  --on-accent:   var(--bone);
  --flag:        var(--signal);

  --rule:        color-mix(in srgb, var(--ink) 14%, transparent);
  --rule-strong: color-mix(in srgb, var(--ink) 26%, transparent);
  --rule-accent: color-mix(in srgb, var(--oxblood) 42%, transparent);

  --btn-base-bg: var(--ink);
  --btn-base-fg: var(--bone);
  --header-veil: color-mix(in srgb, var(--bone) 82%, transparent);
  --shadow-soft: 0 24px 60px -34px rgba(17, 16, 15, 0.40);
  --shadow-lift: 0 30px 60px -40px rgba(17, 16, 15, 0.50);

  --band-bg:       var(--ink);
  --band-surface:  var(--ink-raise);
  --band-fg:       var(--bone);
  --band-muted:    var(--stone);
  --band-faint:    var(--stone);
  --band-accent:   var(--rose);
  --band-flag:     #E45A61;
  --band-rule:     color-mix(in srgb, var(--bone) 16%, transparent);
  --band-rule-str: color-mix(in srgb, var(--bone) 30%, transparent);
  --band-btn-bg:   var(--bone);
  --band-btn-fg:   var(--ink);
}

/* ---- Semantic tokens: DARK theme ----
   Ink becomes the canvas; the alternating band lifts instead of dropping,
   so the page still reads as a rhythm of surfaces. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:          var(--ink);
  --surface:     var(--ink-raise);
  --fg:          var(--bone);
  --fg-muted:    #B3ABA1;
  --fg-faint:    #9A9289;
  --accent:      var(--rose);
  --on-accent:   var(--ink);
  --flag:        #E45A61;

  --rule:        color-mix(in srgb, var(--bone) 15%, transparent);
  --rule-strong: color-mix(in srgb, var(--bone) 28%, transparent);
  --rule-accent: color-mix(in srgb, var(--rose) 46%, transparent);

  --btn-base-bg: var(--bone);
  --btn-base-fg: var(--ink);
  --header-veil: color-mix(in srgb, var(--ink) 80%, transparent);
  --shadow-soft: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
  --shadow-lift: 0 30px 60px -40px rgba(0, 0, 0, 0.95);

  --band-bg:       #1E1B19;
  --band-surface:  #272320;
  --band-fg:       var(--bone);
  --band-muted:    #B3ABA1;
  --band-faint:    #9A9289;
  --band-accent:   var(--rose);
  --band-flag:     #E45A61;
  --band-rule:     color-mix(in srgb, var(--bone) 15%, transparent);
  --band-rule-str: color-mix(in srgb, var(--bone) 28%, transparent);
  --band-btn-bg:   var(--bone);
  --band-btn-fg:   var(--ink);
}

/* Honour the OS preference until the visitor chooses explicitly. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--ink);
    --surface: var(--ink-raise);
    --fg: var(--bone);
    --fg-muted: #B3ABA1;
    --fg-faint: #9A9289;
    --accent: var(--rose);
    --on-accent: var(--ink);
    --flag: #E45A61;
    --rule: color-mix(in srgb, var(--bone) 15%, transparent);
    --rule-strong: color-mix(in srgb, var(--bone) 28%, transparent);
    --rule-accent: color-mix(in srgb, var(--rose) 46%, transparent);
    --btn-base-bg: var(--bone);
    --btn-base-fg: var(--ink);
    --header-veil: color-mix(in srgb, var(--ink) 80%, transparent);
    --shadow-soft: 0 24px 60px -34px rgba(0, 0, 0, 0.85);
    --shadow-lift: 0 30px 60px -40px rgba(0, 0, 0, 0.95);
    --band-bg: #1E1B19;
    --band-surface: #272320;
    --band-muted: #B3ABA1;
    --band-faint: #9A9289;
  }
}

/* --- 2. Reset ----------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}


img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--oxblood); color: var(--bone); }

/* --- 3. Typography ------------------------------------------------------ */

/* The Didone is reserved for statements: page and section headlines, plus the two
   brand marks (the loop hub and the VS rule). Everything functional — card titles,
   nav, numbers, UI — is Inter at 600, which stays clean and holds its weight at
   small sizes where a high-contrast serif goes thin. */
/* The Didone is no longer the headline voice — it is the emphasis voice. Headlines
   are Inter, which stays quiet at size; the serif appears only as the italic phrase
   inside them (.accent-word), so it lands on a handful of words per page instead of
   every heading. That is the whole argument for keeping a high-contrast face. */
h1, h2 {
  font-family: var(--font-body);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); line-height: 1.06; letter-spacing: -0.032em; }
h2 { font-size: var(--step-4); line-height: 1.1;  letter-spacing: -0.028em; }
h3 { font-size: var(--step-2); line-height: 1.18; }
h4 { font-size: var(--step-1); line-height: 1.25; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 46ch;
}

.body-copy { color: var(--fg-muted); max-width: var(--measure); }

.accent-word {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 18;
  /* The Didone sits optically smaller than Inter at the same size, so nudge it up.
     No trailing padding: it visibly detaches a following period. The italic's own
     right side bearing is enough separation from the next word. */
  font-size: 1.06em;
  letter-spacing: -0.005em;
  color: var(--accent);
}

/* The oxblood square from the wordmark, reused as punctuation */
.dot {
  display: inline-block;
  width: 0.36em;
  height: 0.36em;
  background: var(--accent);
  vertical-align: baseline;
  margin-inline-start: 0.14em;
}

.eyebrow,
.label {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  line-height: 1.4;
}
.eyebrow::before,
.label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--rule-accent);
  flex: none;
}

.num {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* --- 4. Layout ---------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

section { position: relative; isolation: isolate; }

.section-pad {
  padding-block: clamp(64px, 11vw, 150px);
}

/* Alternating full-bleed band. It re-scopes the semantic tokens, so every
   component inside keeps using --fg / --rule / --accent and simply inverts. */
.section-dark,
.theme-band,
.footer {
  --bg:          var(--band-bg);
  --surface:     var(--band-surface);
  --fg:          var(--band-fg);
  --fg-muted:    var(--band-muted);
  --fg-faint:    var(--band-faint);
  --accent:      var(--band-accent);
  --on-accent:   var(--bone);
  --flag:        var(--band-flag);
  --rule:        var(--band-rule);
  --rule-strong: var(--band-rule-str);
  --rule-accent: color-mix(in srgb, var(--band-accent) 46%, transparent);
  --btn-base-bg: var(--band-btn-bg);
  --btn-base-fg: var(--band-btn-fg);

  background: var(--bg);
  color: var(--fg);
}

.rule {
  height: 1px;
  background: var(--rule);
  transform-origin: left center;
  border: 0;
}

.section-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.section-head h2 { max-width: 20ch; }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-4);
  z-index: 200;
  transform: translateY(-200%);
  background: var(--fg);
  color: var(--bg);
  padding: var(--s-3) var(--s-4);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform var(--t-2) var(--e-out);
}
.skip-link:focus { transform: translateY(0); }

/* --- 5. Buttons & links ------------------------------------------------- */

.btn {
  --btn-bg: var(--btn-base-bg);
  --btn-fg: var(--btn-base-fg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: 0 var(--s-5);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
  transition: color var(--t-2) var(--e-out), transform var(--t-2) var(--e-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform var(--t-3) var(--e-out);
  z-index: -1;
}
.btn:hover::before,
.btn:focus-visible::before { transform: translateY(0); }
.btn:hover { color: var(--on-accent); }
.btn:active { transform: scale(0.985); }
.btn .arrow { transition: transform var(--t-2) var(--e-out); }
.btn:hover .arrow { transform: translate(3px, -3px); }

.btn-light { --btn-bg: var(--band-btn-bg); --btn-fg: var(--band-btn-fg); }
.btn-accent { --btn-bg: var(--accent); --btn-fg: var(--on-accent); }
.btn-accent::before { background: var(--fg); }
.btn-accent:hover { color: var(--bg); }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); font-size: var(--step--2); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t-3) var(--e-out);
}
.text-link:hover::after,
.text-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* --- 6. Reveal system --------------------------------------------------- */

.anim .reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--t-4) var(--e-out) var(--reveal-delay, 0ms),
    transform var(--t-4) var(--e-out) var(--reveal-delay, 0ms);
}
.anim .reveal.is-in { opacity: 1; transform: none; }

.anim .reveal-rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-5) var(--e-out) var(--reveal-delay, 0ms);
}
.anim .reveal-rule.is-in { transform: scaleX(1); }

/* Headline word mask */
.split { display: block; }
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Deep enough for the Didone italic's descenders; the negative margin keeps the
     line box unchanged so leading is unaffected. */
  padding-block: 0.22em;
  margin-block: -0.22em;
}
.split .w > span { display: inline-block; }
.anim .split .w > span {
  transform: translate3d(0, 105%, 0);
  transition: transform 900ms var(--e-out) var(--w-delay, 0ms);
}
.anim .split.is-in .w > span { transform: none; }

/* Everything above is scoped to .anim, which only mar.js can set. If the
   script is missing, blocked, or fails, the page renders complete and static. */

/* --- 7. Curtain (first paint) ------------------------------------------- */

.curtain { display: none; }
.anim .curtain {
  position: fixed;
  inset: 0;
  z-index: var(--z-curtain);
  background: var(--ink);
  display: grid;
  place-items: center;
  transform: translateY(0);
  transition: transform 900ms var(--e-inout);
}
.curtain img { width: min(180px, 42vw); opacity: 0; transform: translateY(10px); transition: opacity 520ms var(--e-out), transform 520ms var(--e-out); }
.curtain.is-ready img { opacity: 1; transform: none; }
.curtain.is-done { transform: translateY(-101%); }
.curtain[hidden] { display: none; }

/* --- 8. Header ---------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
}
/* The header background must never depend on a scroll handler keeping up.
   It previously faded in only once JS added .is-stuck, which left a window during
   iOS momentum scrolling where a transparent header sat over the scrolling content
   and the headline and nav rendered through each other. Mobile is therefore always
   opaque; only desktop, where that timing gap does not occur, keeps the fade. */
.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  z-index: -1;
}
.header.is-stuck::after { border-bottom-color: var(--rule); }

@media (min-width: 1024px) {
  /* Desktop: clean over the hero, frosted once you scroll. */
  .header::after {
    opacity: 0;
    background: var(--header-veil);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    transition: opacity var(--t-3) var(--e-out);
  }
  .header.is-stuck::after { opacity: 1; }

  /* Hide-on-scroll is a desktop affordance only. On iOS, transforming a fixed
     element during momentum scroll makes it paint at a stale position. */
  .header { transition: transform var(--t-3) var(--e-out); }
  .header.is-hidden { transform: translate3d(0, -100%, 0); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 72px;
}

.brand { display: grid; align-items: center; min-height: 44px; }
.brand img { grid-area: 1 / 1; width: clamp(76px, 9vw, 104px); }
/* One wordmark per ground — the SVGs are flat-colour masters, not currentColor. */
.mark-on-dark { visibility: hidden; }
:root[data-theme="dark"] .mark-on-light { visibility: hidden; }
:root[data-theme="dark"] .mark-on-dark  { visibility: visible; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-on-light { visibility: hidden; }
  :root:not([data-theme="light"]) .mark-on-dark  { visibility: visible; }
}

.nav-links { display: none; }

.nav-actions { display: flex; align-items: center; gap: var(--s-3); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  box-shadow: inset 0 0 0 1px var(--rule);
  transition: color var(--t-2) var(--e-out), box-shadow var(--t-2) var(--e-out);
}
.lang-switch:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule-strong); }

.nav .btn { display: none; }

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  touch-action: manipulation;
}
.burger i {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform var(--t-3) var(--e-out), opacity var(--t-1) linear;
}
.burger i:nth-child(1) { transform: translateY(-4px); }
.burger i:nth-child(2) { transform: translateY(4px); }
.burger[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { transform: rotate(-45deg); }

/* Mobile drawer */
/* A dropdown panel that belongs to the bar, not a full-screen takeover. It sits
   inside <header>, so it opens directly beneath the nav, inherits the header's
   background, and leaves the page visible behind it. */
.drawer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  border-top: 0 solid var(--rule);   /* collapses to exactly 0 when closed */
  transition:
    max-height 380ms var(--e-out),
    opacity 180ms var(--e-out),
    visibility 0s linear 380ms;
}
.drawer.is-open {
  max-height: 420px;
  max-height: min(420px, 68svh);
  opacity: 1;
  visibility: visible;
  border-top-width: 1px;
  transition:
    max-height 420ms var(--e-out),
    opacity 220ms var(--e-out),
    visibility 0s;
}

.drawer-inner {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-3) max(var(--s-5), env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer-nav { display: grid; }
.drawer-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding-block: var(--s-2);
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--fg);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 260ms var(--e-out), transform 260ms var(--e-out), color var(--t-2) var(--e-out);
}
.drawer-nav a:first-child { border-top: 0; }
.drawer.is-open .drawer-nav a { opacity: 1; transform: none; }
.drawer.is-open .drawer-nav a:nth-child(1) { transition-delay: 60ms; }
.drawer.is-open .drawer-nav a:nth-child(2) { transition-delay: 105ms; }
.drawer.is-open .drawer-nav a:nth-child(3) { transition-delay: 150ms; }
.drawer.is-open .drawer-nav a:nth-child(4) { transition-delay: 195ms; }
.drawer-nav a:hover,
.drawer-nav a[aria-current="page"] { color: var(--accent); }
.drawer-nav .num { color: var(--fg-faint); }

.drawer-cta { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .drawer-nav a { opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
  .burger { display: none; }
  .drawer { display: none; }
  .nav .btn { display: inline-flex; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.4vw, 40px);
    margin-inline-start: auto;
    margin-inline-end: clamp(20px, 2.4vw, 40px);
  }
  .nav-links a {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: var(--step--1);
    font-weight: 450;
    letter-spacing: 0.04em;
    color: var(--fg-muted);
    transition: color var(--t-2) var(--e-out);
  }
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 12px;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--t-3) var(--e-out);
  }
  .nav-links a:hover { color: var(--fg); }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
  .nav-links a[aria-current="page"] { color: var(--fg); }
}

/* Theme toggle */
.theme-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--fg-muted);
  box-shadow: inset 0 0 0 1px var(--rule);
  touch-action: manipulation;
  transition: color var(--t-2) var(--e-out), box-shadow var(--t-2) var(--e-out);
}
.theme-toggle:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.theme-toggle > span[aria-hidden] {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity var(--t-2) var(--e-out), transform var(--t-3) var(--e-out);
}
/* Show the theme you would switch TO. */
.t-sun  { opacity: 0; transform: rotate(-70deg) scale(.6); }
.t-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .t-sun  { opacity: 1; transform: none; }
:root[data-theme="dark"] .t-moon { opacity: 0; transform: rotate(70deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-sun  { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .t-moon { opacity: 0; transform: rotate(70deg) scale(.6); }
}


/* --- 9. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  /* Deliberately NOT vh: iOS Safari's collapsing toolbar changes vh mid-scroll,
     which would reflow everything below the hero on every frame. vw is stable. */
  padding-top: clamp(120px, 26vw, 190px);
  padding-bottom: clamp(56px, 9vw, 110px);
  overflow: hidden;
}

.hero-grid { display: grid; gap: var(--s-7); }

.hero h1 { margin-block: var(--s-5) var(--s-5); max-width: 15ch; }
.hero .lead { margin-bottom: var(--s-6); }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.hero-actions .btn { flex: 1 1 auto; min-width: 220px; }

/* Decorative aura — GPU-only, never behind body text */
.aura {
  position: absolute;
  border-radius: 50%;
  /* No filter: blur() here. A ~560px blurred layer repainting on every scroll frame
     is one of the classic sources of mobile-Safari smearing and dropped frames.
     The gradients below are already soft enough to carry the same look. */
  opacity: 0.62;
  pointer-events: none;
  contain: layout paint;
}
.aura-a {
  width: min(560px, 90vw); aspect-ratio: 1;
  right: -22%; top: -8%;
  background: radial-gradient(circle closest-side,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    color-mix(in srgb, var(--accent) 11%, transparent) 42%,
    transparent 72%);
}
.aura-b {
  width: min(440px, 80vw); aspect-ratio: 1;
  left: -20%; bottom: -14%;
  background: radial-gradient(circle closest-side,
    color-mix(in srgb, var(--ultramarine) 12%, transparent) 0%,
    color-mix(in srgb, var(--ultramarine) 6%, transparent) 44%,
    transparent 74%);
}
/* Drift only where parallax also runs — JS adds .has-drift above 900px. */
.has-drift .aura-a { animation: drift 26s var(--e-soft) infinite alternate; }
.has-drift .aura-b { animation: drift 32s var(--e-soft) infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.08); }
}

.scroll-cue {
  display: none;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-8);
  font-size: var(--step--2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.scroll-cue i {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--rule-accent), transparent);
  transform-origin: top center;
  animation: cue 2.4s var(--e-soft) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
  50%      { transform: scaleY(1);   opacity: 1; }
}
@media (min-width: 1024px) { .scroll-cue { display: flex; } }

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
  }
}

/* --- 10. Ticker --------------------------------------------------------- */

.ticker {
  border-block: 1px solid var(--rule);
  padding-block: var(--s-4);
  overflow: hidden;
  --ticker-speed: 34s;
}
.ticker-track { display: flex; width: max-content; animation: marquee var(--ticker-speed) linear infinite; }
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; flex: none; }
.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-inline: clamp(12px, 2vw, 28px);
  /* Four brand words on a loop — exactly the kind of short, weighted phrase the
     Didone is for. */
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 20;
  font-size: var(--step-1);
  letter-spacing: 0.06em;
  letter-spacing: 0.14em;
  color: var(--fg);
  white-space: nowrap;
}
.ticker-group span b { width: 5px; height: 5px; background: var(--accent); flex: none; }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }

/* --- 11. Intelligence panel (dashboard) --------------------------------- */

.panel {
  position: relative;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow-soft);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-5);
}

.panel-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-faint);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.live { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--accent); }
.live i {
  width: 6px; height: 6px; background: currentColor; border-radius: 50%;
  animation: pulse 2.2s var(--e-soft) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.7);} }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.metric { display: grid; gap: 2px; }
.metric strong {
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.metric span { font-size: var(--step--2); color: var(--fg-muted); line-height: 1.3; }
.metric small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: .06em; color: var(--fg-faint); }

.spark {
  display: flex; align-items: flex-end; gap: 3px;
  height: 76px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
.anim .spark i {
  flex: 1;
  background: linear-gradient(to top, color-mix(in srgb, var(--accent) 30%, transparent), var(--accent));
  height: var(--h, 40%);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 760ms var(--e-out) var(--d, 0ms);
}
.anim .panel.is-in .spark i { transform: scaleY(1); }

.signal-rows { display: grid; gap: 1px; background: var(--rule); }
.signal-rows > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) 0;
  background: var(--surface);
  font-size: var(--step--1);
}
.signal-rows b { font-weight: 450; }
.signal-rows em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: .1em;
  padding: 3px 8px;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--rule-accent);
}
.signal-rows em.is-win { color: var(--bone); background: var(--oxblood); box-shadow: none; }

/* --- 12. Editorial two-column ------------------------------------------- */

.editorial { display: grid; gap: var(--s-6); }
.editorial-side { display: grid; gap: var(--s-5); align-content: start; }
@media (min-width: 900px) {
  .editorial { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(40px, 6vw, 100px); }
  .editorial-side { position: sticky; top: 120px; }
}

.pillars { display: grid; gap: 0; }
.pillar {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
}
@media (min-width: 560px) {
  .pillar { grid-template-columns: 13ch 1fr; gap: var(--s-4); align-items: baseline; }
}
.pillar:last-child { border-bottom: 1px solid var(--rule); }
.pillar b {
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.pillar p { font-size: var(--step--1); color: var(--fg-muted); margin-top: 2px; }

/* --- 13. Pain cards ----------------------------------------------------- */

.pain-intro { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.pain-intro h2 { max-width: 18ch; }
.pain-lead { display: grid; gap: var(--s-5); }
@media (min-width: 900px) {
  .pain-lead { grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: var(--s-7); }
}

.bridge {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-5);
  margin-bottom: var(--s-6);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule-accent);
  border-left: 2px solid var(--accent);
}
.bridge span {
  font-size: var(--step--2); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.bridge p { color: var(--fg-muted); max-width: var(--measure); }

.card-grid { display: grid; gap: 1px; background: var(--rule); }
@media (min-width: 700px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.pain-card {
  background: var(--bg);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-3);
  align-content: start;
  position: relative;
  transition: background var(--t-3) var(--e-out);
}
.pain-card:hover { background: var(--surface); }
/* The card is a two-part comparison, so both halves are named: the problem beside
   the glyph, the answer below the rule. */
.pain-card-top { display: flex; align-items: center; gap: var(--s-3); }
.pain-card-top b {
  font-size: var(--step--2); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--flag);
}
.pain-card h3 { font-size: var(--step-1); max-width: 20ch; }
.pain-card p { font-size: var(--step--1); color: var(--fg-muted); }
.pain-fix {
  margin-top: var(--s-3);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: grid; gap: 4px;
}
.pain-fix span { font-size: var(--step--2); letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); }
.pain-fix b { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.04em; color: var(--accent); }

/* --- 14. Service cards -------------------------------------------------- */

.services { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }

.service {
  position: relative;
  display: grid;
  gap: var(--s-4);
  align-content: start;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  overflow: hidden;
  transition: transform var(--t-3) var(--e-out), box-shadow var(--t-3) var(--e-out);
}
.service::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-4) var(--e-out);
}
.service:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--rule-strong), var(--shadow-lift); }
.service:hover::before { transform: scaleX(1); }
.service h3 { font-size: var(--step-3); max-width: 14ch; }
.service > p { color: var(--fg-muted); max-width: 42ch; }
.service ul { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.service li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
  align-items: start;
  font-size: var(--step--1); color: var(--fg-muted);
  padding-top: var(--s-3); border-top: 1px solid var(--rule);
}
.service li::before { content: ""; width: 5px; height: 5px; margin-top: 0.55em; background: var(--accent); }
.service .card-go {
  margin-top: var(--s-4);
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  font-size: var(--step--1); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
}
.service .card-go .arrow { transition: transform var(--t-2) var(--e-out); }
.service:hover .card-go .arrow { transform: translate(3px, -3px); }

.check-list { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.check-list li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-4);
  align-items: start;
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  color: var(--fg-muted);
}
.check-list li::before { content: ""; width: 6px; height: 6px; margin-top: 0.6em; background: var(--accent); }

/* --- 15. Stats ---------------------------------------------------------- */

.stats { display: grid; gap: 1px; background: var(--rule); margin-top: var(--s-7); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  background: var(--bg);
  padding: var(--s-6) var(--s-4);
  display: grid; gap: var(--s-3);
}
.stat strong {
  font-family: var(--font-body);
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: var(--step--1); color: var(--fg-muted); max-width: 26ch; }

/* --- 15b. Turnaround gauge ---------------------------------------------- */

.editorial-gauge { align-items: center; }
@media (min-width: 900px) {
  .editorial-gauge { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

.gauge { width: min(320px, 82vw); justify-self: center; }
.gauge svg { width: 100%; height: auto; overflow: visible; }

.gauge-track {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.5;
}
.gauge-tick { stroke: var(--rule); stroke-width: 1; }
.gauge-tick.is-major { stroke: var(--rule-strong); stroke-width: 1.5; }

.gauge-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: var(--dash);
  stroke-dashoffset: var(--dash);
  transition: stroke-dashoffset 1500ms var(--e-out) 200ms;
}
.anim .reveal.is-in .gauge-fill,
.anim .gauge.is-in .gauge-fill { stroke-dashoffset: var(--offset); }

.gauge-marker {
  fill: var(--accent);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  transition: opacity 320ms var(--e-out) 1250ms, transform 420ms var(--e-out) 1250ms;
}
.anim .gauge.is-in .gauge-marker { opacity: 1; transform: scale(1); }

.gauge-value {
  font-family: var(--font-body);
  font-size: 46px;
  font-weight: 650;
  letter-spacing: -0.04em;
  fill: var(--fg);
  text-anchor: middle;
  font-variant-numeric: tabular-nums;
}
.gauge-unit { font-size: 26px; font-weight: 500; fill: var(--fg-muted); }
.gauge-caption {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  fill: var(--fg-faint);
  text-anchor: middle;
}
.gauge-bound {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  fill: var(--fg-faint);
  text-anchor: start;
}
.gauge-bound.is-end { text-anchor: end; }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .gauge-fill { stroke-dashoffset: var(--offset); }
  :root:not([data-motion="full"]) .gauge-marker { opacity: 1; transform: none; }
}

/* --- 16. Loop / steps --------------------------------------------------- */

/* A sequence should look like one. The rail draws top-to-bottom as the block enters
   and each step lights a node on it, so the order is carried by the graphic rather
   than by the numbers alone. */
.steps { display: grid; gap: 0; position: relative; padding-left: var(--s-6); }
.rail {
  position: absolute;
  left: 3px; top: 0; bottom: 0;
  width: 1px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1600ms var(--e-out) 120ms;
}
.anim .rail.is-in { transform: scaleY(1); }
.steps .step::before {
  content: "";
  position: absolute;
  left: calc(var(--s-6) * -1);
  top: calc(var(--s-5) + 0.1em);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--accent);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 300ms var(--e-out), transform 380ms var(--e-out);
}
.anim .step.is-in::before { opacity: 1; transform: none; }
@media (min-width: 900px) {
  .steps { padding-left: var(--s-7); }
  .steps .step::before { left: calc(var(--s-7) * -1); top: calc(var(--s-6) + 0.15em); }
  .rail { left: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) .rail { transform: scaleY(1); }
  :root:not([data-motion="full"]) .steps .step::before { opacity: 1; transform: none; }
}
.step {
  display: grid;
  gap: var(--s-2);
  padding-block: var(--s-5);
  border-top: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--fg-muted); max-width: 46ch; }
@media (min-width: 900px) {
  .step { grid-template-columns: 6ch 22ch 1fr; align-items: baseline; gap: var(--s-6); padding-block: var(--s-6); }
  .step::after {
    content: "";
    position: absolute; left: 0; top: -1px; right: 0; height: 1px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: left center;
    transition: transform var(--t-4) var(--e-out);
  }
  .step:hover::after { transform: scaleX(1); }
}

/* --- 17. Numbered list (what's included) -------------------------------- */

.included-grid > div:first-child { display: grid; gap: var(--s-4); align-content: start; }
.numbered { display: grid; gap: 0; }
.numbered > div {
  display: grid;
  grid-template-columns: 4ch 1fr;
  gap: var(--s-4);
  align-items: baseline;
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
}
.numbered > div:last-of-type { border-bottom: 1px solid var(--rule); }
.numbered p { color: var(--fg); }
.numbered + .note,
.note {
  display: block;
  margin-top: var(--s-4);
  font-size: var(--step--2);
  line-height: 1.6;
  color: var(--fg-faint);
  max-width: 52ch;
}

/* --- 18. Tiles ---------------------------------------------------------- */

.tiles { display: grid; gap: 1px; background: var(--rule); }
@media (min-width: 700px)  { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--bg);
  padding: var(--s-6) var(--s-5);
  display: grid; gap: var(--s-3); align-content: start;
  transition: background var(--t-3) var(--e-out);
}
.tile:hover { background: var(--surface); }
.tile h3 { font-size: var(--step-1); letter-spacing: 0.02em; }
.tile p { font-size: var(--step--1); color: var(--fg-muted); }

/* --- 18b. System diagram: scattered vendor vs. connected system --------- */

.sysdiag { display: grid; gap: var(--s-5); }
@media (min-width: 620px) { .sysdiag { grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: var(--s-4); } }

.sys-side {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  padding: var(--s-5) var(--s-4);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.sys-side > h3 {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--s-2);
}
.sys-chips { display: grid; gap: var(--s-2); position: relative; }

/* Left: four functions, adrift — dashed, misaligned, unconnected. */
.sys-loose span {
  justify-self: start;
  padding: var(--s-2) var(--s-3);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border: 1px dashed var(--rule-strong);
  transform: translateX(var(--x, 0)) rotate(var(--r, 0deg));
  transition: transform var(--t-4) var(--e-out) var(--d, 0ms);
}
.sys-loose span:nth-child(1) { --x: 4px;  --r: -1.6deg; }
.sys-loose span:nth-child(2) { --x: 34px; --r: 1.9deg; }
.sys-loose span:nth-child(3) { --x: 14px; --r: -1.2deg; }
.sys-loose span:nth-child(4) { --x: 46px; --r: 2.2deg; }

/* Right: the same four, snapped onto one spine. */
.sys-joined { padding-left: var(--s-5); }
.sys-joined::before {
  content: "";
  position: absolute;
  left: 5px; top: 10px; bottom: 10px;
  width: 1px;
  background: var(--accent);
  transform-origin: top center;
  transition: transform var(--t-5) var(--e-out) 260ms;
}
.anim .sys-joined::before { transform: scaleY(0); }
.anim .reveal.is-in .sys-joined::before { transform: scaleY(1); }
.sys-joined span {
  position: relative;
  padding: var(--s-2) var(--s-3);
  font-size: var(--step--2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--rule-accent);
  background: var(--bg);
  transition:
    transform var(--t-4) var(--e-out) var(--d, 0ms),
    opacity var(--t-3) var(--e-out) var(--d, 0ms);
}
.anim .sys-joined span { transform: translateX(18px); opacity: 0; }
.sys-joined span::before {
  content: "";
  position: absolute;
  left: calc(var(--s-5) * -1 + 1px);
  top: 50%;
  width: 13px; height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
}
.reveal.is-in .sys-joined span { transform: none; opacity: 1; }

.sys-arrow {
  justify-self: center;
  align-self: center;
  display: grid;
  place-items: center;
  color: var(--accent);
  padding: var(--s-2);
  transform: rotate(90deg);
}
@media (min-width: 620px) { .sys-arrow { transform: none; } }

.sys-out {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  font-size: var(--step--2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- 18c. Loop ring ----------------------------------------------------- */

.loop-wrap { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .loop-wrap { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); } }

.ring { position: relative; width: min(300px, 78vw); justify-self: center; aspect-ratio: 1; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring .ring-track { fill: none; stroke: var(--rule); stroke-width: 1; }
.ring .ring-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1800ms var(--e-out) 200ms;
}
.anim .ring .ring-arc { stroke-dasharray: 534; stroke-dashoffset: 534; }
.anim .reveal.is-in .ring .ring-arc { stroke-dashoffset: 0; }
.ring .ring-node { fill: var(--bg); stroke: var(--accent); stroke-width: 1.5; }
.ring .ring-hub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  fill: var(--fg);
  text-anchor: middle;
  dominant-baseline: central;
  letter-spacing: 2px;
}
.ring .ring-label {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 1.6px;
  fill: var(--fg-muted);
  text-anchor: middle;
  dominant-baseline: central;
}
.ring .ring-num {
  font-family: var(--font-mono);
  font-size: 8.5px;
  fill: var(--accent);
  text-anchor: middle;
  dominant-baseline: central;
}
.ring .ring-node { r: 11; }
/* A marker travelling the loop: rotate the group, never the label. */
.ring-marker { transform-origin: 130px 130px; animation: orbit 14s linear infinite; }
.ring-marker circle { fill: var(--accent); }
@keyframes orbit { to { transform: rotate(360deg); } }
.ring.is-paused .ring-marker { animation-play-state: paused; }

.loop-steps { display: grid; }
.loop-step {
  display: grid;
  grid-template-columns: 4ch 1fr;
  gap: var(--s-4);
  align-items: baseline;
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
  transition: background var(--t-2) var(--e-out);
}
.loop-step:last-child { border-bottom: 1px solid var(--rule); }
.loop-step h3 { font-size: var(--step-1); }
.loop-step p { font-size: var(--step--1); color: var(--fg-muted); margin-top: 2px; }

/* --- 18d. Pain glyphs --------------------------------------------------- */

.glyph { color: var(--flag); flex: none; }
.glyph rect, .glyph circle, .glyph path, .glyph line { transition: transform var(--t-4) var(--e-out); }

/* --- 19. Fit block ------------------------------------------------------ */

/* Oxblood block: its own token scope, so children need no overrides. */
.fit {
  --bg:          var(--oxblood);
  --surface:     #6B1A22;
  --fg:          var(--bone);
  --fg-muted:    color-mix(in srgb, var(--bone) 84%, transparent);
  --fg-faint:    color-mix(in srgb, var(--bone) 70%, transparent);
  --accent:      var(--bone);
  --on-accent:   var(--oxblood);
  --rule:        color-mix(in srgb, var(--bone) 26%, transparent);
  --rule-strong: color-mix(in srgb, var(--bone) 44%, transparent);
  --rule-accent: color-mix(in srgb, var(--bone) 46%, transparent);
  --btn-base-bg: var(--bone);
  --btn-base-fg: var(--oxblood);

  background: var(--bg);
  color: var(--fg);
  padding: var(--s-7) var(--s-5);
  display: grid;
  gap: var(--s-6);
}
/* Space the block's own columns instead of relying on inline margins that were
   really clearing the removed kicker. */
.fit > div { display: grid; gap: var(--s-4); align-content: start; }
.fit h2 { max-width: 16ch; }
.fit p { color: var(--fg-muted); max-width: 48ch; }
.fit-note {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
}
@media (min-width: 900px) {
  .fit { grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 6vw, 96px); padding: var(--s-9) var(--s-8); }
}

.fit-list { display: grid; gap: 0; }
.fit-list li {
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
  line-height: 1.45;
}
.fit-list li:last-child { border-bottom: 1px solid var(--rule); }
.fit-list .num { color: var(--fg-faint); }

/* --- 20. FAQ ------------------------------------------------------------ */

.faq-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
  .faq-head { position: sticky; top: 120px; }
}
.faq-head { display: grid; gap: var(--s-4); }
.faq-head h2 { max-width: 15ch; }

.faq-list { display: grid; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-of-type { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: start;
  padding-block: var(--s-5);
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.012em;
  font-size: var(--step-1);
  line-height: 1.35;
  transition: color var(--t-2) var(--e-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary i {
  position: relative;
  width: 16px; height: 16px;
  margin-top: 0.4em;
  flex: none;
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute; inset: 50% 0 auto;
  height: 1.5px; background: var(--accent);
  transition: transform var(--t-3) var(--e-out);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-answer { overflow: hidden; }
.faq-answer p {
  padding-bottom: var(--s-5);
  padding-right: var(--s-6);
  color: var(--fg-muted);
  max-width: 62ch;
}
.faq-cta { margin-top: var(--s-6); }

/* --- 21. Final CTA + footer --------------------------------------------- */

.final { position: relative; overflow: hidden; }
.final .aura-a { opacity: .38; }
.final-grid { display: grid; gap: var(--s-6); position: relative; }
.final h2 { font-size: var(--step-5); max-width: 12ch; }
.final-side { display: grid; gap: var(--s-5); align-content: end; }
.final-side .btn { justify-self: start; }
.final-side small { font-size: var(--step--2); color: var(--fg-muted); max-width: 42ch; }
@media (min-width: 900px) {
  .final-grid { grid-template-columns: repeat(2, 1fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
}

.footer { padding-block: var(--s-7) max(var(--s-6), env(safe-area-inset-bottom)); }
.footer-top { display: grid; gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7); } }
.footer-brand { display: grid; gap: var(--s-4); align-content: start; }
.footer-lockup { display: block; }
.footer-lockup img { width: clamp(150px, 22vw, 210px); }
.footer-lockup-stacked { display: grid; gap: var(--s-3); justify-items: start; }
.footer-lockup-stacked img { width: clamp(128px, 19vw, 176px); }
.footer-lockup-stacked b {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.footer-brand p { font-size: var(--step--1); color: var(--fg-muted); max-width: 34ch; }
.footer-col { display: grid; gap: var(--s-3); align-content: start; }
.footer-col h3 {
  font-family: var(--font-body);
  font-size: var(--step--2); font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint);
  margin-bottom: var(--s-2);
}
.footer-col a, .footer-col span {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--step--1); color: var(--fg-muted);
  transition: color var(--t-2) var(--e-out);
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: grid; gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: var(--step--2);
  color: var(--fg-muted);
}
@media (min-width: 700px) { .footer-bottom { grid-template-columns: 1fr auto; align-items: center; } }

/* Motion opt-in. A slim strip at the very top of the fixed header, shown ONLY to
   visitors whose system asks for reduced motion. Kept to one line so it reads as a
   deliberate system notice rather than a broken banner. */
.motion-banner { display: none; }
@media (prefers-reduced-motion: reduce) {
  .motion-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--s-3);
    min-height: 38px;
    padding: 0 var(--s-4);
    background: color-mix(in srgb, var(--accent) 14%, var(--bg));
    border-bottom: 1px solid var(--rule-accent);
  }
  /* Reserve exactly the height the strip occupies (mar.js publishes it). */
  .hero { padding-top: calc(clamp(120px, 26vw, 190px) + var(--banner-h, 38px)); }
  html { scroll-padding-top: calc(96px + var(--banner-h, 38px)); }
}
.motion-banner p {
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.motion-banner p::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin-inline-end: var(--s-2);
  background: var(--accent);
  vertical-align: middle;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 38px;
  padding: 0 var(--s-2);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  touch-action: manipulation;
  transition: color var(--t-2) var(--e-out);
}
.motion-toggle:hover { color: var(--fg); }

/* --- 22. Floating WhatsApp --------------------------------------------- */

.wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: 0 var(--s-4);
  background: var(--fg);
  color: var(--bg);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lift);
  transition: opacity var(--t-3) var(--e-out), transform var(--t-3) var(--e-out), background var(--t-2) var(--e-out);
}
.anim .wa { opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none; }
.anim .wa.is-in { opacity: 1; transform: none; pointer-events: auto; }
.wa:hover { background: var(--accent); color: var(--on-accent); }
.wa svg { width: 20px; height: 20px; flex: none; }
.wa b { display: none; font-weight: 500; }
@media (min-width: 640px) { .wa b { display: inline; } }

/* --- 23. Progress bar --------------------------------------------------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: calc(var(--z-header) + 1);
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
  pointer-events: none;
}

/* --- 24. Service hero (interior pages) ---------------------------------- */

.back-link {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px;
  font-size: var(--step--1); letter-spacing: 0.06em;
  color: var(--fg-muted);
  transition: color var(--t-2) var(--e-out), gap var(--t-2) var(--e-out);
}
.back-link:hover { color: var(--fg); gap: var(--s-3); }

.crumb {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  font-size: var(--step--1);
  color: var(--fg-faint);
}
.crumb a {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--fg-muted);
  transition: color var(--t-2) var(--e-out);
}
.crumb a:hover { color: var(--fg); }
.crumb b { font-weight: 500; color: var(--fg); }

/* --- 25. Compare chart (Content Growth) --------------------------------- */

.compare-charts { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 900px) { .compare-charts { grid-template-columns: 1fr auto 1fr; gap: var(--s-5); align-items: center; } }

.vs {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-2);
  color: var(--fg-faint);
  letter-spacing: 0.08em;
}

.chart-card {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
  align-content: start;
}
.chart-card.is-mar { box-shadow: inset 0 0 0 1px var(--rule-accent); background: var(--surface); }
.chart-owner {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3);
  align-items: center;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule);
}
.chart-owner b { display: block; font-size: var(--step--1); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.chart-owner small { display: block; font-size: var(--step--2); color: var(--fg-faint); }
.chart-card.is-mar .chart-owner b { color: var(--accent); }
.chart-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); justify-content: space-between;
  font-size: var(--step--2); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint);
}
.chart-card h3 { font-size: var(--step-1); max-width: 22ch; }

.bars {
  position: relative;
  display: flex; align-items: flex-end; gap: 6px;
  height: 132px;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule);
}
.bars i {
  flex: 1;
  height: var(--h, 40%);
  background: color-mix(in srgb, var(--fg) 32%, transparent);
  transform-origin: bottom center;
  transition: transform 820ms var(--e-out) var(--d, 0ms);
}
.anim .bars i { transform: scaleY(0); }
.is-mar .bars i { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 34%, transparent), var(--accent)); }
.reveal.is-in .bars i, .chart-card.is-in .bars i { transform: scaleY(1); }
.bars em {
  position: absolute; left: 0; bottom: 6px;
  font-style: normal; font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-faint);
}
.chart-signals { display: grid; gap: var(--s-2); }
.chart-signals span {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: center;
  font-size: var(--step--1); color: var(--fg-muted);
}
.chart-signals i { width: 5px; height: 5px; background: color-mix(in srgb, var(--fg) 38%, transparent); }
.is-mar .chart-signals i { background: var(--accent); }

.model-note {
  margin-top: var(--s-5);
  font-size: var(--step--2); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
}

/* --- 26. Basic → High-end comparison ------------------------------------ */

.compare {
  --split: 54%;
  position: relative;
  container-type: inline-size;
  /* Deliberately NOT content-visibility:auto. Skipping the subtree makes hit-testing
     and getBoundingClientRect unreliable near the viewport boundary, which made the
     drag work only sometimes. The browser mock below is static, so it keeps it. */
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 700px)  { .compare { aspect-ratio: 16 / 11; } }
@media (min-width: 1100px) { .compare { aspect-ratio: 16 / 9; } }

.compare-view { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; }
.compare-basic {
  background: #FBFBFB;
  color: #333;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  z-index: 2;
}
.compare-lux { background: var(--ink); color: var(--bone); z-index: 1; }

.mock-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 2cqw;
  padding: 2.6cqw 3.4cqw;
  font-size: 1.5cqw;
  white-space: nowrap;
}
.compare-basic .mock-nav { border-bottom: 1px solid #E2E2E2; font-family: var(--font-body); }
.compare-basic .mock-nav b { font-weight: 700; letter-spacing: .02em; color: #666; }
.compare-basic .mock-nav span { color: #888; }
.compare-lux .mock-nav { border-bottom: 1px solid var(--rule); }
.compare-lux .mock-nav b { font-family: var(--font-display); font-weight: 400; letter-spacing: .16em; font-size: 1.7cqw; }
.compare-lux .mock-nav span { color: var(--stone); letter-spacing: .18em; }

.mock-body { display: grid; gap: 3cqw; padding: 3.4cqw; align-content: center; }
@media (min-width: 700px) {
  .mock-body { grid-template-columns: 1.05fr .95fr; align-items: center; }
  /* Mirror the high-end side so its copy stays visible at the default split. */
  .compare-lux .mock-body { grid-template-columns: .95fr 1.05fr; }
  .compare-lux .mock-art  { order: 1; }
  .compare-lux .mock-copy { order: 2; }
}

.mock-copy { display: grid; gap: 1.6cqw; align-content: center; }
.mock-copy small { font-size: 1.25cqw; letter-spacing: .2em; text-transform: uppercase; }
.mock-copy strong { font-weight: 400; line-height: 1.06; }
.mock-copy p { font-size: 1.5cqw; line-height: 1.5; }
.mock-copy i {
  font-style: normal;
  justify-self: start;
  margin-top: 1cqw;
  padding: 1.4cqw 2.6cqw;
  font-size: 1.25cqw;
  letter-spacing: .14em;
}

.compare-basic .mock-copy small { color: #999; }
.compare-basic .mock-copy strong { font-family: var(--font-body); font-weight: 700; font-size: 3.4cqw; color: #3A3A3A; }
.compare-basic .mock-copy p { color: #7C7C7C; }
.compare-basic .mock-copy i { background: #DDD; color: #555; }

.compare-lux .mock-copy small { color: var(--accent); }
.compare-lux .mock-copy strong { font-family: var(--font-display); font-size: 4.6cqw; letter-spacing: -.02em; color: var(--bone); }
.compare-lux .mock-copy p { color: var(--fg-muted); max-width: 34ch; }
.compare-lux .mock-copy i { background: var(--oxblood); color: var(--bone); }

.mock-art { position: relative; display: grid; gap: 1.2cqw; }
.basic-photo {
  aspect-ratio: 4 / 3;
  background: repeating-conic-gradient(#DADADA 0 25%, #ECECEC 0 50%) 0 0 / 5cqw 5cqw;
  display: grid; place-items: center;
  font-size: 1.2cqw; letter-spacing: .16em; color: #9A9A9A;
  border: 1px solid #E2E2E2;
}
.mock-art > small { font-size: 1.15cqw; color: #A0A0A0; }

.lux-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 20% 15%, color-mix(in srgb, var(--oxblood) 60%, transparent), transparent 62%),
    linear-gradient(150deg, var(--ink-lift), #0A0908);
  box-shadow: inset 0 0 0 1px var(--rule);
  display: grid; align-content: space-between;
  padding: 2cqw;
}
.lux-photo small { font-size: 1.15cqw; letter-spacing: .2em; color: var(--stone); }
.lux-photo span { font-family: var(--font-display); font-size: 3.6cqw; line-height: 1; color: color-mix(in srgb, var(--bone) 40%, transparent); justify-self: end; }
.lux-proof {
  position: absolute; right: -1.5cqw; bottom: 12%;
  background: var(--bone); color: var(--ink);
  padding: 1.4cqw 2cqw;
  display: grid; gap: .2cqw;
  box-shadow: 0 2cqw 4cqw -2cqw rgba(0,0,0,.6);
}
.lux-proof small { font-size: 1.05cqw; letter-spacing: .18em; color: var(--fg-faint); }
.lux-proof b { font-family: var(--font-display); font-size: 2.4cqw; font-weight: 400; line-height: 1; }
.lux-proof span { font-size: 1.05cqw; letter-spacing: .12em; color: var(--fg-faint); }

.mock-foot { display: flex; gap: 1px; background: var(--rule); }
.mock-foot span {
  flex: 1;
  display: grid; gap: .4cqw;
  padding: 2.2cqw 3.4cqw;
  background: var(--ink);
  font-size: 1.25cqw;
}
.mock-foot small { color: var(--accent); letter-spacing: .16em; }
.mock-foot b { font-weight: 450; color: var(--bone); }

.compare-basic .mock-foot { background: #E8E8E8; }
.compare-basic .mock-foot span { background: #F4F4F4; }
.compare-basic .mock-foot i { width: 3.4cqw; height: 3.4cqw; background: #DCDCDC; margin-bottom: .6cqw; }
.compare-basic .mock-foot b { color: #555; font-weight: 700; }
.compare-basic .mock-foot small { color: #A2A2A2; letter-spacing: 0; }

.compare-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--split);
  width: 56px;
  margin-left: -28px;          /* the strip straddles the split line */
  z-index: 3;
  /* This element IS the drag handle. touch-action:none stops iOS from claiming
     the gesture for scrolling, which is what broke continuous dragging. */
  pointer-events: auto;
  touch-action: none;
  cursor: ew-resize;
  -webkit-tap-highlight-color: transparent;
}
@media (pointer: coarse) {
  /* Fingers miss a 56px strip often enough to feel broken. */
  .compare-divider { width: 88px; margin-left: -44px; }
}
.compare-divider::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--bone);
}
.compare-divider::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 6px 20px -6px rgba(0,0,0,.6);
  transition: transform var(--t-2) var(--e-out);
}
.compare.is-dragging .compare-divider::after { transform: translate(-50%, -50%) scale(1.1); }
.compare-divider i {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-style: normal;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -.06em;
}

.compare-tags {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: flex; justify-content: space-between;
  padding: 0;
  pointer-events: none;
}
.compare-tags span {
  padding: 8px 12px;
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.compare-tags span:first-child { background: #E8E8E8; color: #6B6B6B; }
.compare-tags span:last-child { background: var(--oxblood); color: var(--bone); }

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  margin: 0;
  opacity: 0;
  /* Hit testing OFF. Otherwise a touch lands on the native range thumb — which is
     invisible here — and iOS only responds to taps instead of dragging.
     Keyboard focus and arrow keys are unaffected by pointer-events. */
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.compare-range:focus-visible { opacity: 1; outline: 2px solid var(--bone); outline-offset: -4px; }

.compare-help {
  margin-top: var(--s-4);
  font-size: var(--step--2);
  letter-spacing: .1em;
  color: var(--fg-faint);
  text-align: center;
}

.compare-points { display: grid; gap: 1px; background: var(--rule); margin-top: var(--s-6); }
@media (min-width: 700px) { .compare-points { grid-template-columns: repeat(3, 1fr); } }
.compare-points > div {
  background: var(--bg);
  padding: var(--s-5);
}
.compare-points p { font-size: var(--step--1); }

/* Narrow container: cqw type would drop to ~5px, so rescale and drop the art
   column. Each side still reads as "plain page" vs "designed page" at 375px. */
@container (max-width: 560px) {
  .mock-nav { font-size: 2.4cqw; padding: 3.4cqw; }
  .compare-lux .mock-nav b { font-size: 2.8cqw; }
  .mock-body { grid-template-columns: 1fr; padding: 4cqw 3.4cqw; gap: 2.4cqw; }
  .mock-art { display: none; }
  /* Each side's copy is anchored to its own half of the stage, so at a mid
     split you read the basic headline on the left and the MAR one on the right
     instead of one hiding behind the other. */
  .mock-copy { gap: 2.4cqw; max-width: 60%; }
  .compare-lux .mock-copy { margin-left: auto; text-align: right; }
  .compare-lux .mock-copy i { justify-self: end; }
  .mock-copy small { font-size: 2.3cqw; letter-spacing: .12em; }
  .mock-copy p { font-size: 2.7cqw; }
  .mock-copy i { font-size: 2.3cqw; padding: 2.6cqw 4cqw; }
  .compare-basic .mock-copy strong { font-size: 6cqw; }
  .compare-lux .mock-copy strong { font-size: 7.4cqw; }
  .mock-foot span { padding: 3cqw 3.4cqw; font-size: 2.2cqw; }
  .compare-basic .mock-foot i { width: 5cqw; height: 5cqw; }
}

/* --- 27. Browser mock --------------------------------------------------- */

.browser {
  container-type: inline-size;
  /* No content-visibility here. `contain-intrinsic-size: auto 420px` applies that
     length to BOTH axes, so while the element was skipped it laid out 420px WIDE
     and pushed the page past the viewport — content then clipped on phones. The
     saving was never worth it; the same hazard already cost us the slider. */
  background: var(--ink-raise);
  box-shadow: inset 0 0 0 1px var(--rule), 0 40px 80px -50px rgba(0,0,0,.9);
}
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); flex: none; }
.browser-bar span {
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--stone);
  letter-spacing: .04em;
}
.browser-page { padding: 5cqw; display: grid; gap: 4cqw; }
.browser-page .b-nav {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.7cqw; letter-spacing: .16em; color: var(--stone);
  padding-bottom: 2.5cqw; border-bottom: 1px solid var(--rule);
}
.browser-page .b-nav b { font-family: var(--font-display); font-size: 2.4cqw; color: var(--bone); letter-spacing: .1em; }
.browser-page .b-hero { display: grid; gap: 2cqw; }
.browser-page .b-hero small { font-size: 1.5cqw; letter-spacing: .22em; color: var(--accent); }
.browser-page .b-hero strong {
  font-family: var(--font-display); font-weight: 400;
  font-size: 6cqw; line-height: 1.02; letter-spacing: -.02em; color: var(--bone);
  max-width: 16ch;
}
.browser-page .b-hero em {
  font-style: normal; justify-self: start; margin-top: 1cqw;
  background: var(--oxblood); color: var(--bone);
  padding: 1.6cqw 3cqw; font-size: 1.5cqw; letter-spacing: .14em;
}
.browser-page .b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); }
.browser-page .b-cards i { aspect-ratio: 3 / 2; background: var(--ink); display: block; }

/* --- 28. Conversion path graphic ---------------------------------------- */

.path {
  position: relative;
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.path-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--step--2); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-faint);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule);
}
.path-nodes { display: grid; gap: 0; position: relative; }
.path-node {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-4);
  border-top: 1px solid var(--rule);
}
.path-node:first-child { border-top: 0; }
.path-node b { font-size: var(--step--1); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.path-node .track { position: relative; height: 1px; background: var(--rule); overflow: hidden; }
.path-node .track::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 900ms var(--e-out) var(--d, 0ms);
}
.anim .path-node .track::after { transform: scaleX(0); }
.anim .reveal.is-in .path-node .track::after { transform: scaleX(1); }
.path-node em {
  font-style: normal; font-family: var(--font-mono); font-size: var(--step--2);
  color: var(--accent); letter-spacing: .08em;
}

/* --- 29. Utilities ------------------------------------------------------ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.stack-lg { display: grid; gap: var(--s-6); }
.stack-md { display: grid; gap: var(--s-5); }
.mt-lg { margin-top: var(--s-7); }
.arrow { display: inline-block; line-height: 1; }

/* --- 29b. Small-screen motion budget ------------------------------------ */
/* Phones have far less GPU memory than a Mac or iPad. Same choreography,
   shorter and shallower, so fewer layers are alive at once. */
@media (max-width: 767px) {
  :root { --t-4: 520ms; --t-5: 760ms; }
  .reveal { transform: translate3d(0, 12px, 0); }
  .split .w > span { transition-duration: 620ms; }
  .ticker { --ticker-speed: 42s; }
}

/* --- 30. Reduced motion ------------------------------------------------- */

/* "Reduce" means remove MOTION, not remove all feedback. What triggers
   vestibular symptoms is movement: translation, scale, parallax, looping or
   orbiting motion. A plain opacity cross-fade is explicitly the recommended
   substitute (Apple HIG; WCAG 2.3.3 Animation from Interactions).

   So below: every moving thing is killed and pinned to its final state, and a
   gentle fade is put back. The page still breathes for visitors who have the
   setting on, without ever moving anything. */
/* Applies when the visitor's system asks for reduced motion AND they have not
   explicitly opted into full motion for this site (the footer control sets
   data-motion="full"). The default always honours the system setting. */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) { scroll-behavior: auto; }

  /* Kill everything first... */
  :root:not([data-motion="full"]) *,
  :root:not([data-motion="full"]) *::before,
  :root:not([data-motion="full"]) *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  /* ...then restore the one safe channel: opacity, with no displacement. */
  :root:not([data-motion="full"]) .anim .reveal {
    opacity: 0;
    transform: none !important;
    transition: opacity 400ms ease var(--reveal-delay, 0ms) !important;
  }
  :root:not([data-motion="full"]) .anim .reveal.is-in { opacity: 1; }

  :root:not([data-motion="full"]) .anim .split .w { overflow: visible; }
  :root:not([data-motion="full"]) .anim .split .w > span {
    opacity: 0;
    transform: none !important;
    transition: opacity 360ms ease var(--w-delay, 0ms) !important;
  }
  :root:not([data-motion="full"]) .anim .split.is-in .w > span { opacity: 1; }

  /* Anything that moves, grows, draws, orbits or loops: off, final state. */
  :root:not([data-motion="full"]) .anim .reveal-rule { transform: scaleX(1) !important; }
  :root:not([data-motion="full"]) .anim .spark i,
  :root:not([data-motion="full"]) .anim .bars i { transform: scaleY(1) !important; }
  :root:not([data-motion="full"]) .anim .path-node .track::after { transform: scaleX(1) !important; }
  :root:not([data-motion="full"]) .anim .ring .ring-arc { stroke-dashoffset: 0 !important; }
  :root:not([data-motion="full"]) .anim .sys-loose span { transform: none !important; }
  :root:not([data-motion="full"]) .anim .sys-joined span { transform: none !important; opacity: 1 !important; }
  :root:not([data-motion="full"]) .anim .sys-joined::before { transform: scaleY(1) !important; }
  :root:not([data-motion="full"]) .anim .wa { opacity: 1 !important; transform: none !important; pointer-events: auto; }
  :root:not([data-motion="full"]) .anim .curtain { display: none; }

  :root:not([data-motion="full"]) .ticker-track { animation: none !important; transform: none !important; }
  :root:not([data-motion="full"]) .ticker { overflow-x: auto; }
  :root:not([data-motion="full"]) .aura,
  :root:not([data-motion="full"]) .has-drift .aura-a,
  :root:not([data-motion="full"]) .has-drift .aura-b { animation: none !important; }
  :root:not([data-motion="full"]) .live i { animation: none !important; opacity: 1; }
  :root:not([data-motion="full"]) .scroll-cue i { animation: none !important; transform: scaleY(1); }
  :root:not([data-motion="full"]) .ring-marker { animation: none !important; }
}

/* --- 31. Print ---------------------------------------------------------- */

@media print {
  .header, .drawer, .wa, .progress, .curtain, .aura, .ticker { display: none !important; }
  body { background: #fff; color: #000; }
  .reveal, .split .w > span { opacity: 1 !important; transform: none !important; }
  .section-dark, .fit { background: #fff !important; color: #000 !important; }
  .section-dark h1, .section-dark h2, .section-dark h3, .fit h2 { color: #000 !important; }
  .faq-answer { display: block !important; }
}
