/* LaraCorp home — scroll-craft rebuild, "an annual report that argues".
   Grammar: chaptered editorial. A royal cover, a contents page, then chapters that each
   behave differently on their own hard ground (paper or navy). No fixed bar: a margin folio.
   Engine: vendor/scrollcraft.css + .js, untouched and self-hosted. This file themes its
   tokens and styles the page's own markup. CSP-safe: no inline styles, no data: URIs. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/montserrat-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- tokens -- */
:root {
  --royal: #2B72BE;
  --navy: #1A3A6C;
  --orange: #F97316;

  --paper: #F4F5F7;
  --paper-deep: #E6EAF0;
  --ink: #0E1F3A;
  --ink-soft: #46546B;
  --rule: #C6CEDA;
  --rule-strong: #0E1F3A;
  --link: #1F5FA6;
  --focus: #1A3A6C;

  --cover: #2B72BE;
  --cover-deep: #23629F;
  --band: #1A3A6C;
  --on-dark: #FFFFFF;
  --on-dark-soft: rgb(255 255 255 / 0.82);
  --on-dark-rule: rgb(255 255 255 / 0.24);

  --chart-line: #1A3A6C;
  --chart-ghost: #7F93B0;
  --chart-band: rgb(43 114 190 / 0.13);

  --font: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --wrap: 80rem;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --folio-w: 0rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* engine tokens */
  --sc-canvas: var(--paper);
  --sc-surface: #FFFFFF;
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--royal);
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: var(--font);
  --sc-font-text: var(--font);
  --sc-font-mono: var(--font);
  --sc-shadow-color: 218 50% 12%;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0B1424;
    --paper-deep: #08101D;
    --ink: #E8EEF7;
    --ink-soft: #A7B5CA;
    --rule: #26364F;
    --rule-strong: #E8EEF7;
    --link: #8EC0F5;
    --focus: #E8EEF7;
    --cover: #16325E;
    --cover-deep: #12294D;
    --band: #17325C;
    --chart-line: #8EC0F5;
    --chart-ghost: #5E7393;
    --chart-band: rgb(142 192 245 / 0.13);
    --sc-surface: #101B2E;
    --sc-accent: #8EC0F5;
    --sc-accent-ink: #0B1424;
    --sc-shadow-color: 220 60% 3%;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0B1424; --paper-deep: #08101D; --ink: #E8EEF7; --ink-soft: #A7B5CA;
  --rule: #26364F; --rule-strong: #E8EEF7; --link: #8EC0F5; --focus: #E8EEF7;
  --cover: #16325E; --cover-deep: #12294D; --band: #17325C;
  --chart-line: #8EC0F5; --chart-ghost: #5E7393; --chart-band: rgb(142 192 245 / 0.13);
  --sc-surface: #101B2E; --sc-accent: #8EC0F5; --sc-accent-ink: #0B1424;
  color-scheme: dark;
}

@media (min-width: 68.75rem) { :root { --folio-w: 8.5rem; } }

/* ------------------------------------------------------------------ base -- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 450;
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: 0;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--royal); color: #fff; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--folio-w) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: calc(var(--gutter) + var(--folio-w)) var(--gutter);
}

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

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

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 90;
  padding: 0.75rem 1rem; background: var(--ink); color: var(--paper);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* No JS: the engine never runs, so show everything it would have revealed. */
html:not(.js) [data-sc-in],
html:not(.js) [data-sc-stagger] > *,
html:not(.js) [data-sc-cue] { opacity: 1; transform: none; }
html:not(.js) .js-only { display: none; }

