/* =====================================================================
   Balsam Semantica - design system
   ---------------------------------------------------------------------
   Reusable markup patterns (copy these verbatim; JS in app.js drives them):

   .donut  - CIRI weight ring. --p is the percentage (0-100).
     <div class="donut" style="--p:40" role="img" aria-label="Semantic Sovereignty, 40 percent">
       <svg viewBox="0 0 120 120" aria-hidden="true">
         <circle class="donut__track" cx="60" cy="60" r="50"></circle>
         <circle class="donut__value" cx="60" cy="60" r="50"></circle>
       </svg>
       <span class="donut__label">40%</span>
     </div>

   .weightbar - animated horizontal bars, same unitless --p convention.
     <div class="weightbar reveal">
       <div class="weightbar__item" style="--p:40">
         <p class="weightbar__head"><span>Semantic Sovereignty</span><b>40%</b></p>
         <div class="weightbar__track"><div class="weightbar__fill"></div></div>
       </div>
       ... one .weightbar__item per condition ...
     </div>
     (--p is 0-100 unitless for both .donut and .weightbar.
     Optional per-item fill colours: .weightbar__fill--ember / --gold.)

   .journey  - the 9-stage Clinical Meaning Journey.
     <div class="journey reveal">
       <div class="journey__map">
         <svg class="journey__line" viewBox="0 0 900 12" preserveAspectRatio="none" aria-hidden="true">
           <line x1="6" y1="6" x2="894" y2="6"></line>
         </svg>
         <ol class="journey__stages">
           <li class="journey__stage">
             <button class="journey__node" type="button" aria-pressed="true"
                     data-title="Documentation" data-body="What the clinician meant is selected...">
               <span class="journey__num">4</span>
               <span class="journey__name">Documentation</span>
             </button>
           </li>
           ... 9 stages, numbered 1-9 ...
         </ol>
       </div>
       <div class="journey__detail" role="status" aria-live="polite">
         <p class="journey__detail-title">Documentation</p>
         <p class="journey__detail-body">What the clinician meant is selected...</p>
       </div>
     </div>

   .nine-objects  - one save, nine objects.
     <div class="nine-objects reveal">
       <div class="nine-objects__board">
         <svg class="nine-objects__links" viewBox="0 0 600 600" aria-hidden="true">
           <line class="nine-objects__link" data-i="1" x1="300" y1="300" x2="300" y2="90"></line>
           <line class="nine-objects__link" data-i="2" x1="300" y1="300" x2="435" y2="139"></line>
           <line class="nine-objects__link" data-i="3" x1="300" y1="300" x2="507" y2="263"></line>
           <line class="nine-objects__link" data-i="4" x1="300" y1="300" x2="482" y2="405"></line>
           <line class="nine-objects__link" data-i="5" x1="300" y1="300" x2="372" y2="497"></line>
           <line class="nine-objects__link" data-i="6" x1="300" y1="300" x2="228" y2="497"></line>
           <line class="nine-objects__link" data-i="7" x1="300" y1="300" x2="118" y2="405"></line>
           <line class="nine-objects__link" data-i="8" x1="300" y1="300" x2="93"  y2="263"></line>
           <line class="nine-objects__link" data-i="9" x1="300" y1="300" x2="165" y2="139"></line>
         </svg>
         <p class="nine-objects__centre"><span>One save</span></p>
         <ul class="nine-objects__chips">
           <li><button class="nine-objects__chip" type="button" data-i="1">Narrative note</button></li>
           ... 9 chips, data-i 1-9, in this order:
           Narrative note / Coded problem list / Encounter diagnosis /
           Medication order / Lab or imaging order / Billing and claims /
           Decision-support evaluation / Audit-log entry / Downstream export
         </ul>
       </div>
     </div>
     (line endpoints are the CSS chip positions x 6, rounded to whole
     viewBox units: a ring of radius 210 in the 600-unit box, angles
     -90deg + (i-1)*40deg. Rounding keeps each endpoint within 0.6 units
     (~1px at the 620px board) of its chip centre.)

   .sentence-explorer  - the three sentences and their modifiers.
     <div class="sentence-explorer reveal">
       <div class="sentence-explorer__triggers" role="group" aria-label="Choose a sentence">
         <button class="sentence-explorer__trigger" type="button" aria-pressed="true">
           The patient does not have myocardial infarction.
         </button>
         ... 3 triggers ...
       </div>
       <div class="sentence-explorer__panels">
         <div class="sentence-explorer__panel is-active">
           <ul class="mods">
             <li class="mod"><span class="mod__k">Polarity</span><span class="mod__v">Negated</span></li>
             ... keys: Polarity / Certainty / Temporality / Subject / Laterality / Episodicity ...
           </ul>
         </div>
         ... 3 panels, one per sentence, same order as triggers ...
       </div>
     </div>

   .callout - panel with a left accent bar; .callout--warn tints the bar
     and title with --ember for negation / "one question for your
     institution" boxes. Both are dark-band aware.
     <div class="callout">
       <p class="callout__title">Heading (optional)</p>
       <p>Body text.</p>
     </div>
     <div class="callout callout--warn">
       <p class="callout__title">One question for your institution</p>
       <p>...</p>
     </div>

   .accordion - native details/summary FAQ rows.
     <details class="accordion">
       <summary>Question here</summary>
       <div class="accordion__body"><p>Answer.</p></div>
     </details>

   .split - two-column editorial split (text / media), collapses to one
     column below 900px. Use this rather than pressing .page-hero into
     service as a general layout.
     <div class="split">
       <div>... text ...</div>
       <figure class="figure--duotone page-hero__media">... image ...</figure>
     </div>
   ===================================================================== */

