/* Cerno, fresh-1. Two materials: paper for evidence, ink for computation. */

@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/source-serif-4.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/source-serif-4-italic.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/plus-jakarta-sans.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-400.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-500.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-mono-600.woff2) format("woff2"); }

:root {
  --paper: #F5F3EE;
  --paper-2: #EFECE4;
  --surface: #FFFFFF;
  --ink: #1B3A4B;
  --ink-2: #24506A;
  --ink-deep: #163242;
  --gold: #C8973E;
  --gold-hi: #D4A653;
  --gold-text: #8A5F1A;
  --teal: #7BB8AE;
  --teal-fill: #4C8579;
  --teal-text: #2F6F63;

  --text: var(--ink);
  --text-2: #4A6270;            /* 5.6:1 on paper */
  --text-3: #526877;            /* 4.9:1 on paper-2, small print */
  --rule: rgba(27, 58, 75, 0.14);
  --rule-2: rgba(27, 58, 75, 0.24);
  --on-ink: #F5F3EE;
  --on-ink-2: #BAC6CB;          /* 7:1 on ink */
  --on-ink-rule: rgba(245, 243, 238, 0.16);

  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  /* Type scale: nine steps, the only sizes on the site (audit 17 Nov). */
  --fs-display: clamp(2.375rem, 1.6rem + 2.6vw, 3.75rem);   /* 38 -> 60 */
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem);         /* 28 -> 42 */
  --fs-h3: clamp(1.3125rem, 1.15rem + 0.55vw, 1.625rem);     /* 21 -> 26 */
  --fs-title: clamp(1.125rem, 1.08rem + 0.15vw, 1.1875rem);  /* 18 -> 19 */
  --fs-lede: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);        /* 16 -> 17, every lede and subtitle */
  --fs-body: 1rem;                                           /* 16 */
  --fs-small: 0.875rem;                                      /* 14 */
  --fs-xs: 0.78125rem;                                       /* 12.5 */
  --fs-button: 0.9375rem;                                    /* 15 */
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1360px;
  --hdr-h: 72px;
  --sec: clamp(48px, 5vw, 80px);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --shadow-sheet: 0 1px 2px rgba(27, 58, 75, 0.06), 0 12px 32px -12px rgba(27, 58, 75, 0.22);
  --shadow-panel: 0 1px 2px rgba(27, 58, 75, 0.05), 0 24px 60px -28px rgba(27, 58, 75, 0.28);
  color-scheme: light;
}
@media (min-width: 1800px) { :root { --maxw: 1480px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: rgba(27,58,75,.35) transparent; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
/* smooth only for same-page anchors: switched on after load, so a link like /#data lands without a visible scroll */
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--sans);
  font-feature-settings: "ss01" off;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(200, 151, 62, 0.18);
}
@media (pointer: fine) { html { overscroll-behavior-y: none; } }
::selection { background: rgba(200, 151, 62, 0.32); color: var(--ink); }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { touch-action: manipulation; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* focus: the gold box, the site's own mark of a checked figure */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 3px; }
[data-ground="ink"] :focus-visible, .ink :focus-visible, .ftr :focus-visible { outline-color: var(--gold); }
main:focus-visible { outline: none; }

.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: var(--r-sm); transform: translateY(-160%); transition: transform 0.2s var(--ease-out); text-decoration: none; font-weight: 600; }
.skip:focus-visible { transform: none; outline-color: var(--gold); }

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

/* type */
.display {
  font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: var(--fs-display); line-height: 1.0; letter-spacing: -0.028em;
}
.display span { display: block; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.022em; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.012em; }
.lede { font-size: var(--fs-lede); line-height: 1.55; color: var(--text-2); max-width: 60ch; }
.body { color: var(--text-2); max-width: 62ch; }
.body + .body { margin-top: 1em; }
.small { font-size: var(--fs-small); color: var(--text-2); }
.ink .lede, .ink .body, .ink .small { color: var(--on-ink-2); }

