/* Altitude Creative · site.css · direction v3 "flight deck"
   Black glass, instrument panels, one route colour. Archivo (variable width) + B612 Mono (cockpit data).
   Sections: 1 fonts · 2 tokens · 3 base · 4 layout · 5 type · 6 header/nav · 7 footer · 8 heroes · 9 content blocks
   10 route & diagrams · 11 commerce (tiers, finder) · 12 forms · 13 articles · 14 tools · 15 utilities · 16 motion · 17 print */

/* 1 · Fonts (SIL OFL, self-hosted) */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-Variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("/assets/fonts/B612Mono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "B612 Mono"; src: url("/assets/fonts/B612Mono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* 2 · Tokens */
:root {
  --black: #000;
  --panel: #0d0e10;          /* raised instrument panel */
  --panel-2: #15171a;        /* control surface */
  --panel-3: #1d2024;
  --text: #f2f2ee;           /* warm white */
  --text-2: #b4b6b9;         /* secondary, 10:1 on black */
  --text-3: #8a8d91;         /* tertiary, 6:1 on black */
  --line: rgba(242, 242, 238, .12);
  --line-2: rgba(242, 242, 238, .22);
  --line-3: rgba(242, 242, 238, .4);
  --route: #ee5fe0;          /* aviation magenta: the planned route. Paths, active states, focus. Never decoration. */
  --route-dim: rgba(238, 95, 224, .28);
  --caution: #f2b33d;        /* where value leaks */

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "B612 Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wide: 116%;              /* headline width */

  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.03rem + .4vw, 1.3125rem);
  --fs-h4: 1.1875rem;
  --fs-h3: clamp(1.3rem, 1.15rem + .6vw, 1.625rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.2vw, 3.1rem);
  --fs-h1: clamp(2.35rem, 1.5rem + 3.4vw, 4.4rem);
  --fs-display: clamp(2.6rem, 1rem + 4.1vw, 5rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  --section: clamp(4rem, 2.6rem + 5vw, 8.5rem);
  --gutter: clamp(16px, 3vw, 48px);
  --max: 1440px;
  --r-ctl: 2px;              /* buttons, inputs */
  --r-panel: 6px;            /* panels */
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 72px;
}

/* 3 · Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); background: var(--black); color-scheme: dark; }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--sans); font-size: var(--fs-base); line-height: 1.6; font-stretch: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--route); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 520; font-stretch: var(--wide); letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--route); color: var(--black); }
.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--text); color: var(--black); padding: var(--s3) var(--s4); border-radius: var(--r-ctl); font-weight: 600; }
.skip-link:focus { top: var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }

/* 4 · Layout */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--panel { background: var(--panel); }
.section--rule { border-top: 1px solid var(--line); }
.section--flush-top { padding-top: 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.2vw, 36px); row-gap: var(--s6); }
@media (min-width: 960px) {
  .span-3 { --span: 3; } .span-4 { --span: 4; } .span-5 { --span: 5; } .span-6 { --span: 6; } .span-7 { --span: 7; } .span-8 { --span: 8; } .span-9 { --span: 9; }
  [class*="span-"] { grid-column: span var(--span); }
  .start-5 { grid-column: 5 / span var(--span, 1); } .start-6 { grid-column: 6 / span var(--span, 1); } .start-7 { grid-column: 7 / span var(--span, 1); }
  .start-8 { grid-column: 8 / span var(--span, 1); } .start-9 { grid-column: 9 / span var(--span, 1); }
  .sticky { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
@media (max-width: 959px) { .grid > * { grid-column: 1 / -1; } }
/* Grid and flex children may shrink below their content's width (wide tables scroll inside them instead of widening the page) */
.grid > *, .stack > *, .stack-lg > *, .tool > *, .article > *, .feature > *, .sysmap > *, .finder > *, .phero__inner > *, .readouts > *, .calc-grid > * { min-width: 0; }
.section-head { display: grid; gap: var(--s4); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); max-width: 60rem; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 960px) { .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(16px, 2.2vw, 36px); } }

