/* ==========================================================================
   Autorea - Real trust in AI.
   High-fidelity design demo. Not a production site.

   Shape system (locked):
     - interactive (buttons, pills, nav)  -> border-radius 999px
     - surfaces (panels, cards, figures)  -> border-radius 14px  (echoes the mark)
     - data plots, rules, axes            -> border-radius 0
   Colour system (locked): cream / sage / mid / fir. No other accent.
   ========================================================================== */

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

:root {
  /* brand */
  --cream:  #ffffff;
  --sage:   #A8BFA0;
  --mid:    #7C9873;
  --fir:    #2F4A3A;
  --white:  #FFFFFF;

  /* interaction steps on fir — the only permitted darker/lighter variants */
  --fir-deep: #1F3A2C;
  --fir-lift: #3A5C48;

  /* derived, same hue family only */
  --cream-deep: #f1f5f2;
  --cream-light: #fbfdfb;
  --paper-veil: rgba(255, 255, 255, 0.72);

  /* surface ladder. Cream is the page. Anything that needs to sit "above" the
     page steps up this ladder — never to #FFFFFF, which reads as a foreign
     surface against the warm ground. --surface-3 is the highest tone and is
     what replaces white in cards, inputs, media frames and diagram nodes. */
  --surface-0: var(--cream-deep);   /* sunken / recessed */
  --surface-1: var(--cream);        /* page ground */
  --surface-2: var(--cream-light);  /* raised panel */
  --surface-3: #ffffff;             /* highest: cards, inputs, diagram nodes */
  --sage-veil: rgba(168, 191, 160, 0.085);
  --rule:       rgba(47, 74, 58, 0.16);
  --rule-soft:  rgba(47, 74, 58, 0.09);
  /* text tiers. Measured on cream and on white: --ink-2 >= 6.6:1,
     --ink-3 >= 5.2:1. Hierarchy is carried by size and tracking, not by
     dropping contrast below AA. */
  --ink-2:      rgba(47, 74, 58, 0.92);
  --ink-3:      rgba(47, 74, 58, 0.82);
  /* on fir: 6.7:1 / 4.6:1 */
  --on-fir-2:   rgba(255, 255, 255, 0.9);
  --on-fir-3:   rgba(255, 255, 255, 0.7);

  /* shared cream-glass material: navigation is the visual source of truth */
  --surface-glass-bg:
    radial-gradient(115% 170% at 8% -55%, rgba(255, 255, 255, 0.98) 0 34%, transparent 62%),
    radial-gradient(90% 150% at 104% 130%, rgba(168, 191, 160, 0.22), transparent 62%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.78), rgba(239, 246, 241, 0.48));
  --surface-glass-border: 1px solid rgba(47, 74, 58, 0.18);
  --surface-glass-radius: var(--r-2xl);
  --surface-glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(168, 191, 160, 0.18),
    0 18px 44px -30px rgba(47, 74, 58, 0.55);
  --surface-glass-filter: blur(22px) saturate(155%);
  --surface-glass-inner-bg:
    radial-gradient(95% 56% at 3% 0, rgba(255, 255, 255, 0.98), transparent 62%),
    radial-gradient(85% 65% at 100% 100%, rgba(168, 191, 160, 0.17), transparent 72%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(241, 247, 243, 0.5));
  --surface-glass-inner-border: 1px solid rgba(47, 74, 58, 0.15);
  --surface-glass-inner-radius: var(--r-xl);
  --surface-glass-inner-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(168, 191, 160, 0.17),
    0 22px 54px -38px rgba(47, 74, 58, 0.5);

  /* component aliases */
  --nav-glass-bg: var(--surface-glass-bg);
  --nav-glass-border: var(--surface-glass-border);
  --nav-glass-radius: var(--surface-glass-radius);
  --nav-glass-shadow: var(--surface-glass-shadow);

  /* type */
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "JetBrains Mono", monospace;

  --fs-display: clamp(3.6rem, 12.5vw, 12rem);
  --fs-h1:      clamp(2.35rem, 5.6vw, 4.9rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 3.15rem);
  --fs-h3:      clamp(1.35rem, 2vw, 1.85rem);
  --fs-num-xl:  clamp(4.5rem, 16vw, 14rem);
  --fs-num:     clamp(3.4rem, 8vw, 7.5rem);
  --fs-num-sm:  clamp(2.2rem, 4.4vw, 3.6rem);
  --fs-lead:    clamp(1.125rem, 1.5vw, 1.5rem);
  --fs-body:    clamp(1rem, 0.95vw, 1.125rem);
  --fs-small:   0.875rem;
  --fs-label:   0.75rem;
  /* 11px is the floor. Metadata below this stops being readable at arm's
     length and starts reading as texture. Nothing in the site may go under it. */
  --fs-micro:   0.6875rem;

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

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 62ch;
  --maxw: 1560px;

  /* Two section rhythms, and only two. "Editorial" is the marketing cadence
     (homepage, agency, contact). "Doc" is the tighter cadence long-form pages
     need — services and the AI-in-Business research pages — so a 12-section
     page doesn't become a scroll marathon. Every page family points at one of
     these instead of inventing its own clamp(). */
  --section-y:       clamp(80px, 11vw, 176px);
  --section-y-doc:   clamp(56px, 7vw, 104px);
  --section-hero-y:  clamp(64px, 9vw, 110px);
  --section-hero-b:  clamp(48px, 6vw, 72px);
  --section-cta-y:   clamp(64px, 10vw, 120px);

  /* radius ladder. The header comment locks the intent (interactive -> pill,
     surfaces -> rounded, data -> square); these are the only permitted values
     so pages stop inventing 3px / 5px / 10px / 12px / 20px one-offs. */
  --r-xs:   4px;    /* ticks, code marks, tiny swatches */
  --r-sm:   8px;    /* badges, chips, inputs inside a panel */
  --r-md:   14px;   /* small panels, media frames — echoes the mark */
  --r-lg:   18px;   /* standard cards and panels */
  --r-xl:   24px;   /* inner glass surface */
  --r-2xl:  33px;   /* outer glass shell — the nav is the source of truth */
  --r-pill: 999px;  /* anything interactive */

  /* control geometry. One CTA hierarchy for the whole site. */
  --ctl-h:      50px;  /* primary + secondary CTA */
  --ctl-h-sm:   40px;  /* compact controls, inline submits */
  --ctl-h-chip: 36px;  /* filter chips, tabs, toggles */
  --ctl-pad-x:    26px;
  --ctl-pad-x-sm: 20px;
  --ctl-pad-x-lg: 34px; /* CTAs that carry a travelling arrow */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 380ms;

  /* layers */
  /* the nav floats; anchored sections must clear it by the same amount everywhere */
  --nav-clear: 110px;

  --z-canvas: 0;
  --z-content: 10;
  --z-nav: 60;
  --z-grain: 90;
}


/* ---------- 1b. Phone tier ---------------------------------------------------
   The clamp() minimums above are desktop values. Below ~620px the vw term never
   exceeds them, so the minimum becomes the phone size — which is how h1 ended up
   at 37.6px and the stat numbers at 72px on a 375px screen. These are the same
   roles retuned for a phone; nothing here reaches a wider viewport.
   -------------------------------------------------------------------------- */
@media (max-width: 620px) {
  :root {
    --fs-display: 2.5rem;    /* 40 */
    --fs-h1:      1.875rem;  /* 30 */
    --fs-h2:      1.5rem;    /* 24 */
    --fs-h3:      1.125rem;  /* 18 */
    --fs-num-xl:  2.5rem;    /* 40 */
    --fs-num:     2.25rem;   /* 36 */
    --fs-num-sm:  1.625rem;  /* 26 */
    --fs-lead:    1.0625rem; /* 17 */
  }
}


/* ---------- 2. Reset & base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}

/* the nav floats over the page, so anchor targets must clear it */
[id] { scroll-margin-top: var(--nav-clear); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--fir);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(47, 74, 58, 0.12);
}

.display, .h1, .h2, .h3, .svc__lede, .stat__claim, .problem__claim { text-wrap: balance; }
.body, .head__intro, .hist__text, .svc__desc, .mission__text { text-wrap: pretty; }

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--fir);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 12px 20px; background: var(--fir); color: var(--cream);
  border-radius: var(--r-pill); transform: translateY(-200%);
  transition: transform 200ms var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

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

.display {
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.h1 { font-size: var(--fs-h1); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.06; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); font-weight: 500; line-height: 1.22; letter-spacing: -0.02em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  letter-spacing: -0.012em;
  max-width: 34ch;
  color: var(--fir);
}

.body { max-width: var(--measure); color: var(--ink-2); }
.body + .body { margin-top: var(--s-3); }

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  line-height: 1.4;
  color: var(--ink-3);
}
.label--strong { color: var(--fir); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  display: block;
  margin-bottom: var(--s-4);
}

.source {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  transition: color var(--dur) var(--ease);
}
.source::before { content: "Source "; color: var(--ink-3); opacity: 0.85; }

.num {
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.8;
  font-variant-numeric: tabular-nums;
  display: block;
}
.num--xl { font-size: var(--fs-num-xl); }
.num--lg { font-size: var(--fs-num); }
.num--md { font-size: var(--fs-num-sm); }

.note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
  color: var(--ink-3);
  border-inline-start: 1px solid var(--rule);
  padding-inline-start: var(--s-3);
  max-width: 46ch;
}

/* Monospace is for labels, identifiers and short technical asides. Once a note
   becomes an explanatory paragraph it has to read as prose, so it keeps the
   rule and the muted tone but returns to the body face and body measure. */
.note--prose {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: 0;
  line-height: 1.65;
  max-width: 62ch;
}

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

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

.section { padding-block: clamp(80px, 11vw, 176px); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.section--rule { border-top: 1px solid var(--rule); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}

@media (max-width: 900px) {
  .grid12 { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- 5. Grain + canvases ---------- */

.site-field {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.96;
  mix-blend-mode: multiply;
}

.grain {
  position: fixed; inset: 0; z-index: var(--z-grain);
  pointer-events: none; opacity: 0.42; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- 6. Navigation ---------- */

.nav {
  position: fixed;
  top: clamp(12px, 1.6vw, 22px);
  right: 0;
  left: 0;
  margin-inline: auto;
  z-index: var(--z-nav);
  width: min(calc(100% - 2 * var(--gutter)), var(--maxw));
  display: flex;
  align-items: center;
  gap: var(--s-4);
  height: 66px;
  padding: 0 8px 0 22px;
  border: var(--nav-glass-border);
  border-radius: var(--nav-glass-radius);
  background: var(--nav-glass-bg);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--nav-glass-shadow);
}

.nav__brand { display: flex; align-items: center; gap: 10px; flex: none; padding: 8px 0; min-height: 44px; }
.nav__mark { width: 70px; height: 78px; color: var(--fir); }
.nav__word {
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.03em;
}

.nav__chapter {
  display: inline-grid;
  grid-template-columns: auto minmax(0, auto);
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--rule);
  color: var(--fir);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav__chapter-number {
  color: var(--mid);
}

.nav__chapter-name {
  overflow: hidden;
  max-width: 15ch;
  text-overflow: ellipsis;
}

.nav__chapter.is-updated .nav__chapter-name {
  animation: nav-chapter-in 380ms var(--ease) both;
}

@keyframes nav-chapter-in {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 30px);
  margin-inline: auto;
  flex: none;
}
.nav__link,
.nav-menu__trigger {
  font-size: 0.875rem; letter-spacing: -0.01em; color: var(--ink-2);
  padding: 11px 4px; position: relative; white-space: nowrap;
  transition: color 220ms var(--ease);
}
.nav-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav__link::after,
.nav-menu__trigger::after {
  content: ""; position: absolute; left: 4px; right: calc(100% - 4px); bottom: 7px;
  height: 1px; background: var(--fir); transition: right 320ms var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav-menu__trigger:hover::after,
.nav-menu__trigger:focus-visible::after,
.nav-menu.is-open .nav-menu__trigger::after { right: 4px; }
.nav__link:hover,
.nav-menu__trigger:hover,
.nav-menu.is-open .nav-menu__trigger { color: var(--fir); }

.nav-menu { position: relative; }
.nav-menu__plus {
  display: inline-flex;
  width: 10px;
  height: 10px;
  transition: transform 260ms var(--ease);
}
.nav-menu__plus svg {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-menu.is-open .nav-menu__plus,
.nav__mobile-toggle[aria-expanded="true"] .nav-menu__plus { transform: rotate(180deg); }

.nav-menu__panel {
  position: absolute;
  top: 100%;
  left: 50%;
  width: min(540px, calc(100vw - 32px));
  padding-top: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 10px) scale(0.96);
  transform-origin: 50% 0;
  transition:
    opacity 220ms var(--ease),
    transform 320ms var(--ease),
    visibility 0s linear 320ms;
}
.nav-menu--wide .nav-menu__panel { width: min(660px, calc(100vw - 32px)); }
.nav-menu.is-open .nav-menu__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  transition-delay: 0s;
}

.nav-menu__surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.78fr) minmax(300px, 1.42fr);
  gap: 10px;
  padding: 12px;
  overflow: hidden;
  border: var(--nav-glass-border);
  border-radius: var(--nav-glass-radius);
  background: var(--nav-glass-bg);
  backdrop-filter: var(--surface-glass-filter);
  -webkit-backdrop-filter: var(--surface-glass-filter);
  box-shadow:
    var(--nav-glass-shadow),
    0 28px 70px -36px rgba(47, 74, 58, 0.66);
}
.nav-menu__surface--full { grid-template-columns: 1fr; }
.nav-menu__intro {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  overflow: hidden;
  padding: 20px;
  border: var(--nav-glass-border);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.82);
  color: var(--fir);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 12px 28px -26px rgba(47, 74, 58, 0.72);
  transition: transform 220ms var(--ease);
}
.nav-menu__intro:hover,
.nav-menu__intro:focus-visible { transform: translateY(-2px); }
.nav-menu__intro strong {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.nav-menu__intro > span:last-child {
  max-width: 28ch;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
}
.nav-menu__kicker {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 24px;
  padding: 4px 8px;
  border: var(--nav-glass-border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.68);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fir);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.nav-menu__items {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 2px;
}
.nav-menu__items--solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-menu__items a {
  position: relative;
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 10px 12px;
  border: var(--nav-glass-border);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}
.nav-menu__items a::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(124, 152, 115, 0.58);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.82),
    0 2px 6px rgba(47, 74, 58, 0.16);
  opacity: 0.62;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.nav-menu__items a:hover,