:root {
  --paper: #FBFAF7;
  --paper-2: #F3F1EA;
  --paper-3: #EDEAE1;
  --ink: #14181B;
  --ink-2: #2B3236;
  --petrol: #0E5348;
  --petrol-deep: #0A3C34;
  --petrol-deeper: #072A24;
  --petrol-soft: #EDF3F1;
  --petrol-line: #C7D9D4;
  --muted: #5D6A6C;
  --line: #E2E6E2;
  --ember: #C2562F;
  --ember-ink: #9C431F;
  --ember-light: #E39A5F;
  --gold: #B98A2E;
  --gold-ink: #7C5E14;
  --white: #fff;
  --dark-surface: rgba(255, 255, 255, .05);
  --dark-line: rgba(255, 255, 255, .14);
  --radius: 14px;
  --measure: 85ch;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --on-dark: #EDF3F1;
  --on-dark-2: #B9CFCA;
  --petrol-tint: #8FC4B8;
  --header-h: 74px;
  --shadow-1: 0 1px 2px rgba(20, 24, 27, .06), 0 8px 24px -12px rgba(20, 24, 27, .18);
  --shadow-2: 0 2px 6px rgba(20, 24, 27, .08), 0 22px 44px -22px rgba(20, 24, 27, .30);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Deter casual copying site-wide. Links and .selectable stay selectable. */
body { -webkit-user-select: none; user-select: none; }
body a, body .selectable { -webkit-user-select: text; user-select: text; }

img, svg, video { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 24px; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.6rem); margin: 0 0 16px; }
h3 { font-size: 1.15rem; margin: 0 0 10px; }
h4 { font-size: 1rem; margin: 0 0 8px; color: var(--muted); font-weight: 500; }

p, li { max-width: var(--measure); }
p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 22px; margin: 0 0 20px; }
li { margin-bottom: 8px; }

a {
  color: var(--petrol);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
strong { font-weight: 600; }
em { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }

code {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--petrol-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

blockquote { margin: 28px 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--petrol); }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 16px;
  font-family: var(--sans);
  display: block;
  overflow-x: auto;
}
th, td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); }

/* ---------------------------- layout ---------------------------- */

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.prose { max-width: 90ch; }