/* buttons */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--rule-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 var(--fs-button)/1 var(--sans); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.14s var(--ease-out), box-shadow 0.18s ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.btn-gold { --bg: var(--gold); --fg: var(--ink); --bd: var(--gold); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn-line { --bg: transparent; --fg: var(--ink); --bd: var(--rule-2); }
.ink .btn-line { --fg: var(--on-ink); --bd: rgba(245, 243, 238, 0.34); }
@media (hover: hover) and (pointer: fine) {
  .btn-gold:not([disabled]):hover { --bg: var(--gold-hi); --bd: var(--gold-hi); box-shadow: 0 6px 18px -8px rgba(138, 95, 26, 0.55); }
  .btn-ink:not([disabled]):hover { --bg: var(--ink-2); --bd: var(--ink-2); }
  .btn-line:hover { --bd: var(--ink); background: rgba(27, 58, 75, 0.04); }
  .ink .btn-line:hover { --bd: var(--on-ink); background: rgba(245, 243, 238, 0.06); }
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--fs-button); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--fs-button); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { appearance: none; background: none; border: 0; padding: 4px 2px; color: var(--gold-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.icon-btn { appearance: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; color: var(--text-2); transition: background-color 0.15s ease, color 0.15s ease; }
.icon-btn:hover { background: rgba(27, 58, 75, 0.06); color: var(--ink); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 0.25em; transition: text-decoration-color 0.15s ease; }
.text-link:hover { text-decoration-color: currentColor; }

/* header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper); transition: box-shadow 0.2s ease; }
.hdr.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: var(--hdr-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: var(--serif); font-weight: 500; font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { list-style: none; display: flex; gap: 2px; margin-right: 10px; }
.nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font-weight: 400; font-size: var(--fs-small); color: var(--text); border-radius: 6px; }
.nav-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { transform: scaleX(1); } }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }
.nav-login { color: var(--text-2) !important; margin-right: 6px; }
.nav-login:hover { color: var(--ink) !important; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; margin-right: -12px; border: 0; background: none; font-weight: 600; cursor: pointer; }
.menu-btn i { position: relative; width: 18px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease-out), top 0.25s var(--ease-out); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 8.5px; }
.menu-btn[aria-expanded="true"] i::before { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { top: 4.25px; transform: rotate(-45deg); }
.menu { position: fixed; inset: var(--hdr-h) 0 0 0; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.menu-in { padding-top: 24px; padding-bottom: calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 32px; }
.menu ul { list-style: none; border-top: 1px solid var(--rule); }
.menu li { border-bottom: 1px solid var(--rule); }
.menu li a { display: flex; align-items: center; min-height: 64px; font-family: var(--serif); font-size: var(--fs-h2); text-decoration: none; letter-spacing: -0.01em; }
.menu li a[aria-current="page"] { color: var(--gold-text); }
.menu .btn { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menu-in 0.32s var(--ease-out); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
body.menu-open { overflow: hidden; }

/* sections and grounds */
.sec { padding-block: var(--sec); position: relative; }
.sec-tight { padding-block: clamp(40px, 4vw, 60px); }
.paper-2 { background-color: var(--paper-2); }
.ink { background-color: var(--ink); color: var(--on-ink); }
.ink ::selection { background: rgba(200, 151, 62, 0.45); color: var(--paper); }
.sec-head { display: grid; gap: 22px; max-width: 760px; }
.sec-head .lede, .sec-head .body { margin-top: 2px; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 48px; align-items: start; }

/* Ground changes fade, never cut: each section takes the ground above it into its own over its top band. */
:root { --fade-h: clamp(40px, 5vw, 80px); }
main > section, .ftr {
  --fade-from: transparent;
  background-image: linear-gradient(to bottom,
    var(--fade-from) 0%,
    color-mix(in srgb, var(--fade-from) 86%, transparent) 14%,
    color-mix(in srgb, var(--fade-from) 62%, transparent) 32%,
    color-mix(in srgb, var(--fade-from) 36%, transparent) 52%,
    color-mix(in srgb, var(--fade-from) 15%, transparent) 72%,
    color-mix(in srgb, var(--fade-from) 4%, transparent) 88%,
    transparent 100%);
  background-size: 100% var(--fade-h);
  background-repeat: no-repeat;
}
main > section:not(.paper-2):not(.ink) + section.paper-2,
main > section:not(.paper-2):not(.ink) + section.ink { --fade-from: var(--paper); }
main > section.paper-2 + section:not(.paper-2) { --fade-from: var(--paper-2); }
main > section.ink + section:not(.ink) { --fade-from: var(--ink); }
/* into and out of ink the fade is shorter, so it reads as a soft edge rather than a haze */
main > section:not(.ink) + section.ink, main > section.ink + section:not(.ink) { --fade-h: clamp(36px, 3.6vw, 64px); }
main:has(> section.ink:last-child) + .ftr { --fade-h: clamp(36px, 3.6vw, 64px); }
main:has(> section:not(.paper-2):not(.ink):last-child) + .ftr { --fade-from: var(--paper); }
main:has(> section.ink:last-child) + .ftr { --fade-from: var(--ink); }
.ftr { border-top: 0 !important; }

/* ---------- HOME HERO ---------- */
.hero { position: relative; min-height: min(calc(100svh - var(--hdr-h)), 980px); display: grid; align-items: center; padding-block: clamp(40px, 6vw, 96px); overflow: clip; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: center; }
.hero-copy { grid-column: 1 / span 7; display: grid; gap: 24px; }
.hero-copy #hero-title { font-size: var(--fs-display); line-height: 1.05; max-width: none; }
.hero-copy #hero-title span { display: block; }
.hero-copy .lede { max-width: none; color: var(--text-2); font-size: var(--fs-lede); }
.hero-copy .lede-2 { margin-top: -8px; font-size: var(--fs-small); }
.hero-for { font-size: var(--fs-small); color: var(--text-2); padding-left: 14px; border-left: 1px solid var(--gold); }
.hero-copy .actions { margin-top: 8px; }
.hero-stage { grid-column: 8 / -1; aspect-ratio: 1 / 1.04; }
/* The mark is drawn on the canvas, as tiles (hero.js marks the hero is-live). The solid SVG mark is
   the fallback only: no canvas (is-static), no scripting, a script that never arrived, and print. */
.hero-mark-still { width: 100%; height: 100%; opacity: 0; animation: hero-mark-fallback 0.01s 4s forwards; }
.hero.is-live .hero-mark-still { animation: none; }
.hero.is-static .hero-mark-still { opacity: 1; animation: none; }
@keyframes hero-mark-fallback { to { opacity: 1; } }
@media (scripting: none) { .hero-mark-still { opacity: 1; animation: none; } }
@media print { .hero-mark-still { opacity: 1 !important; animation: none !important; } }
@media (max-width: 920px) {
  .hero { min-height: auto; align-items: start; padding-top: 28px; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 8px; }
  .hero-stage { grid-column: 1; grid-row: 1; width: min(46vw, 220px); justify-self: start; margin-bottom: 18px; }
  .hero-copy { grid-column: 1; }
}

/* ---------- HOW IT WORKS: FLOW (one line, stations, an asks detour) ---------- */
.fl-title { max-width: none; }
@media (min-width: 1100px) { .fl-title { white-space: nowrap; } }
.fl-chart { --ly: 176px; --mode: h; position: relative; display: grid; grid-template-columns: 184px minmax(0, 1fr) 286px; align-items: start; margin-top: clamp(24px, 3vw, 44px); min-height: 330px; }
.fl-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.fl-cap { font-size: var(--fs-small); font-weight: 600; color: var(--text-2); margin-bottom: 12px; }
.fl-src, .fl-out { position: relative; z-index: 2; margin-top: calc(var(--ly) - 152px); }
.fl-src ul, .fl-out ul, .fl-track { list-style: none; }
.fl-src ul, .fl-out ul { display: grid; gap: 8px; }
.fl-out ul { gap: 10px; }
.fl-pill { display: flex; align-items: center; height: 42px; padding: 0 16px; background: var(--surface); border: 1px solid var(--rule-2); border-radius: 21px; font-size: var(--fs-small); white-space: nowrap; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.fl-pill-once { border-style: dashed; background: transparent; }
.fl-pill.is-hot { border-color: var(--teal-fill); box-shadow: 0 0 0 1px var(--teal-fill); }
.fl-card { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); font-size: var(--fs-small); font-weight: 600; white-space: nowrap; box-shadow: 0 1px 2px rgba(27, 58, 75, 0.05); transition: border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease; }
.fl-card svg { width: 22px; height: 22px; flex: none; color: var(--teal-text); }
.fl-card.is-hot { border-color: var(--teal-fill); box-shadow: 0 0 0 1px var(--teal-fill); background: #F7FBFA; }
.fl-track { position: relative; z-index: 2; height: 330px; }
.fl-st { position: absolute; left: var(--x); top: var(--ly); width: 168px; margin-left: -84px; margin-top: -29px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fl-st .t { display: contents; }
.fl-disc { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--rule-2); transition: border-color 0.35s ease, box-shadow 0.35s ease; }
.fl-disc svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fl-st b { font-family: var(--serif); font-weight: 500; font-size: var(--fs-title); line-height: 1.2; letter-spacing: -0.005em; margin-top: 12px; }
.fl-st small { font-size: var(--fs-small); line-height: 1.4; color: var(--text-2); margin-top: 4px; max-width: 150px; }
.fl-st.hit .fl-disc { border-color: var(--teal-fill); box-shadow: 0 0 0 7px rgba(76, 133, 121, 0.14); }
.fl-ask { top: calc(var(--ly) - 112px); width: 230px; margin-left: -201px; flex-direction: row-reverse; gap: 14px; text-align: right; }
.fl-ask .t { display: flex; flex-direction: column; align-items: flex-end; }
.fl-ask b, .fl-ask small { margin-top: 0; }
.fl-ask small { margin-top: 2px; }
.fl-ask .fl-disc { border-color: rgba(200, 151, 62, 0.85); }
.fl-ask .fl-disc svg { stroke: var(--gold-text); }
.fl-ask.hit .fl-disc { border-color: var(--gold); box-shadow: 0 0 0 7px rgba(200, 151, 62, 0.18); }
.fl-rec { margin-top: -46px; }
.fl-rec .fl-disc { position: relative; width: 92px; height: 92px; background: var(--ink); border: 0; box-shadow: var(--shadow-panel); }
.fl-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; background: var(--paper); }
.fl-tile svg { width: 34px; height: 34px; stroke: none; }
.fl-rec .fl-disc::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed rgba(76, 133, 121, 0.55); animation: fl-spin 26s linear infinite; }
.fl-rec.hit .fl-disc { box-shadow: var(--shadow-panel), 0 0 0 9px rgba(27, 58, 75, 0.1); }
@keyframes fl-spin { to { transform: rotate(360deg); } }
.fl-wires .w { fill: none; stroke: rgba(27, 58, 75, 0.22); stroke-width: 1.5; }
.fl-wires .w-ask { stroke: rgba(200, 151, 62, 0.7); stroke-dasharray: 2 5; }
.fl-wires .w-march { fill: none; stroke: var(--teal-fill); stroke-width: 1.5; stroke-dasharray: 3 13; stroke-linecap: round; opacity: 0.8; animation: fl-march 1.1s linear infinite; }
@keyframes fl-march { to { stroke-dashoffset: -16; } }
.fl-wires .chev { fill: none; stroke: var(--teal-fill); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: fl-nudge 1.6s ease-in-out infinite; }
@keyframes fl-nudge { 0%, 100% { opacity: 0.4; transform: translate(-2px, 0); } 50% { opacity: 1; transform: translate(2px, 0); } }
.fl-chart[data-mode="v"] .chev { animation-name: fl-nudge-v; }
@keyframes fl-nudge-v { 0%, 100% { opacity: 0.4; transform: translate(0, -2px); } 50% { opacity: 1; transform: translate(0, 2px); } }
.fl-wires .pulse { fill: none; stroke: var(--teal-fill); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(123, 184, 174, 0.85)); }
/* the documents that travel */
.tk rect.sheet { fill: var(--surface); stroke: rgba(27, 58, 75, 0.45); stroke-width: 1; }
.tk .ln { stroke: rgba(27, 58, 75, 0.6); stroke-width: 1.1; stroke-linecap: round; opacity: 0; transition: opacity 0.25s; }
.tk .tab { fill: var(--teal-fill); opacity: 0; transition: opacity 0.25s; }
.tk .ok { opacity: 0; transition: opacity 0.25s; }
.tk .ok circle { fill: var(--teal-fill); }
.tk .ok path { fill: none; stroke: #fff; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tk .q { opacity: 0; fill: var(--ink); font: 700 11px/1 var(--sans); transition: opacity 0.2s; }
.tk.read .ln { opacity: 1; } .tk.filed .tab { opacity: 1; } .tk.checked .ok { opacity: 1; }
.tk.asking rect.sheet { fill: var(--gold-hi); stroke: var(--gold-text); }
.tk.asking .ln, .tk.asking .tab { opacity: 0; } .tk.asking .q { opacity: 1; }
/* off screen, or after its two rounds, everything rests */
.fl-chart.is-off .w-march, .fl-chart.is-off .chev, .fl-chart.is-off .fl-rec .fl-disc::after { animation-play-state: paused; }
.fl-chart.is-done .w-march { display: none; }
.fl-chart.is-done .chev, .fl-chart.is-done .fl-rec .fl-disc::after { animation: none; }
.fl-chart.is-done .chev { opacity: 0.8; }
@media (prefers-reduced-motion: reduce) {
  .fl-wires .w-march { display: none; }
  .fl-wires .chev, .fl-rec .fl-disc::after { animation: none; }
  .fl-wires .chev { opacity: 0.8; }
}
@media (max-width: 920px) {
  .fl-chart { --mode: v; display: block; min-height: 0; }
  .fl-src, .fl-out { margin-top: 0; }
  .fl-src ul { display: flex; flex-wrap: wrap; }
  .fl-track { height: auto; display: grid; gap: 30px; padding: 44px 0 40px; }
  .fl-st, .fl-ask, .fl-rec { position: static; width: auto; margin: 0; flex-direction: row; align-items: center; text-align: left; gap: 18px; }
  .fl-st .t { display: flex; flex-direction: column; }
  .fl-st b { margin-top: 0; }
  .fl-st small { max-width: none; }
  .fl-ask { margin-left: 64px; }
  .fl-ask .t { align-items: flex-start; }
  .fl-rec .fl-disc { width: 64px; height: 64px; margin-left: -3px; }
  .fl-tile { width: 36px; height: 36px; border-radius: 8px; }
  .fl-tile svg { width: 26px; height: 26px; }
  .fl-out ul, .fl-out .fl-cap { padding-left: 64px; }
  .fl-rec .t { padding-left: 4px; }
  .fl-card { white-space: normal; }
}
.ctl { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--rule-2); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: var(--fs-small); transition: border-color 0.15s ease, background-color 0.15s ease; }
.ctl:hover { border-color: var(--ink); }
.ctl svg { width: 16px; height: 16px; }
.ink .ctl { border-color: rgba(245, 243, 238, 0.3); }
.ink .ctl:hover { border-color: var(--on-ink); }
/* ---------- product chapter pictures ---------- */
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); overflow: hidden; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding: 18px 22px 14px; border-bottom: 1px solid var(--rule); }
.panel-title { font: 600 var(--fs-body)/1.3 var(--sans); }
.panel-meta { font-size: var(--fs-small); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.35; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; }
.chip-file { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; padding: 2px 6px; border-radius: 3px; background: var(--paper-2); color: var(--text-2); letter-spacing: 0.02em; }
.chip-ok { background: rgba(76, 133, 121, 0.12); color: var(--teal-text); }
.chip-due { background: rgba(27, 58, 75, 0.06); color: var(--text-2); }
.chip-late { background: rgba(200, 151, 62, 0.16); color: var(--gold-text); }
.chip-type { background: rgba(27, 58, 75, 0.07); color: var(--ink); }