/* 5 · Type */
.display { font-size: var(--fs-display); font-weight: 540; font-stretch: 118%; letter-spacing: -.03em; line-height: 1; }
.h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -.028em; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.024em; }
.h1--long { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.06; }
.h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -.015em; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: -.01em; font-weight: 560; font-stretch: 108%; }
/* Headline emphasis is a line break, not a colour: the second clause sits on its own line. */
.display em, .h1 em, .h2 em { font-style: normal; display: block; }
.h3 em, .h4 em { font-style: normal; }
.lede { font-size: var(--fs-lg); line-height: 1.55; color: var(--text-2); max-width: 44em; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.mono { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; line-height: 1.5; }
.label { font-family: var(--mono); font-size: .75rem; color: var(--text-3); letter-spacing: .02em; }
.label--route { color: var(--route); }
.measure { max-width: 40em; }
.measure-sm { max-width: 32em; }
.prose { max-width: 42em; color: var(--text-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { color: var(--text); font-size: var(--fs-h3); margin-top: 2.2em; }
.prose h3 { color: var(--text); font-size: var(--fs-h4); margin-top: 1.8em; font-stretch: 108%; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); }

/* 6 · Header and navigation */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(0, 0, 0, .92); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { @media (min-width: 1100px) { .site-header { background: rgba(0, 0, 0, .72); backdrop-filter: blur(14px) saturate(1.2); } } }
@media (max-width: 1099px) { .site-header { background: #000; } }
.site-header__bar { display: flex; align-items: center; gap: var(--s5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand svg { height: 34px; width: auto; }
.brand .brand__word { height: 30px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.75rem); margin-left: auto; }
.nav__link, .nav__trigger { font: inherit; font-size: var(--fs-sm); color: var(--text-2); text-decoration: none; background: none; border: 0; padding: .55rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav__link:hover, .nav__trigger:hover, .nav__link[aria-current="page"], .nav__trigger[aria-expanded="true"] { color: var(--text); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--route); }
.nav__trigger::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.nav__trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.header-actions { display: flex; gap: var(--s3); align-items: center; }
.nav-toggle { display: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; }
.mega.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
.mega__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .9fr); gap: clamp(16px, 2.2vw, 36px); padding-block: var(--s6) var(--s7); }
.mega__col h3 { font-size: var(--fs-h4); margin-bottom: var(--s2); }
.mega__col h3 a { text-decoration: none; }
.mega__col > p { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: var(--s4); line-height: 1.5; }
.mega__col ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.mega__col li a { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-size: var(--fs-sm); }
.mega__col li a:hover { color: var(--text); box-shadow: inset 2px 0 0 var(--route); padding-left: 10px; }
.mega__aside { background: var(--panel-2); border-radius: var(--r-panel); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.mega__aside p { color: var(--text-2); font-size: var(--fs-sm); }
.nav__cta { display: none; }
@media (max-width: 1099px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: var(--r-ctl); padding: .5rem .8rem; font: inherit; font-size: var(--fs-sm); cursor: pointer; }
  .nav-toggle__bars { width: 16px; height: 10px; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s var(--ease), top .2s var(--ease); }
  .nav-toggle__bars::before { top: 1px; } .nav-toggle__bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4px; transform: rotate(-45deg); }
  .header-actions { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: var(--s4) var(--gutter) var(--s8); overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility 0s .2s; margin: 0; }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .2s var(--ease); }
  .nav__link, .nav__trigger { font-size: 1.25rem; font-stretch: 110%; color: var(--text); padding: .9rem 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--route); }
  .mega { position: static; visibility: visible; opacity: 1; transform: none; display: none; background: none; box-shadow: none; border: 0; }
  .mega.is-open { display: block; }
  .mega__inner { grid-template-columns: 1fr; padding: var(--s3) 0 var(--s5); gap: var(--s5); }
  .mega__aside { display: none; }
  .nav__cta { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s6); }
  body.nav-open { overflow: hidden; }
}

/* 7 · Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s8) var(--s6); background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: var(--s6); }
.footer-grid h2 { font-size: var(--fs-sm); font-stretch: 100%; font-weight: 600; letter-spacing: 0; color: var(--text); margin-bottom: var(--s3); }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.footer-grid a { color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-2); font-size: var(--fs-sm); margin-top: var(--s4); max-width: 26em; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-xs); }
.footer-legal p { max-width: 46em; }
@media (max-width: 1099px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* 8 · Heroes */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 2rem + 8vw, 9rem) clamp(3.5rem, 2rem + 5vw, 7rem); display: grid; gap: var(--s6); }
.hero__copy { max-width: 60rem; display: grid; gap: var(--s5); }
.hero__copy .lede { max-width: 38em; }
.hero__terrain { position: absolute; inset: 0; z-index: 1; color: rgba(242, 242, 238, .13); pointer-events: none; }
.hero__terrain svg { position: absolute; right: -4%; top: -6%; width: 76%; height: 112%; }
.hero__terrain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .86) 34%, rgba(0, 0, 0, .1) 72%), linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 30%); }
.hero__route { position: absolute; right: 2%; top: -2%; width: 68%; height: 104%; z-index: 1; pointer-events: none; overflow: hidden; }
.hero__route .r-line { fill: none; stroke: var(--route); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero__route .r-wp { fill: #000; stroke: var(--route); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hero__route .r-summit { fill: var(--route); }
.hero__route text { font-family: var(--mono); font-size: 14px; fill: var(--text-2); }
.hero__route .r-tick { stroke: var(--line-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s7); margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); max-width: 46rem; }
.hero__meta div { display: grid; gap: 2px; }
.hero__meta dt { font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.hero__meta dd { margin: 0; font-size: var(--fs-sm); color: var(--text); }
@media (max-width: 899px) { .hero__terrain svg, .hero__route { width: 150%; right: -60%; top: 10%; opacity: .6; } .hero__terrain::after { background: linear-gradient(0deg, #000 10%, rgba(0, 0, 0, .7) 60%, rgba(0, 0, 0, .5) 100%); } }

.phero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.phero__inner { position: relative; z-index: 2; padding-block: clamp(3rem, 2rem + 4vw, 6rem) clamp(3rem, 2rem + 3.5vw, 5.5rem); display: grid; grid-template-columns: 1fr; gap: var(--s6); align-items: end; }
@media (min-width: 1100px) { .phero__inner--aside { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(24px, 4vw, 72px); } }
.phero__copy { display: grid; gap: var(--s5); max-width: 52rem; }
.phero--photo { min-height: min(78vh, 760px); display: flex; align-items: flex-end; }
.phero--photo .phero__inner { width: 100%; }
.phero__img { position: absolute; inset: 0; z-index: 0; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.4) brightness(.62) contrast(1.08); }
.phero__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .72) 45%, rgba(0, 0, 0, .25) 100%), linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 45%); }
@media (max-width: 1099px) { .phero__img::after { background: linear-gradient(0deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .78) 50%, rgba(0, 0, 0, .6) 100%); } }
.phero__contour { position: absolute; inset: 0; z-index: 0; color: rgba(242, 242, 238, .08); pointer-events: none; }
.phero__contour svg { position: absolute; right: -10%; top: -30%; width: 70%; height: 160%; }
.phero__contour::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 30%, rgba(0, 0, 0, 0) 100%); }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--line-3); }
.breadcrumbs a { text-decoration: none; color: var(--text-2); }
.breadcrumbs a:hover { color: var(--text); }