/* two-column editorial split: text / media */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.band { padding: clamp(64px, 9vw, 120px) 0; }
.band--paper { background: var(--paper); }
.band--panel { background: var(--paper-2); }
.band--dark {
  background: var(--petrol-deep);
  color: var(--on-dark);
}
.band--dark h1,
.band--dark h2,
.band--dark h3,
.band--dark h4 { color: var(--white); }
.band--dark p,
.band--dark li { color: var(--on-dark-2); }
.band--dark a { color: var(--petrol-tint); }
.band--dark code { background: rgba(255, 255, 255, .08); color: var(--on-dark); }
.band--dark hr { border-top-color: rgba(255, 255, 255, .14); }
.band--dark .lede { color: var(--on-dark-2); }

/* ---------------------------- type helpers ---------------------------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--petrol);
  margin: 0 0 18px;
}
.band--dark .eyebrow { color: var(--petrol-tint); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 78ch;
  margin: 0 0 28px;
}

.pull-quote {
  position: relative;
  margin: 40px 0;
  padding: 8px 0 8px 40px;
  border-left: 2px solid var(--petrol);
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: 10px;
  top: -14px;
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--petrol);
  opacity: .4;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.5;
  max-width: 70ch;
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

/* ---------------------------- buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--white);
  background: var(--petrol);
  border: 1px solid var(--petrol);
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--petrol-deep); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--petrol);
  border-color: var(--petrol-line);
}
.btn--ghost:hover { background: var(--petrol-soft); border-color: var(--petrol); }

.btn--light {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, .42);
}
.btn--light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }

.btn--sm { padding: 9px 16px; font-size: 14px; }

/* ---------------------------- skip link ---------------------------- */

.skip-link {
  position: absolute;
  left: clamp(16px, 4vw, 40px);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--petrol-deep);
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ---------------------------- header / nav ---------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
}
.brand img { height: 36px; width: auto; flex: none; border-radius: 8px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 17px; }
.brand__strap {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}

nav.site { display: flex; align-items: center; gap: 4px; }
nav.site a {
  position: relative;
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
}
nav.site a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1.5px;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
nav.site a:hover { color: var(--petrol); }
nav.site a:hover::after,
nav.site a:focus-visible::after { transform: scaleX(1); }
nav.site a[aria-current="page"] { color: var(--petrol); }
nav.site a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--petrol-line); }
.nav-toggle__bars { position: relative; width: 19px; height: 13px; }
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5.75px; }
.nav-toggle__bars::after { top: 11.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5.75px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 6vw, 80px);
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; transform: none; }
.nav-overlay a {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 7vw, 2.6rem);
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(10px);
}
.nav-overlay.is-open a {
  opacity: 1;
  transform: none;
  transition: opacity .34s ease, transform .34s ease;
}
.nav-overlay.is-open a:nth-child(1) { transition-delay: .06s; }
.nav-overlay.is-open a:nth-child(2) { transition-delay: .12s; }
.nav-overlay.is-open a:nth-child(3) { transition-delay: .18s; }
.nav-overlay.is-open a:nth-child(4) { transition-delay: .24s; }
.nav-overlay.is-open a:nth-child(5) { transition-delay: .30s; }
.nav-overlay a[aria-current="page"] { color: var(--petrol); }
.nav-overlay__foot {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  opacity: 0;
  transition: opacity .34s ease .36s;
}
.nav-overlay.is-open .nav-overlay__foot { opacity: 1; }

/* ---------------------------- hero ---------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--petrol-deep);
  color: var(--on-dark);
  padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 104px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center 30%;
  filter: grayscale(1) brightness(.5);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(105deg, rgba(7, 42, 36, .94) 0%, rgba(10, 60, 52, .82) 46%, rgba(14, 83, 72, .55) 100%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .16;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .34) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 30% 30%, #000 20%, transparent 78%);
}
.hero .wrap { position: relative; }
.hero__inner { max-width: 56rem; }
.hero .eyebrow { color: var(--petrol-tint); }
/* links sit on the dark hero veil, where the default petrol link colour is invisible */
.hero a:not(.btn) { color: var(--on-dark); }
.hero a:not(.btn):hover { color: var(--white); }
.hero .display { color: var(--white); }
.hero__sub {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.66;
  color: var(--on-dark-2);
  max-width: 65ch;
  margin: 0 0 32px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(40px, 6vw, 72px); }

