/* The Fiat Atlas — night chart edition.
   Ink, bone and vermilion. Fraunces for display and reading, Instrument Sans for interface, IBM Plex Mono for chart labels. */

:root {
  --ink: #0b0e13;
  --ink-2: #10151d;
  --ink-3: #171e29;
  --ink-4: #212a37;
  --bone: #efe8da;
  --bone-2: #cfc8b9;
  --muted: #958f84;
  --line: rgba(239, 232, 218, .11);
  --line-2: rgba(239, 232, 218, .22);
  --verm: #d8b46a;
  --verm-2: #ecd39c;
  --ultra: #8b8cff;
  --brass: #b3a68d;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bar: 72px;
  --gut: clamp(20px, 4.2vw, 72px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh;
  background: var(--ink); color: var(--bone);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.index-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--verm-2); }
:focus-visible { outline: 2px solid var(--verm); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--verm); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 380; letter-spacing: -.015em; line-height: 1.08; margin: 0 0 .5em; font-variation-settings: 'opsz' 96; text-wrap: balance; }
h1 em, h2 em, h3 em, blockquote em { font-style: italic; color: var(--verm); font-weight: 340; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 100; background: var(--verm); color: var(--ink); padding: 10px 16px; font-weight: 600; transform: translateY(-160%); transition: transform .2s; text-decoration: none; }
.skip:focus { transform: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Labels -------------------------------------------------------------- */
.kicker, .eyebrow, .meta {
  font: 500 11.5px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.kicker { display: flex; align-items: center; gap: 12px; color: var(--bone-2); }
.kicker span { color: var(--verm); }
.kicker span::after { content: ''; display: inline-block; width: 28px; height: 1px; background: currentColor; margin-left: 12px; vertical-align: middle; opacity: .7; }
.eyebrow { color: var(--verm); }
.eyebrow span { color: var(--bone); border: 1px solid var(--line-2); padding: 3px 8px; margin-right: 10px; }
.meta { margin-bottom: 10px; }
.small-note { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Header ------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 45; height: var(--bar); background: rgba(11, 14, 19, .86); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.topbar-inner { height: 100%; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand:hover { color: var(--bone); }
.brand .mark { width: 34px; height: 34px; fill: var(--bone); transition: transform .8s var(--ease); flex: none; }
.brand .mark circle { fill: none; stroke: var(--bone); stroke-width: 1.2; }
.brand .mark .mark-n { fill: var(--verm); }
.brand:hover .mark { transform: rotate(-30deg); }
.brand-text { display: grid; line-height: 1.05; }
.brand-word { font: 400 22px/1 var(--display); letter-spacing: -.015em; white-space: nowrap; }
.brand-sub { font: 400 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; white-space: nowrap; }
.topnav { justify-self: center; display: flex; gap: 4px; }
.topnav a { position: relative; padding: 8px 12px; font: 500 14.5px var(--sans); color: var(--bone-2); text-decoration: none; border-radius: 99px; transition: color .2s, background .2s; }
.topnav a:hover { color: var(--bone); background: rgba(239, 232, 218, .06); }
.topnav a[aria-current] { color: var(--bone); }
.topnav a[aria-current]::after { content: ''; position: absolute; left: 50%; bottom: -1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--verm); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-search { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--bone-2); transition: border-color .2s, color .2s; }
.top-search:hover { border-color: var(--bone); color: var(--bone); }
.menu-toggle { height: 42px; padding: 0 16px; border: 1px solid var(--line-2); background: transparent; border-radius: 99px; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.menu-toggle:hover { border-color: var(--bone); }
.menu-lines { display: grid; gap: 5px; }
.menu-lines i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-lines i:last-child { width: 12px; justify-self: end; }
.menu-toggle[aria-expanded="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.menu-toggle[aria-expanded="true"] .menu-lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines i:last-child { width: 18px; transform: translateY(-3.25px) rotate(-45deg); }
.menu-label { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.top-cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 99px; background: var(--bone); color: var(--ink); font: 600 14px var(--sans); text-decoration: none; white-space: nowrap; transition: background .2s; }
.top-cta:hover { background: var(--verm-2); color: var(--ink); }
.reading-progress { --progress: 0; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.reading-progress i { position: absolute; inset: 0; background: var(--verm); transform-origin: left; transform: scaleX(var(--progress)); }
.rail-motion { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--bone-2); background: none; cursor: pointer; padding: 0; }
.rail-motion .icon { width: 16px; height: 16px; }
.rail-motion:hover { border-color: var(--bone); color: var(--bone); }
.rail-motion .icon-play { display: none; }
.rail-motion[aria-pressed="true"] .icon-play { display: block; }
.rail-motion[aria-pressed="true"] .icon-pause { display: none; }
.rail-motion:disabled { opacity: .35; cursor: default; }

/* Index overlay ------------------------------------------------------- */
.index-overlay {
  position: fixed; inset: var(--bar) 0 0 0; z-index: 44; overflow-y: auto;
  background-color: var(--ink); visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
  background-image: repeating-linear-gradient(90deg, transparent 0 119px, rgba(239, 232, 218, .035) 119px 120px), repeating-linear-gradient(0deg, transparent 0 119px, rgba(239, 232, 218, .035) 119px 120px);
}
.index-overlay[data-open="true"] { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.index-inner { max-width: 1280px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gut) 48px; min-height: 100%; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: auto 1fr auto; gap: 24px 64px; }
.index-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.index-head .kicker { margin: 0; }
.index-close { background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 16px; cursor: pointer; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.index-close:hover { border-color: var(--bone); }
.index-primary { list-style: none; margin: 0; padding: 0; }
.index-primary a {
  display: grid; grid-template-columns: 64px 1fr; align-items: baseline; gap: 4px 12px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); text-decoration: none;
  transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease), color .2s;
}
.index-overlay[data-open="true"] .index-primary a { transform: none; opacity: 1; }
.index-primary li:nth-child(2) a { transition-delay: .04s; }
.index-primary li:nth-child(3) a { transition-delay: .08s; }
.index-primary li:nth-child(4) a { transition-delay: .12s; }
.index-primary li:nth-child(5) a { transition-delay: .16s; }
.ix-no { font: 400 13px var(--mono); color: var(--verm); letter-spacing: .1em; }
.ix-title { font: 330 clamp(38px, 6vw, 76px)/1 var(--display); letter-spacing: -.03em; font-variation-settings: 'opsz' 144; }
.ix-desc { grid-column: 2; font: 400 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.index-primary a:hover .ix-title, .index-primary a[aria-current] .ix-title { font-style: italic; color: var(--verm); }
.index-secondary { align-self: start; padding-top: 18px; }
.index-secondary ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.index-secondary li { break-inside: avoid; }
.index-secondary li a { display: block; padding: 9px 0; border-bottom: 1px dashed var(--line); text-decoration: none; font-size: 16px; }
.index-secondary li a[aria-current] { color: var(--verm); }
.index-foot { grid-column: 1 / -1; font: 400 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 18px; }

/* Buttons and links --------------------------------------------------- */
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.button { white-space: nowrap; max-width: 100%;
  display: inline-flex; align-items: center; gap: 14px; min-height: 50px; padding: 6px 6px 6px 24px; border-radius: 999px;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s;
}
button.button { padding-right: 24px; }
.button .btn-arrow { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-style: normal; transition: transform .35s var(--ease); }
.button.primary { background: var(--bone); color: var(--ink); }
.button.primary .btn-arrow { background: var(--ink); color: var(--bone); }
.button.primary:hover { background: var(--verm-2); color: var(--ink); }
.button.secondary { background: transparent; color: var(--bone); border-color: var(--line-2); }
.button.secondary .btn-arrow { border: 1px solid var(--line-2); }
.button.secondary:hover { border-color: var(--bone); color: var(--bone); background: rgba(239, 232, 218, .05); }
.button:hover .btn-arrow { transform: translateX(4px) rotate(-12deg); }
.button:disabled { opacity: .4; cursor: not-allowed; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font: 500 15px var(--sans); color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.text-link:hover { color: var(--verm); }

/* Hero: the crossing -------------------------------------------------- */
.crossing { position: relative; min-height: max(620px, calc(100svh - var(--bar))); overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 330px; grid-template-rows: 1fr auto auto; padding: 28px var(--gut) 22px; gap: 24px 40px; }
.chart { position: absolute; inset: 0; }
.chart-canvas { width: 100%; height: 100%; }
.chart--hero { z-index: -2; background: radial-gradient(ellipse at 60% 35%, #141c28 0, var(--ink) 70%); }
.crossing-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(10deg, rgba(11, 14, 19, .96) 8%, rgba(11, 14, 19, .72) 30%, rgba(11, 14, 19, 0) 58%), linear-gradient(180deg, rgba(11, 14, 19, .5), transparent 14%); }
.crossing-copy { grid-column: 1; grid-row: 1 / 3; max-width: 820px; align-self: end; }
.crossing-copy h1 { font-size: clamp(46px, 6.2vw, 104px); font-weight: 320; line-height: .93; letter-spacing: -.035em; margin: 0 0 22px; font-variation-settings: 'opsz' 144; }
.crossing-copy h1 em { display: block; padding-left: .9em; }
.intro { font-size: clamp(16px, 1.25vw, 19px); color: var(--bone-2); max-width: 540px; margin: 0; }
.crossing-copy .button-row { margin-top: 26px; }
.legend {
  grid-column: 2; grid-row: 1; align-self: start; position: relative;
  background: rgba(11, 14, 19, .78); border: 1px solid var(--line-2); padding: 18px 18px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.legend::before, .legend::after { content: ''; position: absolute; width: 10px; height: 10px; border: 1px solid var(--verm); }
.legend::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.legend::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.legend-head { display: flex; justify-content: space-between; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.legend-head span:first-child { color: var(--bone); }
.legend-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.legend-steps button { width: 100%; display: grid; grid-template-columns: 18px 28px 1fr; align-items: center; gap: 10px; text-align: left; background: none; border: 0; padding: 9px 6px; cursor: pointer; border-radius: 2px; transition: background .2s; }
.legend-steps button:hover { background: rgba(239, 232, 218, .05); }
.legend-steps button[aria-pressed="true"] { background: rgba(255, 91, 46, .1); }
.legend-steps button[aria-pressed="true"] .lg-name, .legend-steps button[aria-pressed="true"] .lg-no { color: var(--verm); }
.lg-no { font: 500 11px var(--mono); color: var(--muted); }
.lg-name { font: 500 15px/1.2 var(--sans); }
.lg-name small { display: block; font: 400 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.lg-glyph { width: 12px; height: 12px; border: 1.3px solid var(--bone); justify-self: center; }
.lg-glyph.g1 { border: 0; width: 14px; height: 14px; background: var(--bone); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.lg-glyph.g2 { border-radius: 50%; border-color: var(--ultra) var(--verm) var(--verm) var(--ultra); }
.lg-glyph.g3 { border-radius: 50%; border-color: var(--verm); background: radial-gradient(circle, var(--verm) 0 2px, transparent 2.5px); }
.legend-now { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; min-height: 104px; }
.legend-title { font: 400 20px/1.15 var(--display); margin: 0 0 6px; }
.legend-now p:last-child { font-size: 13.5px; color: var(--bone-2); line-height: 1.5; margin: 0; }
.legend-key { display: flex; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font: 400 10.5px var(--mono); letter-spacing: .06em; color: var(--muted); }
.legend-key span { display: inline-flex; align-items: center; gap: 7px; }
.legend-key i { width: 8px; height: 8px; display: inline-block; }
.k-crypto { background: var(--ultra); transform: rotate(45deg); }
.k-euro { background: var(--verm); border-radius: 50%; }
.crossing-foot { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: 18px; justify-content: flex-end; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.coords { color: var(--bone); min-width: 22ch; font-variant-numeric: tabular-nums; }
.scale { display: inline-flex; height: 6px; border: 1px solid var(--bone-2); }
.scale i { width: 26px; }
.scale i:nth-child(odd) { background: var(--bone-2); }
.crossing-note { margin-right: auto; order: -1; }

/* Ticker -------------------------------------------------------------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--ink-2); color: var(--bone-2); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker span { font: 400 italic 22px/1 var(--display); padding: 15px 0; white-space: nowrap; }
.ticker span::after { content: '✦'; font-style: normal; font-size: 13px; margin: 0 26px; vertical-align: 3px; color: var(--verm); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections ------------------------------------------------------------ */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-header { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-header .kicker { align-self: start; margin-top: 14px; }
.section-header h2 { font-size: clamp(34px, 4.6vw, 68px); font-weight: 330; margin: 0; letter-spacing: -.03em; max-width: 16ch; }
.section-header h2 em { display: block; }
.section-header > .text-link, .section-header > p { margin: 0 0 8px; white-space: nowrap; }
.section-header > p { white-space: normal; color: var(--muted); max-width: 32ch; }
.soft { background: var(--ink-2); }

/* Departures board ---------------------------------------------------- */
.board { border: 1px solid var(--line-2); background: var(--ink-2); font-family: var(--mono); }
.board-row { display: grid; grid-template-columns: 90px 1.1fr .8fr 1.6fr 150px; gap: 20px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.board-labels { border-top: 0; padding-block: 12px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
a.board-row:hover { background: var(--ink-3); color: var(--bone); }
a.board-row:hover .b-dest { color: var(--verm); }
.b-code { color: var(--brass); font-size: 13px; letter-spacing: .08em; }
.b-dest { font: 400 26px/1.1 var(--display); letter-spacing: -.01em; transition: color .2s; }
.b-kind, .b-note { font-size: 13px; color: var(--bone-2); }
.b-kind { text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; }
.b-status { justify-self: end; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--verm); display: inline-flex; gap: 10px; align-items: center; }
.b-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--verm); animation: blink 1.6s steps(2) infinite; }
.b-status i { font-style: normal; }
@keyframes blink { 50% { opacity: .15; } }

/* Cards --------------------------------------------------------------- */
.atlas-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.atlas-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.atlas-cards.mosaic { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.atlas-cards.mosaic > :nth-child(4n+1), .atlas-cards.mosaic > :nth-child(4n+4) { grid-column: span 7; }
.atlas-cards.mosaic > :nth-child(4n+2), .atlas-cards.mosaic > :nth-child(4n+3) { grid-column: span 5; }
.atlas-card { position: relative; display: flex; flex-direction: column; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.atlas-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-figure { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 40% 40%, #18202c, var(--ink-2) 75%); }
.atlas-cards.mosaic > :nth-child(4n+2) .card-figure, .atlas-cards.mosaic > :nth-child(4n+3) .card-figure { aspect-ratio: 4 / 3; }
.minimap { width: 100%; height: 100%; }
.minimap path, .minimap circle { fill: none; vector-effect: non-scaling-stroke; }
.mm-grid { stroke: rgba(239, 232, 218, .06); stroke-width: 1; }
.mm-line { stroke: rgba(217, 178, 111, .2); stroke-width: 1; }
.mm-major { stroke: rgba(217, 178, 111, .38); stroke-width: 1; }
.mm-coast { stroke: rgba(239, 232, 218, .62); stroke-width: 1.4; fill: rgba(239, 232, 218, .025) !important; }
.mm-route { stroke: var(--verm); stroke-width: 1.6; stroke-dasharray: 6 6; transition: stroke-dashoffset 1.2s linear; }
.mm-token { fill: var(--ultra) !important; }
.mm-euro { fill: var(--verm) !important; }
.mm-ring { stroke: var(--verm); stroke-width: 1; opacity: .6; }
.atlas-card:hover .mm-route { stroke-dashoffset: -48; }
.card-coord { position: absolute; left: 14px; bottom: 12px; font: 400 10.5px var(--mono); letter-spacing: .1em; color: var(--bone-2); background: rgba(11, 14, 19, .7); padding: 3px 7px; }
.card-copy { padding: 24px 24px 22px; display: flex; flex-direction: column; flex: 1; }
.card-copy h3 { font-size: clamp(23px, 2.1vw, 30px); font-weight: 380; margin-bottom: 12px; }
.card-link { text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-copy > p:not(.meta) { color: var(--bone-2); font-size: 15.5px; }
.card-go { margin-top: auto; padding-top: 10px; font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--verm); }
.atlas-card:focus-within { border-color: var(--verm); }
.card-link:focus-visible { outline: none; }

/* Principle ----------------------------------------------------------- */
.principle { background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(255, 91, 46, .08), transparent 70%), var(--ink); }
.large-statement { margin: 10px 0 56px; }
.large-statement p { font: 300 clamp(44px, 7.4vw, 120px)/.98 var(--display); letter-spacing: -.04em; margin: 0; max-width: 13ch; font-variation-settings: 'opsz' 144; }
.principle-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; align-items: start; }
.principle-grid > p { font: 400 21px/1.5 var(--display); color: var(--bone-2); }

/* Route figure -------------------------------------------------------- */
.route-figure { margin: 0 0 36px; }
.route-flow { --n: 4; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.route-flow::before { content: ''; position: absolute; left: 10px; right: 10px; top: 10px; border-top: 1.5px dashed var(--verm); opacity: .8; }
.route-node { position: relative; padding: 34px 14px 0 0; }
.route-node::before { content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--bone); }
.route-node:first-child::before { border-color: var(--ultra); background: radial-gradient(circle, var(--ultra) 0 3px, var(--ink) 3.5px); }
.route-node:last-child::before { border-color: var(--verm); background: radial-gradient(circle, var(--verm) 0 3px, var(--ink) 3.5px); }
.route-node span { display: block; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--verm); margin-bottom: 4px; }
.route-node strong { font: 400 19px/1.25 var(--display); }
.route-figure figcaption { margin-top: 20px; font: 400 12px var(--mono); color: var(--muted); letter-spacing: .03em; }

/* Gazetteer (field guides) -------------------------------------------- */
.playbook-grid { display: grid; }
.home-guides .playbook-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; }
.playbook-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 18px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease); }
.home-guides .playbook-row:nth-child(-n+2), [data-filter-item]:first-of-type .playbook-row, .playbook-grid > .playbook-row:first-child { border-top: 1px solid var(--line); }
.playbook-row .num { font: 300 italic 40px/1 var(--display); color: var(--muted); transition: color .3s; }
.g-body { display: grid; gap: 4px; }
.g-cat { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.g-title { font: 400 23px/1.2 var(--display); letter-spacing: -.01em; }
.g-dek { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.playbook-row .arrow { justify-self: end; font-size: 22px; color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.playbook-row:hover { padding-left: 10px; color: var(--bone); }
.playbook-row:hover .num, .playbook-row:hover .arrow { color: var(--verm); }
.playbook-row:hover .arrow { transform: translateX(4px); }

/* Instruments --------------------------------------------------------- */
.instruments { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.instrument-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s; }
.instrument-card:hover { border-color: var(--verm); color: var(--bone); }
.instrument-card h3 { font-size: clamp(28px, 3vw, 42px); font-weight: 330; }
.instrument-card > p:not(.meta) { color: var(--bone-2); max-width: 46ch; }
.receipt { margin: 18px 0 26px; padding: 18px 20px; background: var(--bone); color: var(--ink); font: 400 13px/1.9 var(--mono); max-width: 380px; transform: rotate(-1.2deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); -webkit-mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 14px 100% repeat-x; mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 14px 100% repeat-x; }
.receipt span { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(11, 14, 19, .2); }
.receipt-total { border: 0 !important; padding-top: 6px; font-size: 17px; font-weight: 500; }
.receipt-total b:last-child { color: #8a6418; }
.receipt b { font-weight: inherit; }
.mini-checks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 8px; font: 400 13px var(--mono); color: var(--bone-2); }
.mini-checks li { display: flex; gap: 12px; align-items: center; }
.mini-checks li::before { content: ''; width: 15px; height: 15px; border: 1px solid var(--line-2); flex: none; }
.mini-checks li.done::before { background: var(--verm); border-color: var(--verm); box-shadow: inset 0 0 0 3px var(--ink-2); }
.mini-checks li.done { color: var(--bone); }
.instrument-card .card-go { margin-top: auto; }

/* Sources strip and FAQ ----------------------------------------------- */
.source-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(56px, 7vw, 96px); }
.source-strip span { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 14px; }
.source-strip a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 99px; text-decoration: none; font-size: 14.5px; }
.source-strip a:hover { border-color: var(--verm); }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px 64px; margin: 48px 0; }
.faq-head { position: sticky; top: calc(var(--bar) + 28px); align-self: start; }
.faq-head h2 { font-size: clamp(32px, 3.8vw, 54px); font-weight: 330; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: grid; grid-template-columns: 44px 1fr 28px; gap: 12px; align-items: baseline; padding: 22px 0; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq-no { font: 400 12px var(--mono); color: var(--verm); }
.faq-q { font: 400 21px/1.3 var(--display); }
.faq-icon { position: relative; width: 16px; height: 16px; justify-self: end; align-self: center; transition: transform .3s var(--ease); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1.5px; background: var(--bone); }
.faq-icon::after { transform: rotate(90deg); }
.faq details[open] .faq-icon { transform: rotate(45deg); }
.faq details[open] .faq-icon::before, .faq details[open] .faq-icon::after { background: var(--verm); }
.faq summary:hover .faq-q { color: var(--verm-2); }
.faq-answer { padding: 0 28px 22px 56px; color: var(--bone-2); }
.prose .faq { grid-template-columns: 1fr; gap: 12px; }
.prose .faq-head { position: static; }

/* Inner page header: the sheet ---------------------------------------- */
.sheet-head { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); padding: 26px 0 clamp(44px, 6vw, 72px); min-height: 480px; display: flex; }
.sheet-head > .wrap { display: flex; flex-direction: column; }
.sheet-chart { position: absolute; inset: 0; z-index: -1; }
.sheet-chart::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0, rgba(11, 14, 19, .9) 34%, rgba(11, 14, 19, .25) 70%, rgba(11, 14, 19, .1)), linear-gradient(0deg, var(--ink), transparent 40%); }
.breadcrumbs { font: 400 12px var(--mono); letter-spacing: .06em; color: var(--muted); margin-bottom: auto; padding-bottom: 48px; }
.breadcrumbs a { text-decoration: none; color: var(--bone-2); }
.breadcrumbs a:hover { color: var(--verm); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; color: var(--verm); }
.sheet-grid { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 40px 64px; align-items: end; }
.sheet-title h1 { font-size: clamp(42px, 6vw, 92px); font-weight: 320; letter-spacing: -.035em; line-height: .98; margin: 0 0 22px; max-width: 15ch; font-variation-settings: 'opsz' 144; }
.article-header .sheet-title h1 { font-size: clamp(38px, 5vw, 76px); max-width: 18ch; }
.dek { font: 400 clamp(18px, 1.6vw, 22px)/1.5 var(--display); color: var(--bone-2); max-width: 46ch; margin: 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font: 400 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.article-meta > * + *::before { content: '◆'; color: var(--verm); font-size: 8px; margin-right: 22px; vertical-align: 2px; }
.title-block { margin: 0; border: 1px solid var(--line-2); background: rgba(11, 14, 19, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--mono); }
.title-block div { display: grid; grid-template-columns: 92px 1fr; border-bottom: 1px solid var(--line); }
.title-block div:last-child { border-bottom: 0; }
.title-block dt, .title-block dd { margin: 0; padding: 10px 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.title-block dt { color: var(--muted); border-right: 1px solid var(--line); }
.title-block dd { color: var(--bone); }
.title-block div:first-child dd { color: var(--verm); font-size: 13px; }

/* Reading layout ------------------------------------------------------ */
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(200px, 270px); justify-content: space-between; gap: 64px; }
.article-layout .prose { grid-column: 1; grid-row: 1; }
.toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--bar) + 28px); align-self: start; border-left: 1px solid var(--line); padding-left: 24px; }
.toc ol { list-style: none; counter-reset: toc; margin: 0 0 20px; padding: 0; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; padding: 8px 0; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 400 11px var(--mono); padding-top: 2px; }
.toc a:hover, .toc a[aria-current] { color: var(--bone); }
.toc a[aria-current]::before { color: var(--verm); }
.prose { max-width: 720px; font: 400 19px/1.72 var(--display); font-variation-settings: 'opsz' 14; color: #e6dfd1; }
.section > .wrap > .prose { margin-left: 0; margin-right: auto; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 360; margin: 2em 0 .6em; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 24px; font-weight: 400; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--verm); }
.prose a { color: var(--bone); text-decoration-color: var(--verm); }
.prose a:hover { color: var(--verm-2); }
.prose strong { font-weight: 600; color: var(--bone); }
.prose > section { margin-bottom: 1em; }
.cite { font: 500 10.5px var(--mono); letter-spacing: .04em; margin-left: 2px; }
.cite a { text-decoration: none; color: var(--brass); }
.cite a:hover { color: var(--verm); }
.answer { position: relative; padding: 30px 32px 22px; margin: 0 0 32px; background: var(--ink-2); border: 1px solid var(--line-2); font-size: 21px; line-height: 1.6; }
.answer::before, .answer::after { content: ''; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--verm); }
.answer::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.answer::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.answer .kicker { color: var(--verm); }
.editorial-note { font: 400 13px/1.6 var(--mono); color: var(--muted); padding-left: 16px; border-left: 2px solid var(--brass); margin: 0 0 40px; }
.example { margin: 40px 0; padding: 26px 28px 12px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(239, 232, 218, .018) 10px 20px); font-size: 18px; }
.example .kicker { color: var(--brass); }
.download-strip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; margin-top: 56px; padding: 30px; background: var(--bone); color: var(--ink); }
.download-strip .kicker { color: var(--ink); opacity: .7; }
.download-strip h3 { font-size: 28px; margin: 0; }
.download-strip a { color: var(--ink); }
.download-strip .button.secondary { border-color: var(--ink); color: var(--ink); }
.download-strip .button.secondary .btn-arrow { border-color: var(--ink); }
.download-strip .button.secondary:hover { background: var(--ink); color: var(--verm); }

/* Checklist ----------------------------------------------------------- */
.checklist { margin: 48px 0; padding: 30px; border: 1px solid var(--line-2); background: var(--ink-2); font-family: var(--sans); font-size: 16px; }
.checklist h2 { margin-top: 0; }
.check-progress { display: flex; align-items: center; gap: 16px; margin: 16px 0 18px; font: 400 12px var(--mono); color: var(--muted); letter-spacing: .06em; }
.progress-bar { flex: 1; height: 3px; background: var(--line); }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--verm); transition: width .4s var(--ease); }
.check-item { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); cursor: pointer; line-height: 1.5; }
.check-item input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check-item input:checked { background: var(--verm); border-color: var(--verm); }
.check-item input:checked::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check-item input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--verm); }
.check-item:hover input { border-color: var(--verm); }

