/* ==========================================================================
   Loopium — site stylesheet
   Layout concept: an operating score. Carbon and Ink fields carry the system;
   Paper Cream fields carry the argument. Thin rules, mono labels, one champagne
   accent per view. 12 / 8 / 4 column grid.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License; see fonts/LICENSE-*.txt) */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Brand palette (Loopium dual-brand v2.0) */
  --carbon: #15171C;
  --ink: #1B2340;
  --cream: #F4EEE1;
  --ivory: #FBF8F2;
  --champagne: #B08D3E;
  --slate: #8B8577;

  /* Derived, contrast-checked */
  --champagne-deep: #7A5F22;   /* champagne as text on cream: 5.3:1 */
  --champagne-lift: #C9A55A;   /* champagne as text on carbon: 7.6:1 */
  --slate-deep: #5F5B50;       /* secondary text on cream: 5.8:1 */
  --slate-lift: #B3AE9F;       /* secondary text on carbon: 8:1 */
  --carbon-2: #1C1F27;
  --ink-2: #222B4D;
  --signal: #9C3D22;           /* reserved: stopped work / binding constraint */
  --signal-lift: #E0906F;

  /* Type */
  --f-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-hero: clamp(3.1rem, 8.4vw, 8.6rem);
  --t-h1: clamp(2.7rem, 6.2vw, 6rem);
  --t-h2: clamp(2.1rem, 4.4vw, 4rem);
  --t-h3: clamp(1.45rem, 2.2vw, 2rem);
  --t-lede: clamp(1.08rem, 1.35vw, 1.28rem);
  --t-body: 1rem;
  --t-small: .875rem;
  --t-label: .72rem;

  /* Space */
  --gutter: clamp(16px, 4vw, 56px);
  --col-gap: clamp(16px, 2vw, 32px);
  --sect: clamp(72px, 10vw, 152px);
  --radius: 2px;

  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Default tone = carbon */
  --bg: var(--carbon);
  --fg: var(--ivory);
  --muted: var(--slate-lift);
  --rule: rgba(251, 248, 242, .14);
  --rule-strong: rgba(251, 248, 242, .32);
  --accent: var(--champagne);
  --accent-text: var(--champagne-lift);
  --panel: var(--carbon-2);
  --btn-bg: var(--champagne);
  --btn-fg: var(--carbon);
  --stop: var(--signal-lift);
  color-scheme: dark;
}

/* Tones: every section declares the field it sits on */
.tone-carbon, .tone-ink {
  --fg: var(--ivory); --muted: var(--slate-lift);
  --rule: rgba(251, 248, 242, .14); --rule-strong: rgba(251, 248, 242, .32);
  --accent-text: var(--champagne-lift); --btn-bg: var(--champagne); --btn-fg: var(--carbon);
  --stop: var(--signal-lift);
  color-scheme: dark; background: var(--bg); color: var(--fg);
}
.tone-carbon { --bg: var(--carbon); --panel: var(--carbon-2); }
.tone-ink { --bg: var(--ink); --panel: var(--ink-2); --muted: #BDB9AD; }
.tone-cream, .tone-ivory {
  --fg: var(--ink); --muted: var(--slate-deep);
  --rule: rgba(27, 35, 64, .16); --rule-strong: rgba(27, 35, 64, .38);
  --accent-text: var(--champagne-deep); --btn-bg: var(--ink); --btn-fg: var(--ivory);
  --stop: var(--signal);
  color-scheme: light; background: var(--bg); color: var(--fg);
}
.tone-cream { --bg: var(--cream); --panel: var(--ivory); }
.tone-ivory { --bg: var(--ivory); --panel: var(--cream); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 1px; }
::selection { background: var(--champagne); color: var(--carbon); }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--champagne); color: var(--carbon);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.sect { padding-block: var(--sect); position: relative; }
.sect--tight { padding-block: clamp(48px, 6vw, 88px); }
.sect + .sect.same { padding-top: 0; }