/* reading */
.reading-pic { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.inbox-cols { display: grid; grid-template-columns: minmax(0, 1fr) 20.5em; gap: 16px; padding: 10px 22px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); border-bottom: 1px solid var(--rule); background: #FBFAF7; }
.fund { border-bottom: 1px solid var(--rule); }
.fund:last-child { border-bottom: 0; }
.fund-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 22px 6px; }
.fund-head b { font-weight: 600; }
.fund-head span { font-size: var(--fs-small); color: var(--text-2); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 20.5em; gap: 16px; align-items: center; padding: 8px 22px; }
.doc:last-child { padding-bottom: 14px; }
.doc-file { display: flex; align-items: center; gap: 10px; min-width: 0; }
.doc-name { font-family: var(--mono); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.doc-route { display: flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--text-2); white-space: nowrap; }
.doc-route .arrow { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.doc-route .chip { transition: opacity 0.35s ease, transform 0.35s var(--ease-out); }
.js .reading-pic:not(.is-in) .doc { opacity: 0; transform: translateY(6px); }
.js .reading-pic:not(.is-in) .doc .chip-type { opacity: 0; transform: translateX(-6px); }
.doc { transition: opacity 0.45s ease, transform 0.5s var(--ease-out); }
.expect-fund { padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.expect-fund:last-child { border-bottom: 0; }
.expect-fund b { display: block; font-weight: 600; margin-bottom: 8px; }
.expect-list { list-style: none; display: grid; gap: 6px; }
.expect-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-small); }
@media (max-width: 1240px) { .reading-pic { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .inbox-cols { display: none; }
  .doc { grid-template-columns: 1fr; gap: 4px; padding: 10px 16px; }
  .fund-head, .panel-head, .expect-fund { padding-inline: 16px; }
  .doc-route { padding-left: 46px; }
}

/* checking: the GP page and the roll-forward */
.check-grid { align-items: center; }
.check-copy { grid-column: 1 / span 4; display: grid; gap: 22px; align-self: start; position: sticky; top: calc(var(--hdr-h) + 40px); }
.check-pic { grid-column: 5 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(16px, 2vw, 28px); align-items: center; position: relative; }
.gp-page { position: relative; background: var(--surface); border-radius: 3px; box-shadow: var(--shadow-sheet), 0 0 0 1px rgba(27, 58, 75, 0.06); padding: clamp(24px, 3vw, 44px) clamp(20px, 2.6vw, 40px) 22px; font-family: var(--serif); color: #1f2d36; }
.gp-page::before { content: ""; position: absolute; inset: 10px 10px auto auto; width: 34px; height: 4px; background: rgba(27, 58, 75, 0.14); border-radius: 2px; }
.gp-fund { font-weight: 500; font-size: var(--fs-body); letter-spacing: -0.005em; }
.gp-sub { font-size: var(--fs-small); color: #4f5d66; margin-top: 2px; font-style: italic; }
.gp-table { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: var(--fs-small); }
.gp-table td { padding: 6px 0; border-bottom: 1px solid rgba(27, 58, 75, 0.1); }
.gp-table td:last-child { text-align: right; font-variant-numeric: tabular-nums lining-nums; padding-left: 12px; white-space: nowrap; }
.gp-table tr.total td { border-top: 1px solid rgba(27, 58, 75, 0.55); border-bottom: 3px double rgba(27, 58, 75, 0.45); font-weight: 500; padding-top: 9px; }
.gp-foot { margin-top: 22px; font-size: var(--fs-xs); color: #5d6a72; text-align: right; font-family: var(--sans); }
.figbox { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 1.5px solid var(--gold); border-radius: 3px; background: rgba(200, 151, 62, 0.07); pointer-events: none; opacity: 0; transition: opacity 0.2s ease, transform 0.42s var(--ease-out), width 0.42s var(--ease-out), height 0.42s var(--ease-out); }
.figbox.is-on { opacity: 1; }
.figbox.is-instant { transition: none; }
.roll { background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 22px 22px 16px; box-shadow: var(--shadow-panel); }
.roll h3 { font: 600 var(--fs-small)/1.3 var(--sans); color: var(--on-ink); margin-bottom: 12px; }
.roll-list { list-style: none; }
.roll-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 10px; margin: 0 -10px; width: calc(100% + 20px); border: 0; border-radius: 6px; background: transparent; color: inherit; text-align: left; cursor: pointer; font-size: var(--fs-small); transition: background-color 0.18s ease; }
.roll-row .num { font-size: var(--fs-small); color: var(--on-ink); }
.roll-row span:first-child { color: var(--on-ink-2); transition: color 0.18s ease; }
.roll-row:hover, .roll-row.is-on { background: rgba(245, 243, 238, 0.07); }
.roll-row.is-on span:first-child { color: var(--on-ink); }
.roll-row.is-on .num { color: var(--gold); }
.roll-li + .roll-li { border-top: 1px solid var(--on-ink-rule); }
.roll-li.is-total { border-top: 1px solid rgba(245, 243, 238, 0.42); margin-top: 4px; }
.roll-li.is-total .roll-row span:first-child { color: var(--on-ink); font-weight: 600; }
.ticks { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--on-ink-rule); font-size: var(--fs-small); color: var(--on-ink); }
.ticks li { display: flex; gap: 7px; align-items: flex-start; line-height: 1.35; transition: color 0.35s ease; }
.ticks svg { flex: none; width: 15px; height: 15px; color: var(--teal); margin-top: 1px; }
.ticks svg { transition: opacity 0.35s ease; }
.js .roll:not(.is-ok) .ticks li { color: var(--on-ink-2); }
.js .roll:not(.is-ok) .ticks svg { opacity: 0.3; }
.roll-ok { display: inline-flex; width: 18px; height: 18px; margin-left: 6px; vertical-align: -3px; color: var(--teal); opacity: 0; transition: opacity 0.3s ease; }
.roll.is-ok .roll-ok { opacity: 1; }
@media (max-width: 1100px) {
  .check-copy { grid-column: 1 / -1; position: static; }
  .check-pic { grid-column: 1 / -1; }
}
@media (max-width: 720px) { .check-pic { grid-template-columns: 1fr; } }

/* asks */
.asks-pic { grid-column: 1 / span 7; }
.asks-copy { grid-column: 9 / -1; display: grid; gap: 22px; }
.asks-grid { align-items: center; }
.asks { display: grid; gap: 18px; }
.ask { position: relative; display: grid; gap: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-panel); transition: opacity 0.5s ease, transform 0.6s var(--ease-out); }
.ask .ask-q { box-shadow: none; }
.ask-1 .ask-doc-bar { border: 1px solid var(--rule); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ask-2 .ask-doc { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ask-say { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: var(--fs-small); line-height: 1.55; color: var(--on-ink); }
.ask-say > svg { width: 28px; height: 28px; padding: 4px; background: var(--paper); border-radius: 6px; }
.ask-1 .choice:first-child { border-color: rgba(245, 243, 238, 0.6); }
.js .asks:not(.is-one) .ask-1 { opacity: 0; transform: translateY(10px); }
.js .asks:not(.is-two) .ask-2 { opacity: 0; transform: translateY(10px); }
.asks.is-two .ask-1 { opacity: 0.85; }
.ask-doc { background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; border: 1px solid var(--rule); border-bottom: 0; overflow: hidden; }
.ask-doc-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: var(--fs-small); font-weight: 600; color: var(--text-2); background: #FBFAF7; border-bottom: 1px solid var(--rule); }
.ask-page { padding: 26px clamp(18px, 3vw, 36px) 24px; font-family: var(--serif); color: #1f2d36; }
.ask-page .gp-fund { font-size: var(--fs-body); }
.ask-lines { list-style: none; margin-top: 18px; display: grid; }
.ask-lines li { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(27, 58, 75, 0.1); font-variant-numeric: tabular-nums lining-nums; }
.ask-lines li:last-child { font-weight: 500; border-bottom: 3px double rgba(27, 58, 75, 0.4); }
.ask-lines li.is-q::after { content: ""; position: absolute; inset: 1px -8px; border: 1.5px solid var(--gold); border-radius: 3px; background: rgba(200, 151, 62, 0.07); opacity: 0; transform: scale(0.98); transition: opacity 0.3s ease, transform 0.4s var(--ease-out); }
.asks.is-q .ask-lines li.is-q::after { opacity: 1; transform: none; }
.ask-q { background: var(--ink); color: var(--on-ink); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 18px clamp(18px, 3vw, 36px) 20px; box-shadow: var(--shadow-panel); }
.ask-q-who { display: flex; align-items: center; gap: 10px; }
.ask-q-who svg { width: 22px; height: 22px; }
.ask-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-left: 40px; }
@media (max-width: 520px) { .ask-choices { padding-left: 0; } }
.ask-booked { padding-left: 40px; }
.choice { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid rgba(245, 243, 238, 0.32); font-weight: 600; font-size: var(--fs-small); transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.14s var(--ease-out); }
.choice.is-press { transform: scale(0.97); }
.choice.is-picked { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.ask-booked { display: flex; gap: 10px; margin-top: 14px; color: var(--on-ink); font-size: var(--fs-small); line-height: 1.5; }
.ask-booked svg { flex: none; width: 20px; height: 20px; color: var(--teal); margin-top: 2px; }
.js .asks:not(.is-done) .ask-booked { opacity: 0; transform: translateY(4px); }
.ask-booked { transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
.js .asks:not(.is-asked) .ask-2 .ask-q-body { opacity: 0; transform: translateY(6px); }
.ask-q-body { transition: opacity 0.4s ease, transform 0.5s var(--ease-out); }
@media (max-width: 1020px) {
  .asks-pic, .asks-copy { grid-column: 1 / -1; }
  .asks-copy { grid-row: 1; }
}

/* record */
.record-pic { margin-top: clamp(40px, 5vw, 72px); }
.record-panel { display: grid; grid-template-columns: minmax(0, 1fr); }
.record-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.fig { padding: 22px 22px 24px; border-left: 1px solid var(--rule); display: grid; gap: 4px; }
.fig:first-child { border-left: 0; }
.fig dt { font-size: var(--fs-small); color: var(--text-2); font-weight: 400; }
.fig dd { margin: 0; font-family: var(--serif); font-size: var(--fs-h3); letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums lining-nums; }
.record-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.lt { padding: 22px 22px 26px; }
.lt h3 { font: 600 var(--fs-small)/1.3 var(--sans); margin-bottom: 18px; }
.lt h3 span { font-weight: 400; color: var(--text-2); }
.bars { list-style: none; display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 3em; gap: 12px; align-items: center; font-size: var(--fs-small); }
.bar-track { height: 18px; position: relative; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--teal-fill); border-radius: 0 4px 4px 0; transform-origin: left; transition: transform 0.9s var(--ease-out), background-color 0.2s ease; }
.bar:last-child .bar-fill { background: #9DB5B0; }
.bar:hover .bar-fill { background: var(--ink-2); }
.js .record-pic:not(.is-in) .bar-fill { transform: scaleX(0); }
.bar .num { text-align: right; font-size: var(--fs-small); }
.record-notes { padding: 22px; border-left: 1px solid var(--rule); display: grid; align-content: start; gap: 18px; background: #FBFAF7; }
.record-notes p { display: flex; gap: 12px; font-size: var(--fs-small); color: var(--text); }
.record-notes svg { flex: none; width: 20px; height: 20px; color: var(--teal-text); margin-top: 2px; }
@media (max-width: 900px) {
  .record-figs { grid-template-columns: 1fr 1fr; }
  .fig:nth-child(3) { border-left: 0; }
  .fig:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .record-body { grid-template-columns: 1fr; }
  .record-notes { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 420px) { .bar { grid-template-columns: 6.6em minmax(0, 1fr) 2.6em; gap: 8px; } .fig { padding: 18px 16px; } }

/* forecast band (home) */
.fc { overflow: hidden; }
.fc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: center; }
.fc-copy { grid-column: 1 / span 4; display: grid; gap: 24px; justify-items: start; position: relative; z-index: 1; }
.fc-copy .btn { margin-top: 6px; }
.fc-pic { grid-column: 5 / -1; margin-right: calc(-1 * var(--gutter)); }
.fc-pic .mc-plot { height: clamp(320px, 34vw, 560px); }
@media (max-width: 920px) {
  .fc-copy, .fc-pic { grid-column: 1 / -1; }
  .fc-pic { margin: 40px calc(-1 * var(--gutter)) 0; }
  .fc-pic .mc-plot { height: 300px; }
}

/* analyst */
.an-grid { align-items: center; }
.an-copy { grid-column: 1 / span 5; display: grid; gap: 22px; }
.an-pic { grid-column: 7 / -1; }
.chat { display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); overflow: hidden; }
.chat-log { padding: 22px 22px 8px; display: flex; flex-direction: column; gap: 16px; min-height: 560px; }
.msg { max-width: 92%; font-size: var(--fs-small); line-height: 1.55; }
.msg-you { align-self: flex-end; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 14px 14px 4px 14px; }
.msg-cerno { align-self: flex-start; display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.msg-cerno > svg { width: 24px; height: 24px; margin-top: 2px; }
.msg-cerno .lines { display: grid; gap: 8px; }
.msg-cerno .line b { font-weight: 600; }
.msg-cerno .line.kv { display: grid; grid-template-columns: 5.6em 1fr; gap: 10px; }
.msg-cerno .line.kv b { color: var(--teal-text); }
.chat .add-note { justify-self: start; margin-top: 4px; min-height: 36px; padding: 0 14px; font-size: var(--fs-small); }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 0 6px 0 16px; min-height: 52px; border: 1px solid var(--rule-2); border-radius: 10px; color: var(--text-3); background: var(--paper); }
.chat-input span { flex: 1; }
.chat-input i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: var(--paper); }
.chat-input i svg { width: 18px; height: 18px; }
.chat-bar { display: flex; justify-content: flex-end; padding: 10px 14px 0; }
.js .chat .msg { opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.45s var(--ease-out); }
.js .chat .msg.is-on { opacity: 1; transform: none; }
.js .chat .line { opacity: 0; transition: opacity 0.35s ease; }
.js .chat .line.is-on { opacity: 1; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-fill); opacity: 0.4; animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { opacity: 1; transform: translateY(-2px); } }
@media (max-width: 1020px) { .an-copy, .an-pic { grid-column: 1 / -1; } .chat-log { min-height: 0; } }
@media (max-width: 520px) { .msg-cerno .line.kv { grid-template-columns: 1fr; gap: 0; } .chat-log { padding: 18px 16px 6px; } }

/* coming in, going out */
.io { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); }
.io-item { display: grid; gap: 18px; align-content: start; }
.io-pic { height: 168px; margin-bottom: 14px; }
.io-pic svg { width: 100%; height: 100%; }
@media (max-width: 820px) { .io { grid-template-columns: 1fr; gap: 64px; } }

/* data teaser */
.dt-grid { align-items: center; }
.dt-copy { grid-column: 1 / span 5; display: grid; gap: 22px; justify-items: start; }
.dt-pic { grid-column: 7 / -1; }
@media (max-width: 920px) { .dt-copy, .dt-pic { grid-column: 1 / -1; } }
.cov svg { width: 100%; height: auto; overflow: visible; }

/* your data */
.yd-lines { list-style: none; display: grid; gap: 0; margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--rule-2); }
.yd-lines li { font-family: var(--serif); font-size: var(--fs-h3); letter-spacing: -0.015em; line-height: 1.2; padding: 22px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 18px; align-items: baseline; }
.yd-lines li::before { content: ""; flex: none; width: 12px; height: 12px; border: 1.5px solid var(--gold-text); border-radius: 2px; transform: translateY(-0.1em); }
.yd-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 56px); margin-top: clamp(48px, 5vw, 80px); }
.yd-points p { color: var(--text-2); font-size: var(--fs-body); }
.yd-points b { display: block; color: var(--ink); font-family: var(--serif); font-weight: 500; font-size: var(--fs-title); letter-spacing: -0.005em; margin-bottom: 6px; }
@media (max-width: 920px) { .yd-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .yd-points { grid-template-columns: 1fr; gap: 28px; } }