/* Shared chapter type ----------------------------------------------------- */
.chapter__label {
  display: flex; align-items: center; gap: 0.9rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.chapter__num {
  font-variant-numeric: tabular-nums;
  padding-right: 0.9rem;
  border-right: 1px solid currentColor;
  line-height: 1;
}
.chapter__title {
  font-size: clamp(2.1rem, 1.1rem + 3.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ----------------------------------------------------------------- folio --
   The report's running head, in the margin. Desktop: a vertical index on the left edge.
   Phone: a small chip bottom right that opens the same index. Ink follows the ground. */
.folio {
  --f-ink: var(--ink); --f-soft: var(--ink-soft); --f-rule: var(--rule); --f-chip: var(--paper);
  position: fixed; z-index: 70;
  color: var(--f-ink);
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em;
}
.folio[data-ground="royal"], .folio[data-ground="navy"] {
  --f-ink: var(--on-dark); --f-soft: var(--on-dark-soft); --f-rule: var(--on-dark-rule);
  --focus: #FFFFFF;
}
.folio[data-ground="royal"] { --f-chip: var(--cover-deep); }
.folio[data-ground="navy"] { --f-chip: var(--band); }
.folio a { text-decoration: none; }
.folio__index a {
  display: flex; align-items: baseline; gap: 0.6rem;
  min-height: 2.75rem; padding-block: 0.6rem;
  color: var(--f-soft);
  transition: color 160ms var(--ease);
}
.folio__num { font-variant-numeric: tabular-nums; font-weight: 700; }
.folio__index a[aria-current] { color: var(--f-ink); }
.folio__index a[aria-current] .folio__label { font-weight: 800; }
.folio__index a { position: relative; }
.folio__index a[aria-current]::before {
  content: ""; position: absolute; left: calc(-0.9rem - 2px); top: 0.35rem; bottom: 0.35rem; width: 3px;
  background: var(--orange);
}
@media (hover: hover) and (pointer: fine) {
  .folio__index a:hover { color: var(--f-ink); }
}

.lang { display: flex; gap: 0.25rem; }
.lang button {
  min-width: 2.75rem; min-height: 2.75rem;
  border: 1px solid var(--f-rule); background: transparent; color: var(--f-soft);
  font: 700 0.74rem/1 var(--font); letter-spacing: 0.08em; cursor: pointer;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.lang button[aria-pressed="true"] { color: var(--f-ink); border-color: var(--f-ink); }
.lang button:active { transform: translateY(1px); }

.folio__toggle { display: none; }

/* No JS: the folio is a static contents strip at the top of the document. */
html:not(.js) .folio {
  position: static; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding: 0.5rem var(--gutter);
  background: var(--cover); --f-ink: #fff; --f-soft: rgb(255 255 255 / 0.86); --f-rule: var(--on-dark-rule);
}
html:not(.js) .folio__index { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }

@media (min-width: 68.75rem) {
  html.js .folio {
    inset: 0 auto 0 0; width: var(--folio-w);
    display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
    padding: 2rem 0 2rem var(--gutter);
    transition: color 220ms var(--ease);
  }
  html.js .folio .lang { position: absolute; bottom: 1.5rem; left: var(--gutter); }
  html.js .folio__index { border-left: 1px solid var(--f-rule); padding-left: 0.9rem; }
  html.js .folio__index a { min-height: 0; padding-block: 0.45rem; }
  html.js .folio__label { max-width: 5.6rem; line-height: 1.25; font-size: 0.74rem; }
}

@media (max-width: 68.74rem) {
  html.js .folio {
    right: 0.75rem; bottom: max(0.75rem, env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 0.25rem;
    padding: 0.25rem; background: var(--f-chip);
    border: 1px solid var(--f-rule);
    box-shadow: 0 2px 4px hsl(218 50% 12% / 0.12), 0 10px 24px -8px hsl(218 50% 12% / 0.28);
    transition: background-color 220ms var(--ease), color 220ms var(--ease);
  }
  html.js .folio__toggle {
    display: flex; align-items: center; gap: 0.5rem;
    min-height: 2.75rem; padding: 0 0.75rem;
    border: 0; background: transparent; color: var(--f-ink);
    font: 700 0.8rem/1 var(--font); cursor: pointer;
  }
  .folio__now-num:empty { display: none; }
  .folio__now-num { font-variant-numeric: tabular-nums; color: var(--f-soft); }
  .folio__chev { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 200ms var(--ease); }
  .folio.is-open .folio__chev { transform: rotate(180deg); }
  html.js .folio .lang button { border-color: transparent; }
  html.js .folio .lang button[aria-pressed="true"] { border-color: var(--f-ink); }
  html.js .folio__index {
    position: absolute; right: -1px; bottom: calc(100% + 0.5rem);
    min-width: 15rem; padding: 0.5rem 1rem;
    background: var(--f-chip); border: 1px solid var(--f-rule);
    box-shadow: var(--sc-e3);
    opacity: 0; transform: translateY(6px); visibility: hidden;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 0s linear 180ms;
  }
  html.js .folio.is-open .folio__index {
    opacity: 1; transform: none; visibility: visible;
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }
  html.js .folio__index li + li { border-top: 1px solid var(--f-rule); }
}

/* ----------------------------------------------------------------- cover --
   A report cover. Three planes: ruled ground (far), the ghost line of your lever (mid),
   the type (focal). While the act pins, the planes separate and the contents page rises. */
.cover { position: relative; }

.cover__plate {
  position: relative; min-height: 100vh; min-height: 100svh;
  background: var(--cover); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
  --focus: #FFFFFF;
}
.cover__rules {
  position: absolute; inset: -6% 0; z-index: -2;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2.75rem - 1px), rgb(255 255 255 / 0.08) calc(2.75rem - 1px) 2.75rem);
}
.cover__ghost {
  position: absolute; z-index: -1;
  right: -2%; bottom: calc(clamp(1.5rem, 5vh, 3rem) + 6.25rem);
  width: min(72vw, 64rem); height: auto;
  overflow: visible;
}
.ghost__band { fill: rgb(255 255 255 / 0.07); }
.ghost__base { fill: none; stroke: rgb(255 255 255 / 0.32); stroke-width: 1.5; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }
.ghost__line { fill: none; stroke: rgb(255 255 255 / 0.4); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ghost__dot { fill: var(--orange); }

/* Depth: each plane reads the act's progress at its own rate, plus a slight pointer lean. */
html.js:not(.calm) .cover__rules { transform: translate3d(calc(var(--mx, 0) * -6px), calc(var(--sc-p, 0) * -40px + var(--my, 0) * -4px), 0); }
html.js:not(.calm) .cover__ghost { transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--sc-p, 0) * -150px + var(--my, 0) * -10px), 0); }
html.js:not(.calm) .cover__copy { transform: translate3d(0, calc(var(--sc-p, 0) * -40px), 0); }

.cover__inner {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding-block: clamp(1.25rem, 3.5vh, 2.25rem) clamp(1.5rem, 5vh, 3rem);
}
.cover__masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding-bottom: 1rem; border-bottom: 1px solid var(--on-dark-rule);
}
.cover__logo { width: clamp(7.5rem, 10vw, 9.5rem); height: auto; }
.cover__kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