.g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: clamp(28px, 3vw, 44px); }
.g > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1025px) {
  .d-2 { grid-column: auto / span 2; }
  .d-3 { grid-column: auto / span 3; }
  .d-4 { grid-column: auto / span 4; }
  .d-5 { grid-column: auto / span 5; }
  .d-6 { grid-column: auto / span 6; }
  .d-7 { grid-column: auto / span 7; }
  .d-8 { grid-column: auto / span 8; }
  .d-9 { grid-column: auto / span 9; }
  .d-10 { grid-column: auto / span 10; }
  .ds-2 { grid-column-start: 2; }
  .ds-3 { grid-column-start: 3; }
  .ds-4 { grid-column-start: 4; }
  .ds-5 { grid-column-start: 5; }
  .ds-6 { grid-column-start: 6; }
  .ds-7 { grid-column-start: 7; }
  .ds-8 { grid-column-start: 8; }
  .ds-9 { grid-column-start: 9; }
}
@media (max-width: 1024px) {
  .g { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .t-4 { grid-column: auto / span 4; }
}
@media (max-width: 640px) {
  .g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .t-4 { grid-column: 1 / -1; }
}

.stack { display: flex; flex-direction: column; gap: var(--stack, 20px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.measure { max-width: 62ch; }
.measure-s { max-width: 46ch; }

/* ---------- Type ---------- */
.label {
  font-family: var(--f-mono); font-size: var(--t-label); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 12px;
}
.label--rule::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.label--muted { color: var(--muted); }
.display { font-family: var(--f-display); font-weight: 400; letter-spacing: -.012em; line-height: .96; }
.h-hero { font-size: var(--t-hero); line-height: .92; letter-spacing: -.02em; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); line-height: 1; }
.h3 { font-size: var(--t-h3); line-height: 1.08; }
.h4 { font-family: var(--f-body); font-weight: 600; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.005em; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.lede strong, .lede b { color: var(--fg); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: var(--t-small); }
.mono { font-family: var(--f-mono); font-size: .82rem; letter-spacing: .02em; }
.ital { font-style: italic; }
.accent { color: var(--accent-text); }
em.serif { font-family: var(--f-display); font-style: italic; font-size: 1.08em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--f-body); font-size: .95rem; font-weight: 600; letter-spacing: .005em;
  text-decoration: none; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bg);
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--fg); padding-block: 6px; border-bottom: 1px solid var(--rule-strong);
}
.link-arrow svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.link-arrow:hover { border-color: var(--accent); }
.link-arrow:hover svg { transform: translate(2px, -2px); }
.cta-note { font-size: var(--t-small); color: var(--muted); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
  color: var(--ivory);
}
.hdr.is-solid, .hdr.is-open { background: rgba(21, 23, 28, .97); border-bottom-color: rgba(251, 248, 242, .1); }
@supports (backdrop-filter: blur(8px)) { .hdr.is-solid { background: rgba(21, 23, 28, .9); backdrop-filter: blur(10px); } }
.hdr__in { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.hdr__logo { display: block; width: 132px; flex: 0 0 auto; }
.hdr__logo img { width: 100%; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: rgba(251, 248, 242, .82);
  padding-block: 6px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); border-bottom-color: var(--champagne); }
.hdr__cta { display: flex; align-items: center; gap: 14px; }
.hdr__note { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-lift); text-align: right; line-height: 1.35; }
.hdr .btn { --btn-bg: var(--champagne); --btn-fg: var(--carbon); }
.menu-btn {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid rgba(251,248,242,.28);
  background: transparent; border-radius: var(--radius); cursor: pointer; position: relative;
}
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ivory); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 26px; }
.hdr.is-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.hdr.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.hdr.is-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.mnav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
  background: var(--carbon); color: var(--ivory);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
}
.mnav[hidden] { display: none !important; }
.mnav ol { list-style: none; border-top: 1px solid rgba(251,248,242,.14); }
.mnav li { border-bottom: 1px solid rgba(251,248,242,.14); }
.mnav li a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; text-decoration: none; font-family: var(--f-display); font-size: 2rem; line-height: 1.1; }
.mnav li a span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; color: var(--slate-lift); }
@media (max-width: 1120px) { .hdr__note { display: none; } .nav { gap: 20px; } }
@media (max-width: 960px) {
  .nav, .hdr__cta { display: none; }
  .menu-btn { display: block; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 112px)); padding-bottom: clamp(40px, 6vw, 80px); overflow: hidden; }
.hero__grid { align-items: end; }
.hero h1 em { font-style: italic; color: var(--accent-text); }
.hero__proof {
  margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero__proof li { list-style: none; display: flex; align-items: center; gap: 10px; }
.hero__proof li::before { content: ""; width: 6px; height: 6px; background: var(--champagne); transform: rotate(45deg); }
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--rule); }
.page-hero .answer { margin-top: 28px; }