.nav-menu__items a:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 12px 26px -24px rgba(47, 74, 58, 0.72);
  transform: translateY(-2px);
}
.nav-menu__items a:hover::after,
.nav-menu__items a:focus-visible::after {
  opacity: 1;
  transform: scale(1.4);
}
.nav-menu__items strong {
  color: var(--fir);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.nav-menu__items span {
  color: var(--ink-3);
  font-size: var(--fs-label);
  line-height: 1.4;
}

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

/* ---------- language switch: flag dropdown ---------- */
.lang-switch { position: relative; flex: none; }
.lang-switch__trigger {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 12px 7px 10px;
  background: transparent; color: var(--ink-2); font-size: 0.8125rem; font-weight: 500;
  cursor: pointer; transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.lang-switch__trigger:hover,
.lang-switch__trigger:focus-visible { border-color: var(--fir); background: var(--sage-veil); }
.lang-switch__flag { font-size: 1rem; line-height: 1; }
.lang-switch__chevron { width: 10px; height: 10px; transition: transform 220ms var(--ease); }
.lang-switch.is-open .lang-switch__chevron { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: var(--z-nav);
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface-glass-bg); border: var(--surface-glass-border);
  border-radius: var(--surface-glass-inner-radius); box-shadow: var(--surface-glass-shadow);
  backdrop-filter: var(--surface-glass-filter);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__option {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
  font-size: 0.8125rem; text-align: start; cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.lang-switch__option:hover,
.lang-switch__option:focus-visible { background: var(--sage-veil); color: var(--fir); }
.lang-switch__option[aria-selected="true"] { color: var(--fir); font-weight: 600; }
.lang-switch__option-label { flex: 1; }
.lang-switch__check { width: 14px; height: 14px; color: var(--fir); flex: none; opacity: 0; }
.lang-switch__option[aria-selected="true"] .lang-switch__check { opacity: 1; }

.nav__mobile-panel .lang-switch { margin: 0 0 var(--s-4); }
.nav__mobile-panel .lang-switch__trigger { width: 100%; justify-content: space-between; }
.nav__mobile-panel .lang-switch__menu { left: 0; right: 0; min-width: 0; }

/* Mobile: compact switch parked directly left of the Menu toggle; the panel
   carries its own copy on desktop-hidden markup, so drop it once the panel opens. */
@media (max-width: 980px) {
  /* child selector beats the later `.nav__mobile-toggle { margin-inline-start: auto }` rule */
  .nav > .lang-switch { margin-inline-start: auto; }
  .nav > .nav__mobile-toggle { margin-inline-start: 0; }
  .nav > .lang-switch .lang-switch__trigger {
    gap: 5px;
    padding: 5px 8px 5px 7px;
    font-size: 0.75rem;
  }
  .nav > .lang-switch .lang-switch__flag { font-size: 0.875rem; }
  .nav > .lang-switch .lang-switch__chevron { width: 9px; height: 9px; }
  .nav__mobile-panel .lang-switch { display: none; }
}
.nav__origin { white-space: nowrap; }
.nav__clock {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--fir); white-space: nowrap;
  display: flex; align-items: baseline; gap: 6px;
}
.nav__clock span { font-size: var(--fs-label); color: var(--ink-3); letter-spacing: 0.16em; }

.nav__mobile-toggle,
.nav__mobile-panel { display: none; }

@media (max-width: 1340px) { .nav__origin { display: none; } }
@media (max-width: 1120px) {
  .nav__links { gap: 16px; }
  .nav__link,
  .nav-menu__trigger { font-size: 0.8125rem; }
  .nav__chapter-name { max-width: 11ch; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__mobile-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-inline-start: auto;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--fir);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
  }
  .nav__mobile-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px;
    border: var(--nav-glass-border);
    border-radius: var(--nav-glass-radius);
    background: var(--nav-glass-bg);
    box-shadow:
      var(--nav-glass-shadow),
      0 30px 80px -38px rgba(47, 74, 58, 0.78);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px) scale(0.98);
    transform-origin: 50% 0;
    transition:
      opacity 200ms var(--ease),
      transform 260ms var(--ease),
      visibility 0s linear 260ms;
  }
  .nav.is-mobile-open .nav__mobile-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }
  .nav__mobile-panel details,
  .nav__mobile-direct { position: relative; }
  .nav__mobile-panel details:not(:last-child)::after,
  .nav__mobile-direct:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background: var(--rule);
  }
  .nav__mobile-panel summary,
  .nav__mobile-direct {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--fir);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    list-style: none;
  }
  .nav__mobile-panel summary::-webkit-details-marker { display: none; }
  .nav__mobile-panel summary span {
    display: inline-flex;
    width: 10px;
    height: 10px;
    transition: transform 220ms var(--ease);
  }
  .nav__mobile-panel summary span svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .nav__mobile-panel details[open] summary span { transform: rotate(180deg); }
  .nav__mobile-group {
    display: grid;
    gap: 2px;
    padding: 0 8px 10px;
  }
  .nav__mobile-group a {
    min-height: 44px;
    padding: 11px 12px;
    border: 0;
    border-bottom: 1px solid rgba(47, 74, 58, 0.1);
    border-radius: 0;
    background: transparent;
    color: var(--ink-2);
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .nav__mobile-group a:last-child { border-bottom: 0; }
  .nav__mobile-group a:hover,
  .nav__mobile-group a:focus-visible {
    background: rgba(255, 255, 255, 0.5);
  }
}
@media (max-width: 760px) {
  .nav__meta { display: none; }
}
@media (max-width: 620px) {
  .nav {
    top: 8px;
    width: calc(100% - 24px);
    height: 46px;
    gap: 6px;
    padding: 0 6px 0 12px;
  }
  .nav__brand {
    gap: 5px;
    min-height: 44px;
    padding: 5px 0;
  }
  .nav__mark {
    width: 33px;
    height: 37px;
  }
  .nav__word {
    font-size: 0.8125rem;
    letter-spacing: -0.025em;
  }
  .nav__mobile-toggle {
    gap: 5px;
    min-height: 44px;
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  .nav__chapter {
    gap: 6px;
    padding-inline-start: 9px;
    font-size: var(--fs-micro);
  }
  .nav__chapter { display: none; }
  .nav__mobile-panel {
    top: calc(100% + 6px);
    max-height: calc(100dvh - 72px);
    padding: 8px 12px 10px;
    background:
      linear-gradient(140deg, rgba(255, 255, 255, 0.28), transparent 42%),
      rgba(255, 255, 255, 0.985);
    backdrop-filter: blur(22px) saturate(125%);
    -webkit-backdrop-filter: blur(22px) saturate(125%);
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 74, 58, 0.3) transparent;
  }
  .nav__mobile-panel details {
    position: relative;
    padding: 0;
  }
  .nav__mobile-panel details:not(:last-child)::after,
  .nav__mobile-direct:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 0;
    height: 1px;
    background: var(--rule);
  }
  .nav__mobile-panel summary,
  .nav__mobile-direct {
    min-height: 52px;
    padding: 8px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.3;
  }
  .nav__mobile-direct {
    position: relative;
  }
  .nav__mobile-group {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0 4px 6px;
    padding: 0 4px 8px 14px;
    border-inline-start: 1px solid rgba(47, 74, 58, 0.28);
  }
  .nav__mobile-group a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 6px;
    border: 0;
    border-bottom: 1px solid rgba(47, 74, 58, 0.1);
    border-radius: 0;
    background: transparent;
    font-size: 0.8125rem;
    line-height: 1.3;
  }
  .nav__mobile-group a:last-child { border-bottom: 0; }
  .nav__mobile-group a:hover,
  .nav__mobile-group a:focus-visible {
    background: rgba(255, 255, 255, 0.5);
  }
}

/* ---------- 7. Button ---------- */

.btn {
  --btn-bg: var(--fir);
  --btn-fg: var(--cream);
  display: inline-flex; align-items: center; gap: 14px;
  min-height: var(--ctl-h);
  padding: 6px 6px 6px var(--ctl-pad-x);
  background: var(--btn-bg); color: var(--btn-fg);
  border: none; border-radius: var(--r-pill); cursor: pointer;
  font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.012em;
  white-space: nowrap;
  transition: background 260ms var(--ease), box-shadow 260ms var(--ease);
}
.btn { transform: translate(var(--mx, 0px), var(--my, 0px)); }
.btn:hover { box-shadow: 0 10px 26px -14px rgba(47, 74, 58, 0.55); }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.985); }
.btn--sm { min-height: 44px; padding: 5px 5px 5px var(--ctl-pad-x-sm); font-size: 0.875rem; }
.btn--lg { min-height: 58px; padding: 8px 8px 8px var(--ctl-pad-x-lg); font-size: 1.0625rem; }

.btn__roll {
  position: relative; display: block; overflow: hidden; height: 1.42em;
}
.btn__roll span {
  display: block; transition: transform 460ms var(--ease);
}
.btn__roll span:last-child { position: absolute; top: 100%; left: 0; }
.btn:hover .btn__roll span,
.btn:focus-visible .btn__roll span { transform: translateY(-100%); }

.btn__arrow {
  flex: none;
  width: 38px; height: 38px; border-radius: var(--r-pill);
  background: var(--cream); color: var(--fir);
  display: grid; place-items: center;
  transition: transform 460ms var(--ease), background 260ms var(--ease);
}
.btn--lg .btn__arrow { width: 46px; height: 46px; }
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow { transform: rotate(45deg); }
.btn__arrow svg { width: 15px; height: 15px; }

.btn--onfir { --btn-bg: var(--cream); --btn-fg: var(--fir); }
.btn--onfir .btn__arrow { background: var(--fir); color: var(--cream); }

/* ---------- 7b. Flow button (Check My Company) ---------- */

.btn-flow {
  --flow-ink: var(--fir);
  --flow-fill: var(--cream);
  --flow-surface: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  justify-content: center;
  min-height: var(--ctl-h);
  padding: 0 var(--ctl-pad-x-lg);
  border: 2px solid var(--flow-ink);
  border-radius: var(--r-pill);
  background: var(--flow-fill);
  color: var(--flow-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 600ms cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 600ms cubic-bezier(0.23, 1, 0.32, 1),
    color 600ms cubic-bezier(0.23, 1, 0.32, 1),
    background 600ms cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-flow--onfir { --flow-ink: var(--cream); --flow-fill: var(--fir); --flow-surface: var(--fir); }
.btn-flow:hover,
.btn-flow:focus-visible {
  border-color: transparent;
  border-radius: var(--r-md);
  color: var(--flow-surface);
  background: transparent;
}
.btn-flow:active { transform: scale(0.95); }

.btn-flow__arrow {
  position: absolute;
  width: 16px;
  height: 16px;
  z-index: 2;
  transition: left 800ms cubic-bezier(0.34, 1.56, 0.64, 1), right 800ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-flow__arrow--in { left: -25%; }
.btn-flow:hover .btn-flow__arrow--in,
.btn-flow:focus-visible .btn-flow__arrow--in { left: 14px; }
.btn-flow__arrow--out { right: 14px; }
.btn-flow:hover .btn-flow__arrow--out,
.btn-flow:focus-visible .btn-flow__arrow--out { right: -25%; }

.btn-flow__label {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: transform 800ms ease;
}
.btn-flow:hover .btn-flow__label,
.btn-flow:focus-visible .btn-flow__label { transform: translateX(12px); }

.btn-flow__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--flow-ink);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition:
    width 800ms cubic-bezier(0.19, 1, 0.22, 1),
    height 800ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 800ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 0;
}
.btn-flow:hover .btn-flow__circle,
.btn-flow:focus-visible .btn-flow__circle { width: 1400px; height: 1400px; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .btn-flow,
  .btn-flow__arrow,
  .btn-flow__label,
  .btn-flow__circle { transition: none; }
}

/* ---------- 8. Hero ---------- */

.hero-reach {
  position: relative;
  z-index: var(--z-content);
  height: 100dvh;
}
.hero-reach__sticky {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.92) 0 18%, rgba(255, 255, 255, 0.54) 43%, transparent 68%),
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12));
}
.hero-reach__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}
.hero-reach__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: clamp(14px, 2vh, 22px);
  min-height: 100dvh;
  padding-top: clamp(104px, 15vh, 144px);
  text-align: center;
  pointer-events: none;
}
.hero-reach__title {
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.hero-reach__lead {
  max-width: 30ch;
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.4;
}
.hero-reach__content .btn,
.hero-reach__content .btn-flow {
  margin-top: clamp(2px, 1vh, 10px);
  pointer-events: auto;
}

@media (max-width: 620px) {
  .hero-reach {
    height: 100dvh;
  }
  .hero-reach__content {
    gap: 10px;
  }
  .hero-reach__lead {
    max-width: 31ch;
    font-size: 0.875rem;
    line-height: 1.42;
  }
  .hero-reach__content .btn-flow {
    min-height: 40px;
    margin-top: 0;
    padding-inline: 24px;
    font-size: 0.8125rem;
  }
  .hero-reach__content .btn-flow__arrow {
    width: 12px;
    height: 12px;
  }
  .hero-reach__content .btn-flow__arrow--out {
    right: 10px;
  }
}

.hero__cta { display: flex; flex-direction: column; gap: var(--s-3); align-items: flex-start; }
.hero__trust { font-size: var(--fs-small); color: var(--ink-2); }

/* Partner-program strip: one quiet endorsement line, not a row of cards. */
.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 48px);
}

.partners__item {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  color: var(--fir);
}

.partners__item img {
  width: 27px;
  height: 27px;
  flex: none;
}

.partners__wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--fir);
  font-size: clamp(1.2rem, 1.65vw, 1.52rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.partners__wordmark--wix {
  font-size: clamp(1.45rem, 2vw, 1.82rem);
  font-weight: 560;
  letter-spacing: -0.07em;
}

.partners__wordmark--zapier {
  gap: 3px;
  font-size: clamp(1.3rem, 1.85vw, 1.68rem);
  font-weight: 640;
}

.partners__wordmark--zapier i {
  width: 20px;
  height: 3px;
  background: currentColor;
}

.partners__tick {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--mid);
  stroke-width: 1.6;
}

.hero-partners {
  position: relative;
  z-index: var(--z-content);
  padding-block: 22px 24px;
  background: transparent;
}

.hero-partners__inner {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 1.7vw, 20px);
  text-align: center;
}

.hero-partners__title {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

@media (max-width: 520px) {
  .hero-partners {
    padding-block: 24px 26px;
  }

  .partners {
    width: 100%;
    gap: 18px 22px;
  }

  .partners__item {
    gap: 7px;
  }

  .partners__item img {
    width: 23px;
    height: 23px;
  }

  .partners__wordmark {
    font-size: 1.12rem;
  }

  .partners__wordmark--wix {
    font-size: 1.32rem;
  }

  .partners__wordmark--zapier {
    font-size: 1.2rem;
  }

  .partners__wordmark--zapier i {
    width: 15px;
    height: 2px;
  }

  .partners__tick {
    width: 12px;
    height: 12px;
  }
}

html[data-hands-motion="reduced"] .hero-reach { height: 100dvh; }

/* Generous scroll distance so the hands animation has room to breathe. */

/* ---------- 8b. Tools we automate: orbit stage ---------- */

.orbit {
  position: relative; z-index: var(--z-content);
  padding-top: var(--section-y);
  overflow: hidden;
}
.orbit__head { position: relative; z-index: 3; }
.orbit__lede {
  font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.015em;
  max-width: 36ch;
}

.orbit__stage {
  position: relative;
  height: clamp(340px, 52vw, 680px);
  margin-top: clamp(24px, 4vw, 56px);
  overflow: hidden;
}

/* Rings and dome are anchored to the stage floor and cut in half by it.
   The positioning transform lives here and nowhere else: a rotation on the
   same element would be composed before it and swing the whole ring around. */
.orbit__ring,
.orbit__dome {
  position: absolute; bottom: 0; left: 50%;
  transform: translate(-50%, calc(50% + var(--par, 0px)));
}

.orbit__ring {
  width: var(--d); aspect-ratio: 1;
  border-radius: var(--r-pill); border: 1px solid rgba(47, 74, 58, 0.26);
}
.orbit__ring--1 { --d: clamp(380px, 54vw, 760px);  --dur: 52s; }
.orbit__ring--2 { --d: clamp(450px, 63vw, 895px);  --dur: 68s; }
.orbit__ring--3 { --d: clamp(520px, 72vw, 1030px); --dur: 86s; }

.orbit__dome {
  width: clamp(300px, 44vw, 660px); aspect-ratio: 1;
  z-index: 2; pointer-events: none;
}

/* the spin wrapper carries the rotation on its own, so the two never mix */
.orbit__spin { position: absolute; inset: 0; }

/* one arm per tool, pinned to the ring edge and rotated into place */
.orbit__arm {
  position: absolute; top: 0; left: 50%; bottom: 50%; width: 0;
  transform-origin: bottom center;
  transform: rotate(var(--full));
}
.orbit__chip {
  --chip: clamp(46px, 5.2vw, 66px);
  position: absolute; top: 0; left: 50%;
  width: var(--chip); height: var(--chip);
  margin-inline-start: calc(var(--chip) / -2);
  margin-top: calc(var(--chip) / -2);
  display: grid; place-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: rotate(calc(var(--full) * -1));
}
.orbit__chip img { width: clamp(23px, 2.6vw, 31px); height: auto; opacity: 0.92; }

/* the ring turns, each chip turns back so every mark stays upright */
.js .orbit--run .orbit__spin { animation: orbit-spin var(--dur) linear infinite; }
.js .orbit--run .orbit__chip { animation: orbit-spin var(--dur) linear infinite reverse; }
.js .orbit--run .orbit__ring--2 .orbit__spin { animation-direction: reverse; }
.js .orbit--run .orbit__ring--2 .orbit__chip { animation-direction: normal; }

@keyframes orbit-spin {
  from { rotate: 0deg; }
  to   { rotate: 360deg; }
}

/* Mobile keeps the circular orbit compact and deliberately slow so the
   toolmarks read as one calm technical system rather than visual noise. */
@media (max-width: 700px) {
  .orbit__stage { height: 340px; }
  .orbit__arm  { transform: rotate(var(--full)); }
  .orbit__chip { transform: rotate(calc(var(--full) * -1)); }
  .orbit__ring--1 { --d: 300px; --dur: 42s; }
  .orbit__ring--2 { --d: 350px; --dur: 54s; }
  .orbit__ring--3 { --d: 400px; --dur: 66s; }
  .orbit__dome    { width: 260px; }
  .orbit__chip    { --chip: 32px; }
  .orbit__arm--mirror { display: block; }
  .js .orbit--run .orbit__spin {
    animation: orbit-spin var(--dur) linear infinite;
    will-change: rotate;
  }
  .js .orbit--run .orbit__chip {
    animation: orbit-spin var(--dur) linear infinite reverse;
    will-change: rotate;
  }
}

/* ---------- 9. Section headers ---------- */

.head { grid-column: 1 / -1; }
.head__title { max-width: 22ch; }
.head__intro { margin-top: var(--s-4); max-width: 56ch; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }

@media (min-width: 1024px) {
  .head--split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-7); align-items: end; }
  .head--split .head__intro { margin-top: 0; }
}

/* ---------- 10. Stat blocks ---------- */

.stat { position: relative; z-index: var(--z-content); }

.stat__caption { display: grid; gap: var(--s-3); align-content: start; }
.stat__claim { font-size: var(--fs-lead); line-height: 1.42; letter-spacing: -0.015em; max-width: 30ch; }

/* 88% - ring */
.ring-block { display: grid; gap: var(--s-6); align-items: center; grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .ring-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--s-8); }
}
.ring-fig { position: relative; width: min(100%, 560px); margin-inline: auto; }
.ring-fig svg { width: 100%; height: auto; overflow: visible; }
.ring-fig__center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
  pointer-events: none;
}
.ring-fig__center .num { line-height: 0.9; }
.ring-fig__center .label { margin-top: 10px; }

/* 86% - bar */
.bar86 { grid-column: 1 / -1; }
.bar86__track {
  position: relative; height: clamp(104px, 13vw, 168px);
  background: var(--cream-deep); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden;
}
.bar86__fill {
  position: absolute; inset: 0 auto 0 0; width: 86%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--fir) 0%, var(--fir) 46%, var(--mid) 100%);
}
.bar86__markers { position: absolute; inset: 0; }
.bar86__marker {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: rgba(255, 255, 255, 0.42);
}
/* labels sit under the bar so they are never clipped by its height */
.bar86__keys { position: relative; height: 52px; margin-top: 10px; }
.bar86__keys li {
  position: absolute; top: 0; left: var(--x);
  padding: 8px 0 0 10px; border-inline-start: 1px solid var(--rule);
  white-space: nowrap; color: var(--ink-3);
}
.bar86__rest {
  position: absolute; top: 0; right: 0; bottom: 0; width: 14%;
  display: grid; place-content: center;
}
.bar86__legend {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-3);
}
@media (max-width: 1020px) {
  /* below this the last two labels collide along the bar: stack them instead */
  .bar86__keys {
    position: static; height: auto; display: grid;
    grid-template-columns: repeat(2, 1fr); gap: var(--s-2) var(--s-3);
  }
  .bar86__keys li { position: static; white-space: normal; padding: 0 0 0 10px; }
}
@media (max-width: 480px) {
  .bar86__keys { grid-template-columns: 1fr; }
}

/* $4.99M - cost */
.cost { grid-column: 1 / -1; text-align: center; }
/* the cost area grows behind the number only; the caption below stays on cream */
.cost__stage { position: relative; isolation: isolate; padding-block: clamp(16px, 3vw, 40px); }
.cost__wave { position: absolute; inset: 18% 0 -8% 0; z-index: -1; }
.cost__wave svg { width: 100%; height: 100%; }
.cost__value { letter-spacing: -0.06em; }
.cost__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-top: var(--s-5); }
.cost__claim { max-width: 34ch; margin-inline: auto; font-size: var(--fs-lead); }