/* HUD panel: corner ticks mark an instrument readout (definitions, results, short answers) */
.hud { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 1rem + 1vw, 2rem); }
.hud::before, .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--route); pointer-events: none; }
.hud::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: var(--r-panel); }
.hud::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: var(--r-panel); }
.hud__q { font-family: var(--mono); font-size: .8125rem; color: var(--route); margin-bottom: var(--s3); }
.hud__a { color: var(--text); font-size: var(--fs-base); line-height: 1.6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 46px; padding: .7rem 1.25rem; border-radius: var(--r-ctl); background: var(--text); color: var(--black); border: 1px solid var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 560; text-decoration: none; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--route); border-color: var(--route); color: var(--black); }
.btn--ghost, .btn--outline, .btn--light { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn--ghost:hover, .btn--outline:hover, .btn--light:hover { background: transparent; color: var(--route); border-color: var(--route); }
.btn--sm { min-height: 38px; padding: .45rem .9rem; font-size: .875rem; }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }
.textlink { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); }
.textlink:hover { text-decoration-color: var(--route); }

/* 9 · Content blocks */
/* Index list: services, examples, articles. Row = name | description | meta */
.index { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.index > li { border-bottom: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: var(--s5); align-items: baseline; padding: var(--s5) 0; text-decoration: none; color: var(--text); position: relative; }
.index a::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--route); transition: width .35s var(--ease); }
.index a:hover { color: var(--text); }
.index a:hover::before { width: 100%; }
.index__name { font-size: var(--fs-h4); font-weight: 540; font-stretch: 110%; letter-spacing: -.01em; line-height: 1.3; }
.index__desc { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.index__meta { font-family: var(--mono); font-size: .75rem; color: var(--text-3); white-space: nowrap; }
.index a:hover .index__meta { color: var(--route); }
@media (max-width: 799px) { .index a { grid-template-columns: 1fr; gap: var(--s2); } }

/* Pairs: title/description pairs in a ruled two-column grid */
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 56px); }
.pairs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pairs > div { border-top: 1px solid var(--line-2); padding: var(--s5) 0 var(--s6); display: grid; gap: var(--s2); align-content: start; }
.pairs h3 { font-size: var(--fs-h4); font-weight: 540; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.3; }
.pairs p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.6; }
@media (max-width: 959px) { .pairs--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 699px) { .pairs, .pairs--3 { grid-template-columns: 1fr; } }

/* Signals: warning indicators (amber) */
.signals { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.signals li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s5); display: grid; gap: var(--s2); grid-template-columns: auto 1fr; column-gap: var(--s4); }
.signals li::before { content: ""; width: 10px; height: 10px; margin-top: .45em; transform: rotate(45deg); border: 1.5px solid var(--caution); grid-row: span 2; }
.signals h3 { font-size: var(--fs-h4); font-weight: 540; font-stretch: 108%; line-height: 1.3; letter-spacing: -.01em; }
.signals p { color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 799px) { .signals { grid-template-columns: 1fr; } }

/* Simple marker lists */
.ticks, .crosses, .dashes, .gauges { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ticks li, .crosses li, .dashes li, .gauges li { position: relative; padding-left: 1.7rem; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 1px; top: .78em; width: 12px; height: 1.5px; background: var(--text-3); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.dashes li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 1px; background: var(--text-3); }
.gauges li::before { content: ""; position: absolute; left: 0; top: .35em; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid var(--text-3); border-right-color: var(--route); transform: rotate(-30deg); }

/* Chips: technology names */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: .75rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: .35rem .6rem; }

