/* ============================================================
   Alto Hearing — Private Buyer Overview (prototype, v4)
   Editorial information-memorandum grammar with a considered
   spacing system, colour bands and brand graphics.
   Brand: ink #1A252A · cream #FEF9F2 · sand hairlines
          coral #FE814B · gold #EBB657
   Display: PP Museum (self-hosted, from altohear.co.uk)
   Body:    Halyard (Alto's Adobe Fonts kit, loaded in <head>)
============================================================ */

@font-face {
  font-family: 'PP Museum';
  src: url('../assets/fonts/PPMuseum-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Museum';
  src: url('../assets/fonts/PPMuseum-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1A252A;
  --ink-soft: #37434a;
  --muted: #5d594e;             /* muted text, >=4.5:1 on cream */
  --cream: #FEF9F2;
  --cream-deep: #F7F1E9;
  --gold-wash: #FAEEDA;
  --line: #DDD8CE;              /* hairlines only, never text */
  --line-strong: #ABA698;
  --coral: #FE814B;
  --gold: #EBB657;
  --gold-deep: #8a6420;
  --white: #FFFFFF;
  --serif: 'PP Museum', Georgia, 'Times New Roman', serif;
  --sans: 'halyard-display', 'halyard-text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --line-dark: rgba(254, 249, 242, 0.16);
  --cream-72: rgba(254, 249, 242, 0.78);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-swift: cubic-bezier(0.4, 0, 0.2, 1); /* colour and opacity feedback */
  --t-fast: 0.22s;   /* hover and focus feedback */
  --t-state: 0.35s;  /* state changes: tabs, dots, expanders */
  --t-reveal: 0.85s; /* scroll reveals */
  --t-draw: 1.3s;    /* hairlines, bars, long draws */
  --track-caps: 0.16em;       /* inline uppercase labels */
  --track-caps-wide: 0.22em;  /* document chrome: folio, captions-as-chrome */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --maxw: 1120px;
  color-scheme: light;
  accent-color: var(--coral);

  /* spacing scale — use these, not ad hoc values */
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --s7: 96px;
  --s8: 128px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) var(--cream);
}
a, button, summary { -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17.5px;
  -webkit-font-smoothing: antialiased;
}
body.gate-locked { overflow: hidden; }

h1, h2 { font-family: var(--serif); font-weight: 300; line-height: 1.12; text-wrap: balance; }
h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
strong { font-weight: 500; }

::selection { background: var(--gold); color: var(--ink); }
/* Selection stays legible on every colour band */
.section-gold ::selection { background: var(--ink); color: var(--cream); }
.gate ::selection, .section-dark ::selection, .footer ::selection { background: var(--coral); color: var(--ink); }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 720px; }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--coral));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 18px 46px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: var(--coral); border-color: var(--coral); color: var(--white); }
.btn:focus-visible { outline-offset: 4px; }
.btn:active { transform: translateY(0); transition-duration: 0.12s; }