/* 99 / 64 - double ring */
.rings { grid-column: 1 / -1; display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 1024px) { .rings { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-8); } }
.rings__fig { width: min(100%, 520px); margin-inline: auto; }
.rings__legend { display: grid; gap: var(--s-4); }
.rings__item { display: grid; gap: 6px; padding-inline-start: var(--s-4); border-inline-start: 3px solid var(--fir); }
.rings__item--inner { border-inline-start-color: var(--mid); }
.rings__item .num { line-height: 0.9; }

/* ---------- 11. Problem blocks (sticky column) ---------- */

.problem { border-top: 1px solid var(--rule); position: relative; z-index: var(--z-content); }
.problem__inner { display: grid; gap: var(--s-6); padding-block: clamp(64px, 8vw, 128px); }
@media (min-width: 1024px) {
  .problem__inner { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: var(--s-8); }
  .problem__side { position: sticky; top: 132px; align-self: start; }
}
.problem__num { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.22em; color: var(--ink-3); text-transform: uppercase; }
.problem__claim { margin-top: var(--s-4); font-size: var(--fs-h3); line-height: 1.28; letter-spacing: -0.02em; max-width: 26ch; }
.problem__src { margin-top: var(--s-4); }

/* comparison bars */
.cmp { display: grid; gap: var(--s-5); }
.cmp__row { display: grid; gap: 10px; }
.cmp__meta { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.cmp__val { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.cmp__bar { height: 26px; background: var(--cream-deep); border-radius: var(--r-pill); overflow: hidden; }
.cmp__bar i { display: block; height: 100%; width: 0; background: var(--fir); border-radius: var(--r-pill); }
.cmp__bar--mid i { background: var(--mid); }
.cmp__bar--sage i { background: var(--sage); }

/* the gap between "planning" and "in control" is drawn as the area it is */
.gapband { position: relative; height: clamp(72px, 9vw, 104px); }
.gapband__area {
  position: absolute; top: 0; bottom: 0; left: 20%; right: 25%;
  border-inline-start: 1px dashed var(--fir); border-inline-end: 1px dashed var(--fir);
  background: repeating-linear-gradient(-45deg,
    rgba(47, 74, 58, 0.14) 0 1px, transparent 1px 10px);
  transform-origin: left center;
}
.gapband__text {
  position: absolute; inset: 0; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 4px var(--s-3);
  text-align: center;
}
.gapband__text span {
  background: var(--cream); padding: 3px 10px; border-radius: var(--r-pill);
}

/* overlap bars 47 / 56 */
.overlap { position: relative; display: grid; gap: var(--s-4); }
.overlap__row { position: relative; display: grid; gap: 8px; }
.overlap__track { height: clamp(48px, 6vw, 72px); background: var(--cream-deep); border-radius: var(--r-md); overflow: hidden; position: relative; }
.overlap__track i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sage); }
.overlap__row--b .overlap__track i { background: var(--fir); }
.overlap__cap { display: flex; align-items: baseline; gap: var(--s-3); }
.overlap__cap .num { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }

/* fine 35M / 7% */
.fine { display: grid; gap: var(--s-4); align-items: center; position: relative; }
@media (min-width: 760px) { .fine { grid-template-columns: 1fr auto 1fr; gap: var(--s-6); } }
.fine__side { text-align: center; }
.fine__or {
  font-family: var(--font-mono); font-size: 0.875rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3); text-align: center;
}
.fine__scale { margin-top: var(--s-6); }

/* nodes 25 / 76 */
.nodes-fig { width: 100%; }
.nodes-fig svg { width: 100%; height: auto; }

/* scan */
.scan-fig { position: relative; border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; background: var(--cream-deep); }
.scan-fig svg { width: 100%; height: auto; display: block; }
.scan-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); }
.scan-legend li { display: flex; align-items: center; gap: 8px; }
.scan-legend .dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: var(--mid); flex: none; }

/* ---------- 11A. Compact interactive risk overview ---------- */

.risk-hub {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
  overflow: clip;
}

.risk-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.88) 82%),
    radial-gradient(circle at 78% 22%, rgba(168, 191, 160, 0.2), transparent 34%);
  pointer-events: none;
}

.risk-hub__mast {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(24px, 5vw, 80px);
  min-height: clamp(460px, 40vw, 620px);
  align-items: center;
}

.risk-hub__copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.risk-hub__title {
  max-width: 15ch;
}

.risk-hub__intro {
  max-width: 47ch;
  margin-top: var(--s-5);
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
  text-wrap: pretty;
}

.risk-globe {
  width: min(100%, 640px);
  justify-self: end;
  display: grid;
  justify-items: end;
}

.risk-globe__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  isolation: isolate;
}

.risk-globe__frame::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 3;
  border: 1px solid rgba(47, 74, 58, 0.12);
  border-radius: 50%;
  box-shadow:
    inset 28px -24px 54px rgba(47, 74, 58, 0.08),
    0 36px 80px -56px rgba(47, 74, 58, 0.8);
  pointer-events: none;
}

.risk-globe__fallback {
  position: absolute;
  inset: 9%;
  z-index: 0;
  border-radius: 50%;
  opacity: 0.4;
  background:
    radial-gradient(circle, var(--fir) 0 1px, transparent 1.4px) 0 0 / 8px 8px,
    radial-gradient(circle at 42% 36%, rgba(168, 191, 160, 0.28), transparent 54%);
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 73%);
  mask-image: radial-gradient(circle, #000 58%, transparent 73%);
  transition: opacity 700ms var(--ease);
}

.risk-globe.is-ready .risk-globe__fallback { opacity: 0; }

#risk-globe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  contain: layout paint size;
  opacity: 0;
  transition: opacity 700ms var(--ease);
  pointer-events: none;
}

.risk-globe.is-ready #risk-globe { opacity: 1; }

.risk-globe__axis {
  position: absolute;
  right: 3%;
  bottom: 11%;
  left: 7%;
  z-index: 4;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
  transform: rotate(-8deg);
  transform-origin: center;
}

.risk-globe figcaption {
  position: relative;
  z-index: 4;
  margin-top: -7%;
  padding-inline-end: 9%;
}

.risk-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 5vw, 72px);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.risk-metric {
  position: relative;
  min-width: 0;
  min-height: 326px;
  padding: clamp(22px, 2.4vw, 34px);
  border: 0;
  border-inline-start: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.38);
  color: var(--fir);
  text-align: start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition:
    background-color 320ms var(--ease),
    color 320ms var(--ease),
    transform 320ms var(--ease);
}

.risk-metric:first-child { border-inline-start: 0; }

.risk-metric::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 100%;
  left: 0;
  height: 3px;
  background: var(--fir);
  transition: right 420ms var(--ease);
}

.risk-metric:hover { background: rgba(168, 191, 160, 0.13); }
.risk-metric.is-active { background: rgba(168, 191, 160, 0.23); }
.risk-metric.is-active::before { right: 0; }

.risk-metric__number {
  display: block;
  margin-top: var(--s-4);
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.risk-metric__number--split {
  display: flex;
  align-items: baseline;
  gap: 13px;
  font-size: clamp(2.25rem, 3.2vw, 3.8rem);
}

.risk-metric__number--split span + span {
  color: var(--mid);
  font-size: 0.72em;
}

.risk-metric__claim {
  display: block;
  min-height: 4.8em;
  margin-top: var(--s-3);
  color: var(--ink-2);
  line-height: 1.48;
  text-wrap: pretty;
}

.risk-metric__viz {
  width: 100%;
  height: 48px;
  margin-top: auto;
  overflow: visible;
  fill: none;
  stroke: var(--rule);
  stroke-width: 1.35;
  vector-effect: non-scaling-stroke;
}

.risk-metric__viz .risk-metric__stroke,
.risk-metric__viz > path,
.risk-metric__viz--bars path {
  stroke: var(--mid);
  transition: stroke 320ms var(--ease);
}

.risk-metric__viz .risk-metric__stroke {
  stroke-width: 3;
  transform: rotate(-90deg);
  transform-origin: 24px 24px;
}

.risk-metric__viz .risk-metric__stroke--mid { stroke: var(--sage); }
.risk-metric__viz circle:not(.risk-metric__stroke) { fill: var(--cream); }

.risk-metric__viz--bars path {
  stroke-width: 3;
  stroke-linecap: square;
}

.risk-metric__action {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: var(--s-3);
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.risk-metric.is-active .risk-metric__viz > path,
.risk-metric.is-active .risk-metric__viz--bars path,
.risk-metric.is-active .risk-metric__viz .risk-metric__stroke {
  stroke: var(--fir);
}

.risk-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(36px, 6vw, 96px);
  min-height: 360px;
  margin-top: clamp(32px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 72%),
    rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  align-items: center;
  transition: opacity 180ms ease, transform 260ms var(--ease);
}

.risk-detail.is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.risk-detail__copy { display: grid; align-content: center; }

.risk-detail__title {
  max-width: 18ch;
  margin-top: var(--s-3);
}

.risk-detail__claim {
  max-width: 47ch;
  margin-top: var(--s-4);
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.48;
  text-wrap: pretty;
}

.risk-detail__copy .source { margin-top: var(--s-4); }

.risk-detail__data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
  align-content: center;
}

.risk-detail__fact {
  min-height: 132px;
  padding-top: var(--s-3);
  border-top: 3px solid var(--fir);
}

.risk-detail__fact--accent { border-top-color: var(--mid); }

.risk-detail__fact strong {
  display: block;
  font-size: clamp(2.5rem, 4.6vw, 4.8rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.risk-detail__fact span {
  display: block;
  max-width: 18ch;
  margin-top: 12px;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.risk-detail__note { grid-column: 1 / -1; }

.risk-detail__link {
  grid-column: 1 / -1;
  justify-self: start;
  font-size: 0.875rem;
}

.risk-shadow {
  width: 100%;
  min-height: 88px;
  margin-top: var(--s-4);
  padding: var(--s-4) 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(320px, 1.28fr) auto;
  gap: var(--s-4);
  align-items: center;
  text-align: start;
  cursor: pointer;
  transition: background-color 300ms var(--ease), padding 300ms var(--ease);
}

.risk-shadow:hover,
.risk-shadow.is-active {
  padding-inline: var(--s-4);
  background: rgba(168, 191, 160, 0.18);
}

.risk-shadow strong {
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.risk-shadow__action {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .risk-hub__mast {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    min-height: 440px;
  }

  .risk-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-metric:nth-child(odd) { border-inline-start: 0; }
  .risk-metric:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .risk-detail { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .risk-shadow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .risk-shadow__action { margin-top: var(--s-2); }
}

@media (max-width: 760px) {
  .risk-hub { padding-block: 80px; }
  .risk-hub__mast { grid-template-columns: 1fr; min-height: auto; }
  .risk-globe { width: min(100%, 440px); justify-self: center; }
  .risk-globe figcaption { padding-inline-end: 5%; }
  .risk-detail { grid-template-columns: 1fr; min-height: 0; }
  .risk-shadow { grid-template-columns: 1fr; gap: 10px; }
  .risk-shadow__action { margin-top: var(--s-2); }
}

@media (max-width: 620px) {
  .risk-hub__intro { font-size: 1.0625rem; }
  .risk-metrics {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .risk-metrics::-webkit-scrollbar { display: none; }

  .risk-metric {
    flex: 0 0 min(82vw, 304px);
    min-height: 300px;
    border-top: 0 !important;
    border-inline-start: 1px solid var(--rule) !important;
    scroll-snap-align: start;
  }

  .risk-metric:first-child { border-inline-start: 0 !important; }
  .risk-metric__claim { min-height: 4.4em; }
  .risk-detail { padding: var(--s-4); }
  .risk-detail__data { grid-template-columns: 1fr 1fr; }
  .risk-detail__fact { min-height: 118px; }
  .risk-detail__fact strong { font-size: clamp(1.9rem, 8vw, 3.5rem); }
  .risk-shadow:hover,
  .risk-shadow.is-active { padding-inline: var(--s-3); }
}

/* ---------- 11B. Reference-led globe composition ---------- */

.risk-hub {
  padding-block: var(--section-y);
  background: rgba(255, 255, 255, 0.42);
}

.risk-hub::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.62), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.88));
}

.risk-hub__header {
  max-width: 1400px;
  margin-inline: auto;
  text-align: center;
}

.risk-hub__header .eyebrow { margin-bottom: var(--s-3); }

.risk-hub__title {
  max-width: 26ch;
  margin-inline: auto;
  font-size: clamp(2.35rem, 3.9vw, 3.85rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.risk-hub__intro {
  max-width: 58ch;
  margin: var(--s-3) auto 0;
  font-size: clamp(1rem, 1.25vw, 1.25rem);
  line-height: 1.48;
}

.risk-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(520px, 1.6fr) minmax(200px, 0.7fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px clamp(28px, 4vw, 64px);
  min-height: 680px;
  margin-top: clamp(32px, 4vw, 58px);
  isolation: isolate;
}

.risk-stage__connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.risk-stage__connectors path {
  fill: none;
  stroke: rgba(124, 152, 115, 0.48);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.risk-stage__connectors circle { fill: var(--mid); }

.risk-stage__connectors {
  transition: opacity 260ms var(--ease);
}

.risk-hub .risk-metric {
  z-index: 2;
  width: 100%;
  min-height: 0;
  padding: clamp(18px, 2vw, 28px) 0;
  border: 0;
  background: transparent;
  align-self: center;
  justify-content: center;
  overflow: visible;
}

.risk-hub .risk-metric::before { display: none; }

.risk-hub .risk-metric:hover,
.risk-hub .risk-metric.is-active {
  background: transparent;
  transform: translateY(-3px);
}

.risk-hub .risk-metric:active { transform: translateY(-1px) scale(0.99); }

.risk-metric--adoption { grid-column: 1; grid-row: 1; }
.risk-metric--incidents { grid-column: 3; grid-row: 1; }
.risk-metric--cost { grid-column: 1; grid-row: 2; }
.risk-metric--losses { grid-column: 3; grid-row: 2; }

.risk-metric__index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--mid);
}

.risk-hub .risk-metric__number {
  display: flex;
  align-items: baseline;
  margin-top: 8px;
  font-size: clamp(3rem, 4.7vw, 5.15rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.07em;
  transition: color 260ms var(--ease);
}

.risk-hub .risk-metric.is-active .risk-metric__number { color: var(--mid); }

.risk-hub .risk-metric__claim {
  min-height: 0;
  max-width: 25ch;
  margin-top: 12px;
  font-size: clamp(0.92rem, 1.05vw, 1.06rem);
  line-height: 1.46;
}

.risk-metric__claim-mobile { display: none; }

.risk-hub .risk-metric .source {
  display: block;
  max-width: 30ch;
  margin-top: var(--s-3);
  font-size: 0.75rem;
  line-height: 1.55;
}

.risk-hub .risk-metric__action {
  width: min(100%, 25ch);
  margin-top: 12px;
  padding-top: 9px;
  opacity: 0.62;
  transition: opacity 240ms var(--ease), color 240ms var(--ease);
}

.risk-hub .risk-metric:hover .risk-metric__action,
.risk-hub .risk-metric.is-active .risk-metric__action {
  opacity: 1;
  color: var(--fir);
}

.risk-metric__secondary {
  display: grid;
  max-width: 25ch;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  line-height: 1.42;
}

.risk-hub .risk-metric__secondary .risk-metric__number {
  margin-top: 0;
  font-size: clamp(2.35rem, 3.6vw, 3.9rem);
}

.risk-globe {
  z-index: 1;
  grid-column: 2;
  grid-row: 1 / 3;
  width: min(100%, 570px);
  align-self: center;
  justify-self: center;
  justify-items: center;
}

.risk-globe__frame::before {
  content: "";
  position: absolute;
  inset: 21% 3%;
  z-index: 2;
  border: 1px solid rgba(124, 152, 115, 0.28);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
}

.risk-globe__frame::after {
  inset: 8.5%;
  border-color: rgba(47, 74, 58, 0.22);
  box-shadow:
    inset 20px -16px 42px rgba(47, 74, 58, 0.025),
    0 40px 54px -48px rgba(47, 74, 58, 0.34);
}

.risk-globe__fallback {
  opacity: 0.32;
  background:
    radial-gradient(circle, var(--mid) 0 1px, transparent 1.4px) 0 0 / 8px 8px,
    radial-gradient(circle at 44% 36%, rgba(255, 255, 255, 0.9), rgba(168, 191, 160, 0.12) 58%, transparent 72%);
}

#risk-globe {
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  mix-blend-mode: multiply;
  filter: saturate(0.72) contrast(1.03);
}

#risk-globe.is-dragging { cursor: grabbing; }
#risk-globe:focus-visible {
  outline-offset: -10px;
  border-radius: 50%;
}
.risk-globe__axis { display: none; }

.risk-globe figcaption {
  margin-top: -4%;
  padding: 0;
  text-align: center;
}

.risk-detail[hidden] { display: none !important; }

.risk-detail {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 72;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: min(590px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  min-height: 0;
  margin: 0;
  padding: clamp(30px, 3.4vw, 48px);
  overflow: auto;
  border: var(--surface-glass-border);
  border-radius: var(--surface-glass-radius);
  background: var(--surface-glass-bg);
  box-shadow:
    var(--surface-glass-shadow),
    0 44px 110px -56px rgba(24, 39, 30, 0.68);
  -webkit-backdrop-filter: var(--surface-glass-filter);
  backdrop-filter: var(--surface-glass-filter);
  overscroll-behavior: contain;
  animation: risk-detail-in 420ms var(--ease) both;
}

.risk-detail__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(47, 74, 58, 0.18);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.38);
  color: var(--fir);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
}

.risk-detail__close span:last-child {
  font-size: 1rem;
  line-height: 1;
  transform: rotate(45deg);
}

.risk-detail__close:hover {
  border-color: var(--mid);
  background: rgba(168, 191, 160, 0.18);
}

.risk-detail__copy {
  padding-inline-end: 54px;
}

.risk-detail__title {
  max-width: 16ch;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.risk-detail__claim {
  margin-top: var(--s-3);
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
}

.risk-detail__data {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.risk-detail__fact {
  min-height: 96px;
}

.risk-detail__fact strong {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.risk-detail__note {
  margin-top: 2px;
}

.risk-detail.is-switching {
  transform: translate(-50%, calc(-50% + 8px)) scale(0.99);
}

.risk-hub.is-detail-open::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(47, 74, 58, 0.14);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.risk-hub.is-detail-open .risk-stage__connectors {
  opacity: 0.16;
}

.risk-hub.is-detail-open .risk-globe,
.risk-hub.is-detail-open .risk-metric:not(.is-active) {
  opacity: 0.34;
}

@keyframes risk-detail-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 14px)) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.risk-shadow-anchor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .risk-hub__title {
    max-width: 20ch;
    margin-inline: auto;
    white-space: normal;
  }

  .risk-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 470px auto auto;
    gap: 10px clamp(24px, 5vw, 48px);
    min-height: 0;
  }

  .risk-stage__connectors { display: none; }
  .risk-globe { grid-column: 1 / 3; grid-row: 1; width: min(100%, 470px); }
  .risk-metric--adoption { grid-column: 1; grid-row: 2; }
  .risk-metric--incidents { grid-column: 2; grid-row: 2; }
  .risk-metric--cost { grid-column: 1; grid-row: 3; }
  .risk-metric--losses { grid-column: 2; grid-row: 3; }

  .risk-hub .risk-metric {
    min-height: 254px;
    border-top: 1px solid var(--rule);
  }

  .risk-hub .risk-metric:nth-child(odd) { border-inline-start: 0; }
  .risk-detail { width: min(620px, calc(100vw - 40px)); }
}