/* Panels and bands */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.band { display: grid; grid-template-columns: 1fr auto; gap: var(--s5) var(--s7); align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.5rem, 1rem + 2vw, 3rem); }
.band > div:first-child { display: grid; gap: var(--s3); max-width: 46rem; }
.band p { color: var(--text-2); }
@media (max-width: 799px) { .band { grid-template-columns: 1fr; } }
.notice { font-size: var(--fs-sm); color: var(--text-2); border-left: 2px solid var(--caution); padding: var(--s3) var(--s4); background: rgba(242, 179, 61, .06); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; }
.notice--route { border-left-color: var(--route); background: rgba(238, 95, 224, .06); }

/* Rows: label + description, ruled */
.rows { border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--line); }
.row__title { font-size: var(--fs-h4); font-weight: 540; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.3; }
.row p, .row__body { color: var(--text-2); }
@media (max-width: 799px) { .row { grid-template-columns: 1fr; gap: var(--s2); } }

/* Tables (comparisons, assumptions, findings) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ctable, .dtable { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.ctable th, .ctable td, .dtable th, .dtable td { text-align: left; padding: .85rem .9rem .85rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th, .dtable thead th { font-family: var(--mono); font-size: .75rem; font-weight: 400; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.ctable td, .dtable td { color: var(--text-2); }
.ctable tbody th, .dtable tbody th { color: var(--text); font-weight: 540; }
.dtable .num { font-family: var(--mono); color: var(--text); overflow-wrap: anywhere; }
.ctable { min-width: 760px; }
.ctable .check { display: inline-block; width: 11px; height: 6px; border-left: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(-45deg) translateY(-3px); }
.ctable .none { color: var(--text-3); }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s5); padding: var(--s5) 0; font-size: var(--fs-h4); font-weight: 520; font-stretch: 106%; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 12px; height: 12px; margin-top: .35em; background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat; transition: transform .2s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--route); }
.faq-item summary:hover { color: var(--text); }
.faq-item .answer { padding: 0 0 var(--s5); max-width: 46em; color: var(--text-2); }
.faq-item .answer > * + * { margin-top: .8em; }

/* Tiles: industries (photo) */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { position: relative; display: block; text-decoration: none; color: var(--text); border-radius: var(--r-panel); overflow: hidden; background: var(--panel); aspect-ratio: 4 / 5; }
.tile .media { position: absolute; inset: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.25) brightness(.55) contrast(1.1); transition: filter .4s var(--ease), transform .6s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .15) 60%); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: var(--s4); display: grid; gap: 4px; }
.tile__label { font-weight: 560; font-stretch: 108%; line-height: 1.25; letter-spacing: -.01em; }
.tile__meta { font-size: .8125rem; color: var(--text-2); line-height: 1.4; }
.tile:hover { color: var(--text); }
.tile:hover img { filter: saturate(.55) brightness(.68) contrast(1.05); transform: scale(1.03); }
.tile:hover .tile__label { box-shadow: inset 0 -1px 0 var(--route); }
@media (max-width: 1099px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tiles, .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pillars on home: three systems, each a panel with its own service index */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 1rem + 1vw, 2rem); display: flex; flex-direction: column; gap: var(--s4); }
.pillar h3 { font-size: var(--fs-h3); }
.pillar h3 a { text-decoration: none; }
.pillar > p { color: var(--text-2); font-size: var(--fs-sm); }
.pillar ul { list-style: none; padding: 0; margin-top: auto; border-top: 1px solid var(--line); }
.pillar li a { display: flex; justify-content: space-between; gap: var(--s3); padding: .6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text-2); font-size: var(--fs-sm); }
.pillar li a:hover { color: var(--text); box-shadow: inset 2px 0 0 var(--route); padding-left: 10px; }
@media (max-width: 1023px) { .pillars { grid-template-columns: 1fr; } }

/* Photo feature (split) */
.feature { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.feature__media { position: relative; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 5 / 4; background: var(--panel); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.35) brightness(.7) contrast(1.08); }
.feature__body { display: grid; gap: var(--s5); }
@media (max-width: 959px) { .feature { grid-template-columns: 1fr; } }
.ui-stack { position: absolute; left: var(--s5); right: var(--s5); bottom: var(--s5); display: grid; gap: 8px; max-width: 360px; }
.ui-card { background: rgba(13, 14, 16, .92); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: .7rem .85rem; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; backdrop-filter: blur(6px); }
.ui-card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--route); grid-row: span 2; }
.ui-card__t { font-size: .875rem; font-weight: 520; }
.ui-card__s { font-family: var(--mono); font-size: .6875rem; color: var(--text-3); grid-column: 2; }
.ui-card__tag { font-family: var(--mono); font-size: .6875rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: 1px 6px; grid-row: 1 / span 2; grid-column: 3; }