/* closing band */
.close { text-align: left; }
.close-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); align-items: start; row-gap: 32px; }
.close-in .h2 { grid-column: 1 / span 7; font-size: var(--fs-h2); }
.close-side { grid-column: 9 / -1; display: grid; gap: 28px; justify-items: start; }
.close-side p { color: var(--on-ink-2); font-size: var(--fs-lede); }
@media (max-width: 920px) { .close-in .h2, .close-side { grid-column: 1 / -1; } }

/* footer */
.ftr { background-color: var(--paper-2); border-top: 1px solid var(--rule); padding-top: clamp(56px, 6vw, 88px); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.ftr-brand p { margin-top: 14px; color: var(--text-2); max-width: 30ch; }
.ftr-col h2 { font: 600 var(--fs-small)/1.3 var(--sans); color: var(--text-2); margin-bottom: 10px; }
.ftr-col ul { list-style: none; display: grid; }
.ftr-col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-size: var(--fs-small); }
.ftr-col a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 56px; padding-top: 20px; padding-bottom: calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 760px) { .ftr-grid { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

/* ---------- Monte Carlo picture ---------- */
.mc { position: relative; }
.mc-plot { position: relative; width: 100%; height: clamp(380px, 46vw, 680px); }
.mc-plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-label { position: absolute; left: 0; top: 0; padding: 4px 9px; border-radius: 4px; background: rgba(22, 50, 66, 0.92); border: 1px solid rgba(245, 243, 238, 0.24); color: var(--on-ink); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.mc-label.is-on { opacity: 1; }
.mc-label.is-on.is-under { opacity: 0.12; }
.mc-tip { position: absolute; left: 0; top: 0; width: 15em; padding: 10px 12px; border-radius: 6px; background: var(--paper); color: var(--ink); font-size: var(--fs-small); line-height: 1.35; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.25s var(--ease-out); }
.mc-tip.is-on { opacity: 1; }
.mc-tip::after { content: ""; position: absolute; right: -6px; top: var(--py, 50%); width: 10px; height: 10px; margin-top: -5px; background: var(--paper); transform: rotate(45deg); }
.mc-tip b { display: block; font-family: var(--mono); font-size: var(--fs-small); font-weight: 600; margin: 4px 0 6px; }
.mc-tip-more { display: block; color: #3c5664; padding-top: 4px; border-top: 1px solid var(--rule); }
.mc-tip-more + .mc-tip-more { border-top: 0; padding-top: 2px; font-weight: 600; }
.mc-hist { position: absolute; top: 0; bottom: 0; right: 0; width: var(--hw, 104px); cursor: crosshair; border-radius: 4px; }
.mc-hist:focus-visible { outline-offset: 2px; }
.mc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--on-ink-rule); }
.mc-cap { color: var(--on-ink-2); font-size: var(--fs-small); }
.mc-count { font-size: var(--fs-small); color: var(--on-ink); }
.mc-count .num { font-weight: 600; display: inline-block; min-width: 4.6em; text-align: right; }
.mc-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; color: var(--on-ink-2); font-size: var(--fs-small); }
.mc-legend li { display: inline-flex; align-items: center; gap: 10px; }
.sw { flex: none; width: 28px; height: 14px; }
.mc-names { display: none; }
@media (max-width: 640px) {
  .mc-tip { width: 10.5em; font-size: var(--fs-small); padding: 8px 10px; }
  .mc-tip b { font-size: var(--fs-small); }
  .mc-bar .actions { width: 100%; justify-content: space-between; flex-wrap: nowrap; }
  .mc-count { font-size: var(--fs-small); }
  .mc-label { font-size: var(--fs-xs); padding: 3px 7px; }
  .cse-top .lede { font-size: var(--fs-lede); }
}

/* ---------- CSE page ---------- */
.cse-hero { padding-top: clamp(32px, 3.6vw, 64px); padding-bottom: clamp(64px, 7vw, 112px); }
.cse-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 20px; align-items: end; margin-bottom: clamp(24px, 2.6vw, 40px); }
.cse-top .display { grid-column: 1 / span 6; font-size: var(--fs-display); }
.cse-top .lede { grid-column: 7 / -1; color: var(--on-ink-2); font-size: var(--fs-lede); max-width: 62ch; justify-self: end; }
@media (max-width: 1020px) { .cse-top .display, .cse-top .lede { grid-column: 1 / -1; } }
.cse-hero .mc-plot { height: clamp(400px, calc(100svh - 400px), 760px); }
@media (max-width: 1020px) { .cse-hero .mc-plot { height: clamp(380px, 70vw, 560px); } }
@media (max-width: 640px) { .cse-hero .mc-plot { height: 440px; } }
.runs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.run-table { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px 10px 10px; }
.run-table caption { padding-left: 10px !important; text-align: left; font-family: var(--serif); font-size: var(--fs-title); font-weight: 500; letter-spacing: -0.01em; padding: 0 0 14px; }
.run-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.run-table th, .run-table td { padding: 10px 0 10px 12px; border-top: 1px solid var(--rule); text-align: right; }
.run-table thead th { border-top: 0; font-weight: 600; font-size: var(--fs-xs); line-height: 1.25; color: var(--text-2); padding-top: 0; vertical-align: bottom; }
.run-table th[scope="row"] { text-align: left; font-weight: 400; padding-left: 0; padding-right: 0; }
.run-table td { font-family: var(--mono); font-variant-numeric: tabular-nums; padding-left: 12px; white-space: nowrap; }
.run-table thead td { border-top: 0; }
.run-table tbody tr:hover { background: #FBFAF7; }
/* the lead line: net cash flow on a light band; calls and distributions below are separate tails, not its parts */
.run-table tr > :first-child { padding-left: 10px; }
.run-table tr > :last-child { padding-right: 10px; }
.run-table tr.is-lead > * { background: var(--paper-2); color: var(--ink); font-weight: 600; }
.run-table tr.is-tail > * { color: var(--text-2); font-weight: 400; }
.run-table tr.is-lead + tr > * { border-top-color: transparent; }
.run-note { max-width: none; margin-top: 28px; color: var(--text-2); font-size: var(--fs-xs); font-style: italic; }
@media (min-width: 1024px) { .run-note { white-space: nowrap; } }
@media (max-width: 1100px) { .runs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .runs { grid-template-columns: 1fr; } }
.does { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 56px); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule-2); padding-top: 32px; }
.does p { color: var(--text-2); }
.does b { display: block; font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: var(--fs-title); letter-spacing: -0.01em; margin-bottom: 10px; line-height: 1.2; }
.does-pic { height: 64px; margin-bottom: 18px; }
.does-pic svg { height: 100%; width: auto; }
@media (max-width: 1100px) { .does { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .does { grid-template-columns: 1fr; } }
.calib { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 28px; align-items: end; }
.calib .h2 { grid-column: 1 / span 7; }
.calib-side { grid-column: 8 / -1; display: grid; gap: 26px; }
.calib-side .lede { color: var(--on-ink-2); }
@media (max-width: 1020px) { .calib .h2, .calib-side { grid-column: 1 / -1; } }

/* ---------- Data page ---------- */
.data-hero { padding-top: clamp(20px, 2.4vw, 36px); padding-bottom: clamp(28px, 3vw, 44px); }
.data-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 48px; align-items: start; }
.data-intro { padding-top: 40px; }
@media (max-width: 1020px) { .data-intro { padding-top: 0; } }
.data-intro { grid-column: 1 / span 6; }
.data-figs { grid-column: 7 / -1; }
.data-hero .display { font-size: var(--fs-display); max-width: 14ch; }
.data-hero .lede { margin-top: 26px; }
.spec { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.spec div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 18px 0; }
.spec dd { max-width: none !important; }
.spec div dt { font-size: var(--fs-h2); }
.spec > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
@media (max-width: 520px) { .spec div { grid-template-columns: 1fr; gap: 6px; } }
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(36px, 4vw, 56px); align-items: start; }
.prod-head { padding: 22px 24px 16px; background: var(--ink); color: var(--on-ink); display: grid; gap: 4px; }
.prod-head p { color: var(--on-ink-2); font-size: var(--fs-small); }
.prod-rows { margin: 0; }
.prod-rows div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding: 14px 24px; border-top: 1px solid var(--rule); align-items: baseline; }
.prod-rows div:first-child { border-top: 0; }
.prod-rows dt { font-weight: 600; font-size: var(--fs-small); }
.prod-rows dd { margin: 0; font-size: var(--fs-small); color: var(--text-2); }
.prod-rows .is-src { position: relative; background: #FBFAF7; }
.prod-rows .is-src::after { content: ""; position: absolute; inset: 6px 12px; border: 1.5px solid var(--gold); border-radius: 4px; pointer-events: none; }
.prod-rows .is-src dt { color: var(--gold-text); }
.prod-rows .is-src dd { color: var(--ink); }
@media (max-width: 960px) { .prods { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .prod-rows div { grid-template-columns: 1fr; gap: 2px; padding: 12px 18px; } .prod-head { padding: 18px; } .prod-rows .is-src::after { inset: 4px 8px; } }
@media (max-width: 1020px) { .data-intro, .data-figs { grid-column: 1 / -1; } }
.spec dt { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.025em; font-variant-numeric: lining-nums; }
.spec dd { margin: 0; color: var(--text-2); font-size: var(--fs-small); max-width: 22ch; }
.rec-grid { align-items: start; }
.rec-intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--hdr-h) + 40px); display: grid; gap: 22px; }
.rec-card { grid-column: 7 / -1; }
.rec-card .panel-head { background: var(--ink); color: var(--on-ink); border-bottom: 0; }
.rec-card .panel-title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-body); }
.rec-fields { margin: 0; }
.rec-fields div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 13px 22px; border-top: 1px solid var(--rule); align-items: baseline; }
.rec-fields div:first-child { border-top: 0; }
.rec-fields dt { font-family: var(--mono); font-weight: 600; font-size: var(--fs-small); color: var(--teal-text); }
.rec-fields dd { margin: 0; font-size: var(--fs-small); }
@media (max-width: 1020px) { .rec-intro, .rec-card { grid-column: 1 / -1; position: static; } }
@media (max-width: 480px) { .rec-fields div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; } }
.princ { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.princ div { border-top: 1px solid var(--rule-2); padding-top: 22px; }
.princ b { display: block; font-family: var(--serif); font-weight: 500; font-size: var(--fs-title); letter-spacing: -0.01em; margin-bottom: 8px; }
.princ p { color: var(--text-2); font-size: var(--fs-body); }
@media (max-width: 1020px) { .princ { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .princ { grid-template-columns: 1fr; } }
.covg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 72px); margin-top: clamp(36px, 4vw, 56px); align-items: start; }
.covg-chart { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px 22px 18px; }
.covg-chart h3 { font: 600 var(--fs-small)/1.3 var(--sans); margin-bottom: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.covg-chart h3 span { font-weight: 400; color: var(--text-2); font-size: var(--fs-small); }
.covg-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.covg-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-body); }
.covg-list b { font-weight: 600; }
.disc { margin-top: 22px; font-size: var(--fs-small); color: var(--text-3); max-width: 70ch; }
@media (max-width: 960px) { .covg { grid-template-columns: 1fr; } }
.price { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 28px; align-items: start; }
.price .h2 { grid-column: 1 / span 6; }
.price-side { grid-column: 8 / -1; display: grid; gap: 24px; }
.price-side .lede { color: var(--on-ink-2); }
.price-more { display: grid; gap: 6px; font-size: var(--fs-body); color: var(--on-ink-2); }
.price-more a { color: var(--on-ink); }
@media (max-width: 1020px) { .price .h2, .price-side { grid-column: 1 / -1; } }