@media (max-width: 620px) {
  .risk-hub { padding-block: 72px; }
  .risk-hub__title {
    font-size: clamp(1.45rem, 6.2vw, 1.7rem);
    line-height: 1.08;
  }
  .risk-hub__intro {
    max-width: 34ch;
    font-size: 0.88rem;
    line-height: 1.48;
  }
  .risk-hub__intro br { display: none; }

  .risk-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 226px repeat(4, auto);
    row-gap: 0;
    max-width: 100%;
    overflow: visible;
    scroll-snap-type: none;
  }

  /* Mobile evidence ledger: the globe introduces the data, then each fact
     uses the same stable reading pattern instead of a compressed orbit. */
  .risk-stage__connectors { display: none; }
  .risk-globe            { grid-column: 1; grid-row: 1; width: min(100%, 210px); }
  .risk-metric--adoption { grid-column: 1; grid-row: 2; }
  .risk-metric--incidents{ grid-column: 1; grid-row: 3; }
  .risk-metric--cost     { grid-column: 1; grid-row: 4; }
  .risk-metric--losses   { grid-column: 1; grid-row: 5; }

  .risk-hub .risk-metric {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto;
    column-gap: var(--s-3);
    width: 100%;
    min-height: 0;
    padding: 17px 0;
    border-top: 1px solid var(--rule);
    border-inline-start: 0 !important;
    text-align: start;
    transform: none;
  }

  .risk-hub .risk-metric:hover,
  .risk-hub .risk-metric.is-active,
  .risk-hub .risk-metric:active { transform: none; }

  .risk-hub .risk-metric__index {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .risk-hub .risk-metric__number {
    grid-column: 1;
    grid-row: 2;
    margin-top: 7px;
    font-size: clamp(1.9rem, 8.8vw, 2.15rem);
    letter-spacing: -0.06em;
  }
  .risk-hub .risk-metric--cost > .risk-metric__number {
    font-size: clamp(1.48rem, 7vw, 1.7rem);
    letter-spacing: -0.055em;
    transform: translateX(-6px);
  }
  .risk-hub .risk-metric__claim {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    max-width: none;
    margin-top: 0;
    font-size: 0.74rem;
    line-height: 1.38;
  }
  .risk-metric__claim-desktop { display: none; }
  .risk-metric__claim-mobile { display: block; }
  .risk-hub .risk-metric .source {
    grid-column: 2;
    grid-row: 4;
    display: none;
    max-width: none;
    margin-top: 12px;
    font-size: 0.62rem;
    line-height: 1.48;
  }
  .risk-hub .risk-metric__action {
    grid-column: 2;
    grid-row: 5;
    width: 100%;
    margin-top: 8px;
    padding-top: 7px;
    font-size: 0.59rem;
    letter-spacing: 0.09em;
  }
  .risk-hub .risk-metric__secondary {
    grid-column: 2;
    grid-row: 3;
    max-width: none;
    margin-top: 9px;
    padding-top: 9px;
    font-size: 0.69rem;
  }
  .risk-hub .risk-metric__secondary .risk-metric__number {
    display: block;
    margin: 0 0 3px;
    font-size: clamp(1.45rem, 6.8vw, 1.65rem);
  }
  .risk-globe figcaption {
    display: none;
  }
  .risk-globe__frame::before,
  .risk-globe__frame::after { display: none; }
  #risk-globe {
    border-radius: 50%;
    clip-path: circle(42% at 50% 50%);
  }
  .risk-detail {
    width: calc(100vw - 28px);
    max-height: calc(100dvh - 28px);
    padding: 28px 22px 24px;
  }

  .risk-detail__copy { padding-inline-end: 42px; }
  .risk-detail__title { font-size: clamp(1.5rem, 6.4vw, 2.4rem); }
  .risk-detail__data { gap: 14px; }
  .risk-detail__fact { min-height: 86px; }
  .risk-detail__fact strong { font-size: clamp(1.75rem, 7.4vw, 3rem); }
  .risk-detail__fact span { font-size: 0.7rem; }
  .risk-detail__close span:first-child { display: none; }
  .risk-detail__close { padding-inline: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .risk-detail { animation: none; }
}

/* ---------- 12. Figures generally ---------- */

figure { position: relative; }
figcaption { margin-top: var(--s-3); display: grid; gap: 6px; }

.fig-panel {
  background: var(--surface-3);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 40px);
}

/* must follow .fig-panel: same specificity, later rule wins */
.fig-panel--fir {
  background: var(--fir);
  border-color: var(--fir);
  color: var(--cream);
}
.fig-panel--fir .label { color: var(--on-fir-3); }
.fig-panel--fir .label--strong { color: var(--on-fir-2); }
.fig-panel--fir .note { color: var(--on-fir-3); border-inline-start-color: rgba(255, 255, 255, 0.2); }

/* hover emphasis on data */
.probe, .surface-fig [data-area] { cursor: pointer; }
.hoverable [data-emph] { transition: opacity 300ms var(--ease); }
.hoverable.is-dim [data-emph]:not(.is-active) { opacity: 0.28; }

.readout {
  min-height: 3.6em; margin-top: var(--s-3);
  font-size: var(--fs-small); color: var(--ink-2); max-width: 48ch;
  transition: opacity 260ms var(--ease);
}

/* ---------- 13. Transition + flow ---------- */

.flow-canvas { width: 100%; height: auto; }

/* These label classes are used by every diagram, not only the flow chart, so
   they stay unscoped. A fill presentation attribute loses to a class rule, so
   labels sitting on a fir surface get a modifier class instead of an attribute.
   Modifiers must stay below the base rules: same specificity, later wins. */
.flow-line { fill: none; stroke: var(--fir); stroke-width: 1.25; }
.flow-node { fill: var(--surface-3); stroke: var(--fir); stroke-width: 1.25; }
.flow-label {
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  fill: var(--fir); letter-spacing: -0.01em;
}
.flow-sub {
  font-family: var(--font-mono); font-size: 10px; fill: rgba(47, 74, 58, 0.78);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.flow-label--on { fill: var(--cream); }
.flow-sub--on   { fill: var(--cream); }
.flow-sub--dim  { fill: rgba(255, 255, 255, 0.72); }

.morph-strip { width: 100%; height: clamp(180px, 24vw, 300px); }

/* ---------- 14. Service sections ---------- */

.svc { border-top: 1px solid var(--rule); position: relative; z-index: var(--z-content); }
.svc__inner { padding-block: clamp(72px, 9vw, 144px); display: grid; gap: var(--s-6); }
.svc__head { display: grid; gap: var(--s-4); }
.svc__lede { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.025em; line-height: 1.24; max-width: 20ch; }
.svc__desc { max-width: 54ch; color: var(--ink-2); }

@media (min-width: 1024px) {
  .svc__inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: start; }
  .svc__body { grid-column: 1 / -1; }
}

/* timeline */
.tl { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.tl__item {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-4);
  align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--rule-soft);
}
.tl__val { font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -0.035em; min-width: 5ch; }

@media (min-width: 760px) {
  /* fixed four-column grid so a second row of entries stays aligned with the
     first instead of stretching to fill */
  .tl--h {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    border-top: 1px solid var(--rule); border-bottom: none;
  }
  .tl--h .tl__item {
    display: block; border-bottom: none; border-inline-start: 1px solid var(--rule-soft);
    padding: var(--s-4) var(--s-3) var(--s-5);
  }
  .tl--h .tl__item:nth-child(4n + 1) { border-inline-start: none; padding-inline-start: 0; }
  .tl--h .tl__item:nth-child(n + 5) { border-top: 1px solid var(--rule-soft); }
  .tl--h .tl__val { display: block; margin-bottom: 8px; }
}

/* opportunity map */
.oppmap { width: 100%; }
.oppmap svg { width: 100%; height: auto; }
.opp-crit { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.opp-crit li {
  font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: var(--r-pill); padding: 6px 14px;
}

/* attack surface */
.surface-fig svg { width: 100%; height: auto; }

/* build compare */
.build-cmp { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .build-cmp { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.build-cmp__cell { display: grid; gap: var(--s-3); }
.build-cmp__cell svg { width: 100%; height: auto; }

/* before / after protocol */
.proto { display: grid; gap: var(--s-4); }
@media (min-width: 860px) { .proto { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.proto__col { border: 1px solid var(--rule); border-radius: var(--r-md); padding: clamp(20px, 2.6vw, 32px); background: var(--surface-3); }
.proto__col--after { background: var(--fir); color: var(--cream); border-color: var(--fir); }
.proto__col--after .label { color: var(--on-fir-3); }
.proto__col--after .label--strong { color: var(--on-fir-2); }
.proto__list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.proto__list li { display: grid; gap: 4px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule-soft); }
.proto__col--after .proto__list li { border-bottom-color: rgba(255, 255, 255,0.16); }
.proto__list li:last-child { border-bottom: none; padding-bottom: 0; }

.chain { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-5); }
.chain li {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.14em;
  text-transform: uppercase; padding: 8px 16px; border: 1px solid var(--rule);
  border-radius: var(--r-pill); color: var(--ink-2); background: var(--cream);
}
.chain .arrow { border: none; padding: 0 2px; color: var(--ink-3); }

/* monitoring curve */
.curve-fig svg { width: 100%; height: auto; }
.curve-legend { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-4); }
.curve-legend li { display: flex; align-items: center; gap: 8px; }
.curve-legend .key { width: 18px; height: 2px; background: var(--fir); flex: none; }
.curve-legend .key--thr { background: repeating-linear-gradient(90deg, var(--mid) 0 4px, transparent 4px 8px); }
.curve-legend .key--dev { background: var(--mid); height: 8px; width: 8px; border-radius: var(--r-pill); }

/* ---------- 14b. Compact interactive service hub ---------- */

.fixes-section {
  position: relative;
  z-index: var(--z-content);
  border-top: 1px solid var(--rule);
  padding-block: var(--section-y);
}

.fixes-section__head {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: clamp(32px, 6vw, 96px);
}

.fixes-section__title {
  display: grid;
  gap: var(--s-4);
}

.fixes-section__head .eyebrow { margin-bottom: 0; }
.fixes-section__head .h1 { max-width: 18ch; }
.fixes-section__head .lead { max-width: 46ch; color: var(--ink-2); }

.fixes-section__intro {
  display: grid;
  gap: var(--s-5);
  padding-bottom: 8px;
}

.fixes-section__promise {
  position: relative;
  max-width: 38ch;
  padding: 16px 0 0 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.55;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fixes-section__promise > span {
  position: absolute;
  top: 1.42rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--fir);
  box-shadow: 0 0 0 5px rgba(168, 191, 160, 0.25);
}

.fixes-hub {
  margin-top: clamp(44px, 5vw, 64px);
  overflow: hidden;
  border: var(--surface-glass-border);
  border-radius: var(--surface-glass-radius);
  background: var(--surface-glass-bg);
  -webkit-backdrop-filter: var(--surface-glass-filter);
  backdrop-filter: var(--surface-glass-filter);
  box-shadow: var(--surface-glass-shadow);
}

.fixes-hub__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.72);
}

.fixes-tab {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 88px;
  padding: 18px clamp(14px, 1.5vw, 24px);
  border: 0;
  border-inline-end: 1px solid var(--rule);
  background: transparent;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

.fixes-tab:last-child { border-inline-end: 0; }
.fixes-tab:hover {
  z-index: 1;
  background: rgba(168, 191, 160, 0.2);
}
.fixes-tab:active { background: rgba(168, 191, 160, 0.32); }

.fixes-tab.is-active {
  background: var(--fir);
  color: var(--cream);
  box-shadow: inset 0 -3px 0 var(--sage);
}

.fixes-tab.is-active:hover { background: var(--fir); }

.fixes-tab__name {
  font-size: clamp(0.98rem, 1.1vw, 1.15rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.fixes-tab__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fixes-tab.is-active .fixes-tab__meta { color: var(--on-fir-2); }

.fixes-hub__workspace {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 36px);
}

.fixes-workbench {
  display: grid;
  grid-template-columns: minmax(185px, 0.65fr) minmax(480px, 2fr) minmax(185px, 0.65fr);
  min-height: clamp(390px, 33vw, 470px);
  overflow: hidden;
  border: var(--surface-glass-inner-border);
  border-radius: var(--surface-glass-inner-radius);
  background: var(--surface-glass-inner-bg);
  box-shadow: var(--surface-glass-inner-shadow);
}

.fixes-phase {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: space-between;
  gap: var(--s-5);
  min-width: 0;
  padding: clamp(24px, 2.7vw, 38px);
}

.fixes-phase__flow {
  position: absolute;
  top: 50%;
  right: -18px;
  z-index: 4;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(47, 74, 58, 0.28);
  border-radius: var(--r-pill);
  background: var(--cream);
  color: var(--fir);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transform: translateY(-50%);
  box-shadow: none;
}

.fixes-phase__flow--in {
  right: auto;
  left: -18px;
}

.fixes-phase--before {
  background: rgba(255, 255, 255, 0.82);
}

.fixes-phase--proof {
  background:
    radial-gradient(circle at 8% 50%, rgba(168, 191, 160, 0.34), transparent 42%),
    linear-gradient(155deg, rgba(168, 191, 160, 0.36), rgba(255, 255, 255, 0.6));
}

.fixes-phase__label,
.fixes-visual__step {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fixes-phase h3 {
  max-width: 13ch;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.fixes-phase p {
  max-width: 27ch;
  margin-top: var(--s-3);
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

.fixes-phase ul {
  display: grid;
}

.fixes-phase li {
  position: relative;
  padding: 11px 0 11px 17px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fixes-phase li::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 0;
  width: 8px;
  height: 1px;
  background: currentColor;
}

.fixes-visual {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border-inline: 1px solid var(--rule-soft);
  background:
    radial-gradient(circle at 50% 46%, rgba(168, 191, 160, 0.34), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48));
}

.fixes-visual::before {
  content: "";
  position: absolute;
  inset: 12% 18%;
  z-index: -1;
  border: 1px solid rgba(47, 74, 58, 0.09);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.fixes-visual__field {
  position: absolute;
  inset: 7% 8% 22%;
  z-index: 0;
  pointer-events: none;
}

.fixes-visual__field::before,
.fixes-visual__field::after {
  content: "";
  position: absolute;
  opacity: 0.42;
  background: rgba(47, 74, 58, 0.16);
}

.fixes-visual__field::before {
  top: 50%;
  right: 2%;
  left: 2%;
  height: 1px;
}

.fixes-visual__field::after {
  top: 4%;
  bottom: 4%;
  left: 50%;
  width: 1px;
}

.fixes-visual__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 74, 58, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.fixes-visual__ring--outer {
  width: min(78%, 330px);
  border-style: dashed;
  animation: evidence-orbit 28s linear infinite;
}

.fixes-visual__ring--inner {
  width: min(47%, 190px);
  border-color: rgba(47, 74, 58, 0.22);
}

.fixes-visual__focus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border: 2px solid var(--fir);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(168, 191, 160, 0.16);
}

.fixes-visual__status {
  position: absolute;
  top: clamp(14px, 1.7vw, 22px);
  right: clamp(16px, 2vw, 28px);
  left: clamp(16px, 2vw, 28px);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fixes-visual__status span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.fixes-visual__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fir);
  box-shadow: 0 0 0 4px rgba(168, 191, 160, 0.2);
  animation: evidence-pulse 2.4s var(--ease) infinite;
}

.fixes-visual__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.fixes-visual__canvas:active { cursor: grabbing; }

.fixes-visual__caption {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 24px);
  left: clamp(16px, 2vw, 28px);
  z-index: 3;
  display: grid;
  gap: 4px;
  margin: 0;
  padding-top: 34px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.88) 54%);
}

.fixes-visual__mode {
  max-width: 18ch;
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.fixes-visual__signal {
  max-width: 42ch;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.45;
  text-align: start;
}

.fixes-visual__fallback {
  position: absolute;
  inset: 18% 24%;
  display: none;
  place-items: center;
}

.fixes-visual__fallback span {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(47, 74, 58, 0.28);
  border-radius: 50%;
}

.fixes-visual__fallback span:nth-child(2) { width: 46%; transform: rotate(62deg) scaleY(0.52); }
.fixes-visual__fallback span:nth-child(3) { width: 25%; background: rgba(168, 191, 160, 0.24); }
.fixes-hub.is-fallback .fixes-visual__fallback { display: grid; }

@keyframes evidence-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes evidence-pulse {
  50% { box-shadow: 0 0 0 8px rgba(168, 191, 160, 0.08); }
}

.fixes-hub__panels {
  min-height: 340px;
  padding-top: clamp(28px, 3vw, 44px);
}

.fixes-panel[hidden] { display: none; }

.fixes-panel {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
}

.fixes-panel__copy {
  display: grid;
  gap: var(--s-3);
  max-width: 850px;
}

.fixes-panel__copy .h2 { max-width: 24ch; }
.fixes-panel__copy p { max-width: 68ch; color: var(--ink-2); text-wrap: pretty; }

.fixes-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--rule);
}