/* ---------- Gate ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background:
    radial-gradient(88% 66% at 50% 34%, rgba(254, 249, 242, 0.055) 0%, rgba(254, 249, 242, 0) 62%),
    var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow-y: auto;
  padding: clamp(24px, 5vh, 56px) 0;
  transition: opacity 0.65s var(--ease-out) 0.15s, visibility 0s linear 0.8s;
}
.gate.gate-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate .gate-inner { transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out); }
.gate.gate-hidden .gate-inner { opacity: 0; transform: translateY(-20px); }

/* Clothbound cover: inset frame, blind device, stock grain */
.gate::before {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.5vw, 28px);
  border: 1px solid rgba(254, 249, 242, 0.22);
  pointer-events: none;
}
.gate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: var(--grain);
}
.gate-mark {
  width: 28px;
  height: 32px;
  margin: 0 auto var(--s4);
  background: var(--gold);
  -webkit-mask: url('../assets/dog.svg') center / contain no-repeat;
  mask: url('../assets/dog.svg') center / contain no-repeat;
}
.gate-inner > *:nth-child(6) { animation-delay: 0.6s; }
.gate-inner { max-width: 600px; margin: auto; padding: 40px; }
.gate-inner > * { animation: rise 1.1s var(--ease-out) both; }
.gate-inner > *:nth-child(2) { animation-delay: 0.12s; }
.gate-inner > *:nth-child(3) { animation-delay: 0.24s; }
.gate-inner > *:nth-child(4) { animation-delay: 0.36s; }
.gate-inner > *:nth-child(5) { animation-delay: 0.48s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.gate-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: var(--s5);
}
.gate-title { margin-bottom: var(--s5); }
.gate-logo { width: min(300px, 66vw); filter: brightness(0) invert(0.97); }
.gate-copy { color: var(--cream-72); margin-bottom: var(--s3); font-size: 16px; max-width: 42ch; margin-left: auto; margin-right: auto; }
.gate-agreement {
  color: rgba(254, 249, 242, 0.62);
  font-size: 13px;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid rgba(254, 249, 242, 0.16);
}
.gate-form { display: flex; flex-direction: column; gap: var(--s3); align-items: center; }
.gate-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream-72); }
.gate-input {
  width: 100%;
  max-width: 280px;
  padding: 10px 4px 12px;
  border: none;
  border-bottom: 1px solid rgba(254, 249, 242, 0.4);
  background: transparent;
  color: var(--cream);
  font-size: 17px;
  text-align: center;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  transition: border-color 0.3s;
}
.gate-input::placeholder { color: rgba(254, 249, 242, 0.45); letter-spacing: 0.04em; }
.gate-input:focus { outline: none; border-bottom-color: var(--gold); }
.gate-input { caret-color: var(--gold); }
.gate-note { margin-top: var(--s5); font-size: 12px; color: rgba(254, 249, 242, 0.55); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 17px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.topbar-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; white-space: nowrap; }
.topbar-logo { height: 26px; display: block; }
.topbar-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}
.topnav { display: flex; gap: var(--s3); overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0 6px;
  position: relative;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease-swift);
}
.topnav a:hover { color: var(--ink); }
.topnav a.active { color: var(--ink); }
/* The active marker draws in from the left and hands over as you read */
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-state) var(--ease-out);
}
.topnav a.active::after { transform: scaleX(1); }

/* ---------- Folio (document chrome, hero only) ---------- */
.folio {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */
.hero { padding: var(--s7) 0 calc(var(--s8) + 12px); }
.hero-title {
  font-size: clamp(60px, 8.5vw, 96px);
  letter-spacing: -0.02em;
  margin-top: var(--s7);
  margin-left: -0.05em;                 /* optical alignment: the A's sidebearing */
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-box: trim-both cap alphabetic;   /* progressive: cap-height-true spacing */
}
.section-title { font-kerning: normal; }
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--ink-soft);
  max-width: 26em;
  margin-top: var(--s3);
  line-height: 1.45;
}

/* Fact ledger: document grammar, hairlines draw in on reveal */
.ledger { margin-top: var(--s7); columns: 2; column-gap: var(--s7); }
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  padding: 17px 0;
  position: relative;
  break-inside: avoid;
}
.ledger-row::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-draw) var(--ease-out);
}
.ledger-row:nth-child(2)::after { transition-delay: 0.08s; }
.ledger-row:nth-child(3)::after { transition-delay: 0.16s; }
.ledger-row:nth-child(4)::after { transition-delay: 0.24s; }
.ledger-row:nth-child(5)::after { transition-delay: 0.32s; }
.ledger-row:nth-child(6)::after { transition-delay: 0.12s; }
.ledger-row:nth-child(7)::after { transition-delay: 0.2s; }
.ledger-row:nth-child(8)::after { transition-delay: 0.28s; }
.ledger-row:nth-child(9)::after { transition-delay: 0.36s; }
.ledger-row:nth-child(10)::after { transition-delay: 0.44s; }
.ledger.visible .ledger-row::after { transform: scaleX(1); }
html:not(.js) .ledger-row::after { transform: scaleX(1); }
.ledger dt { font-size: 13.5px; letter-spacing: 0.03em; color: var(--muted); }
.ledger dd { font-family: var(--serif); font-size: 23px; white-space: nowrap; }
.ledger-stars { display: flex; align-items: center; gap: 12px; }
.ledger-stars img { height: 14px; }

/* ---------- Cover photo band (full bleed) ---------- */
.cover-photo {
  margin-top: var(--s7);
  position: relative;
  height: min(58vh, 560px);
  overflow: hidden;
  background: var(--cream-deep);
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  filter: sepia(0.05) saturate(1.04); /* nudge the overcast shot toward the brand's warmth */
}
.cover-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  /* extra bottom padding keeps the caption clear of the 18px plate keyline */
  padding: 14px 48px 34px;
  background: linear-gradient(to top, rgba(26, 37, 42, 0.55), transparent);
}
.cover-photo figcaption span {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}
/* The cover as a tipped-in plate: fine cream keyline inside its edges */
.cover-photo::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(254, 249, 242, 0.45);
  pointer-events: none;
}
.hero .ledger { margin-top: var(--s6); }