/* ---------- The score (hero visual) ---------- */
.score { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; }
.score__scroll { overflow-x: auto; scrollbar-width: none; }
.score__scroll::-webkit-scrollbar { display: none; }
.score svg { display: block; width: 100%; min-width: 760px; height: auto; }
.score .ln { stroke: rgba(251,248,242,.14); stroke-width: 1; }
.score .ln-strong { stroke: rgba(251,248,242,.28); }
.score .tick { fill: rgba(251,248,242,.45); font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; }
.score .lane { fill: rgba(251,248,242,.62); font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; }
.score .lane-brand { fill: rgba(251,248,242,.78); font-family: var(--f-body); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; }
.score .lane-sub { fill: rgba(251,248,242,.38); font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; }
.score .blk { fill: rgba(251,248,242,.08); stroke: rgba(251,248,242,.22); stroke-width: 1; transition: fill .5s var(--ease), stroke .5s; }
.score .blk-t { fill: rgba(251,248,242,.5); font-family: var(--f-mono); font-size: 9px; letter-spacing: .08em; transition: fill .5s; }
.score .dia { fill: var(--carbon); stroke: rgba(251,248,242,.5); stroke-width: 1.2; transition: fill .4s, stroke .4s; }
.score .dot { fill: rgba(251,248,242,.35); transition: fill .4s; }
.score .ring { fill: none; stroke: rgba(251,248,242,.4); stroke-width: 1.2; transition: stroke .4s; }
.score .stop { stroke: var(--signal-lift); stroke-width: 1.4; opacity: .55; transition: opacity .4s; }
.score .tie { stroke: rgba(176,141,62,.0); stroke-width: 1; stroke-dasharray: 2 4; transition: stroke .5s; }
.score .past.blk { fill: rgba(176,141,62,.18); stroke: rgba(176,141,62,.7); }
.score .past.blk-t { fill: var(--ivory); }
.score .past.dia { fill: var(--champagne); stroke: var(--champagne); }
.score .past.dot { fill: var(--ivory); }
.score .past.ring { stroke: var(--champagne); }
.score .past.stop { opacity: 1; }
.score .past.tie { stroke: rgba(176,141,62,.6); }
.score .ph-line { stroke: var(--champagne); stroke-width: 1.5; }
.score .ph-tag rect { fill: var(--champagne); }
.score .ph-tag text { fill: var(--carbon); font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: .1em; }
.score__legend {
  display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 14px 0 0;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.score__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-dia { width: 9px; height: 9px; background: var(--champagne); transform: rotate(45deg); }
.lg-blk { width: 16px; height: 8px; border: 1px solid var(--champagne); background: rgba(176,141,62,.18); }
.lg-ring { width: 10px; height: 10px; border: 1.2px solid var(--champagne); border-radius: 50%; }
.lg-stop { width: 10px; height: 10px; position: relative; }
.lg-stop::before, .lg-stop::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 1.4px; background: var(--signal-lift); transform: rotate(45deg); }
.lg-stop::after { transform: rotate(-45deg); }

/* ---------- Section heads ---------- */
.shead { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--col-gap); row-gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.shead > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1025px) {
  .shead .shead__t { grid-column: 1 / span 7; }
  .shead .shead__l { grid-column: 8 / span 5; align-self: end; }
  .shead--stack .shead__t, .shead--stack .shead__l { grid-column: 1 / span 8; }
}
.shead .label { margin-bottom: 18px; }