.fixes-facts > div {
  min-width: 0;
  padding: clamp(16px, 2vw, 24px) clamp(12px, 2vw, 24px);
  border-inline-start: 1px solid var(--rule-soft);
}

.fixes-facts > div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.fixes-facts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.35;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fixes-facts dd {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.fixes-detail {
  border-bottom: 1px solid var(--rule);
}

.fixes-detail summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}

.fixes-detail summary::-webkit-details-marker { display: none; }

.fixes-detail summary::after {
  content: "+";
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1;
  transition:
    transform 220ms var(--ease),
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

.fixes-detail summary:hover::after {
  background: var(--fir);
  color: var(--cream);
}

.fixes-detail[open] summary::after { transform: rotate(45deg); }

.fixes-detail__body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-5);
  padding: 4px 0 var(--s-5);
  color: var(--ink-2);
}

.fixes-detail__body p { max-width: 42ch; }

.fixes-detail__body ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px var(--s-4);
}

.fixes-detail__body li {
  position: relative;
  padding-inline-start: 18px;
  font-size: var(--fs-small);
  line-height: 1.5;
}

.fixes-detail__body li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 9px;
  height: 1px;
  background: var(--mid);
}

.fixes-conversion {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(28px, 3vw, 40px);
  padding: clamp(28px, 3.6vw, 52px);
  overflow: hidden;
  border: var(--surface-glass-inner-border);
  border-radius: var(--surface-glass-inner-radius);
  background: var(--surface-glass-inner-bg);
  color: var(--fir);
  box-shadow: var(--surface-glass-inner-shadow);
}

.fixes-conversion__copy {
  display: grid;
  gap: var(--s-3);
}

.fixes-conversion__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fixes-conversion h3 {
  max-width: 21ch;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.fixes-conversion__copy p {
  max-width: 54ch;
  color: var(--ink-2);
  text-wrap: pretty;
}

.fixes-conversion__action {
  display: grid;
  justify-items: start;
  gap: var(--s-3);
}

.fixes-conversion__action p {
  max-width: 38ch;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.fixes-conversion__action strong {
  color: var(--fir);
  font-weight: 500;
}

.fixes-next {
  display: grid;
  width: 100%;
  max-width: 420px;
}

.fixes-next li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.fixes-next span {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

.fixes-next strong {
  font-size: var(--fs-small);
  line-height: 1.45;
}

.fixes-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: var(--s-5);
  border-top: 1px solid var(--rule);
}

.fixes-route li {
  min-width: 0;
  padding: 16px 14px;
  border-inline-start: 1px solid var(--rule-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.fixes-route li:first-child { border-inline-start: 0; }

/* ---------- 14c. Confidence promise ---------- */

.guarantee {
  position: relative;
  padding: var(--section-y) 0 var(--section-hero-b);
}

.guarantee__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: clamp(52px, 7vw, 110px);
  overflow: hidden;
  padding: clamp(34px, 5.4vw, 78px);
  border: var(--surface-glass-border);
  border-radius: var(--surface-glass-radius);
  background: var(--surface-glass-bg);
  color: var(--fir);
  -webkit-backdrop-filter: var(--surface-glass-filter);
  backdrop-filter: var(--surface-glass-filter);
  box-shadow: var(--surface-glass-shadow);
}

.guarantee__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background:
    repeating-radial-gradient(
      ellipse at 92% 18%,
      transparent 0 25px,
      rgba(47, 74, 58, 0.11) 26px,
      transparent 27px 41px
    );
  mask-image: linear-gradient(110deg, transparent 32%, #000 100%);
}

.guarantee__copy,
.guarantee__journey,
.guarantee__footer {
  position: relative;
  z-index: 1;
}

.guarantee__copy {
  display: grid;
  align-content: start;
  gap: var(--s-4);
}

.guarantee__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.guarantee__title {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5.25vw, 5.6rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.guarantee__copy > p {
  max-width: 55ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.guarantee__journey {
  align-self: center;
}

.guarantee__line {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 18px;
  width: 1px;
  background: linear-gradient(var(--mid), var(--rule));
  transform-origin: top;
}

.guarantee__journey ol {
  display: grid;
  gap: clamp(22px, 3vw, 36px);
}

.guarantee__journey li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
}

.guarantee__journey li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(47, 74, 58, 0.24);
  border-radius: 50%;
  background: var(--fir);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--cream);
}

.guarantee__journey li > div {
  padding-top: 4px;
}

.guarantee__journey strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
}

.guarantee__journey p {
  max-width: 34ch;
  margin-top: 5px;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.guarantee__footer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
  padding-top: clamp(24px, 3vw, 38px);
  border-top: 1px solid var(--rule);
}

.guarantee__footer > p {
  max-width: 64ch;
  color: var(--ink-3);
  font-size: var(--fs-small);
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fixes-conversion .btn--onfir,
.guarantee__panel .btn--onfir {
  --btn-bg: var(--fir);
  --btn-fg: var(--cream);
}

.fixes-conversion .btn--onfir .btn__arrow,
.guarantee__panel .btn--onfir .btn__arrow {
  background: var(--cream);
  color: var(--fir);
}

@media (max-width: 1050px) {
  .fixes-section__head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--s-5);
  }

  .fixes-section__intro { max-width: 650px; padding-bottom: 0; }

  .fixes-workbench {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "visual visual"
      "before proof";
  }

  .fixes-phase--before { grid-area: before; }
  .fixes-visual {
    grid-area: visual;
    min-height: 390px;
    border-inline: 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .fixes-phase--proof { grid-area: proof; }
  .fixes-phase__flow { display: none; }
}

@media (max-width: 900px) {
  .fixes-hub__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fixes-tab {
    min-height: 84px;
    border-inline-end: 1px solid var(--rule);
  }

  .fixes-tab:nth-child(2n) { border-inline-end: 0; }
  .fixes-tab:last-child { border-inline-end: 0; }
  .fixes-hub__panels { min-height: 400px; }

  .fixes-conversion {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .guarantee__panel {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .guarantee__title { max-width: 15ch; }
  .guarantee__journey { max-width: 620px; }
}

@media (max-width: 600px) {
  .fixes-section { padding-block: 72px 88px; }
  .fixes-section__head { gap: 24px; }
  .fixes-section__title { gap: 18px; }
  .fixes-section__head .h1 { font-size: clamp(1.875rem, 8vw, 3.4rem); }
  .fixes-hub { margin-top: 40px; }

  .fixes-tab {
    min-height: 64px;
    padding: 12px 14px;
  }

  .fixes-tab__name { font-size: 0.875rem; }
  .fixes-tab__meta { display: none; }
  .fixes-hub__workspace { padding: 12px; }
  .fixes-workbench {
    grid-template-columns: 1fr;
    grid-template-areas:
      "before"
      "visual"
      "proof";
  }

  .fixes-phase {
    gap: var(--s-4);
    min-height: 240px;
    padding: 22px 20px;
  }

  .fixes-phase h3 { max-width: 16ch; }
  .fixes-phase p { max-width: 34ch; }
  .fixes-visual { min-height: 340px; border-top: 1px solid var(--rule-soft); }
  .fixes-visual::before { inset: 18% 10%; }

  .fixes-visual__caption {
    right: 14px;
    bottom: 12px;
    left: 14px;
    display: grid;
    gap: 4px;
  }

  .fixes-visual__signal {
    max-width: 32ch;
    font-size: 0.75rem;
    text-align: start;
  }

  .fixes-hub__panels {
    min-height: 420px;
    padding-top: 30px;
  }

  .fixes-panel { gap: 24px; }
  .fixes-panel__copy .h2 { font-size: clamp(1.5rem, 6.4vw, 2.3rem); }
  .fixes-panel__copy p { font-size: 0.9375rem; }

  .fixes-facts > div { padding: 14px 8px; }
  .fixes-facts > div:first-child { padding-inline-start: 0; }
  .fixes-facts dt { font-size: var(--fs-micro); letter-spacing: 0.08em; }
  .fixes-facts dd { font-size: clamp(1.12rem, 5.8vw, 1.5rem); }

  .fixes-detail__body {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .fixes-detail__body ul { grid-template-columns: 1fr; }

  .fixes-conversion {
    margin-top: 24px;
    padding: 26px 22px;
  }

  .fixes-conversion h3 { font-size: clamp(1.5rem, 6.4vw, 2.2rem); }
  .fixes-conversion .btn { max-width: 100%; padding-inline-start: 20px; font-size: 0.875rem; }
  .fixes-next li { padding-block: 9px; }

  .fixes-visual__status span:last-child { display: none; }

  .guarantee { padding: 72px 0 48px; }
  .guarantee__panel {
    gap: 36px;
    padding: 32px 22px;
    border-radius: var(--surface-glass-radius);
  }

  .guarantee__title {
    max-width: 11ch;
    font-size: clamp(1.875rem, 8vw, 3.2rem);
  }

  .guarantee__footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .guarantee__footer .btn {
    width: 100%;
    justify-content: space-between;
    padding-inline-start: 22px;
    font-size: 0.9375rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixes-tab,
  .fixes-detail summary::after {
    transition: none;
  }

  .fixes-visual__ring--outer,
  .fixes-visual__status i {
    animation: none;
  }

  .guarantee__line {
    transform: scaleY(1);
  }

  .fixes-visual__canvas { cursor: default; }
}

/* Service illustrations: static, commissioned editorial artwork. */
.fixes-visual {
  background: var(--cream-light);
}

.fixes-visual::before,
.fixes-visual__field {
  display: none;
}

.fixes-visual__image-wrap {
  position: absolute;
  inset: 42px 0 100px;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--cream-light);
}

.fixes-visual__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fixes-visual__image[hidden] {
  display: none;
}

.security-radar {
  width: 100%;
  height: 100%;
  padding: 8px 14px 10px;
}

.security-radar[hidden] {
  display: none;
}

.security-radar__frame {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(47, 74, 58, 0.2);
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 50% 108%, rgba(168, 191, 160, 0.3), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(238, 239, 226, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 40px rgba(47, 74, 58, 0.06);
}

.security-radar__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  background-image: radial-gradient(rgba(47, 74, 58, 0.28) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.security-radar__topline {
  position: absolute;
  top: 12px;
  right: 14px;
  left: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(47, 74, 58, 0.72);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.security-radar__topline span:last-child {
  color: var(--ink);
}

.security-radar__field {
  position: absolute;
  inset: 34px 0 0;
  overflow: hidden;
}

.security-radar__arc {
  position: absolute;
  top: 100%;
  left: 50%;
  display: block;
  width: var(--radar-size);
  aspect-ratio: 1;
  border: 1px dashed rgba(47, 74, 58, var(--radar-alpha));
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.security-radar__arc::before {
  content: "";
  position: absolute;
  top: 13.3%;
  left: 13.3%;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(47, 74, 58, 0.38);
  background: var(--cream-light);
  transform: rotate(45deg);
}

.security-radar__arc--1 { --radar-size: 36%; --radar-alpha: 0.48; }
.security-radar__arc--2 { --radar-size: 64%; --radar-alpha: 0.36; }
.security-radar__arc--3 { --radar-size: 92%; --radar-alpha: 0.28; }
.security-radar__arc--4 { --radar-size: 120%; --radar-alpha: 0.2; }

.security-radar__sweep {
  position: absolute;
  right: 11%;
  bottom: 0;
  left: 11%;
  height: 100%;
  opacity: 0.72;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(47, 74, 58, 0.025) 25%, rgba(47, 74, 58, 0.16) 50%, rgba(47, 74, 58, 0.025) 75%, transparent 92%),
    radial-gradient(ellipse at 50% 100%, rgba(168, 191, 160, 0.3), transparent 62%);
  clip-path: polygon(50% 100%, 2% 0, 98% 0);
  transform-origin: 50% 100%;
  animation: security-radar-sweep 8s ease-in-out infinite alternate;
}

.security-radar__marker {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 5px;
  height: 5px;
  border: 1px solid rgba(47, 74, 58, 0.32);
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) rotate(45deg);
}

.security-radar__alert {
  position: absolute;
  top: 27%;
  left: 77%;
  z-index: 6;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(179, 112, 42, 0.68);
  border-radius: 50%;
  background: rgba(179, 112, 42, 0.1);
  box-shadow:
    0 0 0 5px rgba(179, 112, 42, 0.07),
    0 0 24px rgba(179, 112, 42, 0.24);
  transform: translate(-50%, -50%);
  transition:
    top 760ms cubic-bezier(0.22, 1, 0.36, 1),
    left 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.security-radar__alert::before,
.security-radar__alert::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(179, 112, 42, 0.5);
  border-radius: 50%;
}

.security-radar__alert::after {
  inset: -1px;
  opacity: 0;
  animation: security-radar-pulse 2.6s ease-out infinite;
}

.security-radar__alert i {
  position: absolute;
  inset: 10px;
  border-radius: var(--r-xs);
  background: var(--sage);
}

.security-radar__core {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 5;
  display: grid;
  width: clamp(58px, 14%, 76px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(47, 74, 58, 0.6);
  border-radius: 50%;
  background: var(--ink);
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.7),
    0 10px 28px rgba(47, 74, 58, 0.18);
  color: var(--cream-light);
  transform: translateX(-50%);
}

.security-radar__core span {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.security-radar__finding {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 7;
  display: flex;
  max-width: 42%;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(47, 74, 58, 0.16);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 24px rgba(47, 74, 58, 0.08);
  backdrop-filter: blur(8px);
}

.security-radar__finding > span {
  display: grid;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream-light);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
}

.security-radar__finding div {
  min-width: 0;
}

.security-radar__finding small,
.security-radar__finding strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.security-radar__finding small {
  margin-bottom: 2px;
  color: rgba(47, 74, 58, 0.58);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.security-radar__finding strong {
  color: var(--ink);
  font-size: clamp(0.58rem, 1.2vw, 0.72rem);
  font-weight: 600;
}

@keyframes security-radar-sweep {
  from { transform: rotate(-8deg); }
  to { transform: rotate(8deg); }
}

@keyframes security-radar-pulse {
  0% { opacity: 0.5; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.7); }
}

.fixes-visual__status {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(47, 74, 58, 0.1);
}

@media (max-width: 600px) {
  .fixes-visual__image-wrap {
    inset: 38px 0 100px;
  }

  .security-radar {
    padding-inline: 8px;
  }

  .security-radar__topline {
    right: 10px;
    left: 10px;
    font-size: var(--fs-micro);
  }

  .security-radar__finding {
    top: 6px;
    bottom: auto;
    left: 9px;
    max-width: 56%;
    gap: 6px;
    padding: 4px 7px;
  }

  .security-radar__finding > span {
    display: none;
  }

  .security-radar__finding small {
    display: none;
  }
}

.fixes-visual__status i {
  animation: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .security-radar__sweep,
  .security-radar__alert::after {
    animation: none;
  }

  .security-radar__alert {
    transition: none;
  }
}

/* ---------- 14d. Autorea service systems ---------- */

.fixes-system {
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.48);
}

.fixes-system__viewport {
  position: relative;
  isolation: isolate;
  min-height: clamp(500px, 48vw, 650px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 46%, rgba(168, 191, 160, 0.3), transparent 34%),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72));
}

.fixes-system__viewport::before {
  content: "";
  position: absolute;
  inset: 14% 10% 18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(47, 74, 58, 0.09), transparent 67%);
  filter: blur(18px);
  transform: scaleY(0.36) translateY(105%);
  pointer-events: none;
}

.fixes-system__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: pan-y;
}

.fixes-system__topline {
  position: absolute;
  top: clamp(16px, 2vw, 26px);
  right: clamp(18px, 2.4vw, 32px);
  left: clamp(18px, 2.4vw, 32px);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  pointer-events: none;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fixes-system__topline span:last-child {
  color: var(--ink-2);
}

.fixes-system__caption {
  position: absolute;
  bottom: clamp(20px, 2.4vw, 34px);
  left: clamp(20px, 2.8vw, 40px);
  z-index: 4;
  display: grid;
  gap: 7px;
  width: min(470px, calc(100% - 40px));
  padding: 70px 34px 24px 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.76) 64%, transparent);
}