/* Method, sources ----------------------------------------------------- */
.method-details { margin: 40px 0; border-block: 1px solid var(--line); font-family: var(--sans); font-size: 15.5px; color: var(--bone-2); }
.method-details summary { cursor: pointer; padding: 18px 0; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bone); list-style: none; display: flex; justify-content: space-between; }
.method-details summary::-webkit-details-marker { display: none; }
.method-details summary::after { content: '+'; color: var(--verm); font-size: 18px; line-height: 1; }
.method-details[open] summary::after { content: '−'; }
.method-details > :not(summary) { margin-bottom: 18px; }
.sources-section { margin-top: 56px; font-family: var(--sans); }
.sources-section h2 { font-size: 28px; }
.source-list { padding: 0; list-style: none; counter-reset: src; margin: 0; }
.source-list li { counter-increment: src; display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; }
.source-list li::before { content: '[' counter(src) ']'; font: 400 12px var(--mono); color: var(--brass); padding-top: 3px; grid-row: span 2; }
.source-list .small-note { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.source-card { background: var(--ink-2); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; }
.source-card h2 { font-size: 23px; font-weight: 400; }
.source-card p:not(.meta):not(.small-note) { color: var(--bone-2); }
.source-card a { margin-top: auto; color: var(--verm); text-decoration: none; font: 500 13px var(--mono); letter-spacing: .06em; }

/* Route maps ---------------------------------------------------------- */
.route-steps { counter-reset: step; margin: 24px 0 64px; display: grid; gap: 0; }
.route-step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; padding: 34px 0; border-top: 1px solid var(--line); position: relative; }
.route-step:last-child { border-bottom: 1px solid var(--line); }
.step-index { font: 300 italic 72px/.9 var(--display); color: var(--verm); }
.route-step h2 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 360; }
.route-step p { color: var(--bone-2); max-width: 62ch; }
.evidence-line { font: 400 14px/1.6 var(--mono) !important; color: var(--bone) !important; background: var(--ink-2); border-left: 2px solid var(--brass); padding: 10px 14px; }
.evidence-line strong { color: var(--brass); font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; margin-right: 6px; }

/* Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; margin: 32px 0; border: 1px solid var(--line-2); background: var(--ink-2); font-family: var(--sans); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
caption { text-align: left; padding: 16px 18px; font: 400 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 15px 18px; border-bottom: 1px solid var(--line); }
th { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone-2); background: var(--ink-3); white-space: nowrap; }
th button { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; color: inherit; }
th button:hover, th[aria-sort] button { color: var(--verm); }
tbody tr:hover { background: rgba(239, 232, 218, .03); }
tbody tr:last-child td { border-bottom: 0; }
td time { font-family: var(--mono); font-size: 13.5px; color: var(--brass); white-space: nowrap; }
td p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
td a { color: var(--bone-2); }
.status { display: inline-block; padding: 3px 10px; border: 1px solid var(--verm); color: var(--verm); border-radius: 99px; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* Filters, search, glossary ------------------------------------------- */
.filterbar { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 16px 28px; align-items: center; margin-bottom: 14px; }
.filter-search input, .search-page-field input { width: 100%; background: transparent; border: 0; border-bottom: 1.5px solid var(--line-2); padding: 12px 2px; font: 400 20px var(--display); color: var(--bone); border-radius: 0; }
.search-page-field input { font-size: clamp(26px, 3.4vw, 44px); padding: 16px 2px; }
.filter-search input:focus, .search-page-field input:focus { outline: none; border-color: var(--verm); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.filter-tabs, .category-links { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tabs button, .category-links a { padding: 8px 15px; border: 1px solid var(--line-2); background: transparent; border-radius: 99px; cursor: pointer; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: all .2s; }
.filter-tabs button:hover, .category-links a:hover { border-color: var(--verm); color: var(--verm); }
.filter-tabs button[aria-pressed="true"], .category-links a[aria-current] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.category-links { margin-bottom: 36px; }
[data-filter-count] { margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.empty-state, [data-glossary-empty] { padding: 26px; border: 1px dashed var(--line-2); color: var(--muted); text-align: center; }
.glossary-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 8px; }
.glossary-index a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); font: 400 20px var(--display); text-decoration: none; }
.glossary-index a:hover { background: var(--verm); color: var(--ink); border-color: var(--verm); }
.glossary-letter { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.glossary-letter h2 { font: 300 italic 88px/.8 var(--display); color: var(--verm); }
.search-results { display: grid; gap: 0; margin-top: 18px; }
.search-result { padding: 22px 0; border-bottom: 1px solid var(--line); }
.search-result h2 { font-size: 26px; font-weight: 380; margin: 4px 0 6px; }
.search-result h2 a { text-decoration: none; }
.search-result p { color: var(--bone-2); margin: 0; }
.search-result .meta { font-size: 11px; color: var(--brass); }

/* Tools --------------------------------------------------------------- */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr); gap: 28px; align-items: start; }
.tool-form, .route-planner { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); background: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin-bottom: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .planner-select, .tool-form label { display: grid; gap: 8px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone-2); }
input[type="number"], input[type="text"], input[type="url"], input[type="email"], select, textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); border-radius: 0; padding: 13px 14px; font: 400 18px var(--mono); color: var(--bone); letter-spacing: 0; text-transform: none; transition: border-color .2s;
}
textarea { min-height: 130px; font-size: 15px; line-height: 1.5; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--verm) 50%), linear-gradient(135deg, var(--verm) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; font-family: var(--sans); font-size: 17px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--verm); }
input[aria-invalid="true"] { border-color: #ff4d6d; }
.form-error { padding: 12px 16px; border-left: 3px solid #ff4d6d; background: rgba(255, 77, 109, .08); color: #ffb3c0; font-size: 15px; }
.calc-result { position: sticky; top: calc(var(--bar) + 24px); padding: 30px; background: var(--bone); color: var(--ink); }
.calc-result .kicker { color: rgba(11, 14, 19, .6); }
.calc-result output { display: block; font: 300 clamp(44px, 4.8vw, 68px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 6px 0 8px; color: var(--ink); }
#result-state { font: 400 13px var(--mono); color: rgba(11, 14, 19, .65); }
.cost-bar { display: flex; height: 10px; background: rgba(11, 14, 19, .12); margin: 20px 0; }
.cost-bar i { display: block; height: 100%; transition: width .4s var(--ease); }
#cost-received { background: var(--ink); }
#cost-fees { background: var(--verm); }
.result-lines { margin: 0 0 22px; }
.result-lines div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(11, 14, 19, .15); font-size: 14.5px; }
.result-lines dt { color: rgba(11, 14, 19, .7); }
.result-lines dd { margin: 0; font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-result .button.secondary { color: var(--ink); border-color: var(--ink); }
.calc-result .button.secondary:hover { background: var(--ink); color: var(--bone); }
.calc-result .small-note { color: rgba(11, 14, 19, .6); margin-top: 16px; }
.tool-explainer { margin-top: 64px; }
.route-planner { display: grid; gap: 22px; max-width: 860px; }
.planner-step { padding: 18px 0; border-top: 1px solid var(--line); }
.planner-step h3 { font-size: 22px; font-weight: 400; }
.planner-step p { color: var(--bone-2); margin-bottom: 6px; }
#route-plan > h2 { font-size: 36px; font-weight: 340; }
#route-plan > p { color: var(--bone-2); }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 48px; }
.sitemap-grid h2 { font-size: 22px; border-bottom: 1px solid var(--verm); padding-bottom: 10px; }
.sitemap-grid ul { list-style: none; padding: 0; margin: 0; }
.sitemap-grid li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.sitemap-grid a { text-decoration: none; }

/* Footer -------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line-2); padding: clamp(56px, 8vw, 104px) 0 28px; background: var(--ink); }
.footer-cta .button-row { margin-top: 0; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-line { font: 300 clamp(36px, 5vw, 72px)/1 var(--display); letter-spacing: -.03em; margin: 0; }
.footer-line em { color: var(--verm); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 48px 0 24px; }
.footer-col h2 { font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--verm); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 15px; color: var(--bone-2); text-decoration: none; }
.footer-col a:hover { color: var(--verm); }
.footer-wordmark { font: 300 clamp(64px, 15.5vw, 260px)/.8 var(--display); letter-spacing: -.055em; margin: 24px 0 26px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(239, 232, 218, .35); font-variation-settings: 'opsz' 144; user-select: none; }
.footer-wordmark em { -webkit-text-stroke: 0; color: var(--verm); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 11.5px var(--mono); letter-spacing: .06em; color: var(--muted); }
.footer-bottom .motion-toggle { background: none; border: 1px solid var(--line-2); border-radius: 99px; padding: 7px 14px; font: inherit; cursor: pointer; color: var(--bone-2); }
.footer-bottom .motion-toggle:hover { border-color: var(--verm); color: var(--verm); }
.footer-disclaimer { margin: 18px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 920px; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: 380px; padding: 15px 18px; background: var(--bone); color: var(--ink); font-size: 14.5px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); border-left: 4px solid var(--verm); }

/* Notebook band and keep-exploring CTAs -------------------------------- */
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.notes-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; margin-top: 36px; padding: 26px 30px; border: 1px solid var(--line-2); background: var(--ink-2); }
.notes-cta p { margin: 0; font: 400 20px/1.35 var(--display); color: var(--bone-2); max-width: 30ch; }
.notes-cta .button-row { margin: 0; }
.index-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.keep { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-2), var(--ink)); }
.keep-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 36px; }
.keep-head .kicker { margin: 0; order: 2; }
.keep-head h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 330; margin: 0; letter-spacing: -.03em; }
.keep-head h2 em { color: var(--verm); }
.keep-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.keep-card { display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 26px 24px 22px; background: var(--ink); text-decoration: none; transition: background .25s; }
.keep-card:hover { background: var(--ink-3); color: var(--bone); }
.keep-card.is-current { display: none; }
.keep-meta { font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--verm); }
.keep-title { font: 360 32px/1.05 var(--display); letter-spacing: -.02em; }
.keep-dek { font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.keep-go { margin-top: auto; display: inline-flex; gap: 10px; align-items: center; font: 600 14px var(--sans); color: var(--bone); }
.keep-go i { font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background .2s, color .2s; }
.keep-card:hover .keep-go i { transform: translateX(4px); background: var(--bone); color: var(--ink); }
.keep-grid:has(.is-current) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .topnav a { padding: 8px 9px; font-size: 14px; } .brand-sub { display: none; } }
@media (max-width: 1020px) { .notes-grid { grid-template-columns: 1fr 1fr; } .keep-grid, .keep-grid:has(.is-current) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .notes-grid, .keep-grid, .keep-grid:has(.is-current) { grid-template-columns: 1fr; } .keep-card { min-height: 0; } .notes-cta { padding: 22px; } }