/* ---------- Scramble vs score ---------- */
.versus { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); }
.versus > div { padding: clamp(24px, 3vw, 40px); min-width: 0; }
.versus > div + div { border-left: 1px solid var(--rule); background: var(--ink); color: var(--ivory); --muted: #BDB9AD; --rule: rgba(251,248,242,.14); --accent-text: var(--champagne-lift); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } .versus > div + div { border-left: 0; border-top: 1px solid var(--rule); } }
.versus h3 { font-family: var(--f-display); font-size: 2rem; line-height: 1; margin: 10px 0 22px; }
.scramble { position: relative; height: 250px; }
.scramble span {
  position: absolute; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; white-space: nowrap;
  padding: 6px 9px; border: 1px dashed var(--rule-strong); background: var(--bg); color: var(--muted);
}
.score-list { list-style: none; display: flex; flex-direction: column; }
.score-list li { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.score-list li:first-child { border-top: 1px solid var(--rule); }
.score-list .k { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.score-list .w { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.versus__foot { margin-top: 18px; font-size: var(--t-small); color: var(--muted); }

/* ---------- Loop system map ---------- */
.loop { position: relative; }
.loop__rail { position: relative; height: 1px; background: var(--rule); margin-bottom: 0; }
.loop__rail i { position: absolute; left: 0; top: 0; height: 1px; width: calc(var(--p, 1) * 100%); background: var(--champagne); transition: width .2s linear; }
.loop__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.loop__col { padding: 28px clamp(16px, 2vw, 32px) 32px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 18px; min-width: 0; position: relative; }
.loop__col:first-child { border-left: 0; padding-left: 0; }
.loop__col::before { content: ""; position: absolute; top: -5px; left: clamp(16px, 2vw, 32px); width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--champagne); transform: rotate(45deg); }
.loop__col:first-child::before { left: 0; }
.loop__verb { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.loop__name { font-family: var(--f-display); font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1; }
.loop dl { display: grid; gap: 14px; margin: 0; }
.loop dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.loop dd { margin: 0; font-size: .93rem; line-height: 1.5; }
.loop__sub { border-top: 1px dashed var(--rule-strong); padding-top: 14px; }
.loop__sub b { font-weight: 600; }
.loop__col .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 1024px) {
  .loop__cols { grid-template-columns: 1fr 1fr; }
  .loop__col:nth-child(3) { border-left: 0; padding-left: 0; }
  .loop__col:nth-child(3)::before { left: 0; }
  .loop__col:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .loop__cols { grid-template-columns: 1fr; }
  .loop__col { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .loop__col::before { left: 0; }
}
.loop__note { margin-top: 20px; font-size: var(--t-small); color: var(--muted); }

/* ---------- Mission sheet ---------- */
.sheet { background: var(--panel); border: 1px solid var(--rule-strong); position: relative; }
.sheet__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 22px; border-bottom: 1px solid var(--rule-strong); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet dl { margin: 0; }
.sheet__row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 22px; border-bottom: 1px solid var(--rule); }
.sheet__row:last-child { border-bottom: 0; }
.sheet dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); padding-top: 3px; }
.sheet dd { margin: 0; }
.sheet__row--lead dd { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.08; }
@media (max-width: 560px) { .sheet__row { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Case cards & metrics ---------- */
.cases { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.case { background: var(--bg); padding: clamp(24px, 3vw, 44px); display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: var(--col-gap); row-gap: 24px; }
.case > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 1025px) { .case__txt { grid-column: 1 / span 5; } .case__m { grid-column: 7 / span 6; } }
.case h3 { font-family: var(--f-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.04; margin: 14px 0 16px; }
.case h3 a { text-decoration: none; }
.case h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.metrics { display: grid; grid-template-columns: repeat(var(--mc, 3), minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); align-self: start; }
.metric { background: var(--bg); padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.metric__v { font-family: var(--f-display); font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metric__v.is-word { font-size: clamp(1.45rem, 2.1vw, 1.9rem); }
.metric__l { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.metric__c { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-top: auto; padding-top: 6px; }
.qualifier { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); border-top: 1px dashed var(--rule-strong); padding-top: 12px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--rule-strong); color: var(--muted); }
.tag--status { border-color: var(--accent); color: var(--accent-text); }

/* ---------- Comparison table ---------- */
.tbl-wrap { overflow-x: auto; border-top: 1px solid var(--rule-strong); }
table.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .96rem; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.cmp thead th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--muted); padding-block: 16px; }
.cmp tbody th { font-weight: 600; width: 18%; padding-left: 0; }
.cmp td.typ { color: var(--muted); width: 36%; }
.cmp .lp { background: var(--ink); color: var(--ivory); border-bottom-color: rgba(251,248,242,.12); }
.cmp thead .lp { color: var(--champagne-lift); }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.data th, .data td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.data thead th { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.data td:first-child, .data th:first-child { padding-left: 0; }
.data .num { font-variant-numeric: tabular-nums; }

/* ---------- Institute band ---------- */
.inst__lockup { width: min(340px, 80%); }
.inst__points { list-style: none; border-top: 1px solid var(--rule); }
.inst__points li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.inst__points li span { font-family: var(--f-mono); font-size: .7rem; color: var(--accent-text); padding-top: 4px; }
.inst__rule { height: 1px; background: var(--champagne); width: 64px; }

/* ---------- Article cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.acard { background: var(--bg); padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 16px; min-height: 280px; text-decoration: none; position: relative; }
a.acard:hover .acard__t { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; }
.acard__t { font-family: var(--f-display); font-size: 1.75rem; line-height: 1.08; }
.acard__m { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 20px; align-items: center;
  padding: 22px 0; font-family: var(--f-display); font-size: clamp(1.3rem, 1.9vw, 1.7rem); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 24px; height: 24px; position: relative; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 11.5px; height: 1px; background: var(--fg); transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent-text); }
.faq .faq__a { padding: 0 0 26px; max-width: 70ch; color: var(--muted); }

/* ---------- CTA band ---------- */
.ctab h2 { font-size: clamp(2.4rem, 5.6vw, 5.4rem); line-height: .98; }
.ctab__meta { display: grid; gap: 10px; font-size: .95rem; }
.ctab__meta a { text-decoration: none; }
.ctab__meta a:hover { text-decoration: underline; }
.copyable { display: inline-flex; align-items: center; gap: 10px; }
.copy-btn { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; background: transparent; border: 1px solid var(--rule-strong); color: var(--muted); cursor: pointer; border-radius: var(--radius); }
.copy-btn:hover { border-color: var(--accent); color: var(--fg); }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid rgba(251,248,242,.1); padding-block: clamp(56px, 7vw, 96px) 36px; }
.ftr__logo { width: 150px; }
.ftr h2 { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-lift); font-weight: 500; margin-bottom: 16px; }
.ftr ul { list-style: none; display: grid; gap: 9px; font-size: .92rem; }
.ftr ul a { text-decoration: none; color: rgba(251,248,242,.86); }
.ftr ul a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--champagne); }
.ftr__base { margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid rgba(251,248,242,.1); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .8rem; color: var(--slate-lift); }
.ftr__base ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form .pair { grid-template-columns: 1fr; } }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld label, .fld legend { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fld .opt { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .8rem; }
.fld input, .fld textarea, .fld select {
  font: inherit; font-size: 1rem; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; padding: 10px 0 12px; width: 100%;
}
.fld textarea { min-height: 104px; resize: vertical; border: 1px solid var(--rule-strong); padding: 12px 14px; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.fld select option { color: var(--ink); background: var(--ivory); }
.fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--champagne); box-shadow: 0 1px 0 0 var(--champagne); }
.fld .hint { font-size: .82rem; color: var(--muted); }
.fld .err { font-size: .84rem; color: var(--stop); display: none; }
.fld.is-invalid .err { display: block; }
.fld.is-invalid input, .fld.is-invalid textarea, .fld.is-invalid select { border-color: var(--stop); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .9rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--champagne); }
.form-status { padding: 18px 20px; border: 1px solid var(--accent); background: var(--panel); }
.form-status[hidden] { display: none !important; }
.form-status.is-error { border-color: var(--stop); }
.hp { position: absolute; left: -9999px; }
.nl { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.nl .fld { flex: 1 1 240px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* ---------- Answer block (AEO) ---------- */
.answer { border-left: 2px solid var(--champagne); padding: 4px 0 4px 22px; max-width: 64ch; }
.answer .label { margin-bottom: 8px; }
.answer p { font-size: var(--t-lede); line-height: 1.5; }

/* ---------- Prose (articles, legal, case pages) ---------- */
.prose { max-width: 68ch; font-size: 1.06rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--f-display); font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.06; margin-top: 2.2em; }
.prose h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.12rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: .5em; }
.prose li::marker { color: var(--accent-text); }
.prose a { text-decoration-color: var(--accent); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border: 1px solid var(--rule-strong); background: var(--panel); font-size: .98rem; }
.prose blockquote strong:first-child { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); font-weight: 500; }
.prose sup a { font-family: var(--f-mono); font-size: .7rem; text-decoration: none; color: var(--accent-text); padding: 0 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc ol { list-style: none; border-top: 1px solid var(--rule); font-size: .9rem; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc a { display: block; padding: 10px 0; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--fg); }
.meta-strip { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Citation / evidence / author ---------- */
.refs { list-style: none; counter-reset: ref; border-top: 1px solid var(--rule-strong); }
.refs li { counter-increment: ref; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; }
.refs li::before { content: counter(ref); font-family: var(--f-mono); font-size: .72rem; color: var(--accent-text); padding-top: 2px; }
.refs a { word-break: break-word; }
.evidence { border: 1px solid var(--rule-strong); padding: 20px 22px; display: grid; gap: 10px; background: var(--panel); }
.evidence .label { color: var(--accent-text); }
.evidence dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; font-size: .92rem; }
.evidence dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.evidence dd { margin: 0; }
@media (max-width: 560px) { .evidence dl { grid-template-columns: 1fr; } }
.author { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.author__mono { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid var(--accent); font-family: var(--f-display); font-size: 1.6rem; color: var(--accent-text); }
.author__n { font-weight: 600; }
.author__r { font-size: .88rem; color: var(--muted); }
.quote { border-top: 1px solid var(--accent); padding-top: 22px; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.1; }
.quote figcaption { margin-top: 16px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Placeholder marker ---------- */
.ph { display: inline; font-family: var(--f-mono); font-size: .78em; letter-spacing: .02em; color: var(--accent-text); border: 1px dashed var(--accent); padding: 1px 6px; background: transparent; }
.ph::before { content: "VERIFY · "; letter-spacing: .1em; }
.ph-block { display: block; padding: 14px 16px; }
.draft-banner { background: var(--champagne); color: var(--carbon); font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 10px var(--gutter); position: relative; z-index: 51; }

/* ---------- Service module (offer pages) ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--rule-strong); }
.fact { padding: 20px 20px 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.fact__k { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact__v { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.05; }
.steps { list-style: none; counter-reset: st; border-top: 1px solid var(--rule-strong); }
.steps > li { counter-increment: st; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.steps > li::before { content: counter(st, decimal-leading-zero); font-family: var(--f-mono); font-size: .78rem; color: var(--accent-text); padding-top: 4px; }
.steps h3 { font-family: var(--f-body); font-weight: 600; font-size: 1.08rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.module { background: var(--bg); padding: 26px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.module__k { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.module h3 { font-family: var(--f-display); font-size: 1.7rem; line-height: 1.05; }
.module p { color: var(--muted); font-size: .95rem; }

/* 12-week roadmap */
.road { overflow-x: auto; }
.road__grid { min-width: 720px; display: grid; grid-template-columns: 180px repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); }
.road__h { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--rule); text-align: center; }
.road__h:first-child { text-align: left; }
.road__lab { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; font-weight: 600; line-height: 1.3; }
.road__lab span { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); margin-top: 4px; }
.road__cell { border-bottom: 1px solid var(--rule); border-left: 1px solid var(--rule); position: relative; }
.road__bar { position: absolute; top: 50%; height: 26px; transform: translateY(-50%); background: rgba(176,141,62,.2); border: 1px solid var(--champagne); display: flex; align-items: center; padding: 0 8px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }

/* Pulse chart */
.pulse { border: 1px solid var(--rule-strong); background: var(--panel); padding: clamp(18px, 2.6vw, 32px); }
.pulse__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.pulse__rows { display: grid; gap: 4px; }
.prow { display: grid; grid-template-columns: 170px minmax(0, 1fr) 54px; gap: 16px; align-items: center; padding: 10px 0; position: relative; }
.prow__n { font-size: .92rem; font-weight: 500; }
.prow__n small { display: block; font-size: .76rem; color: var(--muted); font-weight: 400; }
.prow__track { position: relative; height: 22px; }
.prow__band { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--rule) 0 1px, transparent 1px 6px); border-left: 1px dashed var(--rule-strong); border-right: 1px dashed var(--rule-strong); }
.prow__bar { position: absolute; left: 0; top: 5px; height: 12px; background: var(--fg); opacity: .78; border-radius: 0 4px 4px 0; }
.prow.is-bind .prow__bar { background: var(--stop); opacity: 1; }
.prow__v { font-family: var(--f-mono); font-size: .86rem; text-align: right; font-variant-numeric: tabular-nums; }
.prow:hover .prow__bar, .prow:focus-within .prow__bar { opacity: 1; }
.prow__tip { position: absolute; right: 70px; top: -30px; background: var(--fg); color: var(--bg); font-size: .76rem; padding: 5px 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 2; }
.prow:hover .prow__tip, .prow:focus-within .prow__tip { opacity: 1; }
.bind-flag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stop); margin-left: 8px; }
.bind-flag::before { content: "▲"; font-size: .6rem; }
.pulse__axis { display: grid; grid-template-columns: 170px minmax(0, 1fr) 54px; gap: 16px; font-family: var(--f-mono); font-size: .62rem; color: var(--muted); margin-top: 6px; }
.pulse__axis div { display: flex; justify-content: space-between; }
.pulse__foot { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .8rem; color: var(--muted); }
.pulse__foot span { display: inline-flex; align-items: center; gap: 8px; }
.sw-band { width: 18px; height: 10px; background: repeating-linear-gradient(135deg, var(--rule-strong) 0 1px, transparent 1px 5px); border: 1px dashed var(--rule-strong); }
.sw-bar { width: 18px; height: 8px; background: var(--fg); opacity: .78; }
.sw-bind { width: 18px; height: 8px; background: var(--stop); }
@media (max-width: 640px) { .prow, .pulse__axis { grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 10px; } }