/* ---------- About ---------- */
.about-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 28px; align-items: end; }
.about-hero .display { grid-column: 1 / span 7; font-size: var(--fs-display); max-width: 16ch; }
.about-hero .lede { grid-column: 8 / -1; }
@media (max-width: 1020px) { .about-hero .display, .about-hero .lede { grid-column: 1 / -1; } }
.letter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 40px; }
.letter-quote { grid-column: 1 / span 5; margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--fs-h3); line-height: 1.28; letter-spacing: -0.01em; position: sticky; top: calc(var(--hdr-h) + 40px); align-self: start; padding-left: 22px; border-left: 2px solid var(--gold); }
.letter-quote p { text-wrap: balance; }
.letter-body { grid-column: 7 / -1; display: grid; gap: 1.1em; font-family: var(--serif); font-size: var(--fs-lede); line-height: 1.68; color: #22404f; max-width: 38em; }
.letter-sign { margin-top: 12px; display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: var(--fs-body); color: var(--text); font-weight: 600; }
.letter-sign svg { width: 28px; height: 28px; }
@media (max-width: 960px) { .letter-quote, .letter-body { grid-column: 1 / -1; position: static; } }
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 28px; }
.work .h2 { grid-column: 1 / span 5; }
.work .lede { grid-column: 7 / -1; color: var(--text); }
.work-mail { grid-column: 7 / -1; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--rule-2); display: grid; gap: 10px; }
.work-mail h2 { font: 600 var(--fs-small)/1.3 var(--sans); color: var(--text-2); }
.mail-big { font-family: var(--serif); font-size: var(--fs-h3); letter-spacing: -0.01em; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; overflow-wrap: anywhere; }
.mail-big:hover { text-decoration-color: currentColor; }
@media (max-width: 960px) { .work .h2, .work .lede, .work-mail { grid-column: 1 / -1; } }