.hero-sentences { margin: 0 0 28px; padding: 0; list-style: none; max-width: 48rem; }
.hero-sentences li {
  position: relative;
  margin: 0 0 16px;
  padding-left: 30px;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.5;
  color: var(--on-dark);
  opacity: 0;
  animation: rise .7s var(--ease) forwards;
}
.hero-sentences li::before {
  content: none;
  position: absolute;
  left: 0;
  top: .7em;
  width: 14px;
  height: 2px;
  background: var(--petrol-tint);
}
.hero-sentences li:nth-child(1) { animation-delay: .25s; }
.hero-sentences li:nth-child(2) { animation-delay: .39s; }
.hero-sentences li:nth-child(3) { animation-delay: .53s; }

.hero__turn {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--petrol-tint);
  max-width: 60ch;
  margin: 0;
}
.hero__claim {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--on-dark-2);
  margin: 0 0 22px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------- page hero (interior) ---------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) 0;
}
.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero__media { position: relative; }
.page-hero__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  filter: grayscale(1) contrast(1.06) brightness(.97);
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(14, 83, 72, .22), rgba(7, 42, 36, .12));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------------------------- figure ---------------------------- */

figure { margin: 36px 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
figcaption {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: .02em;
  color: var(--muted);
}
.figure--duotone { position: relative; }
.figure--duotone img {
  filter: grayscale(1) contrast(1.08) brightness(.97);
  box-shadow: var(--shadow-1);
}
.figure--duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(14, 83, 72, .26), rgba(7, 42, 36, .16));
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------------------------- callout ---------------------------- */

.callout {
  position: relative;
  margin: 32px 0;
  padding: 22px 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--petrol);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  margin: 0 0 8px;
  color: var(--petrol);
}
.callout--warn { border-left-color: var(--ember); }
.callout--warn .callout__title { color: var(--ember-ink); }
/* shared dark-surface treatment for panel-like blocks on dark bands */
.band--dark .callout,
.band--dark .stat-band,
.band--dark .journey__detail,
.band--dark .mod { background: var(--dark-surface); border-color: var(--dark-line); }
.band--dark figcaption { color: var(--on-dark-2); }
.band--dark .callout__title { color: var(--petrol-tint); }
.band--dark .callout--warn .callout__title { color: var(--ember-light); }
.band--dark .weightbar__head b { color: var(--petrol-tint); }

/* ---------------------------- share link ---------------------------- */