/* System interface mock */
.app { border: 1px solid rgba(251,248,242,.18); background: #111318; color: var(--ivory); font-size: .84rem; overflow: hidden; }
.app__bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(251,248,242,.12); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-lift); flex-wrap: wrap; }
.app__bar b { color: var(--ivory); font-weight: 500; }
.app__dots { display: flex; gap: 6px; } .app__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(251,248,242,.2); }
.app__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 860px) { .app__body { grid-template-columns: 1fr; } }
.app__main { border-right: 1px solid rgba(251,248,242,.12); overflow-x: auto; }
.app table { width: 100%; min-width: 560px; border-collapse: collapse; }
.app th, .app td { text-align: left; padding: 11px 14px; border-bottom: 1px solid rgba(251,248,242,.08); vertical-align: middle; }
.app th { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-lift); font-weight: 500; }
.own { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid rgba(251,248,242,.3); font-family: var(--f-mono); font-size: .6rem; }
.win { position: relative; height: 6px; background: rgba(251,248,242,.08); min-width: 90px; }
.win i { position: absolute; top: 0; bottom: 0; background: rgba(176,141,62,.45); border-left: 1px solid var(--champagne); border-right: 1px solid var(--champagne); }
.win b { position: absolute; top: -4px; width: 1px; height: 14px; background: var(--ivory); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border: 1px solid rgba(251,248,242,.25); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: #9FC3A5; border-color: rgba(159,195,165,.5); }
.pill--watch { color: var(--champagne-lift); border-color: rgba(201,165,90,.5); }
.pill--stop { color: var(--signal-lift); border-color: rgba(224,144,111,.5); }
.app__side { padding: 16px; display: grid; gap: 16px; align-content: start; }
.app__side .app__h { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-lift); font-weight: 500; margin-bottom: 8px; }
.dlog { list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(251,248,242,.1); }
.dlog li { padding: 10px 0; border-bottom: 1px solid rgba(251,248,242,.08); display: grid; gap: 3px; }
.dlog .d { font-family: var(--f-mono); font-size: .6rem; color: var(--slate-lift); letter-spacing: .08em; }
.dlog .v { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--champagne-lift); }
.dlog .v.stop { color: var(--signal-lift); }
.app__foot { padding: 10px 16px; border-top: 1px solid rgba(251,248,242,.12); font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-lift); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.illus { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); border: 1px solid var(--accent); padding: 3px 8px; display: inline-block; }