/* ---------- Photo component ---------- */
.photo { margin: 0; }
.photo .photo-crop { display: block; overflow: hidden; background: var(--cream-deep); position: relative; }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1.08); /* crops rounded frames baked into site assets */
  filter: sepia(0.06) saturate(1.05) contrast(1.02); /* one grade across mixed shoots */
}
/* Plate keylines: the printed-book edge where photography meets the paper */
.photo .photo-crop::after,
.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(26, 37, 42, 0.14);
}
.section-dark .photo .photo-crop::after { box-shadow: inset 0 0 0 1px rgba(254, 249, 242, 0.18); }
.photo-tall img { aspect-ratio: 4 / 4.6; }
.photo figcaption {
  margin-top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0; }
.section:not(.section-dark):not(.section-tint):not(.section-gold) + .section:not(.section-dark):not(.section-tint):not(.section-gold) { border-top: 1px solid var(--line); }
.section-dark { padding: calc(var(--s8) + 16px) 0; }
.section-close { text-align: center; }
.section-close .btn { margin-top: var(--s3); }
.section-title {
  font-size: clamp(32px, 4vw, 46px);
  max-width: 21em;
  margin-bottom: var(--s4);
  letter-spacing: -0.012em;
}
.section-close .section-title { margin-left: auto; margin-right: auto; }
.section-intro { color: var(--ink-soft); max-width: 36em; margin-bottom: var(--s6); font-size: 18px; }
.section p + p { margin-top: 18px; }
.split-main p { max-width: 62ch; }

/* ---------- Lede: the opening paragraph steps the scale ---------- */
.split-main > p:first-child {
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: 0.002em;
  max-width: 56ch;
  color: var(--ink);
}
.section-dark .split-main > p:first-child { color: var(--cream); }
.section-close .container-narrow > p.reveal {
  font-size: 20px;
  line-height: 1.6;
  color: var(--cream);
}

/* ---------- Figures: tabular lining in data, oldstyle in prose ---------- */
.ledger dd,
.stat-num,
.review-bar-num,
.tile .tile-value,
.clinic-tab .clinic-meta {
  font-variant-numeric: lining-nums tabular-nums;
}
.signal-num,
.review-number {
  font-variant-numeric: lining-nums proportional-nums;
}
.split-main p,
.section-intro,
.term dd,
.journey-detail p,
.fact-list li {
  font-variant-numeric: oldstyle-nums;
}

/* ---------- Caps tracking: one system, two values ---------- */
.folio,
.cover-photo figcaption span,
.gate-label,
.topbar-tag,
.clinic-detail .clinic-region {
  letter-spacing: var(--track-caps-wide);
}
.photo figcaption,
.clinic-map figcaption,
.fact-list strong,
.pull-note-label,
.journey-why strong,
.status,
.stat-label,
.tile .tile-label,
.asset-placeholder span,
.contact-meta span {
  letter-spacing: var(--track-caps);
}
.footnote { font-size: 12.5px; letter-spacing: 0.02em; color: var(--muted); margin-top: var(--s4); }

/* Colour bands */
.section-tint { background: var(--cream-deep); }
/* Reputation band: printed tint block — slightly denser ink at the
   leading edge, crisp trim rules where the block was laid. */
.section-gold {
  background:
    linear-gradient(180deg, rgba(235, 182, 87, 0.14) 0%, rgba(235, 182, 87, 0) 160px),
    linear-gradient(0deg, rgba(138, 100, 32, 0.05) 0%, rgba(138, 100, 32, 0) 140px),
    var(--gold-wash);
  box-shadow:
    inset 0 1px 0 rgba(138, 100, 32, 0.16),
    inset 0 -1px 0 rgba(138, 100, 32, 0.10);
}
/* Ink chapters: faint press light top-left, ink density lower-right,
   and stock grain so the dark spreads read as paper, not screen colour */
.section-dark {
  position: relative;
  background:
    radial-gradient(120% 90% at 16% -4%, rgba(254, 249, 242, 0.05) 0%, rgba(254, 249, 242, 0) 55%),
    radial-gradient(110% 80% at 88% 104%, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0) 58%),
    var(--ink);
  color: var(--cream);
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: var(--grain);
}
.section-dark > .container { position: relative; z-index: 2; }
.section-dark .section-title { color: var(--cream); }
.section-dark .section-intro, .section-dark p { color: var(--cream-72); }
.section-dark .footnote { color: rgba(254, 249, 242, 0.55); }
.section-tint .journey-dot { background: var(--cream-deep); }
.section-tint .evidence-list li { border-top-color: var(--line); }
.section-tint .asset-placeholder, .section-gold .asset-placeholder { background: var(--cream); }