/* ---------- Access ---------- */
.access-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 28px; align-items: end; }
.access-hero .display { grid-column: 1 / span 8; font-size: var(--fs-display); }
.access-hero .side { grid-column: 9 / -1; display: grid; gap: 26px; justify-items: start; }
@media (max-width: 1020px) { .access-hero .display, .access-hero .side { grid-column: 1 / -1; } }
.seats { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 48px; align-items: start; }
.seats-copy { grid-column: 1 / span 6; display: grid; gap: 24px; }
.seat-row { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 420px; margin: 6px 0 4px; }
.seat-row i { aspect-ratio: 1; border-radius: 3px; border: 1.5px solid var(--gold-text); }
.seat-list { list-style: none; display: grid; border-top: 1px solid var(--rule-2); }
.seat-list li { display: flex; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-body); }
.seat-list svg { width: 20px; height: 20px; color: var(--teal-text); flex: none; }
.form-card { grid-column: 8 / -1; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 36px); box-shadow: var(--shadow-panel); display: grid; gap: 20px; }
.form-card .h3 { margin-bottom: -6px; }
@media (max-width: 1020px) { .seats-copy, .form-card { grid-column: 1 / -1; } }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: var(--fs-body); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: rgba(27, 58, 75, 0.42); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.45); }
.field input[aria-invalid="true"] { border-color: #A4462B; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: var(--fs-small); color: var(--text-2); }
.form-msg { font-size: var(--fs-small); min-height: 1.5em; }
.form-msg.is-ok { color: var(--teal-text); font-weight: 600; }
.form-msg.is-error { color: #9A3F25; }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Privacy (reading) ---------- */
.legal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); }
.legal-head { grid-column: 1 / span 4; position: sticky; top: calc(var(--hdr-h) + 40px); align-self: start; display: grid; gap: 14px; }
.legal-head .display { font-size: var(--fs-display); }
.legal-body { grid-column: 6 / -1; max-width: 42em; }
.legal-body h2 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); letter-spacing: -0.01em; margin: 48px 0 14px; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: #2c4655; line-height: 1.72; }
@media (max-width: 960px) { .legal-head, .legal-body { grid-column: 1 / -1; position: static; } .legal-body { margin-top: 48px; } }

/* ---------- Login ---------- */
.login { min-height: calc(100svh - var(--hdr-h) - 120px); display: grid; place-items: center; padding-block: clamp(40px, 8vw, 120px); }
.login-card { width: min(440px, 100%); display: grid; gap: 24px; }
.login-card .h2 { font-size: var(--fs-h2); }
.login-row { display: flex; justify-content: flex-end; margin-top: -6px; }
.login-row a, .login-alt a { color: var(--gold-text); font-weight: 600; }
.login-alt { padding-top: 22px; border-top: 1px solid var(--rule); color: var(--text-2); }
.login .btn { width: 100%; }
.login-msg { padding: 14px 16px; border-radius: 8px; background: rgba(27, 58, 75, 0.06); border: 1px solid var(--rule); font-size: var(--fs-body); }
.login-msg a { font-weight: 600; }

/* ---------- 404 ---------- */
.nf { min-height: calc(100svh - var(--hdr-h) - 120px); display: grid; align-content: center; padding-block: clamp(56px, 8vw, 120px); }
.nf .display { font-size: var(--fs-display); max-width: 14ch; }
.nf .lede { margin-top: 24px; }
.nf-links { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--ink); max-width: 980px; }
.nf-links a { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 18px 0 0; font-family: var(--serif); font-size: var(--fs-h3); text-decoration: none; border-bottom: 1px solid var(--rule); }
.nf-links li + li a { padding-left: 18px; border-left: 1px solid var(--rule); }
.nf-links svg { width: 20px; height: 20px; color: var(--gold-text); transition: transform 0.2s var(--ease-out); }
.nf-links a:hover svg { transform: translateX(3px); }
@media (max-width: 760px) { .nf-links { grid-template-columns: 1fr; } .nf-links li + li a { padding-left: 0; border-left: 0; } }

/* ---------- booking dialog ---------- */
.book { width: min(620px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 35, 46, 0.55); overscroll-behavior: contain; }
.book::backdrop { background: rgba(18, 40, 53, 0.55); }
.book-in { padding: clamp(22px, 3vw, 34px); display: grid; gap: 22px; }
.book-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.book-title { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.015em; }
.book-line { margin-top: 10px; color: var(--text-2); font-size: var(--fs-body); }
.book-x { margin: -8px -10px 0 0; }
.book-step { display: grid; gap: 20px; }
.slot-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.slot-set legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: var(--fs-small); }
.slot-set legend span { font-weight: 400; color: var(--text-2); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: -2px -2px 0; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; display: grid; justify-items: center; gap: 2px; width: 64px; padding: 10px 0; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--surface); cursor: pointer; scroll-snap-align: start; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.day small { font-size: var(--fs-xs); color: var(--text-2); font-weight: 600; }
.day b { font-family: var(--serif); font-size: var(--fs-title); font-weight: 500; line-height: 1.1; }
.day span { font-size: var(--fs-xs); color: var(--text-2); }
.day:hover { border-color: var(--ink); }
.day[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-checked="true"] small, .day[aria-checked="true"] span { color: var(--on-ink-2); }
.day[disabled] { opacity: 0.4; cursor: not-allowed; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.time { min-height: 44px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--surface); cursor: pointer; font-family: var(--sans); font-size: var(--fs-small); font-variant-numeric: tabular-nums; transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
.time:hover { border-color: var(--ink); }
.time[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.slot-wait { color: var(--text-2); font-size: var(--fs-small); }
.book-msg { font-size: var(--fs-small); }
.book-msg:empty { display: none; }
.book-msg.is-error { color: #9A3F25; }
.book-msg.is-ok { color: var(--teal-text); font-weight: 600; }
.book-actions { display: flex; gap: 12px; }
.book-actions .btn { min-width: 160px; }
.fine { font-size: var(--fs-xs); color: var(--text-2); }
.fine a { color: var(--ink); }
.chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; border-radius: 8px; background: var(--paper-2); font-size: var(--fs-small); }
.chosen > svg { color: var(--teal-text); flex: none; }
.chosen .link-btn { margin-left: auto; min-height: 36px; }
.book-done { justify-items: start; gap: 12px; }
.done-mark { color: var(--teal-text); padding: 8px; background: rgba(76, 133, 121, 0.12); border-radius: 50%; box-sizing: content-box; }
.done-title { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; }
.done-title strong { font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .book[open] { animation: book-in 0.32s var(--ease-out); }
  .book[open]::backdrop { animation: fade-in 0.32s ease; }
  .book-step:not([hidden]) { animation: step-in 0.26s var(--ease-out); }
}
@keyframes book-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes step-in { from { opacity: 0; transform: translateX(8px); } }
@media (max-width: 560px) {
  .book { width: 100vw; max-width: 100vw; max-height: 92svh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .book-actions .btn { width: 100%; }
}

/* ---------- hero entrance (home and inner pages): one beat, then still ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-enter] > * { animation: enter 0.8s var(--ease-out) both; }
  .js [data-enter] > *:nth-child(2) { animation-delay: 0.08s; }
  .js [data-enter] > *:nth-child(3) { animation-delay: 0.15s; }
  .js [data-enter] > *:nth-child(4) { animation-delay: 0.2s; }
  .js [data-enter] > *:nth-child(5) { animation-delay: 0.24s; }
}
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .hdr, .ftr, .book, .menu, .hero-canvas { display: none !important; }
  .ink { background: none; color: var(--ink); }
}

/* coverage bars */
.cov-bar { transform-box: fill-box; transform-origin: 50% 100%; transition: transform 0.7s var(--ease-out); transition-delay: calc(var(--i) * 22ms); }
.js .cov:not(.is-in) .cov-bar { transform: scaleY(0.02); }
.cov-year { font: 400 15px var(--mono); fill: #4A6270; }

.mx-on { transition: opacity 0.5s ease, transform 0.6s var(--ease-out); transition-delay: var(--d); transform-box: fill-box; transform-origin: center; }
.js .cov:not(.is-in) .mx-on { opacity: 0; transform: scale(0.6); }
.mx-box { transition: opacity 0.4s ease 1.1s; }
.js .cov:not(.is-in) .mx-box { opacity: 0; }

/* /cse/ round 2 */
.run-disc { max-width: 86ch; margin-top: 8px; color: var(--text-3); font-size: var(--fs-xs); }
.uses-title { max-width: 24ch; }
.uses { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: clamp(36px, 4vw, 56px); }
.uses-col { display: grid; gap: 14px; align-content: start; padding-right: clamp(28px, 4vw, 64px); max-width: 40em; }
.uses-col + .uses-col { padding-right: 0; padding-left: clamp(28px, 4vw, 64px); border-left: 1px solid var(--rule-2); }
.uses-col abbr { text-decoration: none; }
.uses-who { color: var(--text-2); }
.uses-ctx { color: var(--ink); font-weight: 600; }
.uses-list { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.uses-list li { position: relative; padding-left: 22px; }
.uses-list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 2px; background: var(--teal-fill); }
@media (max-width: 860px) {
  .uses { grid-template-columns: 1fr; }
  .uses-col { padding-right: 0; }
  .uses-col + .uses-col { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-2); margin-top: 32px; padding-top: 32px; }
}
.mc-tip { width: auto; white-space: nowrap; padding: 8px 12px; font-size: var(--fs-small); }
.mc-tip b { display: inline; font-size: var(--fs-small); margin: 0; }
.mc-tip span { font-variant-numeric: tabular-nums; }
.mc-tip b { font-family: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }

/* round 3 */
@media (min-width: 1100px) { #how .sec-head { max-width: none; } #how .h2 { white-space: nowrap; } }
.ds { margin-top: clamp(32px, 4vw, 48px); }
.ds-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgba(27, 58, 75, 0.07); }
.ds-tab { appearance: none; border: 0; background: transparent; min-height: 40px; padding: 0 16px; border-radius: 7px; font: 600 var(--fs-small)/1 var(--sans); color: var(--text-2); cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease; }
.ds-tab:hover { color: var(--ink); }
.ds-tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(27, 58, 75, 0.12); }
.ds-panel { margin-top: 16px; }
.ds-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.ds-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 760px; }
.ds-table caption { text-align: left; padding: 16px 20px 0; color: var(--text-2); font-size: var(--fs-xs); }
.ds-table th, .ds-table td { padding: 12px 20px; text-align: left; border-top: 1px solid var(--rule); white-space: nowrap; }
.ds-table thead th { border-top: 0; font-weight: 600; font-size: var(--fs-xs); color: var(--text-2); padding-top: 14px; vertical-align: bottom; }
.ds-table thead th small { display: block; font-weight: 400; font-size: var(--fs-xs); }
.ds-table td.n, .ds-table th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ds-table thead th.n { font-family: var(--sans); }
.ds-table tbody th { font-weight: 600; }
.ds-table td.src span { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-weight: 600; }
.ds-table td.src svg { width: 15px; height: 15px; }
.ds-table td.na { color: var(--text-3); }
.ds-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--text-3); }
.agg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 20px; align-items: start; }
.agg .h2 { grid-column: 1 / span 6; }
.agg .lede { grid-column: 8 / -1; padding-top: 10px; }
@media (max-width: 1020px) { .agg .h2, .agg .lede { grid-column: 1 / -1; } .agg .lede { padding-top: 0; } }