.fixes-system__caption > span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fixes-system__caption h3 {
  max-width: 18ch;
  font-size: clamp(1.55rem, 2.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.fixes-system__caption p {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: clamp(0.78rem, 1vw, 0.94rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.fixes-system__hotspots {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.fixes-hotspot {
  position: absolute;
  top: var(--hotspot-y, 50%);
  left: var(--hotspot-x, 50%);
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(47, 74, 58, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--fir);
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 30px -22px rgba(47, 74, 58, 0.9);
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.fixes-hotspot::before {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(47, 74, 58, 0.12);
  border-radius: inherit;
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}

.fixes-hotspot span[aria-hidden="true"] {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
}

.fixes-hotspot:hover,
.fixes-hotspot[aria-expanded="true"] {
  background: var(--fir);
  color: var(--cream);
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 18px 36px -22px rgba(47, 74, 58, 0.95);
}

.fixes-hotspot:hover::before,
.fixes-hotspot[aria-expanded="true"]::before {
  opacity: 0;
  transform: scale(1.25);
}

.fixes-hotspot:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.fixes-insight {
  position: absolute;
  top: var(--insight-y, 54%);
  left: var(--insight-x, 50%);
  z-index: 7;
  display: grid;
  gap: 7px;
  width: min(300px, calc(100% - 32px));
  padding: 20px 48px 20px 20px;
  border: 1px solid rgba(47, 74, 58, 0.24);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.97);
  color: var(--fir);
  transform: translate(-50%, -50%);
  box-shadow: 0 28px 68px -38px rgba(47, 74, 58, 0.92);
}

.fixes-insight[hidden] {
  display: none;
}

.fixes-insight__label {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fixes-insight strong {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.fixes-insight p {
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.5;
}

.fixes-insight__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fir);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms var(--ease), transform 180ms var(--ease);
}

.fixes-insight__close:hover {
  background: rgba(168, 191, 160, 0.28);
}

.fixes-insight__close:active {
  transform: scale(0.94);
}

.fixes-system__states {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.56);
}

.fixes-system__states article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 190px;
  padding: clamp(22px, 2.8vw, 38px);
  border-inline-start: 1px solid var(--rule-soft);
}

.fixes-system__states article:first-child {
  border-inline-start: 0;
}

.fixes-system__states-focus {
  background:
    radial-gradient(circle at 50% 0%, rgba(168, 191, 160, 0.36), transparent 62%),
    rgba(255, 255, 255, 0.5);
}

.fixes-system__states article > span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fixes-system__states h3 {
  max-width: 20ch;
  font-size: clamp(1.2rem, 1.8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.fixes-system__states p {
  max-width: 37ch;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.55;
  text-wrap: pretty;
}

.fixes-system__fallback {
  position: absolute;
  inset: 20% 13% 25%;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: space-between;
}

.fixes-system__fallback span {
  position: relative;
  width: clamp(54px, 9vw, 108px);
  aspect-ratio: 1;
  border: 1px solid rgba(47, 74, 58, 0.28);
  border-radius: 28%;
  background: rgba(168, 191, 160, 0.18);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.62);
}

.fixes-system__fallback span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7vw;
  height: 1px;
  background: rgba(47, 74, 58, 0.28);
  transform: translateX(100%);
}

.fixes-system__fallback span:last-child::after {
  display: none;
}

.fixes-hub.is-fallback .fixes-system__fallback {
  display: flex;
}

.fixes-hub.is-fallback .fixes-system__canvas,
.fixes-hub.is-fallback .fixes-system__hotspots {
  display: none;
}

.fixes-hub__panels {
  min-height: 320px;
}

@media (max-width: 900px) {
  .fixes-system__viewport {
    min-height: 540px;
  }

  .fixes-system__caption {
    width: min(430px, calc(100% - 40px));
  }

  .fixes-system__states {
    grid-template-columns: 1fr;
  }

  .fixes-system__states article {
    min-height: 0;
    padding: 24px;
    border-top: 1px solid var(--rule-soft);
    border-inline-start: 0;
  }

  .fixes-system__states article:first-child {
    border-top: 0;
  }
}

@media (max-width: 600px) {
  .fixes-hub__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .fixes-tab:last-child { grid-column: auto; }

  .fixes-tab,
  .fixes-tab:last-child {
    min-height: 68px;
    padding: 14px 16px;
    border-inline-end: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }

  .fixes-tab:nth-child(2n) { border-inline-end: 0; }
  .fixes-tab:nth-last-child(-n + 2) { border-bottom: 0; }

  .fixes-tab__meta {
    display: none;
  }

  .fixes-system__viewport {
    min-height: 510px;
  }

  .fixes-system__topline span:last-child {
    display: none;
  }

  .fixes-system__caption {
    right: 16px;
    bottom: 14px;
    left: 16px;
    width: auto;
    padding: 54px 18px 18px 0;
  }

  .fixes-system__caption h3 {
    max-width: 16ch;
    font-size: clamp(1.5rem, 7.8vw, 2rem);
  }

  .fixes-system__caption p {
    max-width: 36ch;
    font-size: 0.76rem;
  }

  .fixes-hotspot {
    width: 44px;
    height: 44px;
  }

  .fixes-insight {
    top: auto;
    right: 14px;
    bottom: 18px;
    left: 14px;
    width: auto;
    transform: none;
  }

  .fixes-system__states article {
    padding: 22px 20px;
  }

  .fixes-system__states h3 {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fixes-system__canvas {
    cursor: default;
  }

  .fixes-hotspot,
  .fixes-hotspot::before,
  .fixes-insight__close {
    transition: none;
  }
}

/* ---------- 15. Standards register ---------- */

.standards {
  overflow: hidden;
}

.standards__head {
  display: grid;
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.standards__title {
  max-width: 13ch;
}

.standards__intro {
  display: grid;
  max-width: 56ch;
  gap: var(--s-4);
  color: var(--ink-2);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.standards__assurance {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.standards__assurance i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mid);
  box-shadow: 0 0 0 5px rgba(168, 191, 160, 0.18);
}

.standards-board {
  margin-top: clamp(44px, 6vw, 82px);
  overflow: hidden;
  border: 1px solid rgba(47, 74, 58, 0.22);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 24px 70px rgba(47, 74, 58, 0.07);
}

.standards-board__topline {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.standards-board__topline span:last-child {
  color: var(--ink);
}

.standards-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid rgba(47, 74, 58, 0.18);
}

.standards-tab {
  position: relative;
  display: grid;
  min-height: 88px;
  align-content: center;
  gap: 5px;
  padding: 15px clamp(13px, 1.6vw, 24px);
  border: 0;
  border-inline-end: 1px solid var(--rule-soft);
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition:
    color 220ms var(--ease),
    background 220ms var(--ease);
}

.standards-tab:last-child {
  border-inline-end: 0;
}

.standards-tab::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -1px;
  left: 14px;
  height: 2px;
  background: var(--fir);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}

.standards-tab:hover {
  background: rgba(168, 191, 160, 0.1);
  color: var(--ink);
}

.standards-tab:focus-visible {
  z-index: 2;
  outline: 2px solid var(--fir);
  outline-offset: -4px;
}

.standards-tab.is-active {
  background: rgba(168, 191, 160, 0.17);
  color: var(--ink);
}

.standards-tab.is-active::after {
  transform: scaleX(1);
}

.standards-tab span {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  font-weight: 600;
  line-height: 1.25;
}

.standards-tab small {
  overflow: hidden;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.25;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.standards-board__body {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.68fr);
  min-height: 570px;
}

.standards-summary {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(28px, 4vw, 54px);
  background: var(--fir);
  color: var(--cream);
}

.standards-summary::before,
.standards-summary::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.standards-summary::before {
  right: -42%;
  bottom: -15%;
  width: 92%;
  aspect-ratio: 1;
}

.standards-summary::after {
  right: -27%;
  bottom: 2%;
  width: 63%;
  aspect-ratio: 1;
}

.standards-summary__label {
  margin-bottom: clamp(28px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.standards-summary h3 {
  max-width: 11ch;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.standards-summary > p {
  max-width: 32ch;
  margin-top: var(--s-4);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.55;
}

.standards-summary__metric {
  display: flex;
  margin-top: auto;
  align-items: flex-end;
  gap: 13px;
  padding-top: var(--s-6);
}

.standards-summary__metric strong {
  font-size: clamp(3.6rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.78;
  letter-spacing: -0.07em;
}

.standards-summary__metric span {
  max-width: 18ch;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
  line-height: 1.35;
}

.standards-summary__seal {
  display: flex;
  margin-top: clamp(26px, 4vw, 48px);
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.standards-summary__seal i {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.standards-register {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 4vw, 54px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.42)),
    radial-gradient(circle at 86% 10%, rgba(168, 191, 160, 0.2), transparent 30%);
}

.standards-register__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(47, 74, 58, 0.16);
}

.standards-register__head h3 {
  margin-top: 8px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.standards-register__head > span {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.standards-register__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--s-3);
  column-gap: clamp(18px, 3vw, 44px);
}

.standards-register__item {
  --item-delay: 0ms;
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 7px minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
  border-bottom: 1px solid var(--rule-soft);
  animation: standards-item-in 360ms var(--ease) both;
  animation-delay: var(--item-delay);
}

.standards-register__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mid);
  box-shadow: 0 0 0 4px rgba(168, 191, 160, 0.14);
}

.standards-register__item div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.standards-register__item strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.72rem, 1vw, 0.86rem);
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standards-register__item span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.standards-register__outcome {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: var(--s-6);
}

.standards-register__outcome div {
  display: grid;
  min-height: 76px;
  align-content: space-between;
  gap: 12px;
  padding: 0 clamp(10px, 1.6vw, 22px);
  border-inline-start: 1px solid rgba(47, 74, 58, 0.15);
}

.standards-register__outcome div:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

.standards-register__outcome span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.standards-register__outcome strong {
  max-width: 18ch;
  font-size: clamp(0.7rem, 0.95vw, 0.82rem);
  font-weight: 500;
  line-height: 1.35;
}

.standards__disclaimer {
  max-width: 72ch;
}

.disclaimer { display: grid; gap: var(--s-2); margin-top: var(--s-5); }

@keyframes standards-item-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1024px) {
  .standards__head {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .standards__intro {
    justify-self: end;
  }
}

@media (max-width: 900px) {
  .standards-board__body {
    grid-template-columns: 1fr;
  }

  .standards-summary {
    min-height: 390px;
  }

  .standards-summary h3 {
    max-width: 15ch;
  }

  .standards-register {
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  .standards-tabs {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .standards-tabs::-webkit-scrollbar {
    display: none;
  }

  .standards-tab {
    flex: 0 0 min(42vw, 180px);
  }
}

@media (max-width: 600px) {
  .standards__title {
    max-width: 11ch;
  }

  .standards__intro {
    font-size: 0.98rem;
  }

  .standards-board {
    margin-inline: -1px;
    border-radius: var(--r-md);
  }

  .standards-board__topline span:last-child {
    display: none;
  }

  .standards-tab {
    min-height: 76px;
    flex-basis: 158px;
  }

  .standards-summary {
    min-height: 340px;
    padding: 28px 24px;
  }

  .standards-summary__label {
    margin-bottom: 34px;
  }

  .standards-summary__metric {
    align-items: center;
  }

  .standards-summary__seal {
    margin-top: 28px;
  }

  .standards-register {
    min-height: 0;
    padding: 30px 22px;
  }

  .standards-register__head {
    align-items: start;
  }

  .standards-register__head > span {
    display: none;
  }

  .standards-register__list {
    grid-template-columns: 1fr;
  }

  .standards-register__item {
    min-height: 54px;
  }

  .standards-register__item strong {
    overflow: visible;
    white-space: normal;
  }

  .standards-register__outcome {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--s-5);
    padding-top: 0;
    border-top: 1px solid rgba(47, 74, 58, 0.15);
  }

  .standards-register__outcome div,
  .standards-register__outcome div:first-child {
    min-height: 66px;
    grid-template-columns: 70px 1fr;
    align-items: center;
    align-content: center;
    padding: 0;
    border-bottom: 1px solid var(--rule-soft);
    border-inline-start: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .standards-tab,
  .standards-tab::after {
    transition: none;
  }

  .standards-register__item {
    animation: none;
  }
}

/* ---------- 15b. Refined framework matrix ---------- */

.methodology {
  overflow: hidden;
}

.methodology .head__title {
  max-width: 15ch;
}

.methodology__matrix {
  margin-top: clamp(42px, 5vw, 74px);
}

.matrix-wrap {
  position: relative;
  overflow-x: auto;
  border: var(--surface-glass-border);
  border-radius: var(--surface-glass-radius);
  background: var(--surface-glass-bg);
  -webkit-backdrop-filter: var(--surface-glass-filter);
  backdrop-filter: var(--surface-glass-filter);
  box-shadow: var(--surface-glass-shadow);
  scrollbar-color: rgba(47, 74, 58, 0.25) transparent;
  scrollbar-width: thin;
}

.matrix {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
}

.matrix th,
.matrix td {
  border-inline-end: 1px solid rgba(47, 74, 58, 0.075);
  border-bottom: 1px solid rgba(47, 74, 58, 0.1);
}

.matrix th:last-child,
.matrix td:last-child {
  border-inline-end: 0;
}

.matrix tbody tr:last-child th,
.matrix tbody tr:last-child td {
  border-bottom: 0;
}

.matrix thead th {
  height: 84px;
  padding: 18px 14px;
  background: rgba(242, 243, 233, 0.8);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  vertical-align: bottom;
  transition:
    color 200ms var(--ease),
    background 200ms var(--ease);
}

.matrix thead th:first-child {
  width: 31%;
  padding-inline-start: 24px;
  color: var(--ink);
  text-align: start;
}

.matrix tbody tr {
  position: relative;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease);
}

.matrix tbody tr:hover,
.matrix tbody tr:focus,
.matrix tbody tr.is-active {
  background: rgba(168, 191, 160, 0.105);
  outline: none;
}

.matrix tbody tr:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(47, 74, 58, 0.48);
}

.matrix tbody th {
  position: relative;
  height: 58px;
  padding: 12px 24px;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-align: start;
}

.matrix tbody th::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--fir);
  transform: translateY(-50%);
  transition: height 200ms var(--ease);
}

.matrix tbody tr:hover th::before,
.matrix tbody tr:focus th::before,
.matrix tbody tr.is-active th::before {
  height: 24px;
}

.matrix td {
  width: 13.8%;
  padding: 10px 8px;
  text-align: center;
}

.matrix .cell {
  display: inline-grid;
  width: 100%;
  height: 24px;
  place-items: center;
}

.matrix .cell i {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mid);
  box-shadow: 0 0 0 0 rgba(168, 191, 160, 0);
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.matrix .cell i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(47, 74, 58, 0.16);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
}

.matrix .cell--off i {
  width: 13px;
  height: 1px;
  border-radius: 0;
  background: rgba(47, 74, 58, 0.15);
}

.matrix .cell--off i::after {
  display: none;
}

.matrix tbody tr.is-active .cell:not(.cell--off) i {
  background: var(--fir);
  box-shadow: 0 0 0 5px rgba(168, 191, 160, 0.12);
  transform: scale(1.08);
}

.matrix tbody tr.is-active .cell:not(.cell--off) i::after {
  opacity: 1;
  transform: scale(1);
}

.matrix thead th.is-active {
  background: rgba(168, 191, 160, 0.16);
  color: var(--fir);
}

.matrix-cards {
  display: none;
}

.methodology__disclaimer {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  max-width: 920px;
  gap: clamp(14px, 3vw, 44px);
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(47, 74, 58, 0.14);
}

.methodology__disclaimer .note {
  max-width: 58ch;
}

@media (max-width: 860px) {
  .matrix-wrap {
    display: none;
  }

  .matrix-cards {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: var(--surface-glass-inner-border);
    border-radius: var(--surface-glass-inner-radius);
    background: var(--surface-glass-inner-bg);
    box-shadow: var(--surface-glass-inner-shadow);
  }

  .matrix-mobile-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule-soft);
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .matrix-mobile-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--rule-soft);
  }

  .matrix-mobile-row:last-child {
    border-bottom: 0;
  }

  .matrix-mobile-num {
    padding-top: 2px;
    color: var(--mid);
    font-family: var(--font-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.06em;
  }

  .matrix-mobile-name {
    display: block;
    color: var(--fir);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
  }

  .matrix-mobile-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
  }

  .matrix-mobile-service {
    padding: 4px 7px;
    border: 1px solid rgba(47, 74, 58, 0.16);
    border-radius: var(--r-pill);
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
  }

  .matrix-cards details {
    overflow: hidden;
    border: var(--surface-glass-inner-border);
    border-radius: var(--surface-glass-inner-radius);
    background: var(--surface-glass-inner-bg);
    box-shadow: var(--surface-glass-inner-shadow);
  }

  .matrix-cards summary {
    position: relative;
    display: flex;
    min-height: 66px;
    align-items: center;
    padding: 14px 54px 14px 18px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 550;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
  }

  .matrix-cards summary::-webkit-details-marker {
    display: none;
  }

  .matrix-cards summary::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-end: 12px;
    border-radius: 50%;
    background: var(--mid);
    box-shadow: 0 0 0 5px rgba(168, 191, 160, 0.13);
  }

  .matrix-cards summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 17px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(47, 74, 58, 0.2);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 400;
    transform: translateY(-50%);
    transition:
      color 180ms var(--ease),
      background 180ms var(--ease),
      transform 220ms var(--ease);
  }

  .matrix-cards summary:focus-visible {
    outline: 2px solid var(--fir);
    outline-offset: -4px;
  }

  .matrix-cards details[open] {
    background: rgba(255, 255, 255, 0.82);
  }

  .matrix-cards details[open] summary {
    border-bottom: 1px solid var(--rule-soft);
  }

  .matrix-cards details[open] summary::after {
    background: var(--fir);
    color: var(--cream);
    transform: translateY(-50%) rotate(45deg);
  }

  .matrix-cards ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 18px 18px;
    column-gap: 20px;
  }

  .matrix-cards li {
    position: relative;
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 9px 0 9px 14px;
    border-bottom: 1px solid var(--rule-soft);
    color: var(--ink-2);
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .matrix-cards li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mid);
  }

  .methodology__disclaimer {
    grid-template-columns: 1fr;
  }

  .methodology__matrix {
    padding-bottom: 56px;
  }
}