/* Brand chapter: dark, with a monumental coral mark */
.section-brand { position: relative; overflow: hidden; }
.section-brand { padding-bottom: calc(var(--s8) + 40px); }
.section-brand .brand-mark {
  position: absolute;
  right: -3vw;
  bottom: -16%;
  width: min(46vw, 700px);
  height: auto;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}
/* The mark arrives once, slowly, ending the chapter's entrance */
html.js .section-brand .brand-mark {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 1.6s var(--ease-out) 0.3s, transform 1.6s var(--ease-out) 0.3s;
}
html.js .section-brand.mark-in .brand-mark { opacity: 1; transform: none; }
.section-brand .container { position: relative; }
.section-brand .split-main { max-width: 58ch; }
.section-dark .term { border-top-color: var(--line-dark); }
.section-dark .term dt { color: var(--cream); }
.section-dark .term dd { color: var(--cream-72); }
.section-dark .pull-note-label { color: var(--gold); }
.section-dark .tabs { margin-top: var(--s6); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 84px; align-items: start; }
.split-side { display: flex; flex-direction: column; gap: var(--s5); }

/* Fact panels: hairline structures */
.fact-card { border-top: 1px solid var(--ink); padding-top: var(--s3); }
.fact-card h3 { font-size: 23px; margin-bottom: 14px; }
.fact-note { font-size: 13.5px; color: var(--muted); margin-bottom: var(--s2); }
.fact-list { list-style: none; }
.fact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.fact-list li:last-child { border-bottom: none; }
.fact-list strong {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}

/* ---------- Asset placeholders ---------- */
.asset-placeholder {
  position: relative;
  border: 1px dashed var(--line-strong);
  background: var(--cream-deep);
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 18px 20px;
}
.asset-tall { min-height: 320px; }
.asset-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/dog.svg') center 38% / 80px auto no-repeat;
  opacity: 0.09;
}
.asset-placeholder span {
  position: relative;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.14em;
  line-height: 1.9;
  text-transform: uppercase;
}