.cover__copy { align-self: center; max-width: 64rem; }
.cover__title {
  font-size: clamp(2.6rem, 1rem + 5.4vw, 6.6rem);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.042em;
  max-width: 10.5em; text-wrap: balance;
}
.dot { color: var(--orange); }
.cover__lead {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  max-width: 40rem; font-size: clamp(1rem, 0.94rem + 0.3vw, 1.18rem); line-height: 1.6; text-wrap: pretty;
}
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: clamp(1.5rem, 3.5vh, 2.25rem); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3rem; padding: 0 1.4rem;
  background: #FFFFFF; color: #12305C;
  font-weight: 750; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgb(8 22 48 / 0.25), 0 8px 20px -8px rgb(8 22 48 / 0.45);
  transition: transform 140ms var(--ease), box-shadow 160ms var(--ease);
}
.btn__icon { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px) scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 2px 4px rgb(8 22 48 / 0.3), 0 14px 28px -10px rgb(8 22 48 / 0.55); }
  .btn:hover .btn__icon { transform: translate(2px, -2px); }
}
.btn__icon { transition: transform 160ms var(--ease); }
.cover__link {
  font-weight: 650; font-size: 0.95rem;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.35em;
  min-height: 2.75rem; display: inline-flex; align-items: center;
}