@media (max-width: 520px) {
  .methodology .head__title {
    max-width: 11ch;
  }

  .matrix-cards ul {
    grid-template-columns: 1fr;
  }

  .matrix-cards li {
    min-height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .matrix tbody tr,
  .matrix tbody th::before,
  .matrix .cell i,
  .matrix .cell i::after,
  .matrix thead th,
  .matrix-cards summary::after {
    transition: none;
  }
}

/* ---------- 16. History timeline ---------- */

.hist { position: relative; display: grid; gap: 0; }
/* an svg with a width attribute keeps its intrinsic height, so top/bottom
   alone will not stretch it: the height has to be stated */
.hist__spine {
  position: absolute; left: 7px; top: 12px; width: 1px;
  height: calc(100% - 24px);
}
@media (min-width: 900px) { .hist__spine { left: calc(20% + 7px); } }

.hist__item {
  position: relative; display: grid; gap: var(--s-3);
  padding: clamp(28px, 4vw, 52px) 0 clamp(28px, 4vw, 52px) 40px;
}
@media (min-width: 900px) {
  .hist__item { grid-template-columns: 20% 1fr; gap: var(--s-8); padding-inline-start: 0; }
  .hist__item .hist__body { padding-inline-start: 40px; }
}
.hist__dot {
  position: absolute; left: 0; top: clamp(30px, 4vw, 56px);
  width: 15px; height: 15px; border-radius: var(--r-pill);
  background: var(--cream); border: 1.5px solid var(--fir);
}
@media (min-width: 900px) { .hist__dot { left: 20%; } }
.hist__item--now .hist__dot { background: var(--fir); }
.hist__year { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.hist__item--now .hist__year { color: var(--fir); }
.hist__text { max-width: 60ch; color: var(--ink-2); }
.hist__lead { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.022em; line-height: 1.24; margin-bottom: var(--s-3); color: var(--fir); }

.hist__close {
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--rule);
  font-size: var(--fs-lead); max-width: 46ch; letter-spacing: -0.015em;
}

/* ---------- 16b. History evidence chain ---------- */

.history-layout {
  display: grid;
  gap: clamp(42px, 6vw, 90px);
  align-items: start;
}

.history-intro {
  display: grid;
  align-content: start;
}

.history-intro__title {
  max-width: 10.5ch;
  margin-top: var(--s-3);
}

.history-intro__copy {
  max-width: 39ch;
  margin-top: var(--s-5);
  color: var(--ink-2);
  font-size: clamp(0.94rem, 1.2vw, 1.08rem);
  line-height: 1.55;
}

.history-pattern {
  display: grid;
  max-width: 390px;
  gap: 14px;
  margin-top: clamp(42px, 7vw, 84px);
  padding-top: 18px;
  border-top: 1px solid rgba(47, 74, 58, 0.18);
}

.history-pattern span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-pattern strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: var(--fir);
  font-size: clamp(0.86rem, 1.3vw, 1rem);
  font-weight: 550;
}

.history-pattern i {
  color: var(--mid);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
}

.history-board {
  overflow: hidden;
  border: 1px solid rgba(47, 74, 58, 0.2);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    inset 0 2px 0 rgba(168, 191, 160, 0.38),
    0 26px 72px rgba(47, 74, 58, 0.065);
}

.history-board__topline {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0 clamp(18px, 2.4vw, 30px);
  border-bottom: 1px solid rgba(47, 74, 58, 0.12);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.history-board__topline span:last-child {
  color: var(--ink);
}

.history-section .hist {
  position: relative;
  display: grid;
  gap: 0;
}

.history-section .hist__spine {
  position: absolute;
  top: 48px;
  left: 33px;
  z-index: 2;
  width: 1px;
  height: calc(100% - 96px);
  pointer-events: none;
}

.history-section .hist__item {
  position: relative;
  display: grid;
  min-height: 126px;
  grid-template-columns: minmax(110px, 0.56fr) minmax(170px, 0.86fr) minmax(0, 1.5fr);
  gap: clamp(16px, 2.5vw, 34px);
  align-items: center;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 38px) clamp(24px, 3vw, 34px) 78px;
  border-bottom: 1px solid rgba(47, 74, 58, 0.1);
  transition:
    color 200ms var(--ease),
    background 200ms var(--ease);
}

.history-section .hist__item:hover {
  background: rgba(168, 191, 160, 0.1);
}

.history-section .hist__dot {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(47, 74, 58, 0.38);
  border-radius: 50%;
  background: var(--cream-light);
  color: var(--ink-3);
  transform: translateY(-50%);
  transition:
    color 200ms var(--ease),
    background 200ms var(--ease),
    border-color 200ms var(--ease);
}

.history-section .hist__dot::after {
  content: attr(data-step);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.history-section .hist__item:hover .hist__dot {
  border-color: var(--fir);
  background: var(--fir);
  color: var(--cream);
}

.history-section .hist__year {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-section .hist__lead {
  margin: 0;
  color: var(--fir);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.history-section .hist__text {
  max-width: none;
  color: var(--ink-2);
  font-size: clamp(0.76rem, 0.95vw, 0.88rem);
  line-height: 1.52;
}

.history-section .hist__item--now {
  border-bottom: 0;
  background: var(--fir);
  color: var(--cream);
}

.history-section .hist__item--now:hover {
  background: var(--fir-deep);
}

.history-section .hist__item--now .hist__dot {
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--cream);
  color: var(--fir);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.history-section .hist__item--now .hist__year {
  color: var(--sage);
}

.history-section .hist__item--now .hist__lead {
  color: var(--cream);
}

.history-section .hist__item--now .hist__text {
  color: rgba(255, 255, 255, 0.72);
}

.history-section .hist__close {
  display: grid;
  max-width: none;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 42px);
  margin: 0;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 38px) clamp(26px, 3vw, 36px) 78px;
  border-top: 1px solid rgba(47, 74, 58, 0.12);
  background: rgba(168, 191, 160, 0.14);
  color: var(--fir);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
}

.history-section .hist__close span {
  padding-top: 4px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (min-width: 1080px) {
  .history-layout {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.48fr);
  }

  .history-intro {
    position: sticky;
    top: 118px;
  }
}

@media (max-width: 1079px) {
  .history-intro__title {
    max-width: 18ch;
  }

  .history-intro__copy {
    max-width: 56ch;
  }

  .history-pattern {
    max-width: 520px;
    margin-top: 34px;
  }
}

@media (max-width: 700px) {
  .history-intro__title {
    max-width: 11ch;
  }

  .history-board {
    border-radius: var(--r-md);
  }

  .history-board__topline {
    padding-inline: 16px;
  }

  .history-section .hist__spine {
    left: 30px;
  }

  .history-section .hist__item {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 25px 20px 26px 66px;
  }

  .history-section .hist__dot {
    left: 14px;
  }

  .history-section .hist__year {
    margin-bottom: 5px;
  }

  .history-section .hist__lead {
    font-size: 1.16rem;
  }

  .history-section .hist__text {
    font-size: 0.81rem;
  }

  .history-section .hist__close {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 20px 26px 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-section .hist__item,
  .history-section .hist__dot {
    transition: none;
  }
}

/* ---------- 16c. History wave selector ---------- */

.history-tabs-section {
  overflow: clip;
}

.history-tabs__head {
  display: grid;
  gap: clamp(26px, 4vw, 58px);
  align-items: end;
}

.history-tabs__title {
  max-width: 16ch;
  margin-top: var(--s-3);
}

.history-tabs__intro {
  display: grid;
  max-width: 49ch;
  gap: 20px;
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.58;
}

.history-tabs__intro > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-tabs__intro i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mid);
  box-shadow: 0 0 0 4px rgba(168, 191, 160, 0.2);
}

.history-deck {
  position: relative;
  overflow: hidden;
  margin-top: clamp(42px, 6vw, 76px);
  border: var(--surface-glass-border);
  border-radius: var(--surface-glass-radius);
  background: var(--surface-glass-bg);
  -webkit-backdrop-filter: var(--surface-glass-filter);
  backdrop-filter: var(--surface-glass-filter);
  box-shadow: var(--surface-glass-shadow);
}

.history-deck__topline {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-inline: clamp(18px, 2.5vw, 32px);
  border-bottom: 1px solid rgba(47, 74, 58, 0.11);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-deck__topline span:last-child {
  color: var(--fir);
}

.history-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(47, 74, 58, 0.12);
}

.history-rail::before {
  content: "";
  position: absolute;
  top: 30px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 74, 58, 0.12), rgba(47, 74, 58, 0.34), rgba(47, 74, 58, 0.12));
}

.history-rail__tab {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  min-height: 108px;
  grid-template-rows: 18px auto auto;
  gap: 7px;
  justify-items: center;
  align-content: start;
  padding: 22px 10px 17px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease);
}

.history-rail__tab:hover {
  background: rgba(168, 191, 160, 0.08);
  color: var(--fir);
}

.history-rail__tab:focus-visible {
  z-index: 2;
  outline: 2px solid var(--fir);
  outline-offset: -3px;
}

.history-rail__tab i {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(47, 74, 58, 0.52);
  border-radius: 50%;
  background: var(--cream-light);
  transition:
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.history-rail__tab.is-active i {
  border-color: var(--fir);
  background: var(--fir);
  box-shadow: 0 0 0 5px rgba(168, 191, 160, 0.26);
  transform: scale(1.08);
}

.history-rail__tab strong {
  color: currentColor;
  font-size: clamp(0.82rem, 1.1vw, 0.98rem);
  font-weight: 550;
  letter-spacing: -0.015em;
}

.history-rail__tab.is-active {
  color: var(--fir);
}

.history-rail__tab span {
  overflow: hidden;
  max-width: 100%;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.history-panels {
  min-height: 330px;
}

.history-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(125px, 0.56fr) minmax(210px, 0.85fr) minmax(0, 1.45fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  overflow: hidden;
  padding: clamp(38px, 5vw, 66px);
  animation: history-panel-in 420ms var(--ease) both;
}

.history-panel[hidden] {
  display: none;
}

.history-panel::before,
.history-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(47, 74, 58, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.history-panel::before {
  top: 12%;
  right: -8%;
  width: min(34vw, 430px);
  aspect-ratio: 1;
}

.history-panel::after {
  top: 28%;
  right: -3%;
  width: min(22vw, 280px);
  aspect-ratio: 1;
}

.history-panel__mark {
  color: rgba(47, 74, 58, 0.16);
  font-size: clamp(3.8rem, 6vw, 6.4rem);
  font-weight: 300;
  line-height: 0.85;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.history-panel__mark--word {
  font-size: clamp(3rem, 5.2vw, 5.6rem);
}

.history-panel__heading {
  display: grid;
  gap: 12px;
}

.history-panel__heading span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.history-panel__heading h2 {
  max-width: 16ch;
  color: var(--fir);
  font-size: clamp(1.5rem, 2.5vw, 2.35rem);
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.history-panel > p {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  color: var(--ink-2);
  font-size: clamp(0.83rem, 1.05vw, 0.98rem);
  line-height: 1.62;
}

.history-panel--now {
  background:
    linear-gradient(90deg, rgba(168, 191, 160, 0.18), rgba(168, 191, 160, 0.05) 72%, transparent);
}

.history-panel--now .history-panel__mark {
  color: rgba(47, 74, 58, 0.24);
}

.history-deck__conclusion {
  display: grid;
  grid-template-columns: minmax(130px, 0.58fr) minmax(0, 1.45fr);
  gap: clamp(20px, 4vw, 58px);
  align-items: center;
  padding: 21px clamp(24px, 5vw, 66px);
  border-top: 1px solid rgba(47, 74, 58, 0.12);
  background: rgba(168, 191, 160, 0.12);
}

.history-deck__conclusion > span {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-deck__conclusion strong {
  color: var(--fir);
  font-size: clamp(0.88rem, 1.25vw, 1.05rem);
  font-weight: 550;
  letter-spacing: -0.015em;
}

.history-deck__conclusion i {
  padding-inline: 8px;
  color: var(--mid);
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
}

@keyframes history-panel-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 960px) {
  .history-tabs__head {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.7fr);
  }
}

@media (max-width: 820px) {
  .history-panel {
    grid-template-columns: 120px minmax(190px, 0.9fr) minmax(0, 1.2fr);
    gap: 22px;
    padding-inline: 30px;
  }

  .history-panel > p {
    font-size: 0.82rem;
  }
}

@media (max-width: 680px) {
  .history-tabs__title {
    max-width: 11ch;
  }

  .history-deck {
    border-radius: var(--surface-glass-radius);
  }

  .history-rail {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .history-rail::-webkit-scrollbar {
    display: none;
  }

  .history-rail::before {
    right: 65px;
    left: 65px;
    width: 520px;
  }

  .history-rail__tab {
    min-width: 130px;
    flex: 0 0 130px;
    scroll-snap-align: center;
  }

  .history-panels {
    min-height: 0;
  }

  .history-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 34px 24px 38px;
  }

  .history-panel::before {
    top: auto;
    right: -100px;
    bottom: -105px;
    width: 280px;
  }

  .history-panel::after {
    top: auto;
    right: -34px;
    bottom: -50px;
    width: 160px;
  }

  .history-panel__mark,
  .history-panel__mark--word {
    font-size: 2.5rem;
  }

  .history-panel__heading {
    gap: 9px;
  }

  .history-panel__heading h2 {
    font-size: 1.65rem;
  }

  .history-panel > p {
    max-width: 46ch;
    font-size: 0.86rem;
  }

  .history-deck__conclusion {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 24px 22px;
  }

  .history-deck__conclusion i {
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-rail__tab,
  .history-rail__tab i,
  .history-panel {
    animation: none;
    scroll-behavior: auto;
    transition: none;
  }
}

/* ---------- 17. Mission ---------- */

.mission { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .mission { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }
.mission__block { display: grid; gap: var(--s-3); align-content: start; }
.mission__text { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.015em; max-width: 44ch; }

/* ---------- 17b. FAQ ---------- */

.faq__layout { display: grid; gap: var(--s-8); }
@media (min-width: 900px) {
  .faq__layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-9, 128px); align-items: start; }
}
.faq__intro { display: grid; gap: var(--s-4); align-content: start; }
.faq__intro .lead { max-width: 40ch; color: var(--ink-2); }
.faq__intro .btn-flow { justify-self: start; margin-top: var(--s-2); }

.faq__list { display: grid; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 22px;
  background: none;
  border: none;
  text-align: start;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  transition: color 220ms var(--ease);
}
.faq__trigger:hover,
.faq__trigger:focus-visible { color: var(--fir); }
.faq__chevron {
  flex: none;
  display: inline-flex;
  width: 11px;
  height: 11px;
  color: var(--ink-3);
  transition: transform 320ms var(--ease);
}
.faq__chevron svg { width: 100%; height: 100%; }
.faq__item.is-open .faq__chevron { transform: rotate(180deg); color: var(--fir); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 360ms var(--ease);
}
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel-inner { overflow: hidden; }
.faq__panel-inner p {
  max-width: 56ch;
  padding-bottom: 22px;
  color: var(--ink-3);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .faq__panel,
  .faq__chevron { transition: none; }
}

/* ---------- 17c. Mobile long-form page index ---------- */

.toc__current { display: none; }

@media (max-width: 600px) {
  .toc-layout.toc-layout--mobile-ready {
    gap: 0;
    padding-top: 66px;
  }
  .toc.toc--mobile-ready {
    position: sticky;
    top: 62px;
    z-index: calc(var(--z-nav) - 1);
    margin-bottom: 20px;
  }
  .toc.toc--mobile-ready .toc__details {
    position: relative;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
  .toc.toc--mobile-ready .toc__summary,
  .toc.toc--mobile-ready .toc__details[open] .toc__summary {
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    color: var(--ink-3);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.075em;
    text-transform: uppercase;
  }
  .toc.toc--mobile-ready .toc__summary-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 8px;
    overflow: hidden;
  }
  .toc.toc--mobile-ready .toc__summary-label { flex: none; }
  .toc.toc--mobile-ready .toc__current {
    display: block;
    min-width: 0;
    padding-inline-start: 8px;
    overflow: hidden;
    border-inline-start: 1px solid var(--rule);
    color: var(--fir);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .toc.toc--mobile-ready .toc__list {
    position: absolute;
    z-index: 2;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: min(62vh, 520px);
    padding: 7px 10px;
    overflow-y: auto;
    gap: 0;
    border: 1px solid var(--rule);
    border-radius: var(--r-md);
    background: var(--cream);
    box-shadow: 0 18px 44px -32px rgba(47, 74, 58, 0.64);
    overscroll-behavior: contain;
  }
  .toc.toc--mobile-ready .toc__item + .toc__item {
    border-top: 1px solid var(--rule-soft);
  }
  .toc.toc--mobile-ready .toc__link {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 0;
    font-size: 0.78rem;
    line-height: 1.3;
  }
  .toc.toc--mobile-ready .toc__link.is-active {
    background: var(--sage-veil);
  }
}

/* ---------- 18. Closing (single deliberate dark block) ---------- */

.close {
  position: relative; z-index: var(--z-content);
  background: var(--fir); color: var(--cream);
  border-radius: var(--r-md) 14px 0 0;
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 96px);
}
.close__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.close__inner {
  position: relative; z-index: 2;
  padding-block: clamp(96px, 15vw, 220px);
  display: grid; gap: var(--s-6); justify-items: start;
}
.close .eyebrow { color: var(--on-fir-3); }
.close__title { max-width: 18ch; }
.close__trust { color: var(--on-fir-2); font-size: var(--fs-small); }
.close__arc { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-top: var(--s-4); }
.close__arc li {
  font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--on-fir-2);
}
.close__arc .sep { color: var(--on-fir-3); }
.close__arc li.is-lit { color: var(--cream); }

/* ---------- 19. Footer ---------- */

.foot {
  background: var(--fir); color: var(--on-fir-2);
  position: relative; z-index: var(--z-content);
}
.foot__inner {
  padding-block: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255,0.16);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center;
}
.foot .label { color: var(--on-fir-3); }
.foot__brandblock { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.foot__brand { display: flex; align-items: center; gap: 14px; color: var(--cream); font-size: 1.5rem; }
.foot__brand svg { width: 76px; height: 85px; }
.foot__brandblock .label { margin-inline-start: 90px; }

.foot__heading {
  color: var(--cream);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
}
.foot__heading--sm { font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.08em; }
.foot__lede { color: var(--on-fir-3); font-size: var(--fs-small); max-width: 32ch; margin-bottom: var(--s-4); }

.foot__newsletter { position: relative; display: flex; max-width: 320px; }
.foot__newsletter-input {
  width: 100%;
  padding: 12px 48px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.foot__newsletter-input::placeholder { color: var(--on-fir-3); }
.foot__newsletter-input:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(168, 191, 160, 0.5);
}
.foot__newsletter-submit {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--fir);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: box-shadow 220ms var(--ease);
}
.foot__newsletter-submit:focus-visible {
  box-shadow: 0 0 0 3px rgba(168, 191, 160, 0.6);
}
.foot__newsletter-submit svg { width: 15px; height: 15px; }
.foot__newsletter-note {
  margin-top: var(--s-3);
  min-height: 1.2em;
  font-size: var(--fs-label);
  letter-spacing: 0.04em;
  color: var(--sage);
}
/* The footer sits on fir, so success and failure shift to cream for contrast
   rather than to the greens used on light sections. */
.foot__newsletter-note[data-state="ok"],
.foot__newsletter-note[data-state="error"] { color: var(--cream); font-weight: 500; }
.foot__newsletter-note[data-state="busy"] { opacity: 0.7; }

.foot__social { display: flex; gap: 10px; list-style: none; margin-top: var(--s-4); }
.foot__social-link {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--on-fir-2);
  transition: border-color 220ms var(--ease), color 220ms var(--ease), background 220ms var(--ease);
}
.foot__social-link:hover,
.foot__social-link:focus-visible {
  border-color: transparent;
  background: var(--cream);
  color: var(--fir);
}
.foot__social-link svg { width: 16px; height: 16px; }
.foot__social-link[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--fir);
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.foot__social-link[data-tooltip]:hover::after,
.foot__social-link[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- light-surface form (contact pages): same tokens/shape rules as the rest of the page ---------- */
.dform { display: flex; flex-direction: column; gap: var(--s-4); }
.dform .form-row { display: flex; flex-direction: column; gap: 6px; }
.dform label {
  font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3);
}
.dform input, .dform textarea {
  width: 100%; font: inherit; font-size: 0.9375rem; color: var(--fir);
  background: var(--surface-3); border: 1px solid var(--rule);
  min-height: var(--ctl-h); padding: 12px var(--ctl-pad-x-sm); transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.dform input { border-radius: var(--r-pill); }
.dform textarea { border-radius: var(--r-md); resize: vertical; }
.dform input:focus-visible, .dform textarea:focus-visible {
  outline: none; border-color: var(--fir); background: var(--cream-light);
  box-shadow: 0 0 0 3px rgba(47, 74, 58, 0.25);
}
.dform input::placeholder, .dform textarea::placeholder { color: var(--ink-3); }
.dform__submit {
  justify-self: start; display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--ctl-h); padding: 0 var(--ctl-pad-x);
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--fir); color: var(--cream); font-size: 0.875rem; font-weight: 500;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.dform__submit:hover, .dform__submit:focus-visible { transform: translateY(-2px); }
.dform__submit:focus-visible { box-shadow: 0 0 0 3px rgba(47, 74, 58, 0.4); }
/* .dform__submit and .btn-flow each declare their own `transition` shorthand;
   combined on one button, whichever rule is later in the cascade wins outright
   and silently drops the other's properties. This merges both so the flow
   button's color/border fade survives alongside the form button's lift. */
.dform__submit.btn-flow {
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease),
    border-color 600ms cubic-bezier(0.23, 1, 0.32, 1),
    border-radius 600ms cubic-bezier(0.23, 1, 0.32, 1),
    color 600ms cubic-bezier(0.23, 1, 0.32, 1),
    background 600ms cubic-bezier(0.23, 1, 0.32, 1);
}
.dform__submit:active { transform: translateY(0) scale(0.98); }
.dform__submit svg { width: 15px; height: 15px; }
.dform__note { margin-top: var(--s-3); min-height: 1.2em; font-size: var(--fs-label); letter-spacing: 0.04em; color: var(--mid); }
.dform__note[data-state="error"] { color: var(--fir); font-weight: 500; }
.dform__note[data-state="ok"] { color: var(--fir); font-weight: 500; }
/* In flight. The submit button is disabled at the same time, so the dimming is
   a second signal for the same fact rather than the only one. */