/* ---------- Thesis pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s7); }
.pillar {
  display: flex;
  gap: var(--s4);
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--ink);
  padding: var(--s4) 0 38px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
}
.pillar-num {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--muted);
  line-height: 1.85;
  transition: color 0.3s;
}
.pillar:hover .pillar-num, .pillar.open .pillar-num { color: var(--coral); }
.pillar-body { flex: 1; }
.pillar h3 {
  font-size: 27px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
}
.pillar h3::after {
  content: "+";
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 200;
  color: var(--line-strong);
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.pillar.open h3::after { transform: rotate(45deg); color: var(--coral); }
.pillar-lead { font-size: 15.5px; color: var(--ink-soft); max-width: 44ch; }
.pillar-detail {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 46ch;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.5s var(--ease-out), margin-top 0.5s var(--ease-out);
}
.pillar.open .pillar-detail { max-height: 260px; opacity: 1; margin-top: 14px; }

/* ---------- Terms: definition rows ---------- */
.terms { margin-top: var(--s5); }
.term {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s4);
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.term dt { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.term dd { font-size: 15px; color: var(--ink-soft); max-width: 56ch; }
.terms-2col { columns: 2; column-gap: var(--s7); }
.terms-2col .term { break-inside: avoid; grid-template-columns: 150px 1fr; }

/* ---------- Clinics ---------- */
.clinic-layout { display: grid; grid-template-columns: 1fr 1.7fr; gap: 84px; align-items: start; }
.clinic-side { display: flex; flex-direction: column; gap: var(--s5); }
.clinic-list { display: flex; flex-direction: column; }
.clinic-tab {
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  padding: 21px 4px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s2);
  position: relative;
  transition: padding-left 0.35s var(--ease-out);
}
.clinic-tab:last-child { border-bottom: 1px solid var(--line); }
.clinic-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  transform: translateY(-50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.clinic-tab:hover { padding-left: 16px; }
.clinic-tab.active { padding-left: 22px; }
.clinic-tab.active::before { transform: translateY(-50%) scale(1); }
.clinic-tab .clinic-name { font-family: var(--serif); font-size: 23px; }
.clinic-tab.active .clinic-name { font-weight: 400; }
.clinic-tab .clinic-meta { font-size: 13px; color: var(--muted); white-space: nowrap; }
.clinic-detail { border-top: 1px solid var(--ink); padding-top: var(--s4); min-height: 340px; }
.clinic-detail h3 { font-size: 32px; margin-bottom: 4px; }
.clinic-detail .clinic-region { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s3); }
.clinic-detail p { font-size: 15.5px; color: var(--ink-soft); max-width: 58ch; }
.clinic-stats { display: flex; gap: var(--s5); margin: var(--s3) 0; }
.stat-num { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.stat-label { display: block; margin-top: 5px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.clinic-detail .asset-placeholder { margin-top: var(--s3); min-height: 150px; }

/* Clinic map: real Great Britain outline (Natural Earth 50m),
   equirectangular projection, clinics at true coordinates */
.clinic-map { border: 1px solid var(--line); background: var(--cream); padding: 20px 20px 16px; max-width: 440px; }
.clinic-map svg { width: 100%; height: auto; display: block; }
.map-land { fill: var(--cream-deep); stroke: var(--line-strong); stroke-width: 0.8; stroke-linejoin: round; }
.map-point circle { fill: var(--coral); }
.map-point .map-ring { fill: rgba(254, 129, 75, 0.18); }
.map-leader { stroke: var(--line-strong); stroke-width: 1; }
.map-point text { font-family: var(--sans); font-size: 13px; fill: var(--ink); }
.clinic-map figcaption {
  margin-top: 14px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Reviews: the numeral set as a broadsheet figure ---------- */
.review-figure {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  column-gap: var(--s5);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid rgba(26, 37, 42, 0.22);
  padding: var(--s4) 0;
  margin-bottom: var(--s6);
}
.review-stars { grid-column: 1 / -1; height: 21px; display: block; margin-bottom: var(--s3); }
.review-number {
  grid-column: 1;
  font-family: var(--serif);
  font-size: clamp(76px, 11vw, 138px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-left: -0.04em;
  font-kerning: normal;
  text-box: trim-both cap alphabetic;
}
.review-caption {
  grid-column: 2;
  text-align: right;
  max-width: 20ch;
  margin: 0 0 10px; /* optically sits on the numeral's baseline */
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .review-figure { grid-template-columns: 1fr; }
  .review-caption { grid-column: 1; text-align: left; margin: var(--s2) 0 0; }
}

.review-bars { margin-top: var(--s5); display: flex; flex-direction: column; gap: 18px; }
.review-bar { display: grid; grid-template-columns: 140px 1fr 56px; align-items: center; gap: var(--s2); }
.review-bar-label { font-size: 14px; }
.review-bar-track { display: block; height: 6px; background: var(--cream); border: 1px solid rgba(26, 37, 42, 0.1); overflow: hidden; }
.review-bar-fill { display: block; height: 100%; width: 0; background: var(--coral); transition: width var(--t-draw) var(--ease-out); }
.review-bar-num { font-family: var(--serif); font-size: 19px; text-align: right; }

.theme-chips { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.chip-toggle {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14.5px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--t-fast) var(--ease-swift), border-color var(--t-fast) var(--ease-swift);
}
.chip-toggle:hover { color: var(--ink); border-bottom-color: var(--ink); }
.chip-toggle.active { color: var(--ink); border-bottom-color: var(--coral); }
.theme-quote {
  margin-top: var(--s3);
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  min-height: 84px;
  hanging-punctuation: first;
  text-wrap: pretty;
}
.theme-quote::before {
  content: "“";
  display: block;
  font-size: 44px;
  line-height: 0.6;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

/* ---------- Video strip ---------- */
.video-strip { display: flex; flex-direction: column; gap: 14px; }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  overflow: hidden;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 37, 42, 0.78), rgba(26, 37, 42, 0.1) 55%);
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--coral);
  transition: transform var(--t-state) var(--ease-out), box-shadow var(--t-state) var(--ease-out);
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-left: 13px solid var(--cream);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.video-thumb:hover .video-play { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(254, 129, 75, 0.22); }
.video-thumb figcaption { position: relative; color: var(--cream); font-size: 13.5px; line-height: 1.45; }

/* ---------- Pull note (buyer aside) ---------- */
.pull-note { margin-top: var(--s4); max-width: 62ch; }
.pull-note-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 8px;
  font-weight: 500;
}

/* ---------- Status labels ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-available { color: var(--gold-deep); }
.status-available::before { background: var(--gold); }
.status-request::before { background: var(--line-strong); }
.status-diligence::before { background: var(--ink); }

/* ---------- Journey ----------
   Every step draws its own track segment at exactly the dot's
   vertical centre (dot 34px -> line spans y 16.5-17.5px, centre 17px).
   Identical geometry per step = a perfectly straight line, and the
   segments scroll with the row on narrow screens. */
.journey-steps {
  display: flex;
  overflow-x: auto;
  padding-bottom: 8px;
  --dot: 34px;
}
.journey-step {
  flex: 1;
  min-width: 130px;
  background: none;
  border: none;
  font-family: var(--sans);
  font-weight: 300;
  cursor: pointer;
  padding: 0 8px;
  text-align: center;
  position: relative;
  color: var(--ink);
  /* buttons vertically centre their content; with labels wrapping to
     different line counts that pushes some dots off the track line.
     Pin everything to the top instead. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.journey-step::before {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 0.5px);
  left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
}
.journey-step:first-child::before { left: 50%; }
.journey-step:last-child::before { right: 50%; }
/* Coral fill is its own layer so it can draw along the track,
   propagating outward from wherever the reader last was */
.journey-step::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 0.5px);
  left: 0; right: 0;
  height: 1px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out) calc(var(--seg-i, 0) * 70ms);
}
.journey-step:first-child::after { left: 50%; }
.journey-step:last-child::after { right: 50%; }
.journey-step.done::after { transform: scaleX(1); }
.journey-step.active::after { transform: scaleX(0.5); }
.journey-step.active:first-child::after { transform: scaleX(0); }
.journey-dot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--dot); height: var(--dot);
  flex: 0 0 var(--dot);
  margin: 0 0 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.journey-step:hover .journey-dot { transform: scale(1.1); border-color: var(--ink); }