/* Progressive reveal -------------------------------------------------- */
.enhanced-motion [data-reveal-pending] { opacity: 0; transform: translateY(26px); }
.enhanced-motion .reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion-paused .ticker-track, .motion-paused .b-status::before { animation-play-state: paused; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
  .crossing { grid-template-columns: minmax(0, 1fr) 300px; }
  .board-row { grid-template-columns: 74px 1fr .8fr 120px; }
  .b-note { display: none; }
  .board-labels span:nth-child(4) { display: none; }
}
@media (max-width: 1020px) {
  .atlas-cards { grid-template-columns: 1fr 1fr; }
  .atlas-cards.mosaic > * { grid-column: span 6 !important; }
  .atlas-cards.mosaic .card-figure { aspect-ratio: 16 / 10 !important; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; grid-column: 1; grid-row: 1; border-left: 0; border-block: 1px solid var(--line); padding: 18px 0 4px; margin-bottom: 40px; }
  .toc ol { columns: 2; column-gap: 24px; }
  .toc li { break-inside: avoid; }
  .article-layout .prose { grid-row: 2; }
  .tool-layout { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .index-inner { grid-template-columns: 1fr; }
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .title-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 760px; }
  .title-block div { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--line); }
  .title-block div:last-child { border-right: 0; }
  .title-block dt { border-right: 0; padding-bottom: 0; }
  .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .crossing { grid-template-columns: 1fr; grid-template-rows: 50svh auto auto auto; min-height: calc(100svh - var(--bar)); padding-top: 18px; }
  .chart--hero { bottom: auto; height: 62svh; }
  .crossing-shade { background: linear-gradient(180deg, rgba(11, 14, 19, .35), transparent 12%, transparent 40svh, var(--ink) 62svh); }
  .crossing-copy { grid-row: 2; }
  .legend { grid-column: 1; grid-row: 3; }
  .crossing-foot { grid-row: 4; }
  .legend-now { min-height: 0; }
  .section-header { grid-template-columns: 1fr; }
  .section-header .kicker { margin-top: 0; }
  .principle-grid, .instruments, .home-guides .playbook-grid { grid-template-columns: 1fr; }
  .home-guides .playbook-row:nth-child(2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .top-cta, .brand-sub { display: none; }
  .brand-word { font-size: 20px; }
  .menu-toggle { padding: 0 13px; }
  .atlas-cards, .atlas-cards.two { grid-template-columns: 1fr; }
  .atlas-cards.mosaic > * { grid-column: 1 / -1 !important; }
  .crossing-copy h1 em { padding-left: 0; }
  .crossing-foot { flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px; }
  .crossing-note { order: 3; margin-right: 0; width: 100%; }
  .coords { min-width: 0; }
  .legend-head span:last-child { display: none; }
  .board-row { grid-template-columns: 1fr auto; gap: 4px 14px; padding: 16px; }
  .board-labels { display: none; }
  .b-code { grid-column: 1; }
  .b-dest { grid-column: 1; }
  .b-kind { grid-column: 1; }
  .b-status { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  .route-flow { grid-template-columns: 1fr; gap: 18px; }
  .route-flow::before { left: 8px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 1.5px dashed var(--verm); }
  .route-node { padding: 0 0 0 36px; }
  .route-step { grid-template-columns: 1fr; gap: 6px; }
  .step-index { font-size: 52px; }
  .glossary-letter { grid-template-columns: 1fr; gap: 8px; }
  .glossary-letter h2 { font-size: 64px; }
  .playbook-row { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 12px; }
  .playbook-row .num { font-size: 30px; }
  .filterbar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block div:nth-child(2) { border-right: 0; }
  .title-block div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sheet-head { min-height: 0; }
  .breadcrumbs { padding-bottom: 72px; }
  .sheet-chart::after { background: linear-gradient(0deg, var(--ink) 10%, rgba(11, 14, 19, .82) 55%, rgba(11, 14, 19, .35)); }
  .answer { padding: 24px 20px 14px; font-size: 19px; }
  .checklist { padding: 22px 18px; }
  .faq summary { grid-template-columns: 34px 1fr 20px; }
  .faq-q { font-size: 19px; }
  .faq-answer { padding: 0 0 18px 46px; }
  .toc ol { columns: 1; }
  .index-secondary ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .download-strip { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
}
@media print {
  :root { --ink: #fff; --ink-2: #fff; --ink-3: #f3f3f3; --bone: #111; --bone-2: #333; --muted: #555; --line: #ccc; --line-2: #999; }
  body { padding: 0; background: #fff; color: #111; }
  .topbar, .keep, .index-overlay, .sheet-chart, .site-footer, .toc, .button-row, .download-strip, .ticker, .chart, .legend, .crossing-foot, .toast { display: none !important; }
  .prose { color: #111; }
  .sheet-head { min-height: 0; }
  a { color: #111; }
}
@media (max-width: 400px) {
  :root { --bar: 64px; }
  .topbar-inner { gap: 10px; }
  .brand { gap: 9px; }
  .brand .mark { width: 30px; height: 30px; }
  .brand-word { font-size: 18px; }
  .top-actions { gap: 6px; }
  .top-search { width: 40px; height: 40px; }
  .menu-toggle { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Responsive refinements ---------------------------------------------- */
.topnav a { white-space: nowrap; }
.section-header > .text-link { justify-self: start; }
.index-close { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1180px) {
  .top-cta { display: none; }
}
@media (max-width: 1020px) {
  .topnav { display: none; }
  .topbar-inner { grid-template-columns: 1fr auto; }
  .notes-grid > :nth-child(3):last-child { grid-column: 1 / -1; }
  .section-header { grid-template-columns: 1fr auto; }
  .section-header .kicker { grid-column: 1 / -1; margin: 0 0 4px; }
  .section-header > .text-link { justify-self: end; align-self: end; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .legend { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 26px; }
  .legend-head { grid-column: 1 / -1; }
  .legend-steps { grid-column: 1; grid-row: 2 / span 2; }
  .legend-now { grid-column: 2; grid-row: 2; border-top: 0; margin-top: 8px; padding-top: 10px; border-left: 1px solid var(--line); padding-left: 22px; }
  .legend-key { grid-column: 2; grid-row: 3; align-self: end; border-left: 1px solid var(--line); padding-left: 22px; margin-top: 0; }
  .instruments { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .index-close { display: none; }
  .index-head .kicker { font-size: 0; gap: 0; }
  .index-head .kicker span { font-size: 11.5px; }
  .index-head .kicker span::after { display: none; }
  .index-primary a { grid-template-columns: 44px 1fr; padding: 12px 0 14px; }
  .index-inner { gap: 18px 40px; padding-top: 22px; }
}
@media (max-width: 680px) {
  .section-header { grid-template-columns: 1fr; }
  .section-header > .text-link { justify-self: start; }
  .ix-title { font-size: clamp(34px, 11vw, 48px); }
  .ix-desc { font-size: 10.5px; }
  .index-ctas .button { flex: 1 1 100%; justify-content: space-between; }
  .notes-cta .button-row, .footer-cta .button-row { width: 100%; }
  .notes-cta .button, .footer-cta .button { flex: 1 1 100%; justify-content: space-between; }
  .crossing-copy .button-row { gap: 16px 20px; }
}
.crossing-copy .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; }
@media (max-width: 680px) {
  .crossing-foot .rail-motion { margin-left: auto; }
  .crossing-foot .scale { display: none; }
  .crossing-note { order: 4; }
}

/* Section identities: accent colour per topic -------------------------- */
body:has(.sheet-head.accent-ultra) { --verm: #a3a4ff; --verm-2: #c4c5ff; }
body:has(.sheet-head.accent-sage) { --verm: #8fbf9f; --verm-2: #b5d8c0; }
body:has(.sheet-head.accent-sky) { --verm: #7fb4d9; --verm-2: #a9cde8; }
body:has(.sheet-head.accent-lilac) { --verm: #c49be0; --verm-2: #dbbff0; }
body:has(.sheet-head.accent-rose) { --verm: #d98b8b; --verm-2: #ecb3b3; }

/* Header compositions -------------------------------------------------- */
.sheet-head--porthole { min-height: 560px; }
.sheet-head--porthole .sheet-chart {
  inset: auto; top: 50%; right: max(var(--gut), calc((100vw - var(--max)) / 2));
  width: min(38vw, 470px); aspect-ratio: 1; transform: translateY(-46%); border-radius: 50%; overflow: hidden; z-index: 0;
  border: 1px solid var(--line-2); box-shadow: 0 0 0 12px var(--ink), 0 0 0 13px var(--line), 0 30px 80px rgba(0, 0, 0, .55);
}
.sheet-head--porthole .sheet-chart::after { background: radial-gradient(circle, transparent 58%, rgba(11, 14, 19, .6) 100%); }
.sheet-head--porthole .sheet-chart::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed var(--line-2); z-index: 1; pointer-events: none; }
.sheet-head--porthole > .wrap { position: relative; z-index: 1; }
.sheet-head--porthole .sheet-grid { grid-template-columns: minmax(0, 1fr); padding-right: calc(min(38vw, 470px) + 64px); }
.sheet-head--porthole .title-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
.sheet-head--porthole .title-block div { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--line); }
.sheet-head--porthole .title-block div:last-child { border-right: 0; }
.sheet-head--porthole .title-block dt { border-right: 0; padding-bottom: 0; }

.sheet-head--band { flex-direction: column; padding-bottom: 0; min-height: 0; }
.sheet-head--band .sheet-chart { position: relative; inset: auto; order: 2; height: clamp(230px, 24vw, 320px); margin-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); }
.sheet-head--band .sheet-chart::after { background: linear-gradient(90deg, var(--ink), transparent 6%, transparent 94%, var(--ink)); }
.sheet-head--band .breadcrumbs { padding-bottom: 40px; }

.sheet-head--full.scene-constellation .sheet-chart::after,
.sheet-head--full.scene-currents .sheet-chart::after { background: linear-gradient(90deg, var(--ink) 0, rgba(11, 14, 19, .88) 32%, rgba(11, 14, 19, .2) 62%, transparent), linear-gradient(0deg, var(--ink), transparent 35%); }

@media (max-width: 1020px) {
  .sheet-head--porthole { flex-direction: column; min-height: 0; }
  .sheet-head--porthole .sheet-chart { position: relative; top: auto; right: auto; transform: none; order: 2; width: min(74vw, 420px); margin: 40px auto 0; }
  .sheet-head--porthole .sheet-grid { padding-right: 0; }
}
@media (max-width: 680px) {
  .sheet-head--porthole .sheet-chart { width: min(86vw, 340px); box-shadow: 0 0 0 8px var(--ink), 0 0 0 9px var(--line); }
  .sheet-head--porthole .title-block { grid-template-columns: 1fr 1fr; }
  .sheet-head--porthole .title-block div:nth-child(2) { border-right: 0; }
  .sheet-head--porthole .title-block div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sheet-head--band .sheet-chart { height: 240px; }
  .sheet-head--band .breadcrumbs { padding-bottom: 32px; }
}
.sheet-head--full.scene-constellation .sheet-grid, .sheet-head--full.scene-currents .sheet-grid { grid-template-columns: minmax(0, 1fr); }
.sheet-head--full.scene-constellation .sheet-title, .sheet-head--full.scene-currents .sheet-title { max-width: 760px; }
.sheet-head--full.scene-constellation .title-block, .sheet-head--full.scene-currents .title-block { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 640px; }
.sheet-head--full.scene-constellation .title-block div, .sheet-head--full.scene-currents .title-block div { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--line); }
.sheet-head--full.scene-constellation .title-block div:last-child, .sheet-head--full.scene-currents .title-block div:last-child { border-right: 0; }
.sheet-head--full.scene-constellation .title-block dt, .sheet-head--full.scene-currents .title-block dt { border-right: 0; padding-bottom: 0; }
@media (max-width: 680px) {
  .sheet-head--full.scene-constellation .title-block, .sheet-head--full.scene-currents .title-block { grid-template-columns: 1fr 1fr; }
  .sheet-head--full.scene-constellation .title-block div:nth-child(2), .sheet-head--full.scene-currents .title-block div:nth-child(2) { border-right: 0; }
  .sheet-head--full.scene-constellation .title-block div:nth-child(-n+2), .sheet-head--full.scene-currents .title-block div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .sheet-head--full.scene-constellation, .sheet-head--full.scene-currents { flex-direction: column; padding-bottom: 0; }
  .sheet-head--full.scene-constellation .sheet-chart, .sheet-head--full.scene-currents .sheet-chart { position: relative; inset: auto; order: 2; height: 280px; margin-top: 32px; border-top: 1px solid var(--line); }
  .sheet-head--full.scene-constellation .sheet-chart::after, .sheet-head--full.scene-currents .sheet-chart::after { background: linear-gradient(0deg, var(--ink), transparent 18%); }
}