.share-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 10px 16px;
  border: 1px solid var(--line, #e2e6e2);
  border-radius: var(--radius, 10px);
  background: transparent;
  color: var(--ink, #14181b);
  font: 500 15px var(--sans, system-ui, sans-serif);
  text-decoration: none;
}
.share-link:hover {
  background: var(--petrol-soft, #edf3f1);
  color: var(--ink, #14181b);
}
/* .hero a:not(.btn):hover sets white text; keep it dark on our light hover fill. */
.hero a.share-link:hover { color: var(--ink, #14181b); }
.share-link__logo {
  width: 18px;
  height: 18px;
  flex: none;
  color: #0a66c2;
}

/* ---------------------------- note paper ---------------------------- */

.note-paper {
  margin: 36px auto;
  max-width: 56rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 30px clamp(22px, 4vw, 38px);
}
.note-paper__head {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.note-paper p { font-size: 17.5px; }
.note-paper__sign {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px dotted var(--petrol-line);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ---------------------------- stat band ---------------------------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin: 36px 0;
  padding: 28px clamp(20px, 3vw, 34px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-band__stat { min-width: 0; }
.stat-band__num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--petrol);
}
.stat-band__label {
  display: block;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.band--dark .stat-band__num { color: var(--petrol-tint); }
.band--dark .stat-band__label { color: var(--on-dark-2); }

/* ---------------------------- cards ---------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 32px 0;
}
/* Cards added through the editor: side by side, wrapping at the end of the
   row. auto-fill (not auto-fit) on purpose: with auto-fit the empty tracks
   collapse and a lone or few cards stretch to fill the whole band width. */
.cme-extras--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px, 3vw, 32px);
  /* auto left/right, NOT 0: this class rides on the section's .wrap, and a
     plain `margin: 32px 0` would cancel .wrap's centering and shove the
     cards to the page edge. */
  margin: 32px auto;
}


.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .22s var(--ease), box-shadow .22s ease, border-color .22s ease;
}
.card:hover:has(a), a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--petrol); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--petrol);
  background: var(--petrol-soft);
  border: 1px solid var(--petrol-line);
  border-radius: 12px;
  flex: none;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 17px; color: var(--ink-2); }
.card__title { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.25; margin: 0 0 10px; }
.card__body { display: block; font-size: 17px; color: var(--ink-2); margin: 0 0 10px; }
.card__more {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--petrol);
}
.card:hover .card__more { text-decoration: underline; text-underline-offset: 3px; }
.band--dark .card { background: rgba(255, 255, 255, .04); border-color: var(--dark-line); }
.band--dark .card:hover:has(a), .band--dark a.card:hover { border-color: var(--petrol-tint); background: rgba(255, 255, 255, .07); }
.band--dark .card h3 { color: var(--white); }
.band--dark .card p { color: var(--on-dark-2); }
.band--dark .card__icon { background: rgba(143, 196, 184, .12); border-color: rgba(143, 196, 184, .3); color: var(--petrol-tint); }
.band--dark .card__more { color: var(--petrol-tint); }

/* ---------------------------- steps ---------------------------- */

.steps { counter-reset: step; margin: 32px 0; padding: 0; list-style: none; }
.steps li {
  position: relative;
  counter-increment: step;
  margin: 0 0 22px;
  padding-left: 64px;
  max-width: 78ch;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--petrol);
}
.steps strong { display: block; font-family: var(--sans); font-size: 1.05rem; margin-bottom: 4px; }
.band--dark .steps li::before { color: var(--petrol-tint); }

/* ---------------------------- definition list ---------------------------- */

.definition-list { margin: 28px 0; }
.definition-list dt {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--petrol);
  margin-top: 20px;
}
.definition-list dd { margin: 6px 0 0; max-width: var(--measure); }
.definition-list dd:last-child { margin-bottom: 0; }
.band--dark .definition-list dt { color: var(--petrol-tint); }

/* ---------------------------- journey diagram ---------------------------- */

.journey { margin: 40px 0; }

.journey__map { position: relative; padding: 8px 0 4px; }

.journey__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  width: 100%;
  height: 12px;
  overflow: visible;
  pointer-events: none;
}
.journey__line line {
  fill: none;
  stroke: var(--petrol-line);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.4s var(--ease);
}
.journey.is-in .journey__line line { stroke-dashoffset: 0; }

.journey__stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink-2);
  transition: color .2s ease;
}
.journey__node:hover { color: var(--petrol); }
.journey__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--petrol-line);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 400;
  color: var(--petrol);
  transition: background .22s ease, border-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.journey__node:hover .journey__num { transform: scale(1.06); border-color: var(--petrol); }
.journey__name {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  max-width: 11ch;
  overflow-wrap: anywhere;
}
.journey__node[aria-pressed="true"] { color: var(--petrol); }
.journey__node[aria-pressed="true"] .journey__num {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--white);
  box-shadow: 0 0 0 5px var(--petrol-soft);
}
.journey__node:focus-visible { outline: none; }
.journey__node:focus-visible .journey__num { outline: 2px solid var(--petrol); outline-offset: 3px; }

