/* SoundMind.Team, the field manual (third build, 2026-11-15).

   From Dava-Dark: a navy night, glass with a lit rim, colour that names
   something, one luminous subject per page. The subject is the lattice:
   a net of links that takes a load, gets support from its neighbours, and
   keeps the links that carried it a little stronger. The home page runs it
   live; every other page head carries its own still patch of it, seeded by
   the page, in the page's hue.

   Pages own hues: help amber, plan violet, someone pink, field guide green,
   incident coral, cards peach, leaders ice, doctrine cobalt, corpus orchid,
   partners and evolve azure, about pearl. The four layers around a person
   keep theirs: sleep amber, plan violet, people pink, team ice.

   Rules carried in: squircle corners at superellipse(2.15); rims stay on
   cards; separators fade at both ends; no colour-blob backgrounds; only
   transform and opacity animate; nothing scrolls a backdrop-filter. */

@font-face {
  font-family: "Sora";
  src: url("/fonts/sora-var-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #04081a;
  --deep: #070d25;
  --raise: #0a1332;
  --well: #0d1940;
  --line: rgba(196, 206, 255, .12);
  --feather: linear-gradient(90deg, transparent, var(--line) 16%, var(--line) 84%, transparent);
  --line-2: rgba(216, 226, 255, .24);
  --ink: #f6f5ff;
  --ink-2: #d5d8f2;
  --ink-3: #a9afd8;
  --amber: #fdc26f;
  --amber-hi: #ffd597;
  --amber-ink: #1b1204;
  --c-amber: 253 194 111;
  --c-violet: 172 142 252;
  --c-pink: 241 138 198;
  --c-ice: 158 218 246;
  --c-green: 120 226 192;
  --c-coral: 255 146 128;
  --c-peach: 255 196 150;
  --c-cobalt: 140 160 255;
  --c-orchid: 214 166 255;
  --c-azure: 150 186 245;
  --c-pearl: 236 230 250;
  --c-red: 255 112 128;
  --c-rose: 255 152 172;
  --t-amber: #ffe2b3;
  --t-violet: #d9ccff;
  --t-pink: #ffcae6;
  --t-ice: #cff0ff;
  --t-green: #c4f6e5;
  --t-coral: #ffd2c9;
  --t-peach: #ffe1c8;
  --t-cobalt: #d3dbff;
  --t-orchid: #efdcff;
  --t-azure: #d4e3ff;
  --t-pearl: #f6f2ff;
  --t-red: #ffd0d6;
  --t-rose: #ffd6de;
  --hue: var(--c-amber);
  --hue-t: var(--t-amber);
  --corner: superellipse(2.15);
  --r-s: 14px;
  --r: 20px;
  --r-l: 28px;
  --r-xl: 36px;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --voice: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(18px, 4.6vw, 56px);
  --max: 1240px;
  --top: 68px;
  --dock: 0px;
}

/* the page's own hue */
.h-amber  { --hue: var(--c-amber);  --hue-t: var(--t-amber); }
.h-violet { --hue: var(--c-violet); --hue-t: var(--t-violet); }
.h-pink   { --hue: var(--c-pink);   --hue-t: var(--t-pink); }
.h-ice    { --hue: var(--c-ice);    --hue-t: var(--t-ice); }
.h-green  { --hue: var(--c-green);  --hue-t: var(--t-green); }
.h-coral  { --hue: var(--c-coral);  --hue-t: var(--t-coral); }
.h-peach  { --hue: var(--c-peach);  --hue-t: var(--t-peach); }
.h-cobalt { --hue: var(--c-cobalt); --hue-t: var(--t-cobalt); }
.h-orchid { --hue: var(--c-orchid); --hue-t: var(--t-orchid); }
.h-azure  { --hue: var(--c-azure);  --hue-t: var(--t-azure); }
.h-pearl  { --hue: var(--c-pearl);  --hue-t: var(--t-pearl); }
.h-red    { --hue: var(--c-red);    --hue-t: var(--t-red); }
.h-rose   { --hue: var(--c-rose);   --hue-t: var(--t-rose); }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top) + 20px);
  background: var(--night);
}
/* ── the light of the hour: read from the device clock in the head script,
   never sent. Night is warm and low, dawn rose, day ice, dusk violet. ── */
:root { --hour: var(--c-ice); }
.t-night { --hour: var(--c-amber); }
.t-dawn { --hour: var(--c-rose); }
.t-day { --hour: var(--c-ice); }
.t-dusk { --hour: var(--c-violet); }
body {
  margin: 0;
  min-height: 100vh;
  /* one night under every page: the colour lives on html, so the net (ground.js) can sit between it and the words */
  background: none;
  color: var(--ink);
  font: 400 18px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
@media (max-width: 640px) { body { font-size: 17px; } }
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--voice);
  font-weight: 600;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6.6vw, 92px); line-height: 1; letter-spacing: -.034em; font-weight: 620; }
h2 { font-size: clamp(30px, 3.9vw, 52px); line-height: 1.06; letter-spacing: -.024em; }
h3 { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; color: var(--ink); }

a { color: inherit; }
.prose a:not(.btn), p a:not(.btn), li a:not(.btn), .lnk, td a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: rgb(var(--hue) / .75);
  transition: text-decoration-color .2s;
}
.prose a:not(.btn):hover, p a:not(.btn):hover, li a:not(.btn):hover, .lnk:hover { text-decoration-color: rgb(var(--hue)); text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }

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

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 12px; corner-shape: var(--corner);
  background: var(--amber); color: var(--amber-ink); font-weight: 650; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.narrow:not(.wrap) { max-width: calc(760px + 2 * var(--gut)); margin-left: auto; margin-right: auto; padding-left: var(--gut); padding-right: var(--gut); }

/* ── moving between pages: the header stays, the page arrives ── */
@view-transition { navigation: auto; }
.top { view-transition-name: top; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ── the label above a heading: a chapter number and a quiet word ── */
.eye {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  font: 600 12.5px/1.2 var(--mono);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--hue-t);
}
.eye::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--hue));
  box-shadow: 0 0 12px rgb(var(--hue) / .7);
}
.eye .no { color: rgb(var(--hue)); }
.eye .no + span::before { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin: 0 12px 0 0; background: linear-gradient(90deg, rgb(var(--hue) / .8), transparent); }
.center .eye, .eye.center { justify-content: center; }

.lede { font-size: clamp(19px, 1.6vw, 22.5px); line-height: 1.55; color: var(--ink-2); max-width: 42ch; }
.lede strong { color: var(--ink); }
.muted { color: var(--ink-3); }
.small { font-size: 15px; line-height: 1.55; }
.w-sleep { color: var(--t-amber); }
.w-plan { color: var(--t-violet); }
.w-people { color: var(--t-pink); }
.w-team { color: var(--t-ice); }
.mono { font-family: var(--mono); letter-spacing: .04em; }

/* ── header ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 8, 26, .97);
  border-bottom: 1px solid var(--line); border-image: var(--feather) 1;
}
.top-in { display: flex; align-items: center; gap: 18px; height: var(--top); }
.brand {
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px;
  text-decoration: none; white-space: nowrap;
  font: 600 18px/1 var(--voice); letter-spacing: -.012em;
}
.brand .mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav a {
  position: relative;
  padding: 10px 11px; border-radius: 12px; corner-shape: var(--corner);
  text-decoration: none; white-space: nowrap;
  font: 500 15px/1 var(--voice); color: var(--ink-2);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; border-radius: 2px;
  background: rgb(var(--hue));
}
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 1px solid transparent; border-radius: 14px; corner-shape: var(--corner);
  background: transparent; color: var(--ink-2); font: 500 15px/1 var(--voice);
}
.menu-btn:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.menu-btn svg { flex: none; width: 22px; height: 22px; max-width: none; }
@media (max-width: 1480px) { .nav a[data-p="3"] { display: none; } }
@media (max-width: 1180px) { .nav a[data-p="2"] { display: none; } }
@media (max-width: 960px) { .nav { display: none; } .menu-btn { margin-left: auto; } }

/* on a phone the top bar is the name only; the dock carries the actions */
.dock { display: none; }
@media (max-width: 760px) {
  :root { --dock: 88px; }
  .top { position: relative; }
  .top .menu-btn, .top .btn-help { display: none; }
  html { scroll-padding-top: 16px; }
  body { padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center; gap: 8px;
    padding: 7px; border: 1px solid var(--line-2); border-radius: 24px; corner-shape: var(--corner);
    background: rgba(9, 15, 40, .98);
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
  }
  .dock-b {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; padding: 6px 4px; border: 0; border-radius: 17px; corner-shape: var(--corner);
    background: transparent; color: var(--ink-2); text-decoration: none;
    font: 600 12px/1 var(--voice); letter-spacing: .01em;
  }
  .dock-b svg { width: 22px; height: 22px; }
  .dock-b[aria-current="page"] { color: var(--t-violet); }
  .dock-b:active { background: rgba(255, 255, 255, .07); }
  .dock-help {
    display: flex; align-items: center; justify-content: center; min-height: 52px;
    border-radius: 17px; corner-shape: var(--corner);
    background: var(--amber); color: var(--amber-ink); text-decoration: none;
    font: 650 16.5px/1 var(--voice); letter-spacing: -.005em;
    box-shadow: 0 0 0 1px rgba(255, 220, 160, .55) inset, 0 10px 26px -12px rgba(253, 194, 111, .7);
  }
  .dock-help:active { transform: scale(.98); }
  .dock { view-transition-name: dock; }
}
@media (max-width: 380px) { .brand { font-size: 16px; gap: 9px; } .brand .mark { width: 26px; height: 26px; } }

/* ── the first screen on phones: the page feathers out above the bar, so a button or a row of links is never
   cut in half by a hard edge. Help Now keeps its call button in full light, so it has no feather. The page ends
   above the feather, a focused field is scrolled clear of the bar, and the feather steps away while you type. ── */
@media (max-width: 760px) {
  html { scroll-padding-bottom: calc(var(--dock) + 52px + env(safe-area-inset-bottom)); }
  body:not([data-page="now"]) { padding-bottom: calc(var(--dock) + 36px + env(safe-area-inset-bottom)); }
  body:not([data-page="now"])::after {
    content: ""; position: fixed; z-index: 59; left: 0; right: 0; bottom: 0; pointer-events: none;
    height: calc(var(--dock) + 26px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgb(4 8 26 / 0), rgb(4 8 26 / .9) 36px, rgb(4 8 26 / .97));
  }
  body:has(:is(input, textarea, select, [contenteditable]):focus)::after { opacity: 0; }
}

/* ── buttons: squircles, crisp ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 22px;
  border: 1px solid transparent; border-radius: 16px; corner-shape: var(--corner);
  font: 600 16px/1.1 var(--voice); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-amber {
  background: var(--amber); color: var(--amber-ink);
  box-shadow: 0 0 0 1px rgba(255, 220, 160, .5) inset, 0 10px 30px -12px rgba(253, 194, 111, .55);
}
.btn-amber:hover { background: var(--amber-hi); }
.btn-glass {
  background: rgba(255, 255, 255, .055); color: var(--ink);
  border-color: var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn-glass:hover { background: rgba(255, 255, 255, .09); border-color: rgba(226, 232, 255, .4); }
.btn-hue {
  background: rgb(var(--hue) / .14); color: var(--ink);
  border-color: rgb(var(--hue) / .45);
}
.btn-hue:hover { background: rgb(var(--hue) / .22); border-color: rgb(var(--hue) / .7); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 15px; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ── sections: one night runs under all of them, and space keeps them apart ── */
.sec { position: relative; padding: clamp(72px, 9.6vw, 148px) 0; }