/* Levers: labels without JS, toggle buttons with it. */
.levers { display: grid; gap: 0.75rem; }
.levers__hint { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.levers__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--on-dark-rule); }
.levers__list > li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.9rem 1rem 0.9rem 0; font-weight: 750; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.45rem); letter-spacing: -0.01em; }
.levers__list > li + li { padding-left: 1rem; border-left: 1px solid var(--on-dark-rule); }
.levers__arrow { width: 1.3rem; height: 1.3rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.levers__list > li:has(.lever) { padding: 0; }
.lever {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  width: 100%; min-height: 3.5rem; padding: 0.9rem 1rem;
  border: 0; background: transparent; color: inherit; cursor: pointer;
  font: inherit; text-align: left;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.lever::before {
  content: ""; position: absolute; inset: -1px 0 auto 0; height: 3px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease);
}
.lever[aria-pressed="true"]::before { transform: scaleX(1); }
.lever[aria-pressed="true"] .levers__label::after {
  content: ""; display: inline-block; width: 0.3em; height: 0.3em; margin-left: 0.25em;
  border-radius: 50%; background: var(--orange); vertical-align: 0.05em;
}
.lever:active { transform: translateY(1px); }
.cover .lever[aria-pressed="true"] { background: rgb(255 255 255 / 0.1); }
@media (hover: hover) and (pointer: fine) {
  .cover .lever:hover { background: rgb(255 255 255 / 0.07); }
}

/* -------------------------------------------------------------- contents -- */
.contents { position: relative; background: var(--paper); color: var(--ink); }
.contents__inner { padding-block: clamp(3rem, 9vh, 6rem); }
.contents__title {
  font-size: clamp(2.6rem, 1.4rem + 4vw, 5.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  padding-bottom: clamp(1rem, 3vh, 1.75rem); border-bottom: 3px solid var(--rule-strong);
}
.contents__list a {
  display: grid; grid-template-columns: 3.25rem minmax(0, 13rem) minmax(0, 1fr); align-items: baseline; gap: 0.25rem 1.5rem;
  padding-block: clamp(0.85rem, 2.2vh, 1.35rem); border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.contents__num { font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.contents__label { font-weight: 800; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem); letter-spacing: -0.015em; }
.contents__desc { color: var(--ink-soft); font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.1rem); }
@media (hover: hover) and (pointer: fine) {
  .contents__list a { transition: background-color 160ms var(--ease); }
  .contents__list a:hover .contents__label { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--orange); }
}

/* Pinned: cover and contents share one stage; the contents page rises over the cover. */
html.js:not(.calm) .cover .sc-stage .cover__plate { position: absolute; inset: 0; min-height: 0; }
html.js:not(.calm) .cover .sc-stage .cover__inner { min-height: 100%; height: 100%; }
html.js:not(.calm) .cover .sc-stage .contents {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  clip-path: inset(100% 0 0 0);
  box-shadow: 0 -24px 48px -24px rgb(8 22 48 / 0.4);
}
html.js:not(.calm) .cover .sc-stage .contents__inner { padding-block: 2rem 4.5rem; }

/* --------------------------------------------------------------- impact --
   A ledger. Four rows, three columns: the line item, what we do, what we measure. */
.chapter { position: relative; }
.impact { padding-block: clamp(4.5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem); }
.impact__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem 2rem; align-items: end;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}
.impact__head .chapter__label { grid-column: 1 / -1; }
.impact__head .chapter__title { grid-column: 1 / span 7; }
.impact__pull {
  grid-column: 9 / -1;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
  padding-left: 1.25rem; border-left: 3px solid var(--royal);
  text-wrap: pretty;
}
.ledger { border-top: 3px solid var(--rule-strong); }
.ledger__row {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0.75rem 2rem;
  padding-block: clamp(1.4rem, 2.6vw, 2.2rem);
  border-bottom: 1px solid var(--rule);
  transition: background-color 260ms var(--ease);
}
.ledger__title {
  grid-column: 1 / span 4;
  display: flex; align-items: baseline; gap: 0.75rem;
  font-size: clamp(1.35rem, 1.05rem + 1vw, 2rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12;
}
.ledger__dot {
  flex: none; width: 0.5em; height: 0.5em; border-radius: 50%;
  border: 2px solid var(--rule); transform: translateY(-0.04em);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease);
}
.ledger__row.is-chosen .ledger__dot { background: var(--orange); border-color: var(--orange); transform: translateY(-0.04em) scale(1.08); }
.ledger__row.is-chosen { background: linear-gradient(to right, color-mix(in oklab, var(--royal) 7%, transparent), transparent 70%); }
.ledger__body { grid-column: 5 / span 4; color: var(--ink-soft); text-wrap: pretty; }
.ledger__kpi { grid-column: 9 / -1; font-weight: 650; font-size: 0.95rem; line-height: 1.5; }
.ledger__kpi-label {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
/* Rows post like entries: the rule draws in under each as it arrives. */
.ledger__row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--ink); transform-origin: left; transform: scaleX(0);
  transition: transform 900ms var(--ease) 200ms;
}
.ledger > .sc-in::after { transform: scaleX(1); }
html:not(.js) .ledger__row::after { transform: scaleX(1); }