.journey__detail {
  margin-top: clamp(28px, 4vw, 44px);
  padding: 24px clamp(20px, 3vw, 30px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--petrol);
  border-radius: 0 var(--radius) var(--radius) 0;
  min-height: 8.5rem;
}
.journey__detail-title {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 8px;
  color: var(--ink);
}
.journey__detail-body {
  margin: 0;
  max-width: 80ch;
  color: var(--ink-2);
}
.band--dark .journey__detail-title { color: var(--white); }
.band--dark .journey__detail-body { color: var(--on-dark-2); }

/* ---------------------------- nine objects ---------------------------- */

.nine-objects { margin: 40px auto; max-width: 620px; }

.nine-objects__board {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.nine-objects__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.nine-objects__link {
  fill: none;
  stroke: var(--petrol-line);
  stroke-width: 1.5;
  opacity: .55;
  transition: stroke .2s ease, opacity .2s ease, stroke-width .2s ease;
}
.nine-objects__link.is-active { stroke: var(--petrol); opacity: 1; stroke-width: 2.5; }

.nine-objects__centre {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 50%;
  background: var(--petrol);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-1);
  z-index: 2;
}
.nine-objects__centre span {
  font-family: var(--sans);
  font-size: clamp(.85rem, 1.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  padding: 0 12px;
}

.nine-objects__chips {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 3;
}
.nine-objects__chip {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 28%;
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease, background .2s ease;
}
.nine-objects__chip:hover,
.nine-objects__chip.is-active {
  color: var(--petrol);
  border-color: var(--petrol);
  background: var(--petrol-soft);
  box-shadow: var(--shadow-1);
}
.nine-objects__chip:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

/* satellite positions: 9 points evenly spaced 40 degrees apart on a ring
   of radius 35% (210 units in the 600-unit SVG viewBox) around the centre.
   Percentages are of the board; each chip is centred on its point via
   translate(-50%,-50%), so no chip may sit closer to an edge than half its
   own max-width. Generated from: angle = -90deg + (i-1)*40deg. */
.nine-objects__chip[data-i="1"]  { top: 15%;   left: 50%; }
.nine-objects__chip[data-i="2"]  { top: 23.2%; left: 72.5%; }
.nine-objects__chip[data-i="3"]  { top: 43.9%; left: 84.5%; }
.nine-objects__chip[data-i="4"]  { top: 67.5%; left: 80.3%; }
.nine-objects__chip[data-i="5"]  { top: 82.9%; left: 62%; }
.nine-objects__chip[data-i="6"]  { top: 82.9%; left: 38%; }
.nine-objects__chip[data-i="7"]  { top: 67.5%; left: 19.7%; }
.nine-objects__chip[data-i="8"]  { top: 43.9%; left: 15.5%; }
.nine-objects__chip[data-i="9"]  { top: 23.2%; left: 27.5%; }

/* ---------------------------- sentence explorer ---------------------------- */

.sentence-explorer { margin: 40px 0; }

.sentence-explorer__triggers {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.sentence-explorer__trigger {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.sentence-explorer__trigger:hover { border-color: var(--petrol-line); color: var(--ink); }
.sentence-explorer__trigger[aria-pressed="true"] {
  color: var(--petrol);
  border-color: var(--petrol);
  background: var(--petrol-soft);
  box-shadow: var(--shadow-1);
}
.sentence-explorer__trigger:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }

.sentence-explorer__panels { position: relative; }
.sentence-explorer__panel { display: none; }
.sentence-explorer__panel.is-active { display: block; animation: rise .4s var(--ease) both; }

.mods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mod {
  padding: 14px 16px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mod__k {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
}
.mod__v {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--petrol);
}
.mod__v[data-absent] { color: var(--muted); font-weight: 400; font-style: italic; }
.band--dark .mod__k { color: var(--on-dark-2); }
.band--dark .mod__v { color: var(--petrol-tint); }
.band--dark .mod__v[data-absent] { color: var(--on-dark-2); }

/* ---------------------------- donut / weightbar ---------------------------- */

.donut {
  --c: 314.159;
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(128px, 15vw, 168px);
  aspect-ratio: 1 / 1;
}
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 15; }
.donut__track { stroke: var(--paper-3); }
.donut__value {
  stroke: var(--petrol);
  stroke-linecap: round;
  stroke-dasharray: var(--c);
  stroke-dashoffset: var(--c);
  transition: stroke-dashoffset 1.3s var(--ease);
}
.donut.is-in .donut__value { stroke-dashoffset: calc(var(--c) * (1 - var(--p, 0) / 100)); }
.donut__label {
  position: absolute;
  font-family: var(--mono);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  letter-spacing: -.01em;
  color: var(--petrol);
}
.donut--ember .donut__value { stroke: var(--ember); }
.donut--gold .donut__value { stroke: var(--gold); }
.donut--ember .donut__label { color: var(--ember-ink); }
.donut--gold .donut__label { color: var(--gold-ink); }
.band--dark .donut__track { stroke: rgba(255, 255, 255, .16); }
.band--dark .donut__value { stroke: var(--petrol-tint); }
.band--dark .donut__label { color: var(--petrol-tint); }

.donut-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); align-items: center; }
.donut-row .donut { margin: 0; }