.ds-panel { max-width: 860px; }
.ds-fields div { grid-template-columns: 13em minmax(0, 1fr); }
.ds-fields .is-src { position: relative; background: #FBFAF7; }
.ds-fields .is-src::after { content: ""; position: absolute; inset: 5px 10px; border: 1.5px solid var(--gold); border-radius: 4px; pointer-events: none; }
.ds-fields .is-src dt { color: var(--gold-text); }
@media (max-width: 480px) { .ds-fields div { grid-template-columns: 1fr; } }

.no-client-data { display: block; margin-top: 0.75em; color: var(--gold-text); font-weight: 600; }
[data-ground="ink"] .no-client-data, .ink .no-client-data { color: var(--gold); }

/* /data/ round 4: the products block fills the width */
.ds.ds-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 28px; align-items: start; margin-top: 0; }
.ds-grid .ds-side { grid-column: 1 / span 5; display: grid; gap: 22px; align-content: start; }
.ds-grid .ds-panel { grid-column: 7 / -1; margin-top: 0; max-width: none; }
@media (max-width: 1020px) { .ds-grid .ds-side, .ds-grid .ds-panel { grid-column: 1 / -1; } }
.ds-side .ds-tabs { justify-self: start; margin-top: 6px; }

/* /data/ round 5: hero and fields fit the first screen */
.data-hero + .sec { padding-top: clamp(28px, 3vw, 44px); }
.ds-fields div { padding: 7px 18px; gap: 14px; font-size: var(--fs-small); }
.ds-fields dt { font-size: var(--fs-small); }
.ds-fields dd { font-size: var(--fs-small); }
.ds-fields .is-src::after { inset: 3px 8px; }
.agg .agg-disc { grid-column: 8 / -1; margin-top: 0; }
@media (max-width: 1020px) { .agg .agg-disc { grid-column: 1 / -1; } }

/* /about/ */
.about-title { margin-bottom: clamp(28px, 3.5vw, 52px); }
.li-link { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 2px; border-radius: 6px; color: #0A66C2; transition: background-color 0.15s ease; }
.li-link:hover { background: rgba(27, 58, 75, 0.06); }
.li-link svg { width: 20px; height: 20px; }
.letter-sign { flex-wrap: wrap; }
.work-mail .actions { margin-top: 4px; }

/* /login/: a small card on a quiet ground, no site chrome */
html[data-ground="login"] body { background: var(--paper-2); }
.signin { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 32px 16px; }
.signin-card { width: min(400px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow-panel); padding: 32px 32px 24px; display: grid; gap: 20px; }
.signin-brand { justify-self: center; }
.signin-title { font: 600 var(--fs-title)/1.3 var(--sans); text-align: center; margin-top: -4px; }
.signin-form { gap: 14px; }
.signin-form .btn { width: 100%; margin-top: 4px; }
.signin-pass { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.signin-pass a { font-size: var(--fs-small); color: var(--gold-text); font-weight: 600; text-decoration: none; }
.signin-pass a:hover { text-decoration: underline; }
.signin-alt { text-align: center; font-size: var(--fs-small); color: var(--text-2); padding-top: 16px; border-top: 1px solid var(--rule); }
.signin-alt .link-btn { padding: 0; font-size: inherit; }
.signin-back { font-size: var(--fs-small); color: var(--text-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.signin-back:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 420px) { .signin-card { padding: 26px 20px 20px; } }

/* /login/ on ink: the mark's tiles drift slowly at the bottom left (?v=paper keeps the paper card) */
html[data-ground="login-ink"] body { background: radial-gradient(120% 90% at 85% 10%, #22475B 0%, var(--ink) 55%, #163242 100%); }
html[data-ground="login-ink"] .signin-back { color: var(--on-ink-2); }
html[data-ground="login-ink"] .signin-back:hover { color: var(--on-ink); }
html[data-ground="login-ink"] .signin-card { border-color: transparent; box-shadow: 0 30px 80px -24px rgba(5, 18, 26, 0.65); }
html[data-ground="login-ink"] :focus-visible { outline-color: var(--gold); }
.signin { position: relative; overflow: hidden; isolation: isolate; }
.lk-art { display: none; }
html[data-ground="login-ink"] .lk-art { display: block; position: fixed; left: max(-14vw, -220px); bottom: max(-26vh, -300px); width: min(78vmin, 860px); z-index: -1; pointer-events: none; opacity: 0.88; }
.lk-art svg { width: 100%; height: auto; overflow: visible; }
.lk-f { animation: lk-drift var(--fd) cubic-bezier(.45,0,.55,1) infinite; }
.lk-t { transform-box: fill-box; animation: lk-tile var(--d) linear var(--dl) infinite; }
@keyframes lk-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(var(--fx), var(--fy)); } }
@keyframes lk-tile { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(var(--dx), calc(var(--dy) * -1)); } 50% { transform: translate(calc(var(--dx) * 0.4), var(--dy)); } 75% { transform: translate(calc(var(--dx) * -0.6), calc(var(--dy) * 0.5)); } }
.lk-paused .lk-f, .lk-paused .lk-t { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .lk-f, .lk-t { animation: none !important; } }


.close-offer { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--on-ink-rule); border-radius: var(--r); }
.close-side .close-offer p { color: var(--on-ink); font-size: var(--fs-small); font-weight: 600; }
.close-offer ul { list-style: none; display: grid; gap: 6px; }
.close-offer li { display: flex; gap: 10px; align-items: center; color: var(--on-ink-2); font-size: var(--fs-small); }
.close-offer svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* /login/ round 2: a smaller card, centred at every width */
.signin-card { width: min(360px, calc(100vw - 32px)); padding: 28px 28px 20px; gap: 16px; }
.signin-title { font-size: var(--fs-body); }
.signin-form { gap: 12px; }
.signin-form .field { gap: 5px; }
.signin-form .field label { font-size: var(--fs-small); }
.signin-form .field input { min-height: 40px; padding: 8px 12px; font-size: var(--fs-small); }
.signin-form .btn { min-height: 40px; font-size: var(--fs-small); }
.signin-pass a { font-size: var(--fs-xs); }
.signin-alt { padding-top: 14px; font-size: var(--fs-xs); }
.signin-brand .brand-mark { width: 24px; height: 24px; }
.signin::before { content: ""; height: 44px; } /* balances the back link below, so the card sits at the true centre */

/* ---------- Insights ---------- */
.ins-ix-head { display: grid; gap: 18px; max-width: 760px; padding-bottom: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--rule-2); }
.ins-empty { display: grid; gap: 12px; max-width: 560px; padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 8vw, 120px); }
.ins-empty-lede { color: var(--text-2); font-size: var(--fs-lede); }
.ins-sub { display: grid; gap: 10px; margin-top: 14px; }
.ins-sub-row { display: flex; gap: 10px; }
.ins-sub-row input { flex: 1; min-width: 0; }
.ins-sub-row .btn { flex: none; min-height: 48px; }
.hp, .ins-sub-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ins-sub .form-msg a { color: inherit; }
@media (max-width: 480px) { .ins-sub-row { flex-direction: column; } }
.ins-cards { list-style: none; }
.ins-cards li { border-bottom: 1px solid var(--rule); }
.ins-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); padding: clamp(28px, 3vw, 40px) 0; text-decoration: none; }
.ins-thumb { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); aspect-ratio: 16 / 10; padding: 10px; display: grid; place-items: center; overflow: hidden; }
.ins-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ins-card-text { display: grid; gap: 12px; align-content: start; max-width: 62ch; }
.ins-card:hover .h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.ins-card-sum { color: var(--text-2); }
.ins-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--fs-small); color: var(--text-2); }
@media (max-width: 760px) { .ins-card { grid-template-columns: 1fr; } }