/* ── the ground: the net that shows when a breath crosses it (ground.js draws it, at the top of each page) ── */
.gnd { position: absolute; left: 0; top: 0; z-index: -1; width: 100%; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 180px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 180px), transparent); }
.gnd.on { opacity: 1; }
@media print { .gnd { display: none; } }
/* the figure in a head no longer draws its own patch of net: the ground is that net, on the same lattice */
.fig-hero .f-net, .fig-hero .f-dot, .band .f-net, .band .f-dot { display: none; }
.f-ref { fill: none; stroke: none; }
.sec-head { max-width: 780px; margin-bottom: clamp(36px, 4.4vw, 60px); }
.sec-head h2 + p { margin-top: 18px; color: var(--ink-2); font-size: clamp(18px, 1.4vw, 20px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.fade-line { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(216, 226, 255, .2) 20%, rgba(216, 226, 255, .2) 80%, transparent); }

/* ── the lattice alphabet: one net, drawn on purpose for each page ──
   Every figure is a few moves on the same triangular lattice (src/figs.mjs):
   amber where the net takes the load, the page's hue for the support around
   it, one bright core for the person it is about. In a page head the figure
   draws itself link by link, then holds and breathes. */
.band {
  position: absolute; inset: 0 0 0 30%; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(64% 72% at 62% 48%, #000 34%, transparent 80%);
  mask-image: radial-gradient(64% 72% at 62% 48%, #000 34%, transparent 80%);
}
.band svg { width: 100%; height: 100%; max-width: none; }
.fig { display: block; }
.f-net { fill: none; stroke: rgb(var(--hue) / .15); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-dot { fill: none; stroke: rgb(var(--hue) / .36); stroke-width: 3.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.f-soft, .f-hue, .f-ice, .f-pink, .f-violet, .f-ghost, .f-seam { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.f-soft { stroke: rgb(var(--hue) / .36); stroke-width: 1.3; }
.f-hue { stroke: rgb(var(--hue) / .82); stroke-width: 1.9; }
.f-ice { stroke: rgb(var(--c-ice) / .85); stroke-width: 1.9; }
.f-pink { stroke: rgb(var(--c-pink) / .85); stroke-width: 1.9; }
.f-violet { stroke: rgb(var(--c-violet) / .9); stroke-width: 1.9; }
.f-ghost { stroke: rgb(var(--hue) / .55); stroke-width: 1.4; stroke-dasharray: 2 7; }
.f-seam { stroke: var(--amber); stroke-width: 2.7; }
.f-n { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.f-n-seam { stroke: #ffe6b8; stroke-width: 6.5; }
.f-n-hue { stroke: rgb(var(--hue)); stroke-width: 5.5; }
.f-n-soft { stroke: rgb(var(--hue) / .6); stroke-width: 4; }
.f-halo { fill: rgb(var(--c-amber) / .14); }
.f-core { fill: #fff4de; }
.fig-about .f-core { fill: var(--amber); }

/* the head's figure draws itself, then breathes, one link after another */
.js .band .f-seam { opacity: 0; animation: f-in .5s var(--ease) forwards, f-hold 7.2s ease-in-out 2.2s infinite; }
.js .band .f-n, .js .band .f-core, .js .band .f-halo { opacity: 0; animation: f-in .8s var(--ease) 1.1s forwards; }
.js .band .f-hue, .js .band .f-ice, .js .band .f-pink, .js .band .f-violet { opacity: 0; animation: f-in .9s var(--ease) .5s forwards; }
.f-seam.s2 { animation-delay: .07s, 2.6s; } .f-seam.s3 { animation-delay: .14s, 3s; } .f-seam.s4 { animation-delay: .21s, 3.4s; }
.f-seam.s5 { animation-delay: .28s, 3.8s; } .f-seam.s6 { animation-delay: .35s, 4.2s; } .f-seam.s7 { animation-delay: .42s, 4.6s; }
.f-seam.s8 { animation-delay: .49s, 5s; } .f-seam.s9 { animation-delay: .56s, 5.4s; } .f-seam.s10 { animation-delay: .63s, 5.8s; }
.f-seam.s11 { animation-delay: .7s, 6.2s; } .f-seam.s12 { animation-delay: .77s, 6.6s; } .f-seam.s13 { animation-delay: .84s, 7s; }
.f-seam.s14 { animation-delay: .91s, 7.4s; } .f-seam.s15 { animation-delay: .98s, 7.8s; } .f-seam.s16 { animation-delay: 1.05s, 8.2s; }
@keyframes f-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes f-hold { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes b-hold { 0%, 100% { opacity: .42; } 50% { opacity: 1; } }

/* a figure inside a section draws itself when it comes into view */
.js .rv .fig-sec .f-seam { opacity: 0; }
.js .rv.in .fig-sec .f-seam { animation: f-in .5s var(--ease) forwards; }
.js .rv.in .fig-sec .f-seam.s2 { animation-delay: .08s; } .js .rv.in .fig-sec .f-seam.s3 { animation-delay: .16s; }
.js .rv.in .fig-sec .f-seam.s4 { animation-delay: .24s; } .js .rv.in .fig-sec .f-seam.s5 { animation-delay: .32s; }
.js .rv.in .fig-sec .f-seam.s6 { animation-delay: .4s; } .js .rv.in .fig-sec .f-seam.s7 { animation-delay: .48s; }
.js .rv.in .fig-sec .f-seam.s8 { animation-delay: .56s; } .js .rv.in .fig-sec .f-seam.s9 { animation-delay: .64s; }
.js .rv.in .fig-sec .f-seam.s10 { animation-delay: .72s; } .js .rv.in .fig-sec .f-seam.s11 { animation-delay: .8s; }
.js .rv.in .fig-sec .f-seam.s12 { animation-delay: .88s; } .js .rv.in .fig-sec .f-seam.s13 { animation-delay: .96s; }
.fig-sec {
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 100%);
}
.fig-mini {
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
}
.fig-mini .f-n-seam { stroke-width: 5.5; }
.fig-mini .f-n-hue { stroke-width: 4.5; }
.fig-mini .f-dot { stroke-width: 2.6; }

/* ── inner page head ── */
.phead { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 128px) 0 clamp(40px, 5vw, 72px); }
.phead > .wrap { position: relative; z-index: 1; }
.phead h1 { font-size: clamp(42px, 6vw, 84px); margin-bottom: 24px; max-width: 15ch; }
.phead .lede { max-width: 44ch; }
/* a title of two short sentences keeps each sentence on its own line; on a phone the break falls after the first */
.hl-two .hl-s { white-space: nowrap; }
@media (max-width: 520px) { .hl-two { text-wrap: wrap; } .hl-two .hl-s { white-space: normal; } }
/* on tablets and desks the head's figure sits beside the words: smaller, a little lower and to the right, in
   four steps of width. Measured from 776 to 2560 wide (check-site keeps it true). */
@media (min-width: 761px) {
  .band svg { transform-origin: 62% 48%; }
}
@media (min-width: 761px) and (max-width: 900px) { .band svg { transform: translate(9%, 12%) scale(.44); } }
@media (min-width: 901px) and (max-width: 1100px) { .band svg { transform: translate(6%, 12%) scale(.52); } }
@media (min-width: 1101px) and (max-width: 1300px) { .band svg { transform: translate(6%, 10%) scale(.6); } }
@media (min-width: 1301px) { .band svg { transform: translate(7%, 6%) scale(.68); } }
.phead .btn-row { margin-top: 32px; }
.phead .meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 14px/1.4 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
@media (max-width: 760px) {
  .phead:has(> .band) { padding-top: 0; }
  .band { position: relative; inset: auto; display: block; height: 176px; margin: 0 0 4px; overflow: hidden;
    -webkit-mask-image: radial-gradient(72% 84% at 50% 50%, #000 30%, transparent 78%);
    mask-image: radial-gradient(72% 84% at 50% 50%, #000 30%, transparent 78%); }
  /* on a phone the figure comes to the middle, a little larger */
  .band svg { transform-origin: 62% 48%; transform: translateX(-12%) scale(1.45); }
  .phead .btn-row .btn { flex: 1 1 auto; }
}

/* ── the shield: defense in depth around a person ──
   Violet for you, pink for your people, ice for your team, amber for the line.
   The glow is a wide faint stroke under each ring, so nothing is blurred. */
.f-amber { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke: rgb(var(--c-amber) / .92); stroke-width: 1.9; }
.f-glow { stroke-width: 11; opacity: .2; }
/* the shield stands in light; the lattice under it stays quiet and fades out at the edges */
.fig-shield { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.fig-shield .f-net { stroke: rgb(var(--c-ice) / .06); }
.fig-shield .f-dot { stroke: rgb(var(--c-ice) / .2); }
.fig-shield .f-violet { stroke: rgb(var(--c-violet)); }
.fig-shield .f-pink { stroke: rgb(var(--c-pink)); }
.fig-shield .f-ice { stroke: rgb(var(--c-ice)); }
.fig-shield .f-amber { stroke: rgb(var(--c-amber)); }
.fig-shield :is(.f-violet, .f-pink, .f-ice, .f-amber) { stroke-width: 2.6; }
.fig-shield .f-glow { stroke-width: 12; }
/* the person at the centre: a bright core in a warm halo */
.fig-shield .f-core { fill: #fffaf0; transform-box: fill-box; transform-origin: center; transform: scale(2.2); }
.fig-shield .f-halo { fill: rgb(255 238 206 / .17); transform-box: fill-box; transform-origin: center; transform: scale(1.3); }
.hero-shield { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-shield .fig-stack { flex: 0 1 auto; min-height: 0; width: min(100%, 580px); height: auto; aspect-ratio: 1 / 1; }
.hero-shield .sh-legend { margin-top: -54px; position: relative; }
/* the four layers, named under the shield in their own colours */
.sh-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 0 0 6px; font: 600 14px/1.3 var(--voice); letter-spacing: .01em; }
.sh-legend span { display: inline-flex; align-items: center; gap: 8px; color: rgb(var(--lc)); }
.sh-legend span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
/* it draws from the person outward; then every ten seconds light travels in
   through each layer to the person, the way help reaches someone */
.js .fig-shield :is(.f-violet, .f-pink, .f-ice, .f-amber):not(.f-glow) { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sh-in 1.2s var(--ease) forwards; }
.js .fig-shield .f-glow { opacity: 0; transform-box: fill-box; transform-origin: center; animation: sh-in-glow 1.2s var(--ease) forwards, sh-glow 10s ease-in-out infinite; }
.js .fig-shield .f-violet:not(.f-glow) { animation-delay: .2s; }
.js .fig-shield .f-pink:not(.f-glow) { animation-delay: .45s; }
.js .fig-shield .f-ice:not(.f-glow) { animation-delay: .7s; }
.js .fig-shield .f-amber:not(.f-glow) { animation-delay: .95s; }
.js .fig-shield .f-glow.f-violet { animation-delay: .2s, 4.9s; }
.js .fig-shield .f-glow.f-pink { animation-delay: .45s, 4.6s; }
.js .fig-shield .f-glow.f-ice { animation-delay: .7s, 4.3s; }
.js .fig-shield .f-glow.f-amber { animation-delay: .95s, 4s; }
.js .fig-shield .f-halo { animation: f-in .8s var(--ease) both, sh-halo 10s ease-in-out 5.2s infinite; }
.js .fig-shield .f-core { animation: f-in .6s var(--ease) both; }
@keyframes sh-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes sh-in-glow { from { opacity: 0; transform: scale(.9); } to { opacity: .16; transform: none; } }
@keyframes sh-glow { 0%, 18%, 100% { opacity: .16; } 7% { opacity: .58; } }
@keyframes sh-halo { 0%, 18%, 100% { transform: scale(1.3); } 8% { transform: scale(2.1); } }
.t-night .js .fig-shield .f-glow, .t-night.js .fig-shield .f-glow { animation-duration: 1.2s, 16s; }
/* a page head stands inside its layer's ring, quieter than its own figure */
.js .band .f-amber { opacity: 0; animation: f-in .9s var(--ease) .5s forwards; }
.band.in-layer .f-violet { stroke: rgb(var(--c-violet) / .5); }
.band.in-layer .f-pink { stroke: rgb(var(--c-pink) / .5); }
.band.in-layer .f-ice { stroke: rgb(var(--c-ice) / .5); }
.band.in-layer .f-amber { stroke: rgb(var(--c-amber) / .55); }
/* the plan's seven steps, lit as they are written */
.f-steps .f-step { fill: rgb(var(--c-violet)); opacity: .34; transform-box: fill-box; transform-origin: center; transition: opacity .7s var(--ease), transform .7s var(--ease), fill .7s var(--ease); }
.f-steps .f-step.on { opacity: 1; fill: #efe7ff; transform: scale(1.5); }
.js .band .f-steps { opacity: 0; animation: f-in .8s var(--ease) 1.1s forwards; }
/* the layer chip in a page head */
.layer { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; margin: 0 0 16px; padding: 5px 14px 5px 8px; border-radius: 12px; corner-shape: var(--corner); font: 600 13.5px/1.1 var(--voice); letter-spacing: .01em; color: rgb(var(--lc)); background: rgb(var(--lc) / .11); text-decoration: none; transition: background .2s var(--ease); }
.layer:hover { background: rgb(var(--lc) / .2); }
.layer .glyph { flex: none; width: 24px; height: 24px; }
.ly1 { --lc: var(--c-violet); } .ly2 { --lc: var(--c-pink); } .ly3 { --lc: var(--c-ice); } .ly4 { --lc: var(--c-amber); }
.glyph path { fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .3; vector-effect: non-scaling-stroke; }
.glyph path.on { opacity: 1; stroke-width: 2; }
.glyph .g0 { fill: currentColor; }
/* the four layers on the home page */
.layers-top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.layers-fig .fig { width: 100%; height: auto; max-width: 460px; margin: 0 auto; }
.lyr-routes .route .glyph { width: 46px; height: 46px; color: rgb(var(--hue)); margin-bottom: 2px; }
/* pointing at a layer lights its ring in the shield above */
.layers-sec:has(.lyr.h-violet .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-violet,
.layers-sec:has(.lyr.h-pink .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-pink,
.layers-sec:has(.lyr.h-ice .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-ice,
.layers-sec:has(.lyr.h-amber .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-amber { animation: none; opacity: .55; }
@media (max-width: 760px) {
  .layers-top { grid-template-columns: minmax(0, 1fr); }
  /* on a phone the hero has just shown the shield: the layer cards carry it here */
  .layers-fig { display: none; }
  /* the legend sits in the faded edge under the shield. The shield takes up to 40% of a phone's height (and never
     more than the width), so the first screen is the shield, the title and the line under it; the hero's two
     buttons, which the bar repeats, come next */
  .hero-fig.hero-shield { height: min(40vh, 340px, calc(100vw - 2 * var(--gut))); height: min(40svh, 340px, calc(100vw - 2 * var(--gut))); }
  .sh-legend { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: auto auto; justify-content: center; gap: 6px 26px; margin: 0; }
  .hero-shield + .hero-copy, .hero-copy:has(+ .hero-shield) { padding-top: 14px; }
  .hero-shield .fig-stack { width: auto; max-width: 100%; height: 100%; }
  .hero-shield .sh-legend { margin-top: 0; position: absolute; }
}
@media (prefers-reduced-motion: reduce) {
  .js .fig-shield *, .js .fig-wing, .js .fig-wing * { animation-delay: 0s !important; }
}

/* late at night, home meets the visitor with the line that answers */
.night-note, .t-night .day-note { display: none; }
.t-night .night-note { display: block; color: var(--ink-2); }
/* amber is the line's colour: the dot says who answers */
.night-note::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; vertical-align: 2px; background: rgb(var(--c-amber)); box-shadow: 0 0 10px rgb(var(--c-amber) / .7); }
/* the promises, each one checkable */
.promise-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.promise { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border-radius: var(--r-m, 16px); corner-shape: var(--corner); background: rgb(var(--hue) / .08); }
.promise h3 { margin: 0 0 3px; font-size: 17px; line-height: 1.25; }
.promise p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.seal { flex: none; width: 30px; height: 30px; color: rgb(var(--hue)); }
.seal polygon, .seal path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
@media (max-width: 520px) { .promise-grid { grid-template-columns: minmax(0, 1fr); } }
/* the four layers at the top of the menu */
.sheet-layers ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sheet-layers li { display: flex; }
.sheet-layers li a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 76px; padding: 10px 4px; border-radius: 14px; corner-shape: var(--corner); background: rgb(var(--lc) / .1); color: rgb(var(--lc)); font: 600 13px/1.2 var(--voice); text-align: center; text-decoration: none; }
.sheet-layers li a:hover, .sheet-layers li a[aria-current="page"] { background: rgb(var(--lc) / .2); }
.sheet-layers .glyph { width: 30px; height: 30px; }
/* a written plan: it says so, and its head glows once at the moment it is finished */
.plan-done { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-m, 16px); corner-shape: var(--corner); background: rgb(var(--c-violet) / .12); }
.plan-done .pd-t { margin: 0 0 4px; font: 620 19px/1.25 var(--voice); color: var(--ink); }
.plan-done p { margin: 0; color: var(--ink-2); }
.plan-done.celebrate { animation: pd-in .9s var(--ease) both; }
.plan-done .pd-act { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.plan-done .pd-act .small { color: var(--ink-2); }
@keyframes pd-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.band.in-layer.done .f-violet { stroke: rgb(var(--c-violet) / .95); }
.js .band.celebrate .f-violet { transform-box: fill-box; transform-origin: center; animation: pd-ring 1.6s var(--ease) forwards; }
@keyframes pd-ring { 0% { opacity: .45; transform: scale(.96); } 45% { opacity: 1; transform: scale(1.035); } 100% { opacity: 1; transform: none; } }

/* the guardian: rounded layer rings, two ribbons of light that hold the shield
   and curl over it, a halo round the person. The wings rise into place after
   the rings have drawn, and every ten seconds the light starts in the wings
   and travels inward, layer by layer, to the person. */
.f-ring { fill: none; stroke-linejoin: round; }
.fig-shield .f-aura { fill: none; stroke: rgb(255 246 234 / .5); stroke-width: 1.3; }
.js .fig-shield .f-aura { opacity: 0; animation: f-in 1s var(--ease) .35s forwards; }
/* each wing is its own layer over the shield: it turns into place on the compositor */
.fig-stack { position: relative; }
.fig-stack > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fig-wing { pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.fig-wing .f-wing { stroke: none; }
.fig-wing .f-wing-glow { fill: none; stroke-width: 7; stroke-linejoin: round; opacity: .2; }
.js .fig-wing { opacity: 0; transform-origin: 50% 82%; animation: sh-wing-l 2.4s cubic-bezier(.22, 1, .36, 1) 1.15s forwards; }
.js .fig-wing-r { animation-name: sh-wing-r; }
@keyframes sh-wing-l { from { opacity: 0; transform: rotate(-18deg) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sh-wing-r { from { opacity: 0; transform: rotate(18deg) scale(.94); } to { opacity: 1; transform: none; } }
.js .fig-wing .f-wing-glow { animation: sh-wing-glow 10s ease-in-out 3.7s infinite; }
@keyframes sh-wing-glow { 0%, 18%, 100% { opacity: .2; } 7% { opacity: .64; } }
.t-night .js .fig-wing .f-wing-glow, .t-night.js .fig-wing .f-wing-glow { animation-duration: 16s; }

/* the layer rings carry a white-hot core */
.f-neon { stroke: rgb(255 250 244 / .9); stroke-width: .9; }
.fig-shield .f-neon { stroke: rgb(255 250 244 / .92); stroke-width: .9; }
.band.in-layer .f-neon { stroke: rgb(255 250 244 / .3); stroke-width: .8; }
.band.in-layer.done .f-neon { stroke: rgb(255 250 244 / .8); }
/* the crest in a finished plan: the shield with its guardian, small */
.pd-crest { flex: none; width: 92px; height: 92px; margin: -10px -6px -10px -12px; }
.pd-crest :is(.f-violet, .f-pink, .f-ice, .f-amber) { stroke-width: 1.7; }
.pd-crest .f-violet { stroke: rgb(var(--c-violet)); } .pd-crest .f-pink { stroke: rgb(var(--c-pink)); } .pd-crest .f-ice { stroke: rgb(var(--c-ice)); } .pd-crest .f-amber { stroke: rgb(var(--c-amber)); }
.pd-crest .f-glow { stroke-width: 6; opacity: .16; }
.pd-crest .f-neon { stroke: rgb(255 250 244 / .9); stroke-width: .6; }
.pd-crest .f-wing-glow { fill: none; stroke-width: 16; opacity: .2; }
.pd-crest .f-aura { fill: none; stroke: rgb(255 246 234 / .55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pd-crest .f-core { fill: #fffaf0; }
.plan-done.celebrate .pd-crest .f-wings { transform-box: view-box; transform-origin: 50% 82%; animation: sh-wing-l 1.8s cubic-bezier(.22, 1, .36, 1) .25s both; }
/* the first session, for whoever starts the team */
.ss-box { margin-top: 36px; padding: 24px 24px 22px; border-radius: var(--r-l); corner-shape: var(--corner); background: rgb(var(--hue) / .07); }
.ss-box > h3 { margin: 0 0 8px; }
.ss-box > p { max-width: 62ch; }
.ss-run { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.ss-run li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; }
.ss-run b { font: 600 14px/1.7 var(--mono); color: var(--hue-t); }
.ss-run h4 { margin: 0 0 2px; font-size: 17px; line-height: 1.35; }
.ss-run p { margin: 0; color: var(--ink-2); }
/* around the first session: the invitation before it, and the month after it */
.ss-box > .say { margin-top: 14px; max-width: 62ch; }
.ss-later { max-width: 62ch; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); border-image: var(--feather) 1; }
.ss-later h4 { margin: 0 0 4px; font-size: 17px; line-height: 1.35; }
.ss-later p { margin: 0; color: var(--ink-2); }
.ss-later .btn { margin-top: 14px; }
.ss-later .kept { margin-top: 10px; }
.ss-later .kept:empty { display: none; }
/* on a phone, Help Now gets the call button above the dock: a tighter head, chip and label on one row */
@media (max-width: 520px) {
  .phead:has(+ #lines) { padding: 28px 0 20px; }
  .phead:has(+ #lines) > .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; }
  .phead:has(+ #lines) > .wrap > :is(h1, .lede) { flex: 1 0 100%; }
  .phead:has(+ #lines) :is(.layer, .eye) { margin: 0; }
  .phead:has(+ #lines) h1 { margin: 16px 0 14px; }
}
@media (max-width: 380px) { .phead:has(+ #lines) h1 { font-size: 34px; } }
/* on a phone, every line card puts its call button straight under the number and its notes below it,
   so the button stays on the first screen however long a line's note is */
@media (max-width: 520px) {
  .ml .ml-row > .ml-note { order: 2; margin-top: 10px; }
  .ml .ml-row > .ml-hint { order: 1; }
  .ml .ml-row > .ml-es { margin-top: 4px; }
  .ml .ml-row > .ml-acts { margin-top: 8px; }
}
@media (max-width: 520px) and (max-height: 700px) {
  .phead:has(+ #lines) { padding: 22px 0 14px; }
  .phead:has(+ #lines) h1 { margin: 12px 0 10px; font-size: 34px; }
  .phead:has(+ #lines) .lede { font-size: 16px; }
}
/* a short phone screen (a small iPhone with Safari's bars): the head drops its chip row and tightens, so Call
   stays on screen. Narrower than 340px, Call sits wholly below the bar instead, which a first screen allows. */
@media (min-width: 340px) and (max-width: 520px) and (max-height: 600px) {
  .phead:has(+ #lines) :is(.layer, .eye) { display: none; }
  .phead:has(+ #lines) { padding-top: 14px; }
  .phead:has(+ #lines) h1 { margin: 6px 0 8px; font-size: 30px; }
  .phead:has(+ #lines) .lede { font-size: 15px; line-height: 1.45; }
  #lines .myline .ml { padding-top: 18px; }
}
@media (max-width: 520px) { .ss-box { padding: 20px 18px 18px; } .ss-run li { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* light comes in along the lattice: six short streaks travel the lines that meet
   the outer ring's corners and reach it as it lights. The numbers come from the
   hero figure: the outer ring's corner sits at 27.3% of the figure's width from
   its centre (4s at fit 0.6), and each streak starts at 1.45 times that. */
.fig-stack { container-type: size; }
.fig-stack > .fig-rays { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.ry { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ry2 { transform: rotate(60deg); } .ry3 { transform: rotate(120deg); } .ry4 { transform: rotate(180deg); } .ry5 { transform: rotate(240deg); } .ry6 { transform: rotate(300deg); }
.ry > i { position: absolute; left: 0; top: -1px; width: 8cqw; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgb(255 240 214 / .95), rgb(253 194 111 / .55) 35%, transparent); box-shadow: 0 0 6px rgb(253 194 111 / .5); opacity: 0; transform-origin: 0 50%; transform: translateX(39.5cqw); }
.js .ry > i { animation: sh-ray 10s 3.2s infinite; }
@keyframes sh-ray {
  0% { opacity: 0; transform: translateX(39.5cqw); animation-timing-function: cubic-bezier(.5, 0, .8, .3); }
  2.5% { opacity: .95; }
  9% { opacity: .9; }
  10%, 100% { opacity: 0; transform: translateX(27.3cqw) scaleX(.45); }
}
.t-night .js .ry > i, .t-night.js .ry > i { animation-duration: 16s; }
@media (prefers-reduced-motion: reduce) { .fig-rays { display: none; } }
/* on a phone: layer chips reach 44px, and links in running text get a taller touch area without moving a line */
@media (max-width: 600px) {
  .layer { min-height: 44px; }
  :is(p, td, figcaption, .cite, .sources li, .ticks li) a:not(.btn):not(.ml-num) { padding-block: 5px; }
}
/* the title is plain ink; its full stop carries the page's colour */
.t-dot { color: rgb(var(--hue)); }
/* Help Now on a wide screen: the title on the left, your line on the right, so the number and its call button
   are in the first screen of a laptop (on phones the two stay stacked, as before) */
@media (min-width: 1000px) {
  .now-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); align-items: start; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
  .now-top > .phead > .wrap, .now-top > #lines > .wrap { max-width: none; padding: 0; }
  .now-top > .phead { padding-bottom: clamp(32px, 4vw, 56px); }
  .now-top > #lines { padding-top: clamp(56px, 8vw, 128px); }
}
/* a page head has one label row: the layer chip and the small label side by side */
.phead:has(> .wrap > .layer) > .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* on a phone the label keeps the page's name; its description is still read aloud */
@media (max-width: 520px) { .phead .eye-d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.phead:has(> .wrap > .layer) > .wrap > * { flex: 1 0 100%; }
.phead:has(> .wrap > .layer) > .wrap > :is(.layer, .eye) { flex: 0 1 auto; margin: 0; }
.phead:has(> .wrap > .layer) > .wrap > h1 { margin-top: 22px; }
/* small labels break into even lines */
.eye { text-wrap: balance; }
/* cards in a row arrive one after another */
.js .rv:nth-child(2) { transition-delay: .07s; } .js .rv:nth-child(3) { transition-delay: .14s; } .js .rv:nth-child(4) { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .js .rv { transition-delay: 0s !important; } }
/* the wall card: a sheet of paper on the screen, the same sheet in print */
.wall-prev { display: flex; justify-content: center; }
.wall-card { width: min(100%, 360px); aspect-ratio: 210 / 297; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 24px; border-radius: 6px; background: #fbf9f4; color: #15132b; text-align: center; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.wall-crest { width: 46%; height: auto; aspect-ratio: 1; }
.wall-crest :is(.f-violet, .f-pink, .f-ice, .f-amber) { stroke-width: 1.6; }
.wall-crest .f-violet { stroke: #6d48ff; } .wall-crest .f-pink { stroke: #c2347e; } .wall-crest .f-ice { stroke: #2b7bb9; } .wall-crest .f-amber { stroke: #c27a12; }
.wall-crest .f-glow, .wall-crest .f-neon, .wall-crest .f-wing-glow, .wall-crest .f-halo { display: none; }
.wall-crest .f-wing { fill: none; stroke: #6d48ff; stroke-width: 7; }
.wall-crest .f-aura { fill: none; stroke: #6d48ff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.wall-crest .f-core { fill: #15132b; }
.wall-t { margin: 0; max-width: 18ch; font: 500 clamp(17px, 2vw, 21px)/1.3 var(--voice); color: #15132b; text-wrap: balance; }
.wall-url { margin: 0; font: 600 clamp(22px, 2.6vw, 28px)/1.1 var(--voice); color: #15132b; }
.wall-s, .wall-d { margin: 0; max-width: 26ch; font-size: 13.5px; line-height: 1.4; color: #37345a; text-wrap: balance; }
.wall-s b { display: block; font-weight: 600; color: #15132b; }
.wall-f { margin: 6px 0 0; font-size: 12px; color: #55527a; }
@media print {
  body.printing-wall[data-page="cards"] main > #wall { display: block !important; padding: 0 !important; }
  body.printing-wall[data-page="cards"] main > :not(#wall) { display: none !important; }
  body.printing-wall #wall .wrap > :not(.wall-prev), body.printing-wall #wall::before, body.printing-wall #wall::after { display: none !important; }
  body.printing-wall #wall .wrap { display: block; max-width: none; padding: 0; }
  body.printing-wall .wall-card { width: 100%; height: 240mm; aspect-ratio: auto; gap: 9mm; padding: 16mm 14mm; border: .3mm solid #999; border-radius: 3mm; box-shadow: none; background: #fff !important; }
  body.printing-wall .wall-crest { width: 70mm; }
  body.printing-wall .wall-t { font-size: 24pt; max-width: 16ch; }
  body.printing-wall .wall-url { font-size: 34pt; }
  body.printing-wall .wall-s, body.printing-wall .wall-d { font-size: 14pt; max-width: 30ch; }
  body.printing-wall .wall-f { font-size: 11pt; }
}
/* a line with set hours: the general promises step aside and its own hours show (sm.js sets .line-limited) */
.lim-show { display: none; }
.line-limited .lim-hide { display: none; }
.line-limited .lim-show { display: inline; }
/* a line whose own hours may leave part of the night open: the lines that promise an answer tonight step aside,
   and the home page keeps its day note after dark (sm.js sets .line-nightgap) */
.ngt-show { display: none; }
.line-nightgap .ngt-hide { display: none; }
.line-nightgap .ngt-show { display: inline; }
.line-nightgap .ngt-lc { text-transform: lowercase; }
.line-nightgap.t-night .night-note { display: none; }
.line-nightgap.t-night .day-note { display: block; }
/* Breathe With Me: a ring fills on the two inhales and empties on the long exhale (nine seconds a round) */
.br-pace { margin-top: 14px; }
.br-run { display: grid; justify-items: start; gap: 12px; margin-top: 4px; }
.br-ring { position: relative; width: 132px; height: 132px; }
.br-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgb(var(--hue) / .9); background: radial-gradient(closest-side, rgb(var(--hue) / .22), rgb(var(--hue) / .04) 70%, transparent 100%); transform: scale(.55); }
.br-ring.on i { animation: br-breath 9s infinite; }
@keyframes br-breath {
  0% { transform: scale(.55); animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  22.2% { transform: scale(.88); animation-timing-function: cubic-bezier(.3, 0, .4, 1); }
  33.3% { transform: scale(1); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  100% { transform: scale(.55); }
}
.br-say { margin: 0; min-height: 1.5em; font: 500 19px/1.4 var(--voice); color: var(--ink); }
.br-acts { margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .br-ring.on i { animation: none; transform: scale(.8); } }
/* the layers section asks one question before its four doors */
/* on a phone the four doors are compact rows, so the question and all four answers fit one screen */
@media (max-width: 600px) {
  .lyr-routes .route { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; min-height: 0; padding: 15px 16px 15px 14px; }
  .lyr-routes .route .glyph { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; }
  .lyr-routes .route .no { grid-column: 2; font-size: 13px; }
  .lyr-routes .route h3 { grid-column: 2; font-size: 19px; line-height: 1.25; }
  .lyr-routes .route p { display: none; }
  .lyr-routes .route .go { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 18px; }
  .lyr-routes .route .go-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.lyr-ask { margin: 0 0 18px; font: 600 clamp(19px, 2vw, 23px)/1.35 var(--voice); letter-spacing: -.01em; color: var(--ink); }
/* print one box alone (the first session or the talk): volunteer.js marks it .ss-on, and the rest of the page
   leaves the layout, so the box starts at the top of the first page */
@media print {
  body.printing-ss main > :not(.doc), body.printing-ss .doc > :not(.doc-body), body.printing-ss .doc-body > :not(#team), body.printing-ss #team > :not(.ss-on) { display: none !important; }
  body.printing-ss .doc, body.printing-ss .doc-body { display: block !important; max-width: none; margin: 0 !important; padding: 0 !important; }
  body.printing-ss #team { margin: 0 !important; padding: 0 !important; }
  body.printing-ss #team::before, body.printing-ss #team::after { display: none !important; }
  body.printing-ss .ss-box.ss-on { margin: 0; padding: 0; background: none !important; color: #111 !important; }
  body.printing-ss .ss-box :is(h3, h4) { color: #111 !important; }
  body.printing-ss .ss-box p, body.printing-ss .ss-run p { color: #222 !important; }
  body.printing-ss .ss-run b { color: #555 !important; }
  body.printing-ss .ss-box a { color: #111 !important; text-decoration-color: #999 !important; }
  body.printing-ss .ss-later { border-color: #bbb; border-image: none; }
  body.printing-ss .ss-box.ss-on::after { content: 'soundmind.team/volunteer#team'; display: block; margin-top: 16pt; font: 600 10pt var(--mono); color: #555; }
}

/* ── Davara Distinct: calm type, labels in sentence case ──
   Headlines carry authority by size, at weight 500 with the face's own spacing. Small labels are sentence
   case at 13px and 500, in their own colour, with no wide-tracked capitals. Numbers that index a section
   keep the mono face. */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: normal; }
h1 { line-height: 1.08; }
:is(.statement, .pull p, .his-close, .lyr-ask, .plan-done .pd-t, .ml-num) { font-weight: 500; letter-spacing: normal; }
:is(.eye, .card .k, .ml-where, .toc p, .pv-count, .law-no, .ledger h4, .tl-t, .fc-k, .fc-turn, .fit-head, .fit-tag, .foot h2, .sheet-g, .t-len, .org .k, .pull figcaption, .route .no, .sh-legend) { font-family: var(--voice); font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none; }
.eye .no { font-family: var(--mono); letter-spacing: .02em; }
.sh-legend { font-size: 14px; }

/* ── the breath: six breaths a minute ──
   The hero's ten-second loop is one slow breath. Light comes in along the lattice and the rings light
   inward; then a round of calm leaves the person and reaches the outer ring. Every layer page breathes on the same clock: a round leaves the centre of its ring and reaches
   the ring. All of it is transform and opacity; the hero's ring is its own layer. */
/* the ring that left the person is now the net's own breath (ground.js): one breath a page, not two */
.fig-breath, .band-breath { display: none; }
.fig-stack > .fig-breath { position: absolute; left: 50%; top: 50%; width: 54.6cqw; height: 54.6cqw; margin: -27.3cqw 0 0 -27.3cqw; border-radius: 50%; border: 2px solid rgb(255 246 234 / .85); background: radial-gradient(closest-side, transparent 86%, rgb(192 132 252 / .26) 97%, transparent 100%); opacity: 0; transform: scale(.12); pointer-events: none; }
.js .fig-stack > .fig-breath { animation: sh-breath 10s 6s infinite; }
@keyframes sh-breath {
  0% { opacity: 0; transform: scale(.12); animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
  6% { opacity: .8; }
  18% { opacity: .62; }
  36%, 100% { opacity: 0; transform: scale(1); }
}
.band-breath { position: absolute; inset: 0; }
.band-breath .f-breath { fill: none; stroke: rgb(255 246 234 / .8); stroke-width: 2.4; transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.12); }
.js .band-breath .f-breath { animation: sh-breath 10s 6s infinite; }
.t-night .js .fig-stack > .fig-breath, .t-night.js .fig-stack > .fig-breath, .t-night .js .band-breath .f-breath, .t-night.js .band-breath .f-breath { animation-duration: 16s; }
@media (prefers-reduced-motion: reduce) { .fig-breath, .band-breath { display: none; } }

/* ── pages flow into each other: the header and the dock hold still, the head figure crossfades in place ── */
.band { view-transition-name: band; }
::view-transition-group(band) { animation-duration: .42s; animation-timing-function: var(--ease); }
/* a touch answers: cards and tiles press in a little */
:is(.route, .sheet-layers li a, a.card) { transition: transform .35s var(--ease), border-color .25s, background-color .2s; }
:is(.route, .sheet-layers li a, a.card):active { transform: scale(.985); transition-duration: .12s; }

/* ── home hero: the live lattice ── */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 64px) 0 clamp(56px, 7vw, 104px); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 48px); min-height: min(78vh, 760px); }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(48px, 7.2vw, 108px); margin-bottom: 28px; max-width: 11ch; }
.hero .lede { margin-bottom: 36px; max-width: 34ch; }
.hero-fig { position: relative; z-index: 1; align-self: stretch; min-height: 420px; margin-right: calc(-1 * var(--gut)); }
.hero-fig canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.hero-note { margin-top: 24px; font-size: 15px; color: var(--ink-3); }
@media (max-width: 900px) {
  .hero { padding-top: 0; }
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
  .hero-fig { order: -1; min-height: 0; height: min(33vh, 280px); margin: 0 calc(-1 * var(--gut)) 4px; }
}

/* ── cards with a lit rim ── */
.card {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-l); corner-shape: var(--corner);
  background: linear-gradient(180deg, rgba(255, 255, 255, .052), rgba(255, 255, 255, .016));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 24px 60px -36px rgba(0, 0, 0, .9);
}
.card.lit { border-color: rgb(var(--hue) / .34); }
.card.lit::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--hue) / .95), transparent);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); }
.card .k { display: block; margin-bottom: 12px; font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hue-t); }
a.card { display: block; text-decoration: none; transition: transform .35s var(--ease), border-color .25s; }
a.card:hover { transform: translateY(-3px); border-color: rgb(var(--hue) / .55); }
a.card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 600 15px/1 var(--voice); color: var(--hue-t); }
a.card .go .arr { transition: transform .3s var(--ease); }
a.card:hover .go .arr { transform: translateX(4px); }

/* doors: the ways in on the home page */
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .routes { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.route {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 250px; padding: 28px 26px 26px;
  border: 1px solid rgb(var(--hue) / .3);
  border-radius: var(--r-l); corner-shape: var(--corner);
  background:
    radial-gradient(120% 90% at var(--mx, 30%) var(--my, 0%), rgb(var(--hue) / .13), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  text-decoration: none;
  transition: transform .35s var(--ease), border-color .25s;
}
.route::before {
  content: ""; position: absolute; left: 16%; right: 16%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(var(--hue)), transparent);
}
.route:hover { transform: translateY(-3px); border-color: rgb(var(--hue) / .6); }
.route .no { font: 600 12px/1 var(--mono); letter-spacing: .14em; color: rgb(var(--hue)); }
.route h3 { font-size: clamp(23px, 2vw, 27px); line-height: 1.15; }
.route p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; }
.route .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--voice); color: var(--hue-t);
}
.route .go .arr { transition: transform .3s var(--ease); }
.route:hover .go .arr { transform: translateX(4px); }
@media (max-width: 600px) { .route { min-height: 0; padding: 22px 22px 20px; gap: 10px; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.4vw, 76px); align-items: center; }
.split.split-top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }
.h-sm { font-size: 22px; margin-bottom: 16px; }

/* ── your line: the visitor's own crisis line, and nothing else ── */
.myline .ml {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  max-width: 620px; padding: 26px 26px 22px;
  border: 1px solid rgb(var(--c-amber) / .55);
  border-radius: var(--r-l); corner-shape: var(--corner);
  background: linear-gradient(180deg, rgb(var(--c-amber) / .11), rgb(var(--c-amber) / .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 30px 70px -40px rgba(253, 194, 111, .35);
}
.myline .ml::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.ml-where { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 600 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ml-where span { padding: 5px 10px; border-radius: 999px; background: rgb(var(--c-amber) / .16); color: var(--t-amber); }
.ml-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ml-row + .ml-row { margin-top: 14px; padding-top: 16px; border-top: 1px solid rgb(var(--c-amber) / .2); }
.ml-name { display: block; font-size: 16px; color: var(--ink-2); line-height: 1.4; }
.ml-num { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0; font: 620 clamp(38px, 4.6vw, 56px)/1.05 var(--voice); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.ml-num:hover { color: var(--amber-hi); }
.world .ml-num { font-size: clamp(28px, 3.4vw, 40px); }
.ml-note { margin: 2px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-3); }
.ml-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
/* the keypad line belongs to the call button above it */
.ml-acts + .ml-hint { margin-top: 10px; }
.ml-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); border-image: var(--feather) 1; font-size: 14.5px; color: var(--ink-3); }
.ml-foot a { color: var(--ink-2); }
.ml-foot span { margin-right: auto; }
.myline-why { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); max-width: 620px; }

/* in the help sheet: the same card, a little tighter */
.myline.compact .ml { padding: 20px 20px 18px; max-width: none; }
.myline.compact .ml-num { font-size: 40px; }
/* in the footer: one line */
.myline.strip { flex: 1 1 320px; }
.myline.strip .ml { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 0; border: 0; background: none; box-shadow: none; max-width: none; }
.myline.strip .ml::before, .myline.strip .ml-where, .myline.strip .ml-note, .myline.strip .ml-acts, .myline.strip .ml-foot, .myline.strip .ml-row + .ml-row { display: none; }
.myline.strip .ml-row { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.myline.strip .ml-num { order: -1; font-size: 26px; }
.myline.strip .ml-name { font-size: 15px; }

/* ── callouts and evidence ── */
.callout {
  position: relative; padding: 22px 24px;
  border: 1px solid rgb(var(--hue) / .45);
  border-radius: var(--r); corner-shape: var(--corner);
  background: rgb(var(--hue) / .08);
}
.callout.danger { --hue: var(--c-coral); --hue-t: var(--t-coral); }
.callout h3 { font-size: 19px; margin-bottom: 8px; color: var(--hue-t); }
.callout p { color: var(--ink); }
.callout + .callout { margin-top: 14px; }

.evidence {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  padding: 22px 24px;
  border-left: 2px solid rgb(var(--hue));
  background: linear-gradient(90deg, rgb(var(--hue) / .09), transparent 80%);
  border-radius: 0 var(--r) var(--r) 0;
}
.evidence .big { grid-row: span 2; font: 620 clamp(38px, 4.2vw, 56px)/1 var(--voice); color: var(--hue-t); letter-spacing: -.025em; }
.evidence p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.evidence p.cite { font-size: 14px; color: var(--ink-3); }
.evidence + .evidence { margin-top: 14px; }
@media (max-width: 620px) {
  .evidence { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .evidence .big { grid-row: auto; margin-bottom: 6px; }
}
.gap-top { margin-top: 28px; }
.more { margin-top: 24px; }

/* ── numbered steps ── */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li {
  position: relative; counter-increment: s;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px;
  padding: 22px 0;
}
.steps > li + li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgb(var(--hue) / .3), transparent 90%);
}
.steps > li::after {
  content: counter(s, decimal-leading-zero);
  grid-column: 1; grid-row: 1 / span 3;
  font: 600 15px/1.9 var(--mono); color: var(--hue-t); letter-spacing: .06em;
}
.steps > li > * { grid-column: 2; margin: 0; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); }
.steps p + p { margin-top: 10px; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%;
  background: rgb(var(--hue) / .9);
}
.ticks.two { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 720px) { .ticks.two { grid-template-columns: minmax(0, 1fr); } }

/* ── documentation layout: index on the left, the page on the right ── */
.doc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(32px, 5vw, 84px); align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 28px); }
.toc p { margin: 0 0 14px; font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.toc a {
  display: block; padding: 8px 12px 8px 14px; border-radius: 0 10px 10px 0;
  border-left: 2px solid var(--line);
  text-decoration: none; font-size: 15px; line-height: 1.35; color: var(--ink-3);
  transition: color .2s, border-color .2s, background-color .2s;
}
.toc a:hover { color: var(--ink); background: rgba(255, 255, 255, .04); }
.toc a.on { color: var(--ink); border-left-color: rgb(var(--hue)); }
.doc-body { min-width: 0; max-width: 800px; }
.doc-body > section { padding-bottom: clamp(56px, 6vw, 92px); }
.doc-body > section + section { padding-top: clamp(56px, 6vw, 92px); position: relative; }
.doc-body > section + section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgb(var(--hue) / .32), transparent);
}
.doc-body h2 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 18px; }
.doc-body h2 + p, .doc-body .eye + h2 + p { font-size: clamp(18px, 1.35vw, 20px); color: var(--ink-2); }
.doc-body > section > p { color: var(--ink-2); }
.doc-body > section > .card + .card { margin-top: 14px; }
.doc-body .callout { margin-top: 26px; }
.sub, .doc-body h3.sub { margin: 44px 0 16px; font-size: clamp(20px, 1.8vw, 24px); }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; margin-right: calc(-1 * var(--gut)); }
  .toc ol { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--gut) 6px 0; scrollbar-width: none; }
  .toc ol::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; }
  .toc a.on { border-color: rgb(var(--hue) / .7); }
}

/* ── tabs ── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; }
.tabs [role="tab"] {
  min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--ink-2);
  font: 500 15px/1 var(--voice);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tabs [role="tab"]:hover { color: var(--ink); border-color: rgba(226, 232, 255, .45); }
.tabs [role="tab"][aria-selected="true"] { background: rgb(var(--hue) / .16); border-color: rgb(var(--hue) / .7); color: var(--ink); }
[role="tabpanel"] h3 { font-size: clamp(22px, 2vw, 27px); margin-bottom: 12px; }
[role="tabpanel"] > p { color: var(--ink-2); }

/* ── lines people can copy and send ── */
.say { display: grid; gap: 10px; }
.say-row {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line); border-radius: var(--r); corner-shape: var(--corner);
  background: rgba(255, 255, 255, .03);
}
.say-row q, .say-row .say-t { flex: 1 1 15em; quotes: none; color: var(--ink); line-height: 1.55; }
.say-row [contenteditable] { outline: none; border-radius: 6px; }
.say-row [contenteditable]:focus-visible { outline: 2px solid rgb(var(--hue) / .7); outline-offset: 4px; }
.say-row .btn { flex: none; }

/* ── forms and tools ── */
.field { display: grid; gap: 8px; }
.field label, .field .lab { font: 600 15px/1.3 var(--voice); color: var(--ink); }
.field .hint { font-size: 14.5px; color: var(--ink-3); margin-top: -2px; }
input[type="text"], input[type="tel"], input[type="date"], input[type="time"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 14px; corner-shape: var(--corner);
  background: rgba(3, 7, 22, .55); color: var(--ink);
  font-size: 17px; line-height: 1.5;
  transition: border-color .2s, background-color .2s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(170, 176, 216, .62); }
input:focus, select:focus, textarea:focus { border-color: rgb(var(--hue) / .85); background: rgba(3, 7, 22, .8); outline: none; box-shadow: 0 0 0 3px rgb(var(--hue) / .18); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(.85); }
.kept { font-size: 14px; color: var(--ink-3); }
.result {
  margin-top: 18px; padding: 18px 20px;
  border-radius: var(--r); corner-shape: var(--corner);
  border: 1px solid rgb(var(--hue) / .45); background: rgb(var(--hue) / .08);
}
.result b { font-family: var(--voice); font-weight: 600; }
.tool .grid-2 { gap: 16px; }
.hand { display: grid; gap: 10px; }
.hand-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px; align-items: start; }
.hand-row .x-row {
  width: 44px; height: 48px; border: 1px solid var(--line); border-radius: 12px; corner-shape: var(--corner);
  background: transparent; color: var(--ink-3); font-size: 22px; line-height: 1;
}
.hand-row .x-row:hover { color: var(--ink); border-color: var(--line-2); }
@media (max-width: 620px) { .hand-row { grid-template-columns: 1fr 44px; } .hand-row .h-next { grid-column: 1; } .hand-row .x-row { grid-row: 1 / span 2; grid-column: 2; height: 100%; } }

/* ── the plan ── */
.plan { display: grid; gap: 16px; counter-reset: p; }
.pstep {
  position: relative; counter-increment: p;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 18px;
  padding: 26px 26px 26px 22px;
  border: 1px solid var(--line); border-radius: var(--r-l); corner-shape: var(--corner);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s;
}
.pstep::before {
  content: counter(p);
  grid-row: 1 / span 3;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 15px; corner-shape: var(--corner);
  background: rgb(var(--hue) / .14); border: 1px solid rgb(var(--hue) / .5);
  font: 600 20px/1 var(--voice); color: var(--hue-t);
  transition: background-color .3s, color .3s;
}
.pstep.filled { border-color: rgb(var(--hue) / .38); }
.pstep.filled::before { background: rgb(var(--hue)); color: #120a26; }
.pstep > * { grid-column: 2; margin: 0; }
.pstep h3 { font-size: clamp(20px, 1.8vw, 24px); }
.pstep .hint { color: var(--ink-3); font-size: 15.5px; }
.pstep .pairs { display: grid; gap: 10px; }
.pstep .pair { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 620px) {
  .pstep { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .pstep::before { grid-row: auto; width: 40px; height: 40px; font-size: 17px; border-radius: 13px; }
  .pstep > * { grid-column: 1; }
  .pstep .pair { grid-template-columns: minmax(0, 1fr); }
}
.plan-bar {
  position: sticky; bottom: calc(var(--dock) + 8px); z-index: 5;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-top: 24px; padding: 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); corner-shape: var(--corner);
  background: rgba(8, 14, 38, .97);
  box-shadow: 0 -18px 40px -24px rgba(0, 0, 0, .9);
}
.plan-bar .kept { margin-left: auto; }
@media (max-width: 760px) { .plan-bar { position: static; } .plan-bar .kept { margin-left: 0; flex: 1 1 100%; } }
.pv { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #040817; color: var(--ink); }
.pv[open] { display: flex; flex-direction: column; }
.pv::backdrop { background: #040817; }
.pv-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px var(--gut); border-bottom: 1px solid var(--line); }
.pv-count { font: 600 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.pv-main { flex: 1; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 32px var(--gut); }
.pv-card { width: 100%; max-width: 720px; }
.pv-card h2 { font-size: clamp(30px, 4.4vw, 52px); margin-bottom: 22px; }
.pv-card .pv-text { font-size: clamp(20px, 2vw, 25px); line-height: 1.55; color: var(--ink); white-space: pre-line; }
.pv-card .pv-empty { color: var(--ink-3); font-size: 18px; }
.pv-card .pv-calls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 22px; }
/* a call button in the plan carries the person's own words: the name wraps, the number stays whole */
/* (two classes, to outrank the rule that keeps every phone link on one line) */
.pv-calls .pv-call { display: block; white-space: normal; text-align: left; line-height: 1.35; overflow-wrap: anywhere; }
.pv-calls .pv-call .pv-num { white-space: nowrap; }
.pv-hint { margin: -2px 0 4px; font-size: 15.5px; line-height: 1.5; color: var(--ink-3); }
.pv-nav { display: flex; justify-content: space-between; gap: 12px; padding: 16px var(--gut) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }

/* ── where are you today: the stress continuum as a check ── */
.zones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.zone {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  min-height: 108px; padding: 18px 18px 16px; text-align: left;
  border: 1px solid rgb(var(--hue) / .4); border-radius: var(--r); corner-shape: var(--corner);
  background: linear-gradient(180deg, rgb(var(--hue) / .1), rgb(var(--hue) / .02));
  color: var(--ink);
  transition: transform .25s var(--ease), border-color .2s, background-color .2s;
}
.zone:hover { transform: translateY(-2px); border-color: rgb(var(--hue) / .75); }
.zone i { width: 12px; height: 12px; border-radius: 50%; background: rgb(var(--hue)); box-shadow: 0 0 14px rgb(var(--hue) / .8); }
.zone b { font: 650 15px/1.1 var(--mono); letter-spacing: .14em; color: var(--hue-t); }
.zone span { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.zone[aria-pressed="true"] { border-color: rgb(var(--hue)); background: linear-gradient(180deg, rgb(var(--hue) / .26), rgb(var(--hue) / .08)); }
.zone-panel { margin-top: 16px; padding: 24px 26px; border: 1px solid rgb(var(--hue) / .5); border-radius: var(--r-l); corner-shape: var(--corner); background: rgb(var(--hue) / .07); animation: zone-in .4s var(--ease); }
@keyframes zone-in { from { opacity: 0; transform: translateY(8px); } }
.zone-panel h3 { color: var(--hue-t); margin-bottom: 10px; }
.zone-panel p { color: var(--ink-2); }
.zone-panel .ticks { margin: 12px 0 0; }
.zone-panel .btn-row { margin-top: 18px; }

/* ── laws and doctrine: a numbered item with two halves ── */
.laws { display: grid; gap: 18px; counter-reset: law; }
.law {
  position: relative; counter-increment: law;
  padding: clamp(24px, 2.8vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-l); corner-shape: var(--corner);
  background: linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.law::before {
  content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, rgb(var(--hue)), rgb(var(--hue) / 0));
}
.law-no { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.law-no b { font: 620 30px/1 var(--voice); letter-spacing: -.02em; color: rgb(var(--hue)); }
.law h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.15; margin-bottom: 12px; }
.law > p { color: var(--ink-2); }
.ledger { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.ledger > div { padding: 16px 18px; border-radius: var(--r); corner-shape: var(--corner); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.ledger h4 { margin: 0 0 6px; font: 600 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--hue-t); }
.ledger p { margin: 0; font-size: 16px; color: var(--ink-2); }
@media (max-width: 680px) { .ledger { grid-template-columns: minmax(0, 1fr); } }
.law .do { margin: 16px 0 0; padding-left: 16px; border-left: 2px solid var(--amber); color: var(--ink); font-size: 16.5px; }
.law .do b { color: var(--t-amber); font-family: var(--voice); font-weight: 600; }
.law .src { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.law .src a { color: var(--ink-3); text-decoration-color: rgba(170, 176, 216, .5); }
details.deep { margin-top: 14px; border-top: 1px solid var(--line); border-image: var(--feather) 1; }
details.deep summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0 0; font: 600 15px/1 var(--voice); color: var(--hue-t); }
details.deep summary::-webkit-details-marker { display: none; }
details.deep summary::after { content: "+"; font: 500 20px/1 var(--voice); transition: transform .3s var(--ease); }
details.deep[open] summary::after { transform: rotate(45deg); }
details.deep > div { padding: 8px 0 4px; color: var(--ink-2); font-size: 16.5px; }
details.deep > div p { color: var(--ink-2); }

/* the part headings inside a long page */
.part { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 22px; align-items: baseline; margin: 0 0 clamp(28px, 3vw, 40px); }
.part .pn { grid-row: span 2; font: 620 clamp(54px, 7vw, 96px)/.9 var(--voice); letter-spacing: -.04em; color: rgb(var(--hue) / .9); }
.part h2 { margin: 0; }
.part p { margin: 6px 0 0; color: var(--ink-2); font-size: clamp(17px, 1.3vw, 19px); max-width: 60ch; }

/* ── the triad: fragile, robust, antifragile ── */
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 800px) { .triad { grid-template-columns: minmax(0, 1fr); } }
.tri { padding: 24px 24px 22px; border: 1px solid var(--line); border-radius: var(--r-l); corner-shape: var(--corner); background: rgba(255, 255, 255, .03); }
.tri svg { width: 100%; height: auto; margin-bottom: 14px; }
.tri .ax { stroke: rgba(216, 226, 255, .2); stroke-width: 1; fill: none; }
.tri .cv { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.tri.fragile .cv { stroke: rgb(var(--c-coral)); }
.tri.robust .cv { stroke: rgb(var(--c-azure)); }
.tri.anti .cv { stroke: var(--amber); }
.tri h3 { margin-bottom: 8px; }
.tri p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tri.anti { border-color: rgb(var(--c-amber) / .45); background: linear-gradient(180deg, rgb(var(--c-amber) / .08), rgba(255, 255, 255, .02)); }

/* ── the incident clock: phases from the first hour to the first month ── */
.tl { position: relative; list-style: none; margin: 0; padding: 0; }
.tl::before { content: ""; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(180deg, rgb(var(--hue)), rgb(var(--c-ice) / .7) 55%, rgb(var(--c-green) / .5)); border-radius: 2px; }
.tl > li { position: relative; padding: 0 0 clamp(34px, 4vw, 52px) 54px; }
.tl > li:last-child { padding-bottom: 0; }
.tl > li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--night); border: 2px solid rgb(var(--hue)); box-shadow: 0 0 0 5px var(--night), 0 0 18px rgb(var(--hue) / .6); }
.tl-t { display: block; margin-bottom: 8px; font: 650 13px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--hue)); }
.tl h3 { font-size: clamp(23px, 2.2vw, 30px); margin-bottom: 12px; }
.tl p { color: var(--ink-2); }
.tl .ticks { margin-top: 12px; }
.tl .card { margin-top: 16px; }

/* ── field cards: pocket protocols that turn over ── */
.fcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
@media (max-width: 600px) { .fcs { grid-template-columns: minmax(0, 1fr); gap: 14px; } .fc-in { min-height: 340px; } }
.fc { position: relative; display: flex; perspective: 1400px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fc-in {
  position: relative; display: grid; flex: 1 1 auto; width: 100%; min-height: 380px;
  transform-style: preserve-3d; transition: transform .7s var(--ease);
}
.fc.flip .fc-in { transform: rotateY(180deg); }
.fc-face {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px;
  padding: 24px 24px 22px;
  border: 1px solid rgb(var(--hue) / .38); border-radius: var(--r-l); corner-shape: var(--corner);
  background:
    radial-gradient(130% 80% at 50% 0%, rgb(var(--hue) / .16), transparent 60%),
    linear-gradient(180deg, #0c1638, #070d26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 60px -34px rgba(0, 0, 0, .95);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.fc-back { transform: rotateY(180deg); }
/* the face you can see is the one you touch (Safari hit-tests a hidden back face) */
.fc:not(.flip) .fc-back, .fc.flip .fc-front { pointer-events: none; }
.fc-k { display: flex; justify-content: space-between; font: 600 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.fc-k b { color: rgb(var(--hue)); font-weight: 650; }
.fc-glyph { width: 132px; height: auto; margin: 18px 0 6px -10px; }
.fc-t { margin: auto 0 0; font: 640 clamp(30px, 3vw, 38px)/1.02 var(--voice); letter-spacing: -.025em; color: var(--ink); }
/* card 03's number on one line: cards.js gives its width in ems as --fit; the face is the container */
.fc-face { container-type: inline-size; }
.fc-t[data-fit] { white-space: nowrap; font-size: min(clamp(30px, 3vw, 38px), calc(100cqi / var(--fit))); }
.fc-s { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.45; }
.fc-turn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; margin: 2px 0 -10px; padding: 0 2px; border: 0; background: none; font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hue-t); }
.fc-back .fc-turn { margin-top: 0; }
.fc-back h3 { font-size: 20px; color: var(--hue-t); }
.fc-back ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; counter-reset: f; }
.fc-back li { counter-increment: f; position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.45; color: var(--ink); }
.fc-back li::before { content: counter(f); position: absolute; left: 0; top: 0; font: 600 13px/1.8 var(--mono); color: rgb(var(--hue)); }
.fc-back .fc-src { margin-top: auto; font-size: 12.5px; color: var(--ink-3); }
.fc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fc-acts .btn { min-height: 44px; padding: 9px 14px; font-size: 14.5px; border-radius: 13px; }

/* ── the loop: how this gets better ── */
.loop-fig { width: 100%; max-width: 560px; justify-self: center; overflow: visible; }
.loop-fig .lp { fill: none; stroke: rgb(var(--hue) / .35); stroke-width: 1.6; }
.loop-fig .lp-dot { fill: var(--amber); }
.loop-fig .st { fill: var(--night); stroke: rgb(var(--hue)); stroke-width: 2; }
.loop-fig text { font: 600 13px/1 var(--mono); letter-spacing: .12em; fill: var(--ink-2); text-transform: uppercase; }
.loop-fig .run { transform-box: view-box; transform-origin: 280px 280px; animation: loop-run 24s linear infinite; }
@keyframes loop-run { to { transform: rotate(360deg); } }
.versions { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.versions li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 22px; padding: 18px 0; border-top: 1px solid var(--line); border-image: var(--feather) 1; }
.versions li b { font: 600 14px/1.4 var(--mono); letter-spacing: .06em; color: var(--hue-t); }
.versions li p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
@media (max-width: 600px) { .versions li { grid-template-columns: minmax(0, 1fr); } }

/* ── partners: two sides of one fit ── */
.fit-head, .fit-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; }
.fit-head { padding-bottom: 12px; font: 600 12.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.fit-head span:first-child { color: var(--t-ice); }
.fit-head span:last-child { color: var(--t-azure); }
.fit-row { padding: 16px 0; position: relative; }
.fit-row::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgba(216, 226, 255, .18), rgba(216, 226, 255, .1) 80%, transparent); }
.fit-row p { margin: 0; color: var(--ink-2); font-size: 16.5px; }
.fit-tag { display: none; }
@media (max-width: 700px) {
  .fit-head { display: none; }
  .fit-row { grid-template-columns: minmax(0, 1fr); }
  .fit-tag { display: block; margin-bottom: 4px; font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
}
.meet { width: 100%; max-width: 520px; justify-self: center; overflow: visible; }
.meet .m-a { fill: none; stroke: rgb(var(--c-ice) / .5); stroke-width: 1.2; }
.meet .m-b { fill: none; stroke: rgb(var(--c-azure) / .5); stroke-width: 1.2; }
.meet .m-bridge { fill: none; stroke: var(--amber); stroke-width: 2.4; stroke-linecap: round; animation: b-hold 6s ease-in-out infinite; }
.meet .m-bridge.l2 { animation-delay: -2s; } .meet .m-bridge.l3 { animation-delay: -4s; }
.meet .m-n { fill: rgb(var(--c-pearl) / .55); }
.meet .al-meet { fill: #fff3dc; }

/* the privacy line */
.sends { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.sends .zero { font: 620 clamp(84px, 11vw, 150px)/.9 var(--voice); letter-spacing: -.045em; color: var(--t-ice); }
@media (max-width: 640px) { .sends { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* role chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 11px 18px;
  border: 1px solid var(--line-2); border-radius: 999px;
  text-decoration: none; font: 500 15.5px/1 var(--voice); color: var(--ink);
  background: rgba(255, 255, 255, .03);
  transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: rgb(var(--hue) / .7); background: rgb(var(--hue) / .1); }

/* a row that scrolls sideways on a phone and sits as a grid on a desk */
.rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) {
  .rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 4px var(--gut) 14px; scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
}

/* the big statement bands */
.statement { font: 620 clamp(32px, 4.6vw, 64px)/1.08 var(--voice); letter-spacing: -.03em; text-wrap: balance; max-width: 22ch; }
.statement em { font-style: normal; color: rgb(var(--hue)); }
.his-close { margin: 0; font: 600 clamp(26px, 3.2vw, 42px)/1.18 var(--voice); letter-spacing: -.015em; color: var(--t-violet); text-wrap: balance; }
.phead h1.his-h1 { max-width: 20ch; font-size: clamp(38px, 5vw, 68px); }
/* on a tablet or desk his line breaks into three lines, so the head's figure has room beside it */
@media (min-width: 761px) { .phead h1.his-h1 { max-width: 16ch; } }

/* ── sources ── */
.sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.sources a { color: var(--ink-2); }
.cite { font-size: .84em; color: var(--ink-3); }
.cite a { color: var(--ink-3); text-decoration-color: rgba(170, 176, 216, .5); }

/* ── footer ── */
.foot { padding: 64px 0 40px; background: #030716; border-top: 1px solid var(--line); border-image: var(--feather) 1; }
.foot-help {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px;
  padding: 20px 24px; margin-bottom: 56px;
  border: 1px solid rgb(var(--c-amber) / .35); border-radius: var(--r); corner-shape: var(--corner);
  background: rgb(var(--c-amber) / .06);
}
.foot-help > p { margin: 0; flex: 0 1 auto; color: var(--ink); font-size: 16px; }
.foot-help b { font-family: var(--voice); font-weight: 600; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand .his { margin: 0 0 6px; font: 600 17px/1.4 var(--voice); color: var(--t-violet); max-width: 28ch; }
.foot-brand .by { margin: 0; font: 500 14px/1.4 var(--voice); color: var(--ink-3); }
.foot h2 { margin: 0 0 12px; font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot ul a { display: inline-block; padding: 7px 0; text-decoration: none; color: var(--ink-2); font-size: 15.5px; }
.foot ul a:hover { color: var(--ink); }
.foot-note { margin: 44px 0 0; padding-top: 22px; border-top: 1px solid var(--line); border-image: var(--feather) 1; font-size: 14px; color: var(--ink-3); }
.foot-note a { color: var(--ink-3); }

/* ── dialogs: the menu and the help sheet ── */
dialog { color: var(--ink); }
dialog:focus, dialog:focus-visible { outline: none; }
dialog::backdrop { background: rgba(2, 5, 16, .74); }
.sheet, .help {
  width: min(580px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  margin: 0 0 0 auto; padding: 0; border: 0;
  background: #060c24; border-left: 1px solid var(--line-2);
}
.sheet[open], .help[open] { display: flex; flex-direction: column; animation: sheet-in .38s var(--ease); }
@keyframes sheet-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--top); padding: 0 calc(var(--gut) - 6px) 0 var(--gut); border-bottom: 1px solid var(--line); border-image: var(--feather) 1; }
.sheet-top h2 { font-size: 20px; letter-spacing: -.01em; }
.x {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 14px; corner-shape: var(--corner); background: transparent; color: var(--ink);
}
.x:hover { background: rgba(255, 255, 255, .07); }
.x svg { width: 22px; height: 22px; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px var(--gut) 28px; }
.sheet-group + .sheet-group { margin-top: 18px; }
.sheet-g { margin: 6px 0 4px; font: 600 12px/1.2 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.sheet-nav { list-style: none; margin: 0; padding: 0; }
.sheet-nav li a {
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 2px 16px;
  padding: 14px 4px; border-bottom: 1px solid var(--line); border-image: var(--feather) 1; text-decoration: none;
}
.sheet-nav .dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--hue)); box-shadow: 0 0 12px rgb(var(--hue) / .7); }
.sheet-nav b { font: 600 19px/1.2 var(--voice); letter-spacing: -.01em; }
.sheet-nav span { grid-column: 2; font-size: 14.5px; color: var(--ink-3); line-height: 1.4; }
.sheet-nav .arr { grid-row: 1 / span 2; grid-column: 3; color: var(--ink-3); }
.sheet-nav a[aria-current="page"] b { color: var(--hue-t); }
.sheet .small { margin-top: 22px; }
.help-danger {
  margin: 0 0 16px; padding: 16px 18px;
  border: 1px solid rgb(var(--c-coral) / .5); border-radius: 16px; corner-shape: var(--corner);
  background: rgb(var(--c-coral) / .08); font-size: 16px; color: var(--ink);
}
.help-danger b { font-family: var(--voice); font-weight: 600; color: var(--t-coral); }
.help .help-more { margin-top: 22px; }
.help .help-steps { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: h; }
.help .help-steps li { counter-increment: h; position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; }
.help .help-steps li::before { content: counter(h); position: absolute; left: 0; top: 0; font: 600 14px/1.7 var(--mono); color: var(--t-amber); }
.help h3 { margin: 26px 0 4px; font-size: 18px; }
@media (max-width: 600px) {
  .sheet, .help { width: 100vw; border-left: 0; }
  .sheet[open], .help[open] { animation-name: sheet-up; }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ── arrivals (only once the script has run) ── */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ── small things ── */
.center { text-align: center; }
.center-row { justify-content: center; }
.prose > .lede { max-width: none; margin-bottom: 18px; }
.prose p { color: var(--ink-2); }
.prose .ticks { margin-top: 6px; }
.note { font-size: 15px; color: var(--ink-3); }
.offline-note { margin: 0 0 18px; color: var(--ink-2); }
/* the Home Screen section on Your Plan */
.home-steps { margin: 4px 0 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-2); }
.home-steps li { padding-left: 4px; }
.home-move { margin-top: 18px; }
.home-way .btn { margin-top: 14px; }
.home-also { margin-top: 14px; }
.home-done, .home-said { margin-top: 14px; color: var(--ink); }
.home-said:empty { display: none; }
.home-code { margin-top: 14px; width: 100%; min-height: 84px; font: 500 14px/1.4 var(--mono); }
.lab { display: block; font: 600 15px/1.3 var(--voice); color: var(--ink); }
.his-line { margin: 22px 0 0; font: 600 16.5px/1.4 var(--voice); color: var(--t-violet); max-width: 34ch; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); corner-shape: var(--corner); background: rgba(255, 255, 255, .025); cursor: pointer; transition: border-color .2s, background-color .2s; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: rgb(var(--hue)); }
.check span { font-size: 16px; color: var(--ink-2); line-height: 1.45; }
.check b { color: var(--ink); font-family: var(--voice); font-weight: 600; }
.check:has(input:checked) { border-color: rgb(var(--hue) / .6); background: rgb(var(--hue) / .08); }
.chip[aria-checked="true"] { border-color: rgb(var(--hue)); background: rgb(var(--hue) / .16); }
.lock-prev { justify-self: center; width: min(100%, 320px); }
.lock-prev canvas { width: 100%; height: auto; border-radius: 36px; corner-shape: var(--corner); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95); }
.kbd { font: 600 13px/1 var(--mono); padding: 3px 6px; border: 1px solid var(--line-2); border-radius: 6px; }

/* ── the line for people who served, under the visitor's own line ── */
.ml-served .ml-name b { font-family: var(--voice); font-weight: 600; color: var(--t-amber); }
.ml-served .ml-num { font-size: clamp(26px, 3vw, 34px); }
.myline.compact .ml-served .ml-num { font-size: 26px; }

/* ── volunteer: three ways in, trainings, groups, the night and its poster ── */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 680px) { .ways { grid-template-columns: minmax(0, 1fr); } }
.way {
  display: grid; grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 12px;
  padding: 12px 16px 12px 6px;
  border: 1px solid rgb(var(--hue) / .3); border-radius: var(--r); corner-shape: var(--corner);
  background: linear-gradient(180deg, rgb(var(--hue) / .08), rgb(var(--hue) / .02));
  text-decoration: none; transition: transform .3s var(--ease), border-color .2s;
}
.way:hover { transform: translateY(-2px); border-color: rgb(var(--hue) / .6); }
.way .fig { grid-row: 1 / span 2; width: 78px; height: auto; }
.way b { align-self: end; font: 600 19px/1.2 var(--voice); letter-spacing: -.01em; }
.way span { align-self: start; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.trains, .orgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 680px) { .trains, .orgs { grid-template-columns: minmax(0, 1fr); } }
.train, .org {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px 18px;
  border: 1px solid var(--line); border-radius: var(--r); corner-shape: var(--corner);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  text-decoration: none; transition: transform .3s var(--ease), border-color .2s;
}
.train:hover, .org:hover { transform: translateY(-2px); border-color: rgb(var(--hue) / .55); }
.train b, .org b { font: 600 19px/1.2 var(--voice); letter-spacing: -.01em; color: var(--ink); }
.train > span:last-child, .org > span:last-child { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.t-len, .org .k { font: 600 12px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hue-t); }
.ros { list-style: none; margin: 10px 0 0; padding: 0; }
.ros li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 14px; padding: 11px 0; position: relative; }
.ros li + li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, rgb(var(--hue) / .3), transparent 90%); }
.ros b { font: 600 14px/1.55 var(--mono); letter-spacing: .02em; color: var(--hue-t); }
.ros p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 520px) { .ros li { grid-template-columns: minmax(0, 1fr); } }
.poster { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.poster-prev canvas { width: 100%; height: auto; border-radius: 18px; corner-shape: var(--corner); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -36px rgba(0, 0, 0, .95); }
.poster-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 620px) {
  .poster { grid-template-columns: minmax(0, 1fr); }
  .poster-prev { width: min(100%, 300px); justify-self: center; }
  .poster-acts { align-items: stretch; }
}
.pull { position: relative; margin: 30px 0; padding: 4px 0 4px 28px; }
.pull::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, rgb(var(--hue)), rgb(var(--hue) / 0)); }
.pull blockquote { margin: 0; }
.pull p { margin: 0; font: 620 clamp(27px, 3vw, 40px)/1.15 var(--voice); letter-spacing: -.022em; color: var(--ink); text-wrap: balance; }
.pull figcaption { margin-top: 14px; font: 600 12.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hue-t); }
.pull figcaption a { color: inherit; text-decoration-color: rgb(var(--hue) / .6); }
.team-head { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: center; margin-bottom: 8px; }
.team-head h2 { margin-bottom: 14px; }
.team-head p { color: var(--ink-2); }
.team-fig { width: 100%; height: auto; }
@media (max-width: 620px) { .team-head { grid-template-columns: minmax(0, 1fr); } .team-head > .rv { width: 200px; justify-self: center; order: -1; } }
.rt-fig { width: 92px; height: auto; margin: -10px 0 -4px -12px; }
.card .rt-fig { margin: -14px 0 2px -14px; }
.home-fig { justify-self: center; width: min(100%, 440px); }
.home-fig .fig { width: 100%; height: auto; }

/* ── the night beacon: late at night, Help Now carries a slow light ──
   The light breathes at about six breaths a minute, in for four seconds and
   out for six, so anyone looking at it can breathe with it. */
.btn-help, .dock-help { position: relative; }
.t-night .btn-help::after, .t-night .dock-help::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; corner-shape: var(--corner); pointer-events: none;
  box-shadow: 0 0 0 1px rgb(var(--c-amber) / .8), 0 0 34px 6px rgb(var(--c-amber) / .5);
  opacity: .25; animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* your line breathes the same light where it stands in full */
.myline.full .ml::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; corner-shape: var(--corner); pointer-events: none;
  box-shadow: 0 0 0 1px rgb(var(--c-amber) / .55), 0 0 64px 4px rgb(var(--c-amber) / .26);
  opacity: .25; animation: breathe 10s ease-in-out infinite;
}

/* late at night the page heads move slower */
.t-night .js .band .f-seam, .t-night.js .band .f-seam { animation-duration: .5s, 12s; }

/* the lantern: on a desk, the lattice in a page head lights around the pointer.
   sm.js clones the head's net into .band-glow and moves the light. */
.band-glow { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease);
  -webkit-mask-image: radial-gradient(circle 230px at var(--lx, -400px) var(--ly, -400px), #000 0, rgba(0, 0, 0, .4) 45%, transparent 100%);
  mask-image: radial-gradient(circle 230px at var(--lx, -400px) var(--ly, -400px), #000 0, rgba(0, 0, 0, .4) 45%, transparent 100%); }
.band.lit .band-glow { opacity: 1; }
.band-glow svg { width: 100%; height: 100%; max-width: none; }
.band-glow .f-net { stroke: rgb(var(--hue) / .78); stroke-width: 1.3; }
.band-glow .f-dot { stroke: #fff; stroke-width: 4; }
.band-glow :is(.f-soft, .f-hue, .f-ice, .f-pink, .f-violet, .f-ghost, .f-seam, .f-n, .f-halo, .f-core) { display: none; }
.js .band-glow .f-net, .js .band-glow .f-dot { opacity: 1; animation: none; }

/* for people who ask their device for more contrast */
@media (prefers-contrast: more) {
  :root { --ink-2: #eceefc; --ink-3: #d3d7f2; --line: rgba(216, 226, 255, .32); --line-2: rgba(226, 232, 255, .5); }
  .card, .law, .pstep, .train, .org, .way, .zone, .route { border-color: rgba(226, 232, 255, .45); }
  .f-net { stroke: rgb(var(--hue) / .3); }
  .cite, .cite a, .note, .muted { color: var(--ink-2); }
}

/* ── Quiet Night (10.0): one night, one light, and less of everything else ──
   A label above a heading is one word in the page's colour, with no dot, number or rule. Small labels are set in
   the voice face in sentence case, with no wide capitals. A rim stays on the things that are objects (the line
   card, a pocket card, a field you type in); doors, notes and promises sit on the night itself. These rules come
   last so they win over the ones they retire. */
.eye::before { content: none; }
.eye .no, .eye .no + span::before { display: none; }
.eye { gap: 0; margin-bottom: 16px; color: rgb(var(--hue)); }
:is(.card .k, .route .no, .ml-where, .toc p, .pv-count, .zone b, .law-no, .ledger h4, .tl-t, .fc-k, .fc-turn, .fit-head, .fit-tag, .foot h2, .sheet-g, .t-len, .org .k, .pull figcaption, .phead .meta, .loop-fig text) { font-family: var(--voice); font-weight: 500; letter-spacing: normal; text-transform: none; }
:is(.card .k, .route .no, .ml-where, .toc p, .law-no, .ledger h4, .fc-k, .fit-tag, .foot h2, .sheet-g, .t-len, .org .k) { font-size: 13px; }
.phead .meta { gap: 6px 18px; font-size: 14px; }
/* the layer a page belongs to: its ring and its name, and no box */
.layer, .layer:hover { background: none; }
.layer { padding-left: 0; padding-right: 14px; }
.layer:hover { color: var(--ink); }
/* cards: a hairline and a breath of light; the lit rim stays where the card is a door */
.card { border-color: rgb(196 206 255 / .1); background: rgb(255 255 255 / .026); box-shadow: none; }
.card.lit { border-color: rgb(var(--hue) / .24); }
.myline .ml { border-color: rgb(var(--c-amber) / .42); background: rgb(var(--c-amber) / .05); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); }
.ml-where span { border-radius: 9px; corner-shape: var(--corner); }
/* a number with its source: the number carries it, with no bar and no wash */
.evidence { padding: 0; border-left: 0; background: none; border-radius: 0; }
.evidence + .evidence { margin-top: 26px; }
/* the four zones: a name, a line, and the zone's colour at the rim */
.zone { border-color: rgb(var(--hue) / .26); background: rgb(var(--hue) / .045); }
.zone i { display: none; }
.zone b { font-size: 18px; }
.zone[aria-pressed="true"] { border-color: rgb(var(--hue) / .9); background: rgb(var(--hue) / .14); }
.zone-panel { border-color: rgb(var(--hue) / .3); background: rgb(var(--hue) / .05); }
/* promises: four plain lines with a mark, and no tiles */
.promise { padding: 14px 0; border-radius: 0; background: none; border-top: 1px solid var(--line); border-image: var(--feather) 1; }
.promise-grid { gap: 0 28px; }
/* chips are squircles, like every other control */
.chip { border-radius: 15px; corner-shape: var(--corner); border-color: rgb(196 206 255 / .16); background: none; }
.callout { border-color: rgb(var(--hue) / .26); background: rgb(var(--hue) / .05); }
.foot-help { border-color: rgb(var(--c-amber) / .24); background: rgb(var(--c-amber) / .04); }
/* the dock: three controls on one soft bar, with no outline */
@media (max-width: 760px) {
  .dock { border: 0; background: rgb(7 12 34 / .94); box-shadow: 0 18px 40px -18px rgb(0 0 0 / .9); }
  .dock-help { box-shadow: 0 10px 26px -14px rgb(253 194 111 / .6); }
}

/* doors elsewhere (About, the 404): the lit rim stays, the wash goes */
.route { background: rgb(var(--hue) / .03); border-color: rgb(var(--hue) / .2); box-shadow: none; }
.route .no { font-size: 13px; }
/* the four layers on home: four rows, each a door, with the pages that belong to it beside it */
.lyrs { list-style: none; margin: 0; padding: 0; }
.lyr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 32px; padding: 20px 0; border-top: 1px solid var(--line); border-image: var(--feather) 1; }
.lyrs .lyr-door { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 0 18px; min-height: 72px; text-decoration: none; color: var(--ink); }
.lyr-door .glyph { width: 44px; height: 44px; color: rgb(var(--hue)); }
.lyr-door .no { display: block; font: 500 13px/1.3 var(--voice); letter-spacing: normal; color: rgb(var(--hue)); }
.lyr-door h3 { margin: 2px 0 3px; font-size: clamp(21px, 2vw, 26px); line-height: 1.2; }
.lyr-d { display: block; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.lyr-door .arr { justify-self: end; font-size: 20px; color: rgb(var(--hue)); transition: transform .3s var(--ease); }
.lyr-door:hover .arr { transform: translateX(4px); }
.lyr-also { margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
.lyrs .lyr-also a { display: inline-flex; align-items: center; min-height: 44px; font: 500 15px/1.2 var(--voice); color: var(--hue-t); text-decoration: none; }
.lyrs .lyr-also a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .lyr { grid-template-columns: minmax(0, 1fr); padding: 14px 0 6px; }
  .lyrs .lyr-door { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 14px; }
  .lyr-also { justify-content: flex-start; padding-left: 58px; }
}
/* the home page closes on one invitation, with three quiet links under it */
.home-close .lede { max-width: 54ch; }
.close-also { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 0 28px; }
.close-also a { display: inline-flex; align-items: center; min-height: 44px; font: 500 15.5px/1.2 var(--voice); }
/* the shield: four fine lines of light and a soft bloom behind each. It keeps the ground's clock (ground.js sets
   --breath): when the wave leaves the light, each ring answers as it passes, from the inside out. */
.fig-shield :is(.f-violet, .f-pink, .f-ice, .f-amber) { stroke-width: 1.7; }
.fig-shield .f-glow { stroke-width: 8; stroke-opacity: .12; }
.fig-shield .f-neon { stroke-width: .7; stroke: rgb(255 250 244 / .78); }
.js .fig-shield .f-glow { animation: sh-in 1.2s var(--ease) forwards, sh-answer 10s linear infinite; }
/* each ring is brightest as the ground's ring passes it (ground.js sets --k1 to --k4 from the lattice step) */
.js .fig-shield .f-glow.f-violet { animation-delay: .2s, calc(var(--breath, 0s) + var(--k1, .1s)); }
.js .fig-shield .f-glow.f-pink { animation-delay: .45s, calc(var(--breath, 0s) + var(--k2, .32s)); }
.js .fig-shield .f-glow.f-ice { animation-delay: .7s, calc(var(--breath, 0s) + var(--k3, .54s)); }
.js .fig-shield .f-glow.f-amber { animation-delay: .95s, calc(var(--breath, 0s) + var(--k4, .76s)); }
.t-night .js .fig-shield .f-glow, .t-night.js .fig-shield .f-glow { animation-duration: 1.2s, 16s; }
@keyframes sh-answer { 0%, 24%, 100% { stroke-opacity: .12; } 5% { stroke-opacity: .55; } }
.js .fig-shield .f-halo { animation: f-in .8s var(--ease) both, sh-light 10s ease-in-out var(--breath, 0s) infinite; }
@keyframes sh-light { 0%, 18%, 100% { transform: scale(1.3); } 3% { transform: scale(2.05); } }
.t-night .js .fig-shield .f-halo, .t-night.js .fig-shield .f-halo { animation-duration: .8s, 16s; }
.layers-sec:has(.lyr .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow { opacity: 1; }
.layers-sec:has(.lyr.h-violet .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-violet,
.layers-sec:has(.lyr.h-pink .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-pink,
.layers-sec:has(.lyr.h-ice .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-ice,
.layers-sec:has(.lyr.h-amber .lyr-door:is(:hover, :focus-visible)) .fig-shield .f-glow.f-amber { animation: none; opacity: 1; stroke-opacity: .5; }
/* the four zones keep their names in capitals, as the Navy writes them: in this face a capital I beside two
   small l's reads as a numeral */
.zone b { font: 600 13.5px/1.2 var(--voice); letter-spacing: .08em; text-transform: uppercase; }
/* the menu: a page is its name and one line; the colour shows on the page you are on */
.sheet-nav .dot { display: none; }
.sheet-nav li a { grid-template-columns: minmax(0, 1fr) auto; }
.sheet-nav span { grid-column: 1; }
.sheet-nav .arr { grid-column: 2; }
/* moving from home to a page, the shield becomes that page's figure: both carry the same name */
.hero-shield .fig-stack { view-transition-name: band; }
::view-transition-old(band), ::view-transition-new(band) { object-fit: contain; }
/* the shield's legend: four words in one row, each in its ring's colour */
.sh-legend span::before { content: none; }
@media (max-width: 900px) {
  .sh-legend { grid-template-columns: repeat(4, auto); gap: 0 16px; font-size: 13.5px; }
  /* the rings fill the figure now, so the legend takes its own row under them */
  .hero-shield .fig-stack { height: calc(100% - 30px); }
}
@media (min-width: 901px) { .hero-shield .sh-legend { margin-top: -14px; } }
@media (max-width: 360px) { .sh-legend { gap: 0 10px; font-size: 13px; } }
/* ── the worry-time tool (Anxiety And Stress) and the agreement tool (Team Agreement) ── */
.worry-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 18px; }
.worry-list { list-style: none; margin: 14px 0 0; padding: 0; }
.worry-list:empty { display: none; }
.worry-list li, .pact-own { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 4px 0; border-top: 1px solid var(--line); border-image: var(--feather) 1; color: var(--ink); }
.worry-done { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; corner-shape: var(--corner); background: none; color: var(--hue-t); font: 600 14.5px/1 var(--voice); }
.worry-done:hover { background: rgb(var(--hue) / .1); }
.tool .result { margin-top: 14px; }
/* the decision log: each decision above its state, its buttons on their own row */
.dlog-add { margin-top: 6px; }
.dlog-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 12px 0 6px; }
.dlog-body { display: grid; gap: 4px; }
.dlog-what { color: var(--ink); font-weight: 600; }
.dlog-meta { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.dlog-acts { display: flex; flex-wrap: wrap; gap: 0 4px; margin-left: -14px; }
.pact-lines { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.pact-lines legend { padding: 0; margin-bottom: 8px; font: 600 15px/1.3 var(--voice); color: var(--ink); }
.pact-line { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 4px 10px; margin: 0; padding: 10px 0; color: var(--ink); line-height: 1.5; border-top: 1px solid var(--line); border-image: var(--feather) 1; cursor: pointer; }
.pact-line input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; accent-color: rgb(var(--hue)); cursor: pointer; }
/* the decision line holds a menu, so its tick has a label of its own, as tall as a thumb */
.pact-tick { display: block; height: 44px; margin: -10px 0; padding-top: 10px; cursor: pointer; }
.pact-line select { display: inline-block; width: auto; min-height: 44px; margin: 2px 4px; padding: 6px 34px 6px 12px; vertical-align: middle; }
.pact-line input[type="date"] { display: inline-block; width: auto; min-height: 44px; margin: 2px 4px; padding: 6px 10px; vertical-align: middle; }
.pact-own { grid-template-columns: minmax(0, 1fr) auto; padding: 4px 0 4px 38px; cursor: default; }
.pact-fixed, .pact-date { cursor: default; }
.pact-lock { width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; corner-shape: var(--corner); background: rgb(var(--hue) / .16); box-shadow: inset 0 0 0 1px rgb(var(--hue) / .45); }
.pact-lock::after { content: ""; display: block; width: 8px; height: 4px; margin: 6px auto 0; border: solid rgb(var(--hue)); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.pact-out { margin: 20px 0 0; padding: 18px 20px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 15px/1.6 var(--font); color: var(--ink); background: rgb(3 7 22 / .55); border-radius: 16px; corner-shape: var(--corner); box-shadow: inset 0 0 0 1px var(--line); }
.pact-print { margin: 14px 0 4px; font: 600 14px/1.4 var(--voice); color: var(--ink-2); }
.pact-print code { margin-left: 8px; font: 500 14px/1.4 var(--mono); letter-spacing: .04em; color: var(--hue-t); }
@media (max-width: 520px) { .worry-add { grid-template-columns: minmax(0, 1fr); } .worry-add .btn { justify-self: start; } }

/* ── print: the plan, and the field cards, on paper ── */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #111 !important; font-size: 12pt; padding: 0 !important; }
  .top, .dock, .foot, .skip, .no-print, dialog, template, .plan-bar, .toc, .phead .btn-row, .evidence, .band { display: none !important; }
  .phead { padding: 0 0 12pt; overflow: visible; }
  .phead h1 { font-size: 24pt; color: #111; }
  .phead .lede, .muted, .hint { color: #333 !important; }
  .sec, .doc-body > section { padding: 0 !important; }
  .doc { display: block; }
  .pstep { break-inside: avoid; border: 1px solid #999; background: none; box-shadow: none; color: #111; padding: 10pt; margin-bottom: 8pt; display: block; }
  .pstep::before { display: none; }
  .pstep h3 { color: #111; font-size: 14pt; margin-bottom: 4pt; }
  .pstep .hint { display: none; }
  input, textarea { border: 0 !important; background: none !important; color: #111 !important; padding: 0 !important; min-height: 0 !important; box-shadow: none !important; }
  textarea { resize: none; }
  .print-only { display: block !important; }
  body[data-page="plan"] main > :not(#plan) { display: none !important; }
  body[data-page="plan"] #plan .plan { display: none !important; }
  .plan-print { white-space: pre-wrap; font: 12pt/1.55 var(--font); color: #111; margin: 0; }
  body[data-page="cards"] main > :not(#deck) { display: none !important; }
  body[data-page="cards"] .fcs { display: grid; grid-template-columns: 63mm 63mm; gap: 4mm 4mm; justify-content: center; }
  body[data-page="cards"] .fc { break-inside: avoid; perspective: none; display: contents; }
  body[data-page="cards"] .fc-in { display: contents; transform: none !important; }
  body[data-page="cards"] .fc-face { position: static; transform: none !important; width: 63mm; height: 88mm; min-height: 0; padding: 5mm; gap: 2mm; border: .3mm solid #888; border-radius: 3mm; background: #fff !important; box-shadow: none; color: #111; backface-visibility: visible; break-inside: avoid; }
  body[data-page="cards"] .fc-t { font-size: 17pt; color: #111; }
  body[data-page="cards"] .fc-t[data-fit] { font-size: min(17pt, calc(100cqi / var(--fit))); }
  body[data-page="cards"] .fc-s, body[data-page="cards"] .fc-back li, body[data-page="cards"] .fc-back h3 { color: #111; font-size: 8.5pt; }
  body[data-page="cards"] .fc-back h3 { font-size: 10pt; }
  body[data-page="cards"] .fc-k, body[data-page="cards"] .fc-src, body[data-page="cards"] .fc-turn, body[data-page="cards"] .fc-acts { color: #444; font-size: 6.5pt; }
  body[data-page="cards"] .fc-turn, body[data-page="cards"] .fc-acts { display: none; }
  body[data-page="cards"] .fc-glyph { width: 14mm; height: 14mm; margin: 2mm 0; }
  /* the deck prints alone: its cards sit inside .wrap, so the wrap stays and everything else in it goes */
  body[data-page="cards"] #deck { padding: 0 !important; }
  body[data-page="cards"] #deck > .wrap { display: block; max-width: none; padding: 0; }
  body[data-page="cards"] #deck > .wrap > :not(.fcs), body[data-page="cards"] #deck::before, body[data-page="cards"] #deck::after { display: none !important; }
  body.printing-out main > :not(#printOut) { display: none !important; }
  body.printing-out #printOut { display: block !important; }
  #printOut h2 { margin: 0 0 10pt; font: 600 18pt/1.2 var(--voice); color: #111; }
  #printOut pre { margin: 0; white-space: pre-wrap; font: 11.5pt/1.55 var(--font); color: #111; }
}
.print-only { display: none; }

/* ── stillness for people who ask for it ── */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .b-seam { opacity: .9; }
  .t-night .btn-help::after, .t-night .dock-help::after, .myline.full .ml::after { animation: none; opacity: .6; }
  .band-glow { display: none; }
}