/* Growth64 board */
.board-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.board { display: grid; grid-template-columns: 120px repeat(8, minmax(0, 1fr)); gap: 3px; min-width: 620px; }
.board__scroll { overflow-x: auto; }
.board__h { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: end; justify-content: center; padding-bottom: 6px; text-align: center; }
.board__r { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; padding-right: 8px; }
.sq { aspect-ratio: 1; border: 1px solid var(--rule); background: transparent; position: relative; }
.sq:nth-child(odd) { background: rgba(251,248,242,.025); }
.sq.on { background: rgba(176,141,62,.22); border-color: var(--champagne); }
.sq.on::after { content: ""; position: absolute; inset: 35%; background: var(--champagne); transform: rotate(45deg); }
.sq.lock { background: repeating-linear-gradient(135deg, rgba(251,248,242,.06) 0 1px, transparent 1px 7px); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--rule-strong); background: transparent; color: var(--fg); cursor: pointer; border-radius: var(--radius); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters button:hover { border-color: var(--accent); }
.case[hidden] { display: none; }

/* Consent */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: 560px; margin-left: auto;
  background: var(--ivory); color: var(--ink); border: 1px solid var(--ink);
  padding: 18px 20px; display: grid; gap: 14px; font-size: .9rem;
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.6);
  --btn-bg: var(--ink); --btn-fg: var(--ivory); --rule-strong: rgba(27,35,64,.4); --fg: var(--ink);
}
.consent[hidden] { display: none !important; }
.consent a { text-decoration-color: var(--champagne-deep); }