.journey-step.done .journey-dot { border-color: var(--coral); color: var(--coral); }
.journey-step.active .journey-dot { background: var(--coral); border-color: var(--coral); color: var(--white); }
.journey-step span.journey-label { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); transition: color 0.25s; }
.journey-step.active .journey-label { color: var(--ink); font-weight: 400; }
.journey-detail { margin-top: var(--s5); border-top: 1px solid var(--ink); padding-top: var(--s4); }
.journey-detail h3 { font-size: 26px; margin-bottom: 12px; }
.journey-detail p { max-width: 62ch; }
.journey-why { margin-top: var(--s3); font-size: 14.5px; color: var(--muted); }
.journey-why strong {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 500;
  margin-bottom: 6px;
}

/* ---------- Accordions (AltoMethod flow, evidence) ---------- */
.method-flow { margin-top: var(--s7); }
.method-flow-title { font-size: 24px; margin-bottom: var(--s3); }
.accordion { display: flex; flex-direction: column; }
.acc-item { border-top: 1px solid var(--line); }
.accordion .acc-item:last-child, .method-flow .acc-item:last-child { border-bottom: 1px solid var(--line); }
.acc-item summary {
  font-family: var(--serif);
  font-size: 21px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--s3);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 200;
  color: var(--line-strong);
  transition: transform 0.35s var(--ease-out), color 0.3s;
}
.acc-item[open] summary::after { transform: rotate(45deg); color: var(--coral); }
/* Revealed answers settle onto the page rather than popping in */
@keyframes acc-reveal {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.acc-item[open] > *:not(summary) { animation: acc-reveal 0.45s var(--ease-out) both; }
.acc-num { font-family: var(--serif); font-size: 15px; color: var(--muted); min-width: 18px; }
.acc-item[open] .acc-num { color: var(--coral); }
.acc-item p, .evidence-list { padding: 0 4px 24px 42px; font-size: 15.5px; color: var(--ink-soft); max-width: 65ch; }
.accordion .acc-item p, .evidence-list { padding-left: 4px; }
.evidence-list { list-style: none; max-width: none; }
.evidence-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding: 11px 0;
  border-top: 1px solid var(--cream-deep);
}