/* 10 · Route and diagrams */
/* Flight plan: a real sequence, so numbered waypoints */
.flightplan { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: wp; position: relative; }
.flightplan.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .flightplan.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flightplan.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s6); }
.flightplan li { position: relative; padding: 42px var(--s5) 0 0; counter-increment: wp; display: grid; gap: var(--s2); align-content: start; }
.flightplan li::before { content: "WP" counter(wp); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: .75rem; color: var(--route); background: var(--black); padding-right: 10px; z-index: 1; line-height: 18px; }
.flightplan li::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 0; border-top: 1.5px solid var(--route-dim); }
.flightplan li:first-child::after { left: 40px; }
.flightplan h3 { font-size: var(--fs-h4); font-weight: 540; font-stretch: 108%; letter-spacing: -.01em; line-height: 1.3; }
.flightplan p { color: var(--text-2); font-size: var(--fs-sm); }
.flightplan .time { font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.section--panel .flightplan li::before { background: var(--panel); }
@media (max-width: 1023px) {
  .flightplan, .flightplan.n3, .flightplan.n4, .flightplan.n6 { grid-template-columns: 1fr; gap: var(--s5); }
  .flightplan li { padding: 0 0 0 64px; }
  .flightplan li::after { left: 18px; right: auto; top: 26px; bottom: calc(-1 * var(--s5)); height: auto; border-top: 0; border-left: 1.5px solid var(--route-dim); }
  .flightplan li:last-child::after { display: none; }
  .flightplan li:first-child::after { left: 18px; }
}

/* System route (worked examples): nodes in order, joined by the route line */
.sysroute { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0; align-items: stretch; }
.sysroute li { position: relative; flex: 1 1 140px; min-width: 140px; padding: 0 22px 0 0; display: flex; }
.sysroute li span { display: block; width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-panel); padding: .8rem .9rem; font-size: .875rem; line-height: 1.35; color: var(--text); }
.sysroute li::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; border-top: 1.5px solid var(--route); }
.sysroute li:last-child { padding-right: 0; }
.sysroute li:last-child::after { display: none; }
.sysroute li:first-child span, .sysroute li:last-child span { border-color: var(--route); }
@media (max-width: 799px) {
  .sysroute { flex-direction: column; }
  .sysroute li { padding: 0 0 18px 0; min-width: 0; }
  .sysroute li::after { left: 24px; right: auto; top: auto; bottom: 0; width: 0; height: 18px; border-top: 0; border-left: 1.5px solid var(--route); }
}

/* Moves (nine-move vocabulary) */
.moves { list-style: none; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.moves li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.moves .move { font-family: var(--mono); font-size: .8125rem; color: var(--text); align-self: start; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: .2rem .5rem; justify-self: start; }
.moves .move--build { border-color: var(--route); color: var(--route); }
.moves .move--leave-alone { color: var(--text-3); }
.moves p { color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 599px) { .moves li { grid-template-columns: 1fr; gap: var(--s2); } }

/* Readouts (worked example maths) */
.readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.readout { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s5); display: grid; gap: var(--s3); align-content: start; }
.readout__label { font-size: var(--fs-sm); color: var(--text-2); }
.readout__calc { font-family: var(--mono); font-size: .75rem; color: var(--text-3); line-height: 1.6; }
.readout__result { font-family: var(--mono); font-size: 1.0625rem; color: var(--text); line-height: 1.4; border-top: 1px solid var(--line); padding-top: var(--s3); }

.tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .75rem; color: var(--text-2); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: .2rem .55rem; }
.tag--route { color: var(--route); border-color: var(--route-dim); }
.tag--caution { color: var(--caution); border-color: rgba(242, 179, 61, .4); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* Interactive system map (home) */
.sysmap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.sysmap__figure { position: relative; aspect-ratio: 7 / 5; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); background-image: radial-gradient(rgba(242, 242, 238, .1) 1px, transparent 1px); background-size: 24px 24px; }
.sysmap__plot { position: absolute; inset: 6% 7%; }
.sysmap__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sysmap__edge { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .25s var(--ease); }
.sysmap__edge.is-leak { stroke-dasharray: 4 5; stroke: rgba(242, 179, 61, .45); }
.sysmap__edge.is-active { stroke: var(--route); }
.sysmap__node { position: absolute; transform: translate(-50%, -50%); font: inherit; font-family: var(--mono); font-size: .75rem; color: var(--text-2); background: var(--black); border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .75rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.sysmap__node[data-node="ads"] { left: 14%; top: 22%; } .sysmap__node[data-node="search"] { left: 14%; top: 70%; } .sysmap__node[data-node="web"] { left: 38%; top: 46%; }
.sysmap__node[data-node="crm"] { left: 64%; top: 28%; } .sysmap__node[data-node="inbox"] { left: 64%; top: 72%; } .sysmap__node[data-node="team"] { left: 88%; top: 50%; } .sysmap__node[data-node="reports"] { left: 42.9%; top: 8%; }
.sysmap__node::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.sysmap__node:hover, .sysmap__node.is-linked { color: var(--text); border-color: var(--line-3); }
.sysmap__node[aria-pressed="true"] { color: var(--black); background: var(--route); border-color: var(--route); }
.sysmap__node[aria-pressed="true"]::before { background: var(--black); border-color: var(--black); }
.sysmap__panel { display: grid; gap: var(--s4); }
.sysmap__panel h3 { font-size: var(--fs-h3); }
.sysmap__panel p { color: var(--text-2); }
.sysmap__panel .leak { border-left: 2px solid var(--caution); padding-left: var(--s4); }
.sysmap__panel .fix { border-left: 2px solid var(--route); padding-left: var(--s4); }
@media (max-width: 959px) { .sysmap { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .sysmap__plot { inset: 4% 13%; } .sysmap__figure { aspect-ratio: 1; } }

/* 11 · Commerce: tiers, finder, timeline */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); position: relative; }
.tier--feature { border-color: var(--line-3); }
.tier.is-recommended { border-color: var(--route); box-shadow: 0 0 0 1px var(--route); }
.tier__flag { position: absolute; top: -11px; left: var(--s5); font-family: var(--mono); font-size: .6875rem; background: var(--text); color: var(--black); padding: 2px 8px; border-radius: var(--r-ctl); }
.tier.is-recommended .tier__flag { background: var(--route); }
.tier__name { font-size: var(--fs-h3); }
.tier__for { color: var(--text-2); font-size: var(--fs-sm); min-height: 4.8em; }
.tier__price { font-size: 2.4rem; font-weight: 520; font-stretch: 112%; letter-spacing: -.03em; line-height: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.tier__price .from { font-size: .9rem; font-weight: 400; color: var(--text-3); font-stretch: 100%; letter-spacing: 0; }
.tier__unit { font-size: .875rem; color: var(--text-3); font-weight: 400; letter-spacing: 0; font-stretch: 100%; }
.tier__facts { list-style: none; padding: 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.tier__facts li { display: flex; justify-content: space-between; gap: var(--s3); padding: .5rem 0; border-bottom: 1px solid var(--line); color: var(--text-2); }
.tier__facts li span:last-child { color: var(--text); text-align: right; }
dl.tier__facts { display: grid; grid-template-columns: auto 1fr; margin: 0; }
dl.tier__facts dt, dl.tier__facts dd { padding: .5rem 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.tier__facts dt { color: var(--text-2); }
dl.tier__facts dd { color: var(--text); text-align: right; }
.tier .btn { margin-top: auto; }
.gst-note { color: var(--text-3); font-size: var(--fs-xs); }
@media (max-width: 1099px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .tiers { grid-template-columns: 1fr; } }

.finder { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 48px); align-items: start; }
.finder fieldset { border: 0; padding: 0; margin: 0 0 var(--s6); }
.finder legend { font-weight: 540; font-stretch: 106%; margin-bottom: var(--s3); font-size: var(--fs-h4); }
.choice-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; height: 100%; border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: .75rem .9rem; font-size: var(--fs-sm); color: var(--text-2); transition: border-color .15s, color .15s, background .15s; }
.choice input:hover + span { border-color: var(--line-3); color: var(--text); }
.choice input:checked + span { border-color: var(--route); color: var(--text); background: rgba(238, 95, 224, .08); }
.choice input:focus-visible + span { outline: 2px solid var(--route); outline-offset: 2px; }
.finder__result { position: sticky; top: calc(var(--header-h) + 24px); }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: var(--s4) 0 var(--s2); }
.meter span { height: 6px; border-radius: 1px; background: var(--panel-3); }
.meter span.on { background: var(--line-3); }
.meter span.pick { background: var(--route); }
.meter-labels { display: grid; grid-template-columns: repeat(4, 1fr); font-family: var(--mono); font-size: .6875rem; color: var(--text-3); }
@media (max-width: 959px) { .finder { grid-template-columns: 1fr; } .finder__result { position: static; } }

.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: wp; }
.timeline .step { position: relative; padding: 42px var(--s5) 0 0; counter-increment: wp; display: grid; gap: var(--s2); align-content: start; }
.timeline .step::before { content: "WP" counter(wp); position: absolute; top: 0; left: 0; font-family: var(--mono); font-size: .75rem; color: var(--route); background: var(--black); padding-right: 10px; z-index: 1; line-height: 18px; }
.timeline .step::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; border-top: 1.5px solid var(--route-dim); }
.timeline .step h3 { font-size: var(--fs-h4); font-weight: 540; font-stretch: 108%; line-height: 1.3; }
.timeline .step p { color: var(--text-2); font-size: var(--fs-sm); }
.section--panel .timeline .step::before { background: var(--panel); }
.timeline--stack { grid-template-columns: 1fr; gap: var(--s5); }
.timeline--stack .step, .contact-aside .timeline .step { padding: 0 0 0 52px; }
.timeline--stack .step::after { left: 14px; right: auto; top: 24px; bottom: calc(-1 * var(--s5)); border-top: 0; border-left: 1.5px solid var(--route-dim); }
.timeline--stack .step:last-child::after { display: none; }
.contact-aside .timeline .step::before { background: var(--panel); }
@media (max-width: 1023px) {
  .timeline { grid-template-columns: 1fr; gap: var(--s5); }
  .timeline .step { padding: 0 0 0 52px; }
  .timeline .step::after { left: 14px; right: auto; top: 24px; bottom: calc(-1 * var(--s5)); border-top: 0; border-left: 1.5px solid var(--route-dim); }
  .timeline .step:last-child::after { display: none; }
}