.ins-col { max-width: 720px; margin-inline: auto; }
.ins-draft { margin-bottom: 28px; padding: 12px 16px; border: 1px solid rgba(138, 95, 26, 0.4); border-left: 4px solid var(--gold-text); border-radius: var(--r-sm); background: #FBF3E3; color: #5C3F10; font-size: var(--fs-small); }
.ins-draft strong { font-weight: 600; margin-right: 4px; }
.ins-crumbs { font-size: var(--fs-small); margin-bottom: 18px; }
.ins-crumbs a { color: var(--text-2); text-decoration: none; }
.ins-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.ins-h1 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.ins-dek { margin-top: 18px; max-width: none; }
.ins-byline { margin-top: 24px; padding: 12px 0; border-block: 1px solid var(--rule); }

.ins-body { margin-top: clamp(28px, 3vw, 40px); font-size: var(--fs-lede); line-height: 1.72; color: #2C4655; }
.ins-body > p, .ins-body > ul, .ins-body > ol { margin-bottom: 1.15em; }
.ins-body h2 { font-family: var(--serif); font-weight: 500; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 1.9em 0 0.6em; scroll-margin-top: calc(var(--hdr-h) + 20px); }
.ins-body h3 { font-weight: 600; font-size: var(--fs-title); color: var(--ink); margin: 1.5em 0 0.5em; }
.ins-body strong { color: var(--ink); font-weight: 600; }
.ins-body a { color: var(--teal-text); }
.ins-body ul, .ins-body ol { padding-left: 1.3em; }
.ins-body li + li { margin-top: 0.45em; }
.ins-body li::marker { color: var(--text-2); }
.ins-body blockquote { margin: 1.4em 0; padding-left: 18px; border-left: 2px solid var(--gold); color: var(--text-2); }
.ins-body hr { border: 0; border-top: 1px solid var(--rule-2); margin: 2em 0; }
.ins-body code { font-family: var(--mono); font-size: 0.85em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
sup.ref { font-family: var(--mono); font-size: 0.68em; line-height: 0; margin-left: 1px; }
sup.ref a { text-decoration: none; }

.ins-box { margin: 0 0 1.8em; padding: 20px 24px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); font-size: var(--fs-body); line-height: 1.62; }
.ins-box-method { background: var(--paper-2); margin-top: 2.2em; }
.ins-box .ins-box-label::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); margin-bottom: 12px; }
.ins-box-method .ins-box-label::before { background: var(--teal-fill); }
.ins-box-label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ins-box > ul, .ins-box > ol, .ins-box > p { margin: 0; }
.ins-box > p + p, .ins-box > p + ul { margin-top: 0.8em; }

.ins-fig { margin: 2em 0 2.2em; }
.ins-fig-img { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(8px, 1.2vw, 16px); overflow: hidden; }
.ins-fig-img img { width: 100%; height: auto; }
.ins-fig figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 10px; font-size: var(--fs-small); line-height: 1.5; color: var(--text-2); }
.ins-fig-n { font-weight: 600; color: var(--ink); }
.ins-fig-src { display: block; margin-top: 2px; font-size: var(--fs-xs); }
.ins-dl { flex: none; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); text-decoration: none; border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 2px 8px; }
.ins-dl:hover { color: var(--ink); border-color: var(--ink); }

.ins-table { overflow-x: auto; margin: 0 0 1.6em; }
.ins-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.ins-table th, .ins-table td { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--rule); }
.ins-table th { font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); border-bottom-color: var(--rule-2); }
.ins-table .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.ins-body ol.ins-sources { font-size: var(--fs-small); line-height: 1.55; color: var(--text-2); }
.ins-sources li { scroll-margin-top: calc(var(--hdr-h) + 20px); overflow-wrap: anywhere; }
.ins-sources li:target { background: rgba(200, 151, 62, 0.16); }
.ins-disc { margin-top: 2.4em; padding-top: 18px; border-top: 1px solid var(--rule-2); font-size: var(--fs-xs); line-height: 1.6; color: var(--text-3); }
.ins-print-url { display: none; }
.ins-cta { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; box-shadow: var(--shadow-panel); }
.ins-cta > div { display: grid; gap: 10px; max-width: 34em; }
.ins-cta p { color: var(--on-ink-2); font-size: var(--fs-lede); }

@media print {
  @page { size: A4; margin: 12mm 14mm 11mm; }
  body { background: #fff; }
  .ins-art { padding: 0; }
  .ins-art .wrap { padding: 0; max-width: none; }
  .ins-col { max-width: none; }
  .ins-cta, .ins-crumbs, .ins-dl, .skip { display: none !important; }
  .ins-draft { font-size: 7.5pt; padding: 3pt 8pt; margin-bottom: 6pt; }
  .ins-h1 { font-size: 17pt; }
  .ins-dek { font-size: 9.6pt; margin-top: 4pt; }
  .ins-byline { font-size: 7.5pt; margin-top: 6pt; padding: 3pt 0; }
  .ins-body { margin-top: 8pt; font-size: 8.4pt; line-height: 1.36; }
  .ins-body > p, .ins-body > ul, .ins-body > ol { margin-bottom: 4pt; orphans: 3; widows: 3; }
  .ins-body h2 { font-size: 10.5pt; margin: 7pt 0 2pt; break-after: avoid; }
  .ins-body li + li { margin-top: 1.5pt; }
  .ins-box { font-size: 7.8pt; line-height: 1.4; padding: 5pt 9pt; margin-bottom: 7pt; border-radius: 0; break-inside: avoid; }
  .ins-box { border-top: 2px solid var(--gold); }
  .ins-box .ins-box-label::before { display: none; }
  .ins-box-method { margin-top: 6pt; border-top-color: var(--teal-fill); background: #F6F5F1; break-inside: auto; }
  .ins-box-label { font-size: 7.8pt; margin-bottom: 3pt; }
  .ins-fig { margin: 5pt 0 7pt; break-inside: avoid; }
  .ins-fig-img { border: 0; padding: 0; }
  .ins-fig-img img { width: 76%; margin-inline: auto; }
  .ins-fig figcaption { font-size: 7.2pt; margin-top: 2pt; }
  .ins-body ol.ins-sources { font-size: 7.4pt; line-height: 1.35; }
  .ins-disc { font-size: 6.4pt; line-height: 1.35; margin-top: 6pt; padding-top: 3pt; break-inside: avoid; }
  .ins-print-url { display: block; font-family: var(--mono); font-size: 6.5pt; color: var(--text-2); margin-top: 4pt; }
  .ins-body a { color: inherit; text-decoration: none; }
}

/* ---------- phones: mobile pass (17 Nov). Desktop is untouched by everything below. ---------- */
@media (max-width: 640px) {
  /* tap targets: 44px at least */
  .ftr-col a { min-height: 44px; }
  .li-link { width: 44px; height: 44px; margin: -6px 0 -6px -4px; }
  main a[href^="mailto:"]:not(.btn), .fine a, .chosen .link-btn { padding-block: 10px; margin-block: -10px; }
  /* booking dialog: a shorter head, the chosen time on one line, the action always in reach */
  .book-line { font-size: var(--fs-small); margin-top: 6px; }
  .book-in { gap: 18px; }
  .chosen { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .chosen .link-btn { margin-left: 0; }
  .book .book-actions { position: sticky; bottom: -1px; z-index: 2; margin-inline: -22px; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); box-shadow: 0 -1px 0 var(--rule), 0 -12px 16px -12px rgba(27, 58, 75, 0.18); }
  /* /data/: the two products as two equal halves, each label readable */
  .ds-tabs { display: flex; width: 100%; }
  .ds-tab { flex: 1 1 0; min-height: 48px; padding: 6px 10px; line-height: 1.25; text-wrap: balance; }
  /* Cerno asks: the booked line under the choices, aligned with them */
  .ask-booked { padding-left: 0; }
  /* the conversation, shown whole on phones: room between the last answer and the input */
  .chat-log { padding-bottom: 16px; }
}
@media (max-width: 480px) {
  /* /data/ field list: name and meaning on one row, not stacked */
  .ds-fields div { grid-template-columns: 9.6rem minmax(0, 1fr); gap: 12px; padding: 9px 14px; align-items: baseline; }
  .ds-fields dt { font-size: var(--fs-xs); overflow-wrap: anywhere; }
}
/* login on phones: 16px fields (iOS zooms on anything smaller) and 44px+ controls */
@media (max-width: 640px), (pointer: coarse) {
  .signin-form .field input { min-height: 48px; font-size: 16px; }
  .signin-form .btn { min-height: 48px; }
  .signin-pass a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -12px; }
  .signin-alt .link-btn { padding-block: 10px; }
}