.weightbar { margin: 20px 0; }
.weightbar__item { margin-bottom: 18px; }
.weightbar__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}
.weightbar__head b { font-family: var(--mono); font-weight: 400; color: var(--petrol); }
.weightbar__track {
  height: 8px;
  border-radius: 999px;
  background: var(--paper-3);
  overflow: hidden;
}
.weightbar__fill {
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  border-radius: 999px;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.weightbar.is-in .weightbar__fill { transform: scaleX(1); }
.weightbar__fill--ember { background: var(--ember); }
.weightbar__fill--gold { background: var(--gold); }
.band--dark .weightbar__track { background: rgba(255, 255, 255, .14); }

/* ---------------------------- accordion ---------------------------- */

.accordion {
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.accordion:last-of-type { border-bottom: 1px solid var(--line); }
.accordion summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  position: relative;
  top: .45em;
  flex: none;
  width: 15px;
  height: 15px;
  background:
    linear-gradient(currentColor, currentColor) center / 15px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 15px no-repeat;
  color: var(--petrol);
  transition: transform .25s ease, opacity .2s ease;
}
.accordion[open] summary::after { transform: rotate(135deg); }
.accordion summary:hover { color: var(--petrol); }
.accordion__body { padding: 0 4px 24px; max-width: var(--measure); color: var(--ink-2); }
.band--dark .accordion { border-top-color: rgba(255, 255, 255, .14); }
.band--dark .accordion:last-of-type { border-bottom-color: rgba(255, 255, 255, .14); }
.band--dark .accordion summary { color: var(--white); }
.band--dark .accordion__body { color: var(--on-dark-2); }

/* ---------------------------- reveal / motion ---------------------------- */

.reveal { opacity: 1; transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
/* hidden only once JS is present: without it, content must render, unmoved */
.js .reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in { opacity: 1; transform: none; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%;
  background: var(--petrol);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 55;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: var(--white);
  background: var(--petrol);
  border: 1px solid var(--petrol);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s, background .18s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--petrol-deep); }
.back-to-top svg { width: 19px; height: 19px; }
.back-to-top:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

/* ---------------------------- footer ---------------------------- */

footer.site {
  background: var(--petrol-deeper);
  color: var(--on-dark-2);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
footer.site .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 56px);
}
footer.site h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--petrol-tint);
}
footer.site p { font-size: 15px; line-height: 1.65; }
footer.site ul { margin: 0; padding: 0; list-style: none; }
footer.site li { margin-bottom: 9px; max-width: none; }
footer.site a { color: var(--on-dark-2); text-decoration: none; }
footer.site a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
footer.site .brand { color: var(--white); margin-bottom: 16px; }
footer.site .brand__name { font-size: 18px; }
footer.site .brand__strap { color: var(--petrol-tint); }
.footer__disclaimer {
  margin-top: clamp(32px, 5vw, 48px);
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(233, 240, 238, .62);
}
.footer__disclaimer p { font-size: 12px; max-width: none; margin-bottom: 10px; }