.dform__note[data-state="busy"] { color: var(--mid); opacity: 0.7; }

.dform__submit[disabled] { opacity: 0.55; cursor: progress; transform: none; }
.dform__submit[disabled]:hover { transform: none; }
.foot__newsletter-submit[disabled] { opacity: 0.55; cursor: progress; }

.dform__privacy {
  margin-top: var(--s-3);
  max-width: 46ch;
  font-size: var(--fs-label);
  letter-spacing: 0.02em;
  color: var(--mid);
}
.dform__privacy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dform__privacy a:hover, .dform__privacy a:focus-visible { color: var(--fir); }

/* Inline validation message. Carries an icon glyph as well as the tone shift so
   the error is not signalled by colour alone. */
.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: var(--fs-label);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--fir);
}
.field-error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  border: 1px solid var(--fir);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}
.dform [aria-invalid="true"] {
  border-color: var(--fir);
  box-shadow: inset 0 0 0 1px var(--fir);
}
.foot__newsletter-input[aria-invalid="true"] { border-color: var(--cream); }
.foot__newsletter + .field-error,
.foot__newsletter ~ .field-error { color: var(--cream); }
.foot__newsletter ~ .field-error::before { border-color: var(--cream); }

.foot__inner { flex-wrap: wrap; }

.foot__sitemap {
  display: grid;
  gap: var(--s-6) var(--s-5);
  grid-template-columns: minmax(220px, 1.6fr) repeat(6, minmax(0, 1fr));
  padding-block: clamp(56px, 8vw, 96px) var(--s-8);
}
@media (max-width: 1180px) {
  .foot__sitemap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__sitemap-col--connect { grid-column: 1 / -1; }
}
.foot__sitemap-col { display: grid; gap: 7px; align-content: start; }
.foot__sitemap-col--connect { gap: 0; }
.foot__sitemap-heading {
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.foot__sitemap-heading--static { cursor: default; }
.foot__sitemap-col a:not(.foot__sitemap-heading) {
  color: var(--on-fir-3);
  font-size: 0.75rem;
  line-height: 1.5;
}
.foot__sitemap-col a { transition: color 220ms var(--ease); }
.foot__sitemap-col a:hover,
.foot__sitemap-col a:focus-visible { color: var(--cream); }
.foot__mobile-directory { display: none; }

@media (max-width: 620px) {
  .foot {
    isolation: isolate;
    background: var(--fir);
    color: var(--on-fir-2);
  }
  .foot__sitemap,
  .foot__inner {
    position: relative;
    z-index: 1;
  }
  .foot__sitemap {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 44px;
    padding-block: 32px 42px;
  }
  .foot__sitemap-col--connect {
    grid-column: 1;
    grid-row: 1;
    padding-top: 4px;
  }
  .js .foot__sitemap--directory-ready > nav.foot__sitemap-col {
    display: none;
  }
  .foot__mobile-directory {
    display: grid;
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }
  .foot__mobile-directory-column {
    display: grid;
    align-content: start;
    gap: 30px;
  }
  .foot__heading {
    margin-bottom: 8px;
    color: var(--cream);
    font-size: 0.9rem;
  }
  .foot__lede {
    max-width: 36ch;
    margin-bottom: 15px;
    color: var(--on-fir-3);
    font-size: 0.68rem;
    line-height: 1.5;
  }
  .foot__newsletter { max-width: none; }
  .foot__newsletter-input {
    min-height: 48px;
    padding-inline-start: 15px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: var(--cream);
    font-size: 0.78rem;
  }
  .foot__newsletter-input::placeholder { color: var(--on-fir-3); }
  .foot__newsletter-input:focus-visible {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
  }
  .foot__newsletter-submit {
    width: 40px;
    height: 40px;
    background: var(--cream);
    color: var(--fir);
  }
  .foot__newsletter-note {
    margin-top: 8px;
    color: var(--sage);
  }
  .foot__social {
    display: none;
  }
  .foot__social-link {
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--on-fir-2);
  }

  .foot__sitemap-col:not(.foot__sitemap-col--connect) {
    gap: 0;
  }
  .foot__sitemap > nav[aria-label="AI in Business"] { grid-column: 1; grid-row: 1; }
  .foot__sitemap > nav[aria-label="Services"]       { grid-column: 2; grid-row: 1; }
  .foot__sitemap > nav[aria-label="Use Cases"]      { grid-column: 1; grid-row: 2; }
  .foot__sitemap > nav[aria-label="Agency"]         { grid-column: 2; grid-row: 2 / span 2; }
  .foot__sitemap > nav[aria-label="Careers"]        { grid-column: 1; grid-row: 3; }
  .foot__sitemap > nav[aria-label="Contact"]        { grid-column: 1; grid-row: 4; }
  .foot__sitemap > nav[aria-label="Legal"]          { grid-column: 2; grid-row: 4; }
  .foot__sitemap-heading {
    margin-bottom: 9px;
    color: var(--on-fir-3);
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .foot__sitemap-col a:not(.foot__sitemap-heading) {
    min-height: 31px;
    display: flex;
    align-items: flex-start;
    padding-block: 3px;
    color: var(--on-fir-2);
    font-size: 0.84rem;
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: -0.015em;
  }
  .foot__sitemap-col a:hover,
  .foot__sitemap-col a:focus-visible { color: var(--cream); }

  .foot__inner {
    padding-block: 26px 30px;
    border-color: rgba(255, 255, 255, 0.16);
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .foot__brand {
    gap: 10px;
    margin-bottom: 8px;
    color: var(--cream);
    font-size: 1.7rem;
  }
  .foot__brand svg {
    width: 60px;
    height: 67px;
  }
  .foot__brandblock .label { margin-inline-start: 70px; }
  .foot .label {
    max-width: 42ch;
    color: var(--on-fir-3);
    font-size: 0.55rem;
    line-height: 1.55;
    letter-spacing: 0.035em;
  }
  .foot__newsletter + .field-error,
  .foot__newsletter ~ .field-error { color: var(--cream); }
  .foot__newsletter ~ .field-error::before { border-color: var(--cream); }
}

/* ---------- 20. Reveal defaults (JS adds .is-in) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ---------- 21. Chapter orientation system ---------- */

.chapter-marker {
  display: grid;
  width: 100%;
  grid-template-columns: auto auto minmax(36px, 1fr);
  align-items: center;
  gap: clamp(10px, 1.4vw, 18px);
  color: var(--fir);
  text-align: start;
}

.chapter-marker__number {
  color: var(--mid);
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
}

.chapter-marker strong {
  font-size: clamp(0.76rem, 0.95vw, 0.9rem);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chapter-marker__line {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 74, 58, 0.42), rgba(47, 74, 58, 0.06));
  transform-origin: left center;
}

.risk-hub__header .chapter-marker {
  max-width: 1180px;
  margin: 0 auto clamp(28px, 3.2vw, 44px);
}

.fixes-section__head > .chapter-marker,
.methodology__head > .chapter-marker,
.history-tabs__head > .chapter-marker {
  grid-column: 1 / -1;
}

.fixes-section__head,
.history-tabs__head {
  row-gap: clamp(28px, 3.4vw, 44px);
}

.methodology__head > .chapter-marker {
  margin-bottom: clamp(28px, 3.4vw, 44px);
}

/* The base stays cream. Each chapter only changes the light falling on it. */
.risk-hub[data-chapter-tone="risk"] {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.34), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.48));
}

.fixes-section[data-chapter-tone="fix"] {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.48), transparent 31%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), var(--paper-veil) 52%, rgba(255, 255, 255, 0.16));
}

.guarantee {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06));
}

.methodology[data-chapter-tone="method"] {
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.68) 48%, rgba(255, 255, 255, 0.24));
}

.history-tabs-section[data-chapter-tone="history"],
.history-tabs-section[data-chapter-tone="history"] + .section {
  background:
    radial-gradient(circle at 82% 24%, rgba(168, 191, 160, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(168, 191, 160, 0.055), rgba(255, 255, 255, 0.12));
}

@media (min-width: 1024px) {
  .methodology__head {
    row-gap: clamp(28px, 3.4vw, 44px);
  }

  .methodology__head > .chapter-marker {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .chapter-marker {
    grid-template-columns: auto auto minmax(24px, 1fr);
  }

  .chapter-marker strong {
    font-size: 0.72rem;
  }
}

/* ---------- 21b. AI in Business Video Gallery ---------- */

.gallery {
  position: relative;
  z-index: var(--z-content);
  padding-block: var(--s-6) var(--s-6);
  background: transparent;
  overflow: hidden;   /* fallback for browsers that don't support overflow:clip (iOS <16) */
  overflow: clip;      /* clip without creating a scroll container — lets touch gestures reach the scrollable track */
}

.gallery__inner {
  display: grid;
  justify-items: center;
  gap: var(--s-3);
  text-align: center;
}

.gallery__title {
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.gallery__title-mobile { display: none; }

.gallery__lede {
  color: var(--ink-3);
  font-size: var(--fs-body);
  max-width: 48ch;
  line-height: 1.5;
}

/* horizontal track */
.gallery__track {
  display: flex;
  gap: var(--s-2);
  width: 100%;
  max-width: var(--maxw);
  margin-top: var(--s-4);
  height: 420px;
}

/* each card */
.gallery__card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  transition: flex 0.55s var(--ease);
  cursor: pointer;
  min-width: 0;
  background: var(--cream-deep);
  border: 1px solid var(--rule-soft);
}

.gallery__card:hover {
  border-color: var(--sage);
}

/* expand on hover: card grows, siblings shrink */
.gallery__track:hover .gallery__card {
  flex: 0.45;
}
.gallery__track .gallery__card:hover {
  flex: 2.2;
}

/* media area */
.gallery__media {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--fir);
}

.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* cards 2–5 have letterbox bars baked into the poster frames → zoom past them */
.gallery__card:nth-child(2) .gallery__img,
.gallery__card:nth-child(3) .gallery__img,
.gallery__card:nth-child(4) .gallery__img,
.gallery__card:nth-child(5) .gallery__img {
  transform: scale(1.22);
}

/* subtle overlay on non-hovered cards */
.gallery__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 74, 58, 0.18);
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}

.gallery__card:hover .gallery__media::after {
  opacity: 0;
}

/* caption — overlay at bottom of card */
.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-3) var(--s-3);
  background: linear-gradient(180deg, transparent 0%, rgba(47, 74, 58, 0.72) 100%);
  color: var(--cream);
  z-index: 2;
}

/* slim sage accent line */
.gallery__accent {
  flex-shrink: 0;
  width: 3px;
  height: 22px;
  border-radius: var(--r-xs);
  background: var(--sage);
}

.gallery__label {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(47, 74, 58, 0.45);
}

/* on hover — accent glows */
.gallery__card:hover .gallery__accent {
  background: var(--cream);
  box-shadow: 0 0 6px rgba(168,191,160,0.6);
}

.gallery__sub {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink-3);
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 860px) {
  .gallery__track {
    height: auto;
    flex-direction: column;
    gap: var(--s-3);
  }

  .gallery__card {
    flex: none !important;
    flex-direction: row;
    height: 140px;
  }

  .gallery__media {
    flex: none;
    width: 140px;
    height: 100%;
  }

  .gallery__track:hover .gallery__card {
    flex: none;
  }
}

@media (max-width: 520px) {
  .gallery {
    padding-block: var(--s-5) var(--s-5);
  }

  /* Five stacked photo cards cost 1.3 screens of scroll to carry 19 words.
     A snap carousel keeps every card and every image but spends about a third
     of the height. Cards sit at 78vw so the next one always peeks past the
     edge — that peek is the affordance that tells you it scrolls. */
  .gallery__track {
    flex-direction: row;
    height: auto;
    gap: var(--s-3);
    margin-top: var(--s-3);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none; /* manual JS swipe drives scrollLeft; snap would fight it */
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .gallery__track::-webkit-scrollbar { display: none; }

  .gallery__track > * { flex-shrink: 0; }

  .gallery__card {
    flex: 0 0 78vw !important;
    flex-direction: column;
    height: auto;
    scroll-snap-align: start;
  }

  .gallery__media {
    width: 100%;
    height: 200px;
  }
}

/* Partner-program strip: centered, compact endorsement below the gallery. */
.partner-section {
  padding: var(--s-4) 0 var(--s-5);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.partner-section .eyebrow {
  justify-content: center;
}
.partner-disclaimer {
  margin-inline: auto;
  margin-top: var(--s-3);
  font-size: 0.75rem;
  color: var(--ink-3);
  max-width: 52ch;
  line-height: 1.5;
}

/* On phones the hero hands artwork and the gallery must stack cleanly: the
   gallery flows below the hero with its own padding — no negative-margin
   overlap that could collide with the hands graphic. */
@media (max-width: 620px) {
  .gallery__inner {
    gap: var(--s-2);
  }
  .gallery__title-desktop {
    display: none;
  }
  .gallery__title-mobile {
    display: block;
    max-width: 19ch;
  }
  .gallery__track {
    margin-top: var(--s-2);
    touch-action: auto; /* native horizontal swipe on iOS; vertical gestures pass through to the page */
  }
  .gallery__media {
    height: 184px;
  }
}

@media (max-width: 620px) and (hover: hover) and (pointer: fine) {
  .gallery__track { cursor: grab; }
  .gallery__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  .gallery__track.is-dragging img {
    -webkit-user-drag: none;
    user-select: none;
  }
}


/* ---------- Touch: neutralise sticky :hover ----------------------------------
   None of the hover rules in this file are gated on a hover-capable pointer, so
   on a phone the state latches after a tap and only clears when you tap
   somewhere else. On .btn-flow that means the full circle-fill, the radius
   morph and the travelling arrow stay frozen mid-transformation, which reads as
   a broken control. Press feedback stays; only the latched look is undone.
   ------------------------------------------------------------------------- */
@media (hover: none) {
  .btn-flow:hover {
    border-color: var(--flow-ink);
    border-radius: var(--r-pill);
    color: var(--flow-ink);
    background: var(--flow-fill);
  }
  .btn-flow:hover .btn-flow__circle { width: 16px; height: 16px; opacity: 0; }
  .btn-flow:hover .btn-flow__label { transform: translateX(-12px); }
  .btn-flow:hover .btn-flow__arrow--in { left: -25%; }
  .btn-flow:hover .btn-flow__arrow--out { right: 14px; }

  .btn:hover { box-shadow: none; }
  .btn:hover .btn__arrow { transform: none; }
  .btn:hover .btn__roll span { transform: none; }

  .fixes-tab:hover { background: transparent; }
  .fixes-tab.is-active:hover { background: var(--fir); }
  .nav-menu__items a:hover { background: rgba(255, 255, 255, 0.72); box-shadow: none; transform: none; }
  .nav-menu__items a:hover::after { opacity: 0.62; transform: none; }

  /* :active still fires on touch, so keep the press cue */
  .btn-flow:active { transform: scale(0.97); }
}

/* ---------- 22. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .orbit--run .orbit__ring, .orbit--run .orbit__chip { animation: none !important; }
  .problem__side { position: static; }
  .hero-reach { height: 100dvh; }
  .nav__chapter.is-updated .nav__chapter-name { animation: none; }
}