/* ------------------------------------------------------------- gatefold --
   Expertises as a fold-out spread. Vertical scroll pulls it sideways; creases between panels. */
.gatefold { background: var(--paper); }
.gatefold__rail {
  display: flex; align-items: stretch;
  width: max-content;
  padding-inline: calc(var(--gutter) + var(--folio-w)) var(--gutter);
}
.gatefold__head {
  width: min(30rem, 82vw); flex: none;
  display: flex; flex-direction: column; justify-content: center; gap: 1.5rem;
  padding-right: clamp(2rem, 4vw, 4rem);
}
.gatefold__list { display: flex; }
.panel {
  position: relative; flex: none;
  width: clamp(16.5rem, 23vw, 22rem);
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.75rem, 4vh, 2.75rem) clamp(1.25rem, 2vw, 2rem);
  border-top: 3px solid var(--rule-strong);
  background: linear-gradient(to right, var(--paper-deep), var(--paper) 18%, var(--paper) 82%, color-mix(in oklab, var(--paper-deep) 60%, var(--paper)));
}
/* The crease: a hairline with a fall of shadow on its right, like folded stock. */
.panel + .panel::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule);
}
.panel__title { font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.16; text-wrap: balance; }
.panel__body { color: var(--ink-soft); text-wrap: pretty; }