/* ---------- Governance ledger ---------- */
.gov-list { display: flex; flex-direction: column; }
.gov-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: var(--s4);
  align-items: baseline;
  padding: 21px 0;
  border-top: 1px solid var(--line);
}
.gov-row:last-child { border-bottom: 1px solid var(--line); }
.gov-row h4 { font-size: 20px; }
.gov-row p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Scorecard tabs (dark section) ---------- */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s4);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--line-dark);
}
.tab-btn {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14.5px;
  padding: 13px 0;
  border: none;
  border-bottom: 1.5px solid transparent;
  margin-bottom: -1px;
  background: none;
  cursor: pointer;
  color: var(--cream-72);
  transition: color var(--t-fast) var(--ease-swift), border-color var(--t-fast) var(--ease-swift);
}
.tab-btn:hover { color: var(--cream); }
.tab-btn.active { color: var(--cream); border-bottom-color: var(--gold); }
.tab-panel h3 { font-size: 27px; margin-bottom: 8px; color: var(--cream); }
.tab-panel .tab-desc { font-size: 15.5px; color: var(--cream-72); margin-bottom: var(--s5); }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--s5); }
.tile { border-top: 1px solid var(--line-dark); padding: 20px 0; }
.tile .tile-value { font-family: var(--serif); font-size: 26px; color: rgba(254, 249, 242, 0.45); letter-spacing: 0.15em; }
.tile .tile-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-72); margin-top: 10px; display: block; }
.tile .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 8px;
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---------- Performance signals ---------- */
.signal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: var(--s4) 0;
  margin-bottom: var(--s6);
}
.signal-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(38px, 4.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.signal-label {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
/* Sign and unit set as quiet annotation, report-style */
.signal-sign,
.signal-unit {
  font-size: 0.5em;
  color: var(--muted);
}
.signal-sign { vertical-align: 0.62em; margin-right: 0.05em; }
.signal-unit { margin-left: 0.04em; }
.block-title { font-size: 24px; margin-bottom: var(--s2); }
.section-dark .block-title { color: var(--cream); margin-top: var(--s6); }
p + .block-title, .split-main .block-title:not(:first-child) { margin-top: var(--s5); }
.section > .container > .block-title.reveal { margin-top: var(--s6); }

.mix-bar {
  display: flex;
  height: 14px;
  margin-top: var(--s3);
  overflow: hidden;
}
.mix-seg { display: block; height: 100%; }
.mix-plans { background: var(--ink); }
.mix-wax { background: var(--gold); }
.mix-other { background: var(--line); }
.mix-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.mix-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot-ink { background: var(--ink); }
.dot-gold { background: var(--gold); }
.dot-sand { background: var(--line); }

.ledger-inline { margin-top: var(--s3); }
.split-side .ledger { columns: 1; margin-top: 0; }
/* Dot leaders carry the eye from label to value, contents-page style */
.ledger-inline .ledger-row { justify-content: flex-start; }
.ledger-inline .ledger-row dt { order: 1; }
.ledger-inline .ledger-row dd { order: 3; }
.ledger-inline .ledger-row::before {
  content: "";
  order: 2;
  flex: 1 1 auto;
  min-width: var(--s3);
  align-self: baseline;
  height: 2px;
  margin: 0 2px 3px;
  background-image: radial-gradient(circle, var(--line-strong) 0.75px, transparent 0.9px);
  background-size: 7px 2px;
  background-position: bottom left;
  background-repeat: repeat-x;
}

/* ---------- Close: the back cover answers the gate ---------- */
.section-close::after {
  content: "";
  position: absolute;
  inset: clamp(14px, 2.5vw, 28px);
  border: 1px solid var(--line-dark);
  pointer-events: none;
}
.close-mark {
  height: 46px;
  display: block;
  margin: 0 auto var(--s5);
  filter: brightness(0) invert(0.97);
}
/* Chapter fleuron: the dachshund as a recurring printer's device */
.chapter-mark {
  width: 26px;
  height: 30px;
  margin-bottom: var(--s4);
  background: var(--gold-deep);
  -webkit-mask: url('../assets/dog.svg') center / contain no-repeat;
  mask: url('../assets/dog.svg') center / contain no-repeat;
}
.section-dark .chapter-mark { background: var(--gold); }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: var(--s5) auto var(--s3);
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s5);
  max-width: 380px;
}
.contact-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(254, 249, 242, 0.35);
}
.contact-meta { text-align: left; line-height: 1.5; }
.contact-meta strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--cream); }
.contact-meta span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(254, 249, 242, 0.6); }

/* Clinic detail photo */
.clinic-photo { margin-top: var(--s3); }
.clinic-photo img { aspect-ratio: 16 / 10; }

/* Team structure card sits in prose column */
.split-main .fact-card { margin-top: var(--s5); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  color: rgba(254, 249, 242, 0.6);
  padding: var(--s6) 0;
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s6); align-items: start; }
.footer-logo { height: 24px; filter: brightness(0) invert(0.97); opacity: 0.9; margin-bottom: var(--s3); display: block; }
.footer-legal { max-width: 66ch; }