/* ---------------------------- focus ---------------------------- */

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 3px;
  border-radius: 4px;
}
.band--dark a:focus-visible,
.band--dark button:focus-visible,
.nav-overlay a:focus-visible { outline-color: var(--petrol-tint); }

/* ---------------------------- responsive ---------------------------- */

@media (max-width: 900px) {
  nav.site { display: none; }
  .nav-toggle { display: inline-flex; }

  .split { grid-template-columns: 1fr; }
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 30rem; }

  /* journey becomes a vertical timeline. The SVG spine is horizontal by
     construction, so it is replaced by a CSS spine that draws itself in */
  .journey__line { display: none; }
  .journey__map::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 30px;
    bottom: 26px;
    width: 2px;
    background: var(--petrol-line);
    border-radius: 2px;
    transform: scaleY(0);
    transform-origin: top;
    pointer-events: none;
    transition: transform 1.4s var(--ease);
  }
  .journey.is-in .journey__map::before { transform: scaleY(1); }
  .journey__stages { grid-template-columns: 1fr; gap: 6px; }
  .journey__node { flex-direction: row; align-items: center; gap: 16px; text-align: left; }
  .journey__node .journey__num { flex: none; }
  .journey__name { max-width: none; text-align: left; font-size: 12px; }

  /* nine objects becomes a chip grid with the centre on top */
  .nine-objects__board { aspect-ratio: auto; }
  .nine-objects__links { display: none; }
  .nine-objects__centre {
    position: static;
    transform: none;
    width: min(260px, 70%);
    margin: 0 auto 20px;
  }
  .nine-objects__chips { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .nine-objects__chip {
    position: static;
    transform: none;
    max-width: none;
    font-size: 11px;
  }

  footer.site .grid { grid-template-columns: 1fr 1fr; }
  footer.site .grid > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }
  .display { font-size: clamp(2rem, 9vw, 2.7rem); }
  h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  h2 { font-size: 1.3rem; }
  .band { padding: 52px 0; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .mods { grid-template-columns: 1fr; }
  .nine-objects__chips { grid-template-columns: 1fr; }
  footer.site .grid { grid-template-columns: 1fr; }
  footer.site .grid > *:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-sentences li { opacity: 1; animation: none; }
  .journey__line line { stroke-dashoffset: 0; }
  .journey__map::before { transform: scaleY(1); }
  .donut__value { stroke-dashoffset: calc(var(--c) * (1 - var(--p, 0) / 100)); }
  .weightbar__fill { transform: scaleX(1); }
  .sentence-explorer__panel.is-active { animation: none; }
}


/* prev/next chapter navigation - shared component (hoisted from guide pages) */
.prevnext {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    align-items: center;
    justify-content: space-between;
    margin: 52px 0 0;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .prevnext__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--petrol);
    text-decoration: none;
  }
  .prevnext__link:hover { text-decoration: underline; text-underline-offset: 3px; }
  .prevnext__link > span { display: flex; flex-direction: column; line-height: 1.3; }
  .prevnext__label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .prevnext__link svg { width: 18px; height: 18px; flex: none; }


/* ---------------------- figures (SVG illustrations) ---------------------- */
.fig { margin: 44px 0 52px; }
.fig svg, .fig img { display: block; width: 100%; height: auto; border: 0; border-radius: 0; }
.pulse-rule { height: 48px; margin: 56px auto; max-width: 620px;
  background: url("fig/pulse.svg") center/contain no-repeat; opacity: .55; }
@media (max-width: 640px) { .pulse-rule { height: 36px; margin: 40px auto; } }

/* the three review cards: reviews page and the home section */
.review-card { display: flex; flex-direction: column; }
.review-card .review-card__kicker { margin: 0 0 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--petrol); }
.review-card .card__more { margin-top: auto; }

/* Deleted content blocks: the editor leaves an empty marker span; hide the
   element that held it so the deleted block disappears on the public site
   without touching any template. (admin mode uses .cme-del-admin instead.) */
main *:has(> .cme-del) { display: none !important; }