/* 12 · Forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s4); }
.form .full, .form .field.full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: var(--fs-sm); font-weight: 520; }
.field .req { color: var(--route); }
.field input, .field select, .field textarea { font: inherit; font-size: var(--fs-base); color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-ctl); padding: .75rem .85rem; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--route); box-shadow: 0 0 0 1px var(--route); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5em; }
.field select option, .field select optgroup { background: var(--panel); color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--caution); }
.field .error { color: var(--caution); font-size: var(--fs-xs); min-height: 1em; }
.field .hint { color: var(--text-3); font-size: var(--fs-xs); }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); }
.check input { margin-top: .25em; accent-color: var(--route); width: 18px; height: 18px; }
.form-note { color: var(--text-3); font-size: var(--fs-xs); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; grid-column: 1 / -1; border: 1px solid var(--route); border-radius: var(--r-panel); padding: var(--s5); background: rgba(238, 95, 224, .06); }
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: var(--caution); background: rgba(242, 179, 61, .06); }
.form-status h3 { font-size: var(--fs-h4); margin-bottom: var(--s2); }
.form-status p { color: var(--text-2); }
@media (max-width: 699px) { .form { grid-template-columns: 1fr; } }
.contact-aside { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s6) var(--s5); display: grid; gap: var(--s6); align-content: start; }
.contact-aside dl { display: grid; gap: var(--s5); }
.contact-aside dt { font-family: var(--mono); font-size: .75rem; color: var(--text-3); margin-bottom: 4px; }
.contact-aside dd { margin: 0; font-size: var(--fs-lg); }

/* 13 · Articles */
.article { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.article__toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: grid; gap: var(--s3); }
.article__toc ol { list-style: none; padding: 0; display: grid; gap: .4rem; border-left: 1px solid var(--line); }
.article__toc a { display: block; padding: .15rem 0 .15rem var(--s4); margin-left: -1px; border-left: 1px solid transparent; color: var(--text-3); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; }
.article__toc a:hover, .article__toc a.is-current { color: var(--text); border-left-color: var(--route); }
.article__body { max-width: 44rem; font-size: 1.125rem; line-height: 1.7; color: #cfd1d3; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { color: var(--text); font-size: var(--fs-h3); margin-top: 2.4em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article__body h3 { color: var(--text); font-size: var(--fs-h4); margin-top: 1.8em; font-stretch: 106%; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body li + li { margin-top: .45em; }
.article__body li::marker { color: var(--text-3); }
.article__body strong { color: var(--text); font-weight: 600; }
.article__body a { color: var(--text); text-decoration-color: var(--route); }
.article__body blockquote { border-left: 2px solid var(--route); padding-left: var(--s5); color: var(--text); font-size: var(--fs-lg); }
.article__body table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.article__body th, .article__body td { text-align: left; padding: .7rem .9rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.article__body th { color: var(--text); font-weight: 560; border-bottom-color: var(--line-2); }
.article__body code { font-family: var(--mono); font-size: .875em; background: var(--panel-2); padding: .1em .35em; border-radius: var(--r-ctl); color: var(--text); }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: var(--fs-sm); color: var(--text-3); }
.article__meta strong { color: var(--text-2); font-weight: 520; }
.takeaways { counter-reset: tk; list-style: none; padding: 0; display: grid; gap: var(--s3); }
.takeaways li { counter-increment: tk; display: grid; grid-template-columns: 2.2rem 1fr; color: var(--text-2); }
.takeaways li::before { content: counter(tk, decimal-leading-zero); font-family: var(--mono); font-size: .75rem; color: var(--route); padding-top: .3em; }
.sources { list-style: none; padding: 0; counter-reset: src; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.sources li { counter-increment: src; display: grid; grid-template-columns: 2rem 1fr; color: var(--text-3); }
.sources li::before { content: "[" counter(src) "]"; font-family: var(--mono); font-size: .75rem; padding-top: .15em; }
.sources a { color: var(--text-2); word-break: break-word; }
.author { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: center; }
.author__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); }
.author__mark svg { width: 26px; height: 26px; }
@media (max-width: 1099px) { .article { grid-template-columns: 1fr; } .article__toc { position: static; } .article__toc ol { display: none; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s6); }
.filters button { font: inherit; font-size: .875rem; color: var(--text-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: .4rem .9rem; cursor: pointer; }
.filters button:hover { color: var(--text); border-color: var(--line-3); }
.filters button[aria-pressed="true"] { color: var(--black); background: var(--text); border-color: var(--text); }
.posts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post-card { height: 100%; }
.post-card a { display: flex; flex-direction: column; gap: var(--s3); height: 100%; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: var(--s5); color: var(--text); }
.post-card a:hover { border-color: var(--line-3); color: var(--text); }
.post-card h3 { font-size: var(--fs-h4); font-weight: 540; font-stretch: 106%; line-height: 1.3; letter-spacing: -.01em; }
.post-card p { color: var(--text-2); font-size: var(--fs-sm); }
.post-card .label { margin-top: auto; padding-top: var(--s3); }
.post-card a:hover .label { color: var(--route); }
.post-card[hidden] { display: none; }
@media (max-width: 1023px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 649px) { .posts { grid-template-columns: 1fr; } }

/* 14 · Tools */
.tool { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 3vw, 48px); align-items: start; }
@media (max-width: 1023px) { .tool { grid-template-columns: 1fr; } }
.tool__panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.tool__progress { display: flex; gap: 4px; margin-bottom: var(--s5); }
.tool__progress span { flex: 1; height: 4px; border-radius: 1px; background: var(--panel-3); }
.tool__progress span.done { background: var(--line-3); }
.tool__progress span.now { background: var(--route); }
.tool__step { display: grid; gap: var(--s5); }
.tool__step[hidden] { display: none; }
.tool__q { font-size: var(--fs-h3); font-weight: 520; font-stretch: 110%; letter-spacing: -.015em; line-height: 1.2; }
.tool__nav { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); }
.options { display: grid; gap: 8px; }
.options .choice span { padding: .9rem 1rem; }
.range { display: grid; gap: 8px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.range__top label { font-weight: 520; font-size: var(--fs-sm); }
.range output { font-family: var(--mono); font-size: .9375rem; color: var(--text); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--black); border: 2px solid var(--route); margin-top: -8px; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--black); border: 2px solid var(--route); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) var(--s6); }
@media (max-width: 699px) { .calc-grid { grid-template-columns: 1fr; } }
.gauge { width: 168px; height: 168px; }
.gauge circle { fill: none; stroke-width: 8; }
.gauge .g-track { stroke: var(--panel-3); }
.gauge .g-val { stroke: var(--route); stroke-linecap: butt; transition: stroke-dashoffset .8s var(--ease); }
.gauge text { font-family: var(--mono); fill: var(--text); }
.gauge .g-sub { fill: var(--text-3); }
.result { display: grid; gap: var(--s5); }
.result__head { display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: center; }
.bars { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 3rem; gap: 4px var(--s3); align-items: center; font-size: var(--fs-sm); color: var(--text-2); }
.bars .bar { grid-column: 1 / -1; height: 4px; background: var(--panel-3); border-radius: 1px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; background: var(--text-2); width: var(--v, 0%); }
.bars li.low .bar i { background: var(--caution); }
.bars li.high .bar i { background: var(--route); }
.bars .v { font-family: var(--mono); font-size: .75rem; color: var(--text); text-align: right; }
.bigfig { font-family: var(--mono); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.05; color: var(--text); letter-spacing: -.02em; }