/* Design system page swatches */
.sw { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.sw > div { background: var(--bg); padding: 12px; font-family: var(--f-mono); font-size: .68rem; }
.sw i { display: block; height: 72px; margin-bottom: 10px; border: 1px solid var(--rule); }
.ds-sec { border-top: 1px solid var(--rule-strong); padding-top: 18px; margin-top: 56px; }

/* Motion */
.rv-armed .rv:not(.in) { opacity: 0; transform: translateY(14px); }
.rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv-armed .rv:not(.in) { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .sq.on::after, .lg-dia { background: Highlight; }
}
@media print {
  .hdr, .mnav, .consent, .ftr, .score { display: none !important; }
  body, .tone-carbon, .tone-ink { background: #fff !important; color: #000 !important; }
}

/* ---------- Additions ---------- */
.check .err { display: none; font-size: .84rem; color: var(--stop); }
.check.is-invalid .err { display: block; }
.gloss { margin: 0; border-top: 1px solid var(--rule-strong); }
.gloss > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.gloss dt { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; }
.gloss dd { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .gloss > div { grid-template-columns: 1fr; gap: 6px; } }
.ticks { list-style: none; border-top: 1px solid var(--rule-strong); }
.ticks li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 7px; height: 7px; border: 1px solid var(--champagne); transform: rotate(45deg); }
.metrics--4 { --mc: 2; }
.metrics--5 { --mc: 6; } .metrics--5 > .metric { grid-column: span 2; } .metrics--5 > .metric:nth-child(n+4) { grid-column: span 3; }
.page-hero .metrics--4 { --mc: 4; }
@media (max-width: 640px) {
  .metrics, .page-hero .metrics--4 { --mc: 2; }
  .metrics--5 > .metric, .metrics--5 > .metric:nth-child(n+4) { grid-column: span 3; }
  .metrics--5 > .metric:last-child { grid-column: 1 / -1; }
  .metrics--3 > .metric:last-child { grid-column: 1 / -1; }
}
.metrics--2 { --mc: 2; }
.scramble { overflow: hidden; }
@media (max-width: 640px) {
  .scramble { height: 230px; }
  .scramble span { font-size: .6rem; padding: 4px 6px; }
  .score__scroll { mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
}
.score__hint { display: none; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
@media (max-width: 800px) { .score__hint { display: block; } }
.draft-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 1024px) { .toc { position: static; } }

/* Strategy cycle comparison */
.cycle { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--rule-strong); padding-top: clamp(28px, 3vw, 44px); display: grid; gap: clamp(28px, 3vw, 44px); }
.cycle__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); }
@media (max-width: 860px) { .cycle__head { grid-template-columns: 1fr; } }
.cycle__chart { display: grid; gap: 6px; }
.cycle__row, .cycle__axis { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: center; }
.cycle__row { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.cycle__lab { display: flex; flex-direction: column; gap: 3px; }
.cycle__lab b { font-weight: 600; }
.cycle__lab span { font-size: .8rem; color: var(--muted); }
.cycle__track { position: relative; height: 34px; border-left: 1px solid var(--rule-strong); border-right: 1px solid var(--rule-strong); background: linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat; }
.cycle__track i { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.cycle__track i:first-child { transform: translate(0, -50%); }
.cycle__heavy { width: 34px; height: 30px; background: var(--ink); display: inline-block; }
.cycle__heavy.is-opt { background: transparent; border: 1px dashed var(--ink); }
.cycle__slate { width: 12px; height: 12px; background: var(--champagne); transform: translate(-50%, -50%) rotate(45deg) !important; display: inline-block; }
.cycle__rev { width: 2px; height: 12px; background: var(--rule-strong); display: inline-block; }
.cycle__axis > div { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.cycle__legend { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: .8rem; color: var(--muted); padding-top: 10px; }
.cycle__legend span { display: inline-flex; align-items: center; gap: 8px; }
.cycle__legend i { position: static; transform: none; }
.cycle__legend .cycle__heavy { width: 16px; height: 12px; }
.cycle__legend .cycle__slate { width: 9px; height: 9px; transform: rotate(45deg) !important; }
@media (max-width: 640px) { .cycle__row, .cycle__axis { grid-template-columns: 1fr; gap: 10px; } .cycle__axis > span { display: none; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }
.member { display: flex; flex-direction: column; gap: 22px; min-width: 0; border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.member__img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1) sepia(.12) contrast(1.02); border: 1px solid var(--rule); background: var(--panel); }
.member h3 a { text-decoration: none; }
.member h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.member__q { list-style: none; display: grid; gap: 6px; font-size: .86rem; color: var(--muted); }
.member__q li { padding-left: 16px; position: relative; }
.member__q li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border: 1px solid var(--champagne); transform: rotate(45deg); }
.author__img { width: 64px; height: 64px; object-fit: cover; filter: grayscale(1) sepia(.12); border: 1px solid var(--accent); }
