/* Instrument Sans (Instrument, SIL OFL 1.1), chosen by Noah 22 Oct 2026: one refined, legible sans for the whole site. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../assets/fonts/instrument-sans-var-latin.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 98%; ascent-override: 97%; descent-override: 25%; line-gap-override: 0%; }
/* Sapphire Recovery: concept redesign by 4TH QTR. Design tokens + shared chrome. */
@view-transition { navigation: auto; }

:root {
  /* 10 Oct 2026: warm linen base and ONE deep sapphire accent (Euro audit: THE BALANCE #F3EFE6, Paracelsus #FAF6EE,
     Max Grundig one deep natural accent). Eucalypt and ochre are for fine-line art and tiny details only. */
  --mist: #F3F7FC;          /* clinical white (1 Nov: sapphire scheme) */
  --paper: #FFFFFF;
  --bone: #E3ECF9;
  --ink: #0B0F17;
  --ink-2: #3A4048;
  --ink-3: #5C6168;      /* AA on every section background */
  --line: rgba(20, 24, 28, .12);
  --sapphire: #0F52BA;   /* sapphire gem blue */
  --gem: #0F52BA;        /* never redefined: the blue band colour */
  --sapphire-deep: #0B3F94;
  --sapphire-night: #072A66;
  --dawn: #9CC8FF;   /* ice blue: the accent on blue */
  --rose: #BFDBFF;
  --moss: #0B3F94;
  --ok: #2F6B4F;
  --eucalypt: #5A86C8;
  --ochre: #2F6FD0;

  --serif: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; /* display: same family, heavier */
  --sans: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-hero: clamp(2.75rem, 6.2vw, 6rem);
  --fs-h1: clamp(2.5rem, 5vw, 4.75rem);
  --fs-h2: clamp(2rem, 3.4vw, 3rem);
  --fs-h3: clamp(1.4rem, 2vw, 1.75rem);
  --fs-lede: clamp(1.1rem, 1.35vw, 1.3rem);
  --fs-body: 1.125rem;   /* 18 px everywhere: easy reading for a stressed reader */
  --fs-small: .875rem;
  --fs-micro: .8125rem;
  --fs-label: .8125rem;     /* 13 px uppercase labels and eyebrows (+.12em); 13 px floor for easy reading (Hugo, 23 Oct) */
  --track-label: .12em;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 4px;      /* editorial: near-square cards and photos; pills only for buttons and chips */
  --radius-lg: 4px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --crisis-h: 36px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
picture.r { display: contents; } /* build.py wraps lone <img>s for AVIF; the wrapper must not change layout */
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--sapphire); color: #fff; }
:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 3px; border-radius: 6px; }
/* dark surfaces: sapphire on navy is ~1.5:1, so the ring turns dawn there */
.crisis :focus-visible, .nav--light :focus-visible, .hero :focus-visible, .page-hero--image :focus-visible, .section--night :focus-visible,
.vista :focus-visible, .finale :focus-visible, .footer :focus-visible, .adm-pill :focus-visible, .sheet :focus-visible, .legal-call :focus-visible, .cta-band :focus-visible { outline-color: var(--dawn); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: calc(var(--crisis-h) + 8px); }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h1, .h1 { font-weight: 600; line-height: 1.02; letter-spacing: -.03em; }
h1 em, h2 em, h3 em, .h1 em, .h2 em { font-style: normal; font-weight: inherit; } /* accent words: colour only, no italic */
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.015em; }
em, .it { font-style: normal; } /* no italics anywhere: emphasis is weight or colour, easier to read */
p em, li em, .lede em { font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-small); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sapphire); box-shadow: 0 0 0 3px rgba(15, 82, 186, .14); }
.eyebrow--light { color: rgba(255, 255, 255, .8); }
.eyebrow--light::before { background: var(--dawn); box-shadow: 0 0 0 3px rgba(156, 200, 255, .2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 13vw, 180px); }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.section--paper { background: var(--paper); }
.section--bone { background: var(--bone); }
.section--night { background: var(--sapphire-night); color: #E9ECF5; }
.section--night .lede, .section--night .muted { color: rgba(233, 236, 245, .72); }
.stack > * + * { margin-top: var(--stack, 1rem); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

.chapter { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(22px, 3vw, 40px); }
.chapter__n { font-family: var(--sans); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); font-variant-numeric: tabular-nums; color: var(--sapphire); min-width: 2.6em; }
.section--night .chapter__n { color: var(--dawn); }
.chapter__rule { flex: 1; height: 1px; background: var(--line); transform-origin: left; }
.section--night .chapter__rule { background: rgba(255, 255, 255, .14); }

/* ---------- crisis bar (persistent) ---------- */
.crisis {
  position: fixed; inset: 0 0 auto 0; z-index: 120; height: var(--crisis-h);
  display: flex; align-items: center; justify-content: center; gap: 22px;
  background: var(--ink); color: #DCE2F0; font-size: .8125rem; letter-spacing: .01em; padding-inline: var(--gutter);
}
.crisis strong, .crisis__open { color: #fff; font-weight: 600; }
.crisis__open { background: none; border: 0; padding: 0; font-size: inherit; min-height: 32px; text-decoration: underline dotted rgba(255, 255, 255, .45); text-underline-offset: .3em; }
.crisis__open:hover { text-decoration-color: var(--dawn); }
.crisis a { color: #fff; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.crisis a:hover { border-color: var(--dawn); }
.crisis__list { display: flex; gap: 18px; align-items: center; }
.crisis__list span { opacity: .55; }
.crisis__toggle { display: none; background: none; border: 0; color: #fff; font-size: .8125rem; font-weight: 600; padding: 0; }
@media (max-width: 860px) {
  .crisis { justify-content: space-between; }
  .crisis__list { display: none; }
  .crisis__toggle { display: inline-flex; align-items: center; gap: 6px; }
  .crisis.is-open { height: auto; min-height: var(--crisis-h); flex-wrap: wrap; padding-block: 8px; }
  .crisis.is-open .crisis__list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; width: 100%; padding-top: 6px; }
  .crisis.is-open .crisis__list > span { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: var(--crisis-h); z-index: 110; height: var(--nav-h);
  display: flex; align-items: center; transition: background .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
}
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav--light { color: #fff; }
.nav.is-solid { background: rgba(255, 255, 255, .9); color: var(--ink); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(calc(-100% - var(--crisis-h))); }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; text-decoration: none; flex: none; }
.brand__mark { width: 36px; height: 36px; flex: none; border-radius: 50%; }
.brand__word { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.01em; line-height: 1; }
.brand__word small { display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .32em; text-transform: uppercase; opacity: .7; margin-top: 3px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; font-size: .875rem; font-weight: 450; letter-spacing: -.003em; white-space: nowrap; }
.nav__links a { text-decoration: none; position: relative; padding-block: 6px; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav__short { display: none; }
@media (max-width: 520px) { .nav__long { display: none; } .nav__short { display: inline; } }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; background: transparent; align-items: center; justify-content: center; }
.nav__burger span { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span::before { top: -6px; } .nav__burger span::after { top: 6px; }
@media (max-width: 1240px) {
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: inline-flex; }
}
.menu {
  position: fixed; inset: 0; z-index: 105; background: var(--sapphire-night); color: #fff;
  padding: calc(var(--crisis-h) + var(--nav-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out); visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.12; text-decoration: none; }
.menu li a:hover { color: var(--dawn); }
.menu__foot { font-size: .9rem; color: rgba(255, 255, 255, .7); display: grid; gap: 6px; }
.menu__foot a { color: #fff; }
body.menu-open { overflow: hidden; }
body.menu-open .nav { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav__burger span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: .9375rem; letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -12px rgba(20, 24, 28, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sapphire { --bg: var(--sapphire); }
.btn--sapphire:hover { --bg: #172D52; }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn--ghost:hover { box-shadow: none; background: rgba(127, 127, 127, .08); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .875rem; }
.btn .arrow { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--sapphire); }

/* ---------- surfaces ---------- */
.card { background: #fff; border-radius: var(--radius); padding: clamp(22px, 2.4vw, 34px); border: 1px solid var(--line); }
.card--flat { box-shadow: none; border: 1px solid var(--line); background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(15, 82, 186, .08); color: var(--sapphire-deep); }
.tag--concept { background: rgba(156, 200, 255, .28); color: #0B3F94; }
.tag--concept::before { content: "◆"; font-size: .6rem; }
.tag--demo { background: #E3ECF9; color: #0B3F94; }
.section--night .tag--concept, .footer .tag--concept { background: rgba(156, 200, 255, .16); color: var(--dawn); }
.note { font-size: .8125rem; color: var(--ink-3); border-left: 2px solid var(--dawn); padding-left: 12px; }

.media { position: relative; overflow: hidden; border-radius: 3px; background: #cfd6de; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--r { aspect-ratio: 4 / 5; }
.media--w { aspect-ratio: 16 / 10; }

/* ---------- forms ---------- */
.field { display: grid; gap: 8px; }
.field > label, .legend { font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(20, 24, 28, .18); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--sapphire); box-shadow: 0 0 0 4px rgba(15, 82, 186, .12); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(20, 24, 28, .18); background: #fff; font-size: .9375rem; transition: all .25s var(--ease); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--sapphire); outline-offset: 2px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.switch input { appearance: none; width: 46px; height: 28px; border-radius: 99px; background: rgba(11, 15, 23, .38); position: relative; flex: none; cursor: pointer; transition: background .3s var(--ease); }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked { background: var(--sapphire); }
.switch input:checked::after { transform: translateX(18px); }
.range { width: 100%; accent-color: var(--sapphire); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
/* photographs wipe open from below instead of fading up like the copy */
.js-motion .media[data-reveal] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); }
.no-js [data-reveal], .reduced [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- private admissions pill + quick-help panel (10 Oct 2026) ---------- */
.adm-pill {
  /* quiet and always there: one ink pill split into a label and two actions, no pulse (a pulse reads as an alarm) */
  position: fixed; right: 16px; bottom: 16px; z-index: 100; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 4px 4px 16px; border-radius: 999px; background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  font-size: .9375rem; font-weight: 600; letter-spacing: 0;
}
.adm-pill__k { color: rgba(255, 255, 255, .72); margin-right: 8px; white-space: nowrap; }
.adm-pill__a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; transition: background .25s; }
.adm-pill__a:hover { background: rgba(255, 255, 255, .1); }
.adm-pill__a--fill { background: var(--paper); color: var(--ink); }
.adm-pill__a--fill:hover { background: #fff; }
@media (max-width: 420px) { .adm-pill__k { display: none; } .adm-pill { padding-left: 4px; } }
.nav__help { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 6px; border: 0; background: none; color: inherit; white-space: nowrap;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; }
.nav__help i { width: 7px; height: 7px; border-radius: 50%; background: #C8553D; }
.nav__help:hover { text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 1360px) { .nav__help { display: none; } }   /* phones and tablets: the crisis bar's "Get help now" */
.sheet__h { margin: 16px 0 0; font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); }
.ph { border-bottom: 1px dashed currentColor; opacity: .8; }
.tag--ph { background: rgba(47, 111, 208, .16); color: #0B3F94; }
.line-art { display: block; width: 100%; max-width: 300px; height: auto; margin: 22px 0 6px; color: var(--ink-2); }
.line-art path, .line-art ellipse, .line-art circle { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.line-art .faint { opacity: .45; }
.line-art .accent, .line-art .accent-line { stroke: var(--ochre); }
.line-art--night { color: rgba(233, 236, 245, .7); }
.line-art--night .accent { stroke: var(--dawn); }
.sheet-backdrop { position: fixed; inset: 0; z-index: 130; background: rgba(5, 22, 56, .45); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.sheet {
  position: fixed; z-index: 131; right: 18px; bottom: 18px; width: min(420px, calc(100vw - 36px)); background: #fff; border-radius: 24px; padding: 24px;
  max-height: calc(100dvh - var(--crisis-h) - 36px); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px -20px rgba(5, 22, 56, .5); transform: translateY(20px) scale(.98); opacity: 0; pointer-events: none; transition: all .45s var(--ease);
}
.sheet.is-open { transform: none; opacity: 1; pointer-events: auto; }
.sheet.is-open ~ .sheet-backdrop, .sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }
.sheet h2 { font-size: 1.9rem; margin-bottom: 6px; }
.sheet__opt { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; margin-top: 10px; transition: background .25s, border-color .25s; }
.sheet__opt:hover { background: var(--mist); border-color: rgba(15, 82, 186, .3); }
.sheet__opt b { display: block; font-size: 1rem; }
.sheet__opt small { color: var(--ink-3); font-size: .8125rem; }
.sheet__opt .dot { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--mist); font-size: 1.05rem; }
.sheet__opt--urgent .dot { background: var(--ink); color: #fff; }
.sheet__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--mist); font-size: 1.2rem; }
.sheet__hours { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); }

/* ---------- veil (page transition fallback) ---------- */
.veil { position: fixed; inset: 0; z-index: 150; pointer-events: none; background: radial-gradient(120% 80% at 50% 100%, #fff 0%, var(--mist) 60%); opacity: 0; transition: opacity .5s var(--ease); }
.veil.is-on { opacity: 1; }
::view-transition-old(root) { animation: vt-out .45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(6px); } }


/* ---------- footer ---------- */
.footer { background: var(--sapphire-night); color: #D7DCEA; padding-top: clamp(72px, 10vw, 130px); overflow: hidden; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--dawn); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: .9375rem; }
.footer__grid h3 { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: var(--track-label); text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 14px; font-weight: 500; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer__grid li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__crisis { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 18px 20px; font-size: .875rem; line-height: 1.7; }
.footer__crisis a { text-decoration: underline; text-underline-offset: 2px; }
.footer__word { font-family: var(--serif); font-size: clamp(5rem, 22vw, 19rem); line-height: .9; letter-spacing: -.04em; color: #fff; margin: clamp(56px, 8vw, 110px) 0 -.04em; padding-bottom: .12em; white-space: nowrap; color: #fff; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8125rem; color: rgba(255, 255, 255, .6); position: relative; z-index: 1; background: var(--sapphire-night); }
.concept-note { display: inline-flex; align-items: center; gap: 8px; }
.concept-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dawn); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- utilities ---------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.page-top { padding-top: calc(var(--crisis-h) + var(--nav-h) + clamp(40px, 7vw, 110px)); }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------- shared film grain (10 Oct 2026) ----------
   One fine static grain over every photo, film and loop, so Sapphire's own photos, the AI dawn film and the push-in
   loops read as one camera, and the 3x-enlarged photos lose their too-smooth digital look. Light and dark specks with
   alpha in normal blending (no mix-blend-mode: an overlay blend doubled long frames in the scroll profile).
   128 px tile drawn at 64 CSS px = device-pixel grain on retina, 18 KB, cached once. */
.hero__stage::after, .media::after, .day__frame::after, .page-hero__bg::after, .vista__media::after, .finale__media::after,
.tour__item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: url(../assets/img/grain.webp) 0 0 / 64px 64px; opacity: .32;
}
@media (max-width: 760px) { .media::after, .tour__item::after { opacity: .22; } }
.tour__item figcaption { z-index: 2; }
@media print { .hero__stage::after, .media::after { display: none; } }

/* =====================================================================================================
   23 Oct 2026 (Hugo, full audit 2): one display voice, one pre-launch label, tighter rhythm, a dock that
   never sits on content, full-bleed closing bands instead of rounded gradient boxes.
   ===================================================================================================== */
:root { --accent: var(--sans); }   /* 31 Oct: Noah's 22 Oct rule, one sans and no thin serif or italics (see the block at the end) */

/* display: a lighter, tighter cut of the sans; the one emphasised word is Newsreader 300 italic (Fulcrum: serif italic only for warmth) */
h1, h2, .h1, .h2 { font-weight: 500; letter-spacing: -.035em; }
h1 em, h2 em, .h1 em, .h2 em, .hero__line em, .hero__beat em, .finale__title em, .gal__h em, .intro__statement em, .vista em {
  font-family: var(--accent); font-style: normal; font-weight: 500; letter-spacing: -.01em; color: inherit; padding-right: .04em;
}
h3 em { font-style: normal; }
.footer__word { font-family: var(--accent); font-weight: 500; font-style: normal; letter-spacing: -.035em; }

/* lockup sub-label: 11 px, full contrast (was 9 px at .7) */
.brand__word small { font-size: .6875rem; opacity: 1; letter-spacing: .26em; }

/* rhythm: dense sections, no half-empty viewports */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(56px, 6vw, 88px); }
.chapter { margin-bottom: clamp(18px, 2.2vw, 30px); }

/* ---------- pre-launch labels: one discreet style everywhere ----------
   Every "To confirm", "Planned", "Preview" and "Indicative" label is the same quiet chip. The build sets
   body[data-prelaunch] while LAUNCH = False in tools/build.py; at launch the build strips them and this hides any
   that scripts inject. */
.tag--concept, .tag--demo, .tag--ph {
  background: transparent; color: var(--ink-3); border: 1px dashed rgba(92, 97, 104, .45);
  font-size: .75rem; letter-spacing: .08em; padding: 3px 9px; gap: 6px; vertical-align: .1em; font-weight: 500;
}
.tag--concept::before, .tag--demo::before, .tag--ph::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--ochre); font-size: 0; }
p.tag--demo, p.tag--concept { width: fit-content; margin-bottom: 14px; }
.section--night .tag--concept, .section--night .tag--demo, .footer .tag--concept, .p-head .tag--demo, .journey--city .tag--concept, .cta-band .tag--concept {
  color: rgba(233, 236, 245, .75); border-color: rgba(233, 236, 245, .35); background: transparent;
}
body:not([data-prelaunch]) :is(.tag--concept, .tag--demo, .tag--ph, .concept-note, [data-prelaunch-only]) { display: none !important; }

/* ---------- admissions dock: never on top of content ---------- */
@media (max-width: 980px) {
  body:not(.no-dock) main, body:not(.no-dock) .footer__base { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
body.no-dock .adm-pill, .adm-pill.is-away { opacity: 0; pointer-events: none; transform: translateY(16px); }
.adm-pill { transition: opacity .3s var(--ease), transform .3s var(--ease); }
[id], .field, label { scroll-margin-top: calc(var(--crisis-h) + var(--nav-h) + 16px); }

/* ---------- captions over photos: always on a scrim ---------- */
.on-photo { position: relative; }
.scrim::before { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(0deg, rgba(5, 22, 56, .72), rgba(5, 22, 56, 0)); pointer-events: none; z-index: 1; }
.scrim > figcaption, .scrim > .cap { z-index: 2; }
.read-bar { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 210; background: var(--sapphire); transform-origin: left; transform: scaleX(0); pointer-events: none; }
/* type audit (23 Oct, pass 3): nothing a reader needs is below 15 px; notes 14 px; comfortable measure everywhere */
.small { font-size: .9375rem; }
.note { font-size: .875rem; line-height: 1.55; }
.lede { max-width: 36em; }
main p:not([class]) { max-width: 68ch; }
.card p.small, .card .small { line-height: 1.6; }

/* ================= fundamentals pass (24 Oct 2026): behaviour audit fixes ================= */
/* crisis bar: every target 44 px, a quick exit, Sapphire's own line in the list */
:root { --crisis-h: 44px; }
.crisis { gap: 18px; }
.crisis__open, .crisis__toggle, .crisis__exit { min-height: 44px; font-size: .875rem; }
.crisis a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: .3em; }
.crisis a:hover { text-decoration-color: var(--dawn); }
.crisis__short { display: none; }
.crisis__sr { display: none !important; }
.crisis__exit { margin-left: auto; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: none; color: #fff; font-weight: 600; white-space: nowrap; min-height: 34px; }
.crisis__exit:hover { background: #fff; color: var(--ink); }
@media (min-width: 861px) { .crisis { justify-content: flex-start; } .crisis__list { margin-inline: auto; } .crisis__exit { margin-left: 0; } }
@media (max-width: 860px) {
  .crisis { gap: 8px; padding-inline: 12px; }
  .crisis__long { display: none; } .crisis__short { display: inline; }
  .crisis__toggle { margin-left: auto; padding: 0 6px; }
  .crisis__exit { margin-left: 0; min-height: 44px; padding: 0 12px; }
  .crisis.is-open { padding-block: 0 10px; }
  .crisis.is-open .crisis__list { grid-template-columns: 1fr 1fr; gap: 0 16px; padding-top: 0; }
  .crisis.is-open .crisis__sr { display: flex !important; grid-column: 1 / -1; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 6px; white-space: normal; border-top: 1px solid rgba(255, 255, 255, .16); margin-top: 4px; }
  .crisis__sr small { font-size: .8125rem; color: rgba(255, 255, 255, .8); text-decoration: none; }
}
@media (max-width: 350px) { .crisis__toggle { font-size: .8125rem; } .crisis__exit { padding: 0 9px; } }

/* admissions dock: phones get a full-width bar that never hides; the Call half shows the number and open/closed */
.adm-pill__call { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.15; gap: 2px; }
.adm-pill__num { font-variant-numeric: tabular-nums; }
.adm-pill__s { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 500; color: rgba(255, 255, 255, .78); }
.adm-pill__s i { width: 7px; height: 7px; border-radius: 50%; background: #5FBF8F; flex: none; }
.adm-pill.is-closed .adm-pill__s i { background: var(--dawn); }
body.dock-call-only .adm-pill__a--fill { display: none; }
@media (max-width: 980px) {
  .adm-pill { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; padding: 4px; border-radius: 18px; }
  .adm-pill__a { min-height: 52px; border-radius: 14px; }
  .adm-pill__call { flex: 1 1 auto; padding-left: 14px; }
  .adm-pill__a--fill { flex: 0 0 auto; justify-content: center; padding: 0 22px; font-size: 1rem; }
  body:not(.no-dock) main, body:not(.no-dock) .footer__base { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (min-width: 981px) { .adm-pill__num, .adm-pill__s { display: none; } .adm-pill__call { flex-direction: row; } }
.adm-pill.is-away { opacity: 0; pointer-events: none; transform: translateY(16px); }

/* "what happens on the call", next to every Call button */
.call-note { margin: 12px 0 0; font-size: 1rem; line-height: 1.5; max-width: 34em; color: var(--ink-2); }
.call-note b { font-weight: 600; color: var(--ink); }
.call-note [data-hours-state]:not(:empty)::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2E8B57; margin: 0 6px 1px 4px; vertical-align: middle; }
.call-note.is-closed [data-hours-state]::before { background: #B26B00; }
:is(.hero, .finale, .section--night, .cta-band, .legal-call, .page-hero--image, .vista) .call-note,
:is(.hero, .finale, .section--night, .cta-band, .legal-call, .page-hero--image, .vista) .call-note b { color: rgba(255, 255, 255, .92); }
:is(.hero, .finale, .section--night, .cta-band, .legal-call, .page-hero--image) .call-note.is-closed [data-hours-state]::before { background: var(--dawn); }

/* steps that "light in turn" stay fully readable: only the rule and the number carry the motion */
[data-draw] > li, .modules[data-draw] > .module { opacity: 1 !important; }

/* phones: nothing a reader needs below 16 px (labels, eyebrows and legal fine print excepted) */
@media (max-width: 760px) {
  :root { --fs-small: 1rem; }
  .small, .note, .step p, .fact span, .tier li, .tier__meta, .crew2__bio, .lead2__bio, .footer li, .footer__crisis,
  .sheet__opt small, figcaption span, .pricing__notes p, .t-more__list p, .day__step p, td, th, .chip span, .field label,
  .switch span, .faq__a p, .card p, .tl small, main li { font-size: 1rem; }
}
.cta-band .call-note { flex-basis: 100%; margin-top: 0; }
/* closing bands are bone since 23 Oct, so their call note reads as ink on paper, not white in a navy box */
.cta-band .call-note { color: var(--ink-2); } .cta-band .call-note b { color: var(--ink); }
.cta-band .call-note.is-closed [data-hours-state]::before { background: #B26B00; }
.footer__crisis a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 981px) { .adm-pill__call { align-items: center; } }
.crisis__sr small { text-decoration: none; display: block; }

/* form honeypot (24 Oct 2026): off-screen, out of the tab order and hidden from assistive tech; bots fill it, people never see it */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* =====================================================================================================
   31 Oct 2026 (Hugo, go-live pass): Noah's 22 Oct type rule, "a modern rehab, easy to read": one sans, no thin
   serif and no italics. The Newsreader accent added on 23 Oct is gone; the emphasised word in a headline is the
   same sans, one weight lighter and slightly softer, and every price or display number is upright sans.
   ===================================================================================================== */
em, i { font-style: normal; }
h1 em, h2 em, .h1 em, .h2 em, .hero__line em, .hero__beat em, .finale__title em, .gal__h em, .intro__statement em, .vista em,
.hero__reveal em, .getting-here__h em, .day__h em, .gal__end em, .finale__after-h em, .therapies__scope .t-quote em {
  font-family: var(--sans); font-style: normal; font-weight: 400; letter-spacing: inherit; padding-right: 0; font-size: inherit;
  color: color-mix(in srgb, currentColor 66%, transparent);
}
.footer__word { font-family: var(--sans); font-style: normal; font-weight: 600; letter-spacing: -.055em; }
.fund-prices b, .compare b.serif, .legal-call a[href^="tel"], .tier__price, .price-strip b, .proof__story blockquote {
  font-family: var(--sans); font-style: normal; font-weight: 500;
}
.fund-prices b, .tier__price { letter-spacing: -.045em; }
/* the film's honesty note: one line always visible, the full list of changes on a tap */
.note--film summary { cursor: pointer; list-style: none; }
.note--film summary::-webkit-details-marker { display: none; }
.note--film summary span { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; color: var(--ink-2); }
.note--film[open] summary span { display: none; }
.note--film p { margin: .5em 0 0; }
.note--film summary:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 3px; }
/* the concept dot was squeezed to a sliver when the line wrapped on phones */
.concept-note { align-items: flex-start; }
.concept-note::before { flex: none; margin-top: .5em; }
/* the footer follows main on every page and already clears the dock, so main's own dock padding only left a
   strip of empty linen between the last band and the footer */
@media (max-width: 980px) { body:not(.no-dock):has(.footer) main { padding-bottom: 0; } }

/* 1 Nov 2026 (MAX design audit) */
.range { height: 44px; }
.range::-webkit-slider-thumb { width: 28px; height: 28px; }
.crisis a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.crisis__open { min-height: 44px; }
body.portal .adm-pill { display: none; }
/* QA 1 Nov: inline text links get a 44px hit area without moving the layout */
.link, .toc a, .p-roles a, .tier__link { position: relative; }
.link::after, .toc a::after, .p-roles a::after, .tier__link::after { content: ""; position: absolute; inset: -10px -4px; }

/* section CTA row, injected by tools/build.py after every section that has no call or enquiry link (MAX, 1 Nov) */
.sec-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.sec-cta-band { background: var(--paper); padding-block: 8px clamp(56px, 7vw, 96px); }
.sec-cta-band .sec-cta { margin-top: 0; }
.page-hero--image { flex-direction: column; justify-content: flex-end; align-items: stretch; }
.page-hero--image .wrap.sec-cta { margin-top: clamp(24px, 3vw, 40px); }
.page-hero--image > .wrap { flex-shrink: 0; }
.sec-cta__s { display: none; }
@media (max-width: 480px) { .sec-cta .btn { flex: 1 1 0; padding: 0 12px; } .sec-cta__x { display: none; } .sec-cta__s { display: inline; } }

/* QA 1 Nov (44px rule): remaining small targets */
@media (min-width: 761px) { .page-hero--image:has(.sec-cta)::after { background: linear-gradient(180deg, rgba(5, 22, 56, .55), rgba(5, 22, 56, .15) 22%, rgba(5, 22, 56, .78) 58%, rgba(5, 22, 56, .85)); } }
.menu li a { min-height: 44px; }
.menu__foot a, .crumbs a, .card p.serif a, .nav__links a { position: relative; }
.menu__foot a::before, .crumbs a::before, .card p.serif a::before, .nav__links a::before { content: ""; position: absolute; inset: -13px -4px; }
.sheet__close { width: 44px; height: 44px; }
.adm-pill__a, .nav__help, .crisis__exit { min-height: 44px; }
.crisis-strip a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- 1 Nov 2026: sapphire scheme (Noah) ----------
   Clinical white base, sapphire gem blue in place of the old cream bands and near-black, black kept for text, the
   logo and primary buttons. Blue bands redefine the colour tokens, so everything inside flips to white type; white
   cards inside a blue band switch the tokens back. */
main :is(.section--paper, .section--bone, .related, .sec-cta-band), main .section:has(> .wrap > .cta-band) {
  background: var(--gem); color: #fff;
  --ink: #fff; --ink-2: rgba(255, 255, 255, .88); --ink-3: rgba(255, 255, 255, .76); --line: rgba(255, 255, 255, .22);
  --sapphire: #CFE3FF; --sapphire-deep: #CFE3FF;
}
main :is(.section--paper, .section--bone, .related, .sec-cta-band, .section:has(> .wrap > .cta-band)) .btn:not(.btn--ghost) { --bg: #fff; --fg: #0B3F94; }
main :is(.section--paper, .section--bone, .related, .sec-cta-band, .section:has(> .wrap > .cta-band)) .btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .6); }
main :is(.section--paper, .section--bone, .related, .sec-cta-band, .section:has(> .wrap > .cta-band)) :is(.compare, .calc, .fund-steps li, .enq__form, .discreet, .quiz, .pack-list, .card:not(.card--flat), .chip span, .res-card, .toc, .newsletter__form) {
  --ink: #0B0F17; --ink-2: #3A4048; --ink-3: #5C6168; --line: rgba(11, 15, 23, .12); --sapphire: #0F52BA; --sapphire-deep: #0B3F94;
  color: var(--ink);
}
main :is(.section--paper, .section--bone, .related, .sec-cta-band, .section:has(> .wrap > .cta-band)) :is(.compare, .calc, .fund-steps li, .enq__form, .discreet, .quiz, .pack-list, .card:not(.card--flat), .chip span, .res-card, .toc, .newsletter__form) .btn:not(.btn--ghost) { --bg: #0F52BA; --fg: #fff; }
main :is(.section--paper, .section--bone, .related, .sec-cta-band, .section:has(> .wrap > .cta-band)) :is(.compare, .calc, .fund-steps li, .enq__form, .discreet, .quiz, .pack-list, .card:not(.card--flat), .chip span, .res-card, .toc, .newsletter__form) .btn--ghost { color: var(--ink) !important; border-color: rgba(11, 15, 23, .3); }
main :is(.section--paper, .section--bone) .pack-meter i { background: rgba(255, 255, 255, .25); }
main :is(.section--paper, .section--bone) .pack-meter i b { background: #fff; }
.day__cap-t { background: rgba(7, 42, 102, .6); padding: 2px 10px; border-radius: 999px; }

/* 1 Nov 2026 (launch fine print): collection notice under every form's submit button */
.form-notice { margin: 14px 0 0; max-width: 46ch; }
.form-notice a { position: relative; }
.form-notice a::before { content: ""; position: absolute; inset: -13px -4px; }

/* 1 Nov 2026 (launch fine print, 44px rule): crisis 000 in the footer, choice pills, and switches */
.chip { display: inline-flex; min-height: 44px; }
.chip input { margin: 0; }
.switch input::before { content: ""; position: absolute; inset: -8px -2px; }

/* 2 Nov 2026 (QA, 44px rule): taller targets that keep the text flow.
   Inline links (phone numbers in sentences, the footer crisis line) get padding cancelled by a negative margin, so the
   hit box is 44px but the line box is unchanged. Underlines move from border-bottom to text-decoration so they stay
   tight to the text. */
.footer__crisis a, main p a[href^="tel:"]:not([class]), main figcaption a[href^="tel:"]:not([class]) { display: inline-block; min-height: 0; padding: 12px 7px; margin: -12px -7px; }
.link { display: inline-block; padding: 12px 0; margin: -12px 0; border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a.tier__link { min-height: 44px; border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.toc a { min-height: 44px; display: flex; align-items: center; }
.toc ol { gap: 0; }
.toc li::before { padding-top: 0; align-self: center; }
.link::after, .toc a::after, .tier__link::after { content: none; }
/* "From" before a headline price (home tiers, funding): small sans label on the price's baseline */
.price-from { font-family: var(--sans); font-style: normal; font-size: max(.875rem, .32em); font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