/* 15 · Utilities */
.mt-1 { margin-top: var(--s2); } .mt-2 { margin-top: var(--s3); } .mt-3 { margin-top: var(--s4); } .mt-4 { margin-top: var(--s5); } .mt-5 { margin-top: var(--s6); } .mt-6 { margin-top: var(--s7); } .mt-7 { margin-top: var(--s8); }
.stack { display: grid; gap: var(--s4); align-content: start; }
.stack-lg { display: grid; gap: var(--s6); align-content: start; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide-sm { } @media (max-width: 699px) { .hide-sm { display: none !important; } }
.eyebrow { font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.num { font-family: var(--mono); }

/* 16 · Motion: one orchestrated moment, the hero route drawing in */
@media (prefers-reduced-motion: no-preference) {
  .hero__route .r-line { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: route-draw 2.6s var(--ease) .3s forwards; }
  .hero__route .wp { opacity: 0; animation: wp-in .5s var(--ease) forwards; }
  .hero__route .d1 { animation-delay: .8s; } .hero__route .d2 { animation-delay: 1.25s; } .hero__route .d3 { animation-delay: 1.7s; } .hero__route .d4 { animation-delay: 2.2s; } .hero__route .d5 { animation-delay: 2.9s; }
  .hero__route .r-summit { opacity: 0; transform-box: fill-box; transform-origin: center; animation: wp-in .6s var(--ease) 2.9s forwards, pulse 2.4s ease-in-out 3.5s infinite; }
}
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes wp-in { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* 17 · Print */
@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .hero__terrain, .hero__route, .article__toc { display: none !important; }
  body, .section--panel, .panel, .hud { background: #fff !important; color: #000 !important; }
  .muted, .lede, .prose, .article__body { color: #222 !important; }
}

/* ---- Consent banner ---- */
.consent { position: fixed; z-index: 60; left: var(--s4, 1rem); right: var(--s4, 1rem); bottom: var(--s4, 1rem); max-width: 46rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding: 1rem 1.25rem; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--r-ctl, 6px); box-shadow: 0 12px 40px rgba(0, 0, 0, .55); }
.consent[hidden] { display: none; }
.consent__text { margin: 0; flex: 1 1 22rem; font-size: var(--fs-sm); color: var(--text-2); }
.consent__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
@media print { .consent { display: none; } }