/* ---------- Reveal on scroll ----------
   Content is visible by default; the hidden state only applies
   when JS is running (html.js), so print/no-JS never ship blank. */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
html.js .reveal.visible { opacity: 1; transform: none; }

/* Panel swaps: outgoing fades in place, incoming rises in */
.clinic-detail, .journey-detail, .tab-panel, .theme-quote {
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.is-leaving { opacity: 0; transition-duration: 0.17s; }
.is-entering { opacity: 0; transform: translateY(8px); transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .review-bar-fill { transition: none; }
  .ledger-row::after { transform: scaleX(1) !important; transition: none; }
  .tile .live-dot { animation: none; }
  .gate-inner > * { animation: none; }
  .gate, .gate .gate-inner { transition: none; }
  .clinic-detail, .journey-detail, .tab-panel, .theme-quote { transition: none; }
  .journey-step::after { transition: none; }
  .topnav a::after { transition: none; }
  .acc-item[open] > *:not(summary) { animation: none; }
  html.js .section-brand .brand-mark { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .clinic-layout { grid-template-columns: 1fr; gap: var(--s6); }
  .signal-row { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; column-gap: 0; }
  .ledger, .terms-2col { columns: 1; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .gov-row { grid-template-columns: 1fr; gap: 8px; }
  .topnav { max-width: 52vw; }
  .section-brand .brand-mark { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
}
@media (max-width: 600px) {
  .section { padding: var(--s7) 0; }
  .hero { padding: var(--s6) 0 var(--s7); }
  .hero-title { margin-top: var(--s6); }
  .container { padding: 0 24px; }
  .review-bar { grid-template-columns: 104px 1fr 46px; }
  .term { grid-template-columns: 1fr; gap: 6px; }
  .terms-2col .term { grid-template-columns: 1fr; }
  .clinic-stats { flex-wrap: wrap; gap: var(--s3); }
  .topbar-tag { display: none; }
  .ledger dd { font-size: 20px; }
}


/* ============================================================
   Print: the memorandum must print like a memorandum
============================================================ */
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  html { scroll-padding-top: 0; }
  body { background: #fff; font-size: 10.5pt; line-height: 1.55; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Screen chrome never prints */
  .gate, .progress, .topbar, .gate-note, .video-play { display: none !important; }

  /* Nothing hides behind reveal or animation state */
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .ledger-row::after { transform: scaleX(1) !important; }
  .pillar-detail { max-height: none !important; opacity: 1 !important; margin-top: 14px !important; }
  .tile .live-dot { animation: none; }
  .section-dark::before, body::after { content: none !important; }
  html.js .section-brand .brand-mark { opacity: 1; transform: none; }

  /* Dark chapters adapt to paper: ink on white, framed by a strong rule */
  .section-dark, .footer { background: none !important; color: var(--ink) !important; border-top: 2px solid var(--ink); }
  .section-dark .section-title, .section-dark p, .section-dark .section-intro,
  .section-dark .term dt, .section-dark .term dd, .section-dark .footnote,
  .tab-panel h3, .tab-panel .tab-desc, .tile .tile-label,
  .contact-meta strong, .footer-legal { color: var(--ink) !important; }
  .section-dark .term, .tile, .tab-bar { border-color: var(--line) !important; }
  .tile .tile-value { color: var(--muted) !important; }
  .tab-btn { color: var(--muted); }
  .tab-btn.active { color: var(--ink); border-bottom-color: var(--gold); }
  .close-mark, .footer-logo { filter: none !important; }
  .section-close::after { border-color: var(--line); }
  .contact-card { border-top-color: var(--line); }
  .contact-meta span { color: var(--muted) !important; }
  .brand-mark { display: none !important; }

  /* Pagination manners */
  .section { padding: 28pt 0; }
  .section-title, .block-title, .method-flow-title { break-after: avoid; }
  .ledger-row, .term, .gov-row, .acc-item, .pillar, .fact-card, .signal-stat,
  .review-bar, .photo, .clinic-map, .contact-card, .video-thumb { break-inside: avoid; }
  .cover-photo { height: 320pt; }

  /* Links read as document text; the closing action keeps its address */
  a { color: inherit; text-decoration: none; }
  .btn-light { background: none; border-color: var(--ink); color: var(--ink); }
  .btn[href^="mailto:"]::after { content: " — " attr(href); text-transform: none; letter-spacing: 0.02em; font-size: 9pt; }
}