html.js:not(.calm) .gatefold .sc-stage {
  display: flex; align-items: center;
  /* The page margin: the spread slides out of sight before it reaches the folio. */
  -webkit-mask-image: linear-gradient(to right, transparent calc(var(--folio-w) + var(--gutter) - 1.75rem), #000 calc(var(--folio-w) + var(--gutter) - 0.15rem));
  mask-image: linear-gradient(to right, transparent calc(var(--folio-w) + var(--gutter) - 1.75rem), #000 calc(var(--folio-w) + var(--gutter) - 0.15rem));
}
html.js:not(.calm) .gatefold .panel { min-height: min(26rem, 62vh); }
/* Staggered settle: panels arrive in reading order as the spread opens. */
@media (prefers-reduced-motion: no-preference) {
  html.js .gatefold .panel { opacity: calc(0.55 + 0.45 * clamp(0, (var(--sc-p, 0) - var(--at)) * 8, 1)); }
  .gatefold .panel:nth-child(1) { --at: -1; }
  .gatefold .panel:nth-child(2) { --at: 0.02; }
  .gatefold .panel:nth-child(3) { --at: 0.16; }
  .gatefold .panel:nth-child(4) { --at: 0.32; }
  .gatefold .panel:nth-child(5) { --at: 0.48; }
  .gatefold .panel:nth-child(6) { --at: 0.62; }
}
/* No pinning (reduced motion or no JS): the spread lays flat as a grid. */
html.calm .gatefold, html:not(.js) .gatefold { padding-block: clamp(4rem, 8vw, 7rem); }
html.calm .gatefold__rail, html:not(.js) .gatefold__rail {
  width: 100%; max-width: calc(var(--wrap) + var(--folio-w) + 2 * var(--gutter)); margin-inline: auto;
  display: grid; gap: 2rem;
}
html.calm .gatefold__head, html:not(.js) .gatefold__head { width: auto; padding: 0; }
html.calm .gatefold__list, html:not(.js) .gatefold__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
html.calm .panel, html:not(.js) .panel { width: auto; }

/* --------------------------------------------------------------- figure --
   The peak. One indicator: diagnosed, steered, built, measured against where it started. */
.figure { background: var(--paper); }
.figure__inner {
  display: grid; grid-template-rows: auto 1fr auto; gap: clamp(1rem, 2.6vh, 2rem);
  padding-block: clamp(1.5rem, 5vh, 3.5rem);
}
html.js:not(.calm) .figure .sc-stage .figure__inner { height: 100%; }
.figure__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 3rem; }
.figure__head { display: grid; gap: 1rem; max-width: 46rem; }
.figure__title { font-size: clamp(1.9rem, 1rem + 2.6vw, 3.6rem); }

.levers--inline { gap: 0.5rem; min-width: min(100%, 26rem); }
.levers--inline .levers__hint { color: var(--ink-soft); font-size: 0.72rem; }
.levers--inline .levers__list { border-top: 0; border: 1px solid var(--rule); }
.levers--inline .levers__list > li + li { border-left: 1px solid var(--rule); }
.levers--inline .lever { min-height: 2.9rem; padding: 0.55rem 0.8rem; font-size: 0.98rem; color: var(--ink-soft); }
.levers--inline .lever[aria-pressed="true"] { color: var(--ink); background: color-mix(in oklab, var(--royal) 9%, transparent); }
.levers--inline .levers__arrow { width: 1.05rem; height: 1.05rem; }
@media (hover: hover) and (pointer: fine) {
  .levers--inline .lever:hover { color: var(--ink); }
}

.chart { display: grid; gap: 0.75rem; align-content: center; min-height: 0; }
.chart__svg { width: 100%; height: auto; overflow: visible; }
.chart__ticks path { stroke: var(--rule); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.chart__base { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; }
.chart__band { fill: var(--chart-band); }
.chart__line { fill: none; stroke: var(--chart-line); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart__ghost { fill: none; stroke: var(--chart-ghost); stroke-width: 1.5; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.chart__ghost.is-chosen { stroke: var(--chart-line); stroke-width: 2.25; stroke-dasharray: 8 6; }
.chart__ghost-label { fill: var(--ink-soft); font: 700 20px var(--font); text-anchor: end; }
.chart__ghost-label.is-chosen { fill: var(--ink); }
.chart__gap { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 1 1; vector-effect: non-scaling-stroke; }
.chart__dot { fill: var(--orange); transform-box: fill-box; transform-origin: center; }

html.js:not(.calm) .chart__gap { stroke-dashoffset: 1; }
html.js:not(.calm) .chart__ghosts { opacity: 0; }
html.js:not(.calm) .chart__dot { opacity: 0; transform: scale(0.6); transition: opacity 260ms var(--ease), transform 360ms var(--ease); }
html.js:not(.calm) .chart.is-landed .chart__dot { opacity: 1; transform: none; }
html.calm .chart__ghosts { display: none; }

.chart__legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem;
  font-size: 0.82rem; font-weight: 650; color: var(--ink-soft);
  padding-top: 0.75rem; border-top: 1px solid var(--rule);
}
.legend { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend__swatch { width: 1.6rem; height: 0; border-top: 2px dashed var(--ink-soft); }
.legend--gap .legend__swatch { width: 0.7rem; height: 0.7rem; border: 0; border-radius: 50%; background: var(--orange); }
.chart__note { margin-left: auto; font-weight: 500; font-size: 0.78rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  position: relative; display: grid; align-content: start; gap: 0.4rem;
  padding: 1rem clamp(0.75rem, 1.5vw, 1.5rem) 0 0;
  border-top: 3px solid var(--rule);
  transition: border-color 240ms var(--ease);
}
.step + .step { padding-left: clamp(0.75rem, 1.5vw, 1.5rem); }
.step__num { font-weight: 800; font-size: 0.85rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.step__title { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.2; transition: color 240ms var(--ease); }
.step__body { font-size: 0.95rem; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
html.js:not(.calm) .step .step__title { color: var(--ink-soft); }
html.js:not(.calm) .step.is-done { border-top-color: var(--ink-soft); }
html.js:not(.calm) .step.is-active { border-top-color: var(--royal); }
html.js:not(.calm) .step.is-active .step__title,
html.js:not(.calm) .step.is-done .step__title { color: var(--ink); }
html.js:not(.calm) .step.is-active .step__num { color: var(--royal); }
html.calm .figure, html:not(.js) .figure { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------------------------------------------------------------- notes --
   Engagements as the notes to the accounts: a navy plate sweeps in from the edge. */
.notes__plate { background: var(--band); color: var(--on-dark); --focus: #FFFFFF; }
.notes__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem 2rem;
  padding-block: clamp(4.5rem, 10vw, 8.5rem);
}
.notes__head { grid-column: 1 / span 5; display: grid; gap: 1.25rem; align-content: start; }
.notes__list { grid-column: 7 / -1; border-top: 1px solid var(--on-dark-rule); }
.note {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.35rem 0.75rem;
  padding-block: 1.5rem; border-bottom: 1px solid var(--on-dark-rule);
}
.note__mark {
  grid-row: span 2;
  font-weight: 800; font-size: 0.9rem; line-height: 1.9;
  font-variant-numeric: tabular-nums; font-feature-settings: "sups";
  color: var(--on-dark-soft);
}
.note__mark::before { content: "("; }
.note__mark::after { content: ")"; }
.note__title { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-weight: 800; letter-spacing: -0.015em; }
.note__body { color: var(--on-dark-soft); text-wrap: pretty; }

/* ------------------------------------------------------------- colophon --
   The close: small, settled. The address is a line of text, not a button island. */
.colophon {
  min-height: calc(100vh - 5rem); min-height: calc(100svh - 5rem);
  display: flex; align-items: center;
  padding-block: clamp(4rem, 9vw, 7rem) 2rem;
}
.colophon > .wrap { width: 100%; }
.colophon__plate {
  max-width: 44rem;
  display: grid; gap: 1.1rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--rule-strong);
  box-shadow: 0 -7px 0 -6px var(--rule-strong);
}
.colophon__title { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; margin-top: 0.75rem; }
.colophon__body { color: var(--ink-soft); max-width: 34rem; }
.colophon__mail {
  display: inline-block; padding-block: 0.4rem;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--link);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em; text-decoration-color: var(--orange);
  overflow-wrap: anywhere;
}
.colophon__mail:active { transform: translateY(1px); }
@media (hover: hover) and (pointer: fine) {
  .colophon__mail { transition: text-underline-offset 160ms var(--ease); }
  .colophon__mail:hover { text-underline-offset: 0.32em; }
}
.colophon__lever { display: flex; align-items: baseline; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--rule); font-size: 0.9rem; }
.colophon__lever-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.colophon__lever-value { font-weight: 800; }
.colophon__lever-value::after { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin-left: 0.3em; border-radius: 50%; background: var(--orange); }

.footer { background: var(--paper); color: var(--ink-soft); font-size: 0.82rem; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5rem; border-top: 1px solid var(--rule); }
.logo-mask {
  display: block; width: 6.5rem; aspect-ratio: 360 / 63;
  background: var(--ink);
  -webkit-mask: url("/assets/logo-white.png") center / contain no-repeat;
  mask: url("/assets/logo-white.png") center / contain no-repeat;
}
@media (max-width: 68.74rem) { html.js .footer__row { padding-bottom: 4.5rem; } }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 60rem) {
  .impact__head .chapter__title, .impact__pull { grid-column: 1 / -1; }
  .ledger__title { grid-column: 1 / -1; }
  .ledger__body { grid-column: 1 / span 7; }
  .ledger__kpi { grid-column: 8 / -1; }
  .notes__head, .notes__list { grid-column: 1 / -1; }
  .contents__list a { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .contents__desc { grid-column: 2; }
}

@media (max-width: 47.99rem) {
  /* Twelve columns with 2rem gaps cannot fit a phone: one column, the grid areas collapse. */
  .impact__head, .ledger__row, .notes__grid { grid-template-columns: minmax(0, 1fr); }
  .impact__head > *, .ledger__row > *, .notes__grid > * { grid-column: 1 / -1; }
  .ledger__body, .ledger__kpi { grid-column: 1 / -1; }
  .ledger__row { padding-left: 0; }
  .ledger__title { font-size: 1.35rem; }

  .cover__ghost { width: 118vw; right: -14vw; bottom: 9.5rem; opacity: 0.8; }
  /* The folio chip lives bottom right on phones: keep the lever row clear of it. */
  html.js .cover__inner { padding-bottom: 4.75rem; }
  .cover__title { font-size: clamp(2.35rem, 1.2rem + 6.4vw, 3.4rem); }
  .cover__lead { font-size: 0.98rem; }
  .levers__list > li { font-size: 1rem; }
  .lever { padding: 0.75rem 0.6rem; min-height: 3.25rem; }
  .levers__list > li:first-child .lever { padding-left: 0; }
  .levers__hint { font-size: 0.7rem; }

  .contents__title { font-size: 2.6rem; }
  .contents__list a { padding-block: 0.85rem; }
  .contents__label { font-size: 1.1rem; }
  .contents__desc { font-size: 0.9rem; }

  /* Phone figure: figure on top, one step at a time underneath it. The step titles stay
     as a numbered strip; only the active step's body is set below, in a shared slot. */
  .figure__inner { padding-bottom: 5rem; gap: 0.9rem; }
  .figure__title { font-size: clamp(1.45rem, 1rem + 2.6vw, 1.9rem); }
  .figure__head { gap: 0.6rem; }
  .levers--inline { width: 100%; min-width: 0; }
  .levers--inline .lever { padding: 0.5rem 0.6rem; font-size: 0.92rem; min-height: 2.75rem; }
  .levers--inline .levers__list > li:first-child .lever { padding-left: 0.6rem; }
  .chart__legend { gap: 0.35rem 1rem; font-size: 0.74rem; }
  .chart__note { margin-left: 0; font-size: 0.72rem; }
  .chart__ghost-label { font-size: 26px; }
  html.js:not(.calm) .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; }
  html.js:not(.calm) .step { display: contents; }
  html.js:not(.calm) .step__num {
    grid-row: 1; padding: 0.55rem 0 0.35rem; border-top: 3px solid var(--rule);
    transition: border-color 240ms var(--ease), color 240ms var(--ease);
  }
  html.js:not(.calm) .step.is-done .step__num { border-top-color: var(--ink-soft); }
  html.js:not(.calm) .step.is-active .step__num { border-top-color: var(--royal); }
  html.js:not(.calm) .step__title, html.js:not(.calm) .step__body { grid-row: 2; grid-column: 1 / -1; }
  html.js:not(.calm) .step__title { align-self: start; }
  html.js:not(.calm) .step__body { margin-top: 1.8rem; font-size: 0.9rem; }
  html.js:not(.calm) .step:not(.is-active) .step__title,
  html.js:not(.calm) .step:not(.is-active) .step__body { opacity: 0; }
  html.js:not(.calm) .step__title, html.js:not(.calm) .step__body { transition: opacity 220ms var(--ease); }
  html.calm .steps, html:not(.js) .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  html.calm .step + .step, html:not(.js) .step + .step { padding-left: 0; }

  .notes__grid { gap: 2rem; }
  .note { grid-template-columns: 2rem minmax(0, 1fr); }
}

@media (max-height: 44rem) and (min-width: 48rem) {
  .step__body { font-size: 0.88rem; }
  .figure__title { font-size: clamp(1.7rem, 1rem + 2vw, 2.6rem); }
}

/* ---------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .ledger__row::after { transition: none; transform: scaleX(1); }
  .lever::before, .chart__dot, .folio__index, .btn, .btn__icon { transition-duration: 1ms; }
}

@media print {
  .folio, .skip { display: none; }
  .cover__plate, .notes__plate { background: none; color: #000; }
}

/* Short desktop screens: the actions sit lower, so the cover's ghost line keeps to the right of them. */
@media (max-height: 50rem) and (min-width: 48rem) {
  .cover__ghost { width: min(46vw, 64rem); }
}
