/* Rockwall Partners — line-map redesign
   Ground #EEF2F3 / ink #0E1311 / seven line colours, one per operating layer.
   Overpass (highway-sign gothic) + Overpass Mono for labels and data. */

:root {
  --ground: #EEF2F3;
  --card: #FAFCFC;
  --deep: #E0E7EA;
  --ink: #173663;
  --soft: #3A4A60;
  --mute: #566478;
  --line: #C5D0D6;
  --link: #0A58A3;

  --l1: #E4572E;   /* go-to-market */
  --l2: #0A6EBD;   /* operations */
  --l3: #7A3FB5;   /* second brain */
  --l4: #F2C230;   /* people */
  --l5: #12805C;   /* finance */
  --l6: #C2185B;   /* compliance */
  --l7: #00838F;   /* vendors */

  --sans: Overpass, "Segoe UI", system-ui, sans-serif;
  --mono: "Overpass Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --r: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
::selection { background: var(--l4); color: #0F1E33; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 18px; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 76px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.03em; }
h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 8px; }
h4 { font-size: 17px; }
p { margin: 0 0 16px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 860px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--ink); padding: 12px 18px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--l2); outline-offset: 3px; }

/* ---------- header: ink bar with the seven-line stripe under it ---------- */

.site-header { position: sticky; top: 0; z-index: 40; background: var(--ink); }
.site-header::after {
  content: ""; display: block; height: 6px;
  background: linear-gradient(90deg,
    var(--l1) 0 14.28%, var(--l2) 0 28.57%, var(--l3) 0 42.85%, var(--l4) 0 57.14%,
    var(--l5) 0 71.42%, var(--l6) 0 85.71%, var(--l7) 0);
}
.header-inner { display: flex; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.wordmark { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.wordmark img { height: 40px; width: auto; }
.wordmark-name { display: block; font-weight: 900; font-size: 17px; line-height: 1; letter-spacing: -0.02em; }
.wordmark-ai { display: block; font-weight: 600; font-size: 9px; line-height: 1; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 4px; }
.wordmark:hover { color: #fff; }

.site-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-left: auto; }
.site-nav a { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.82); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:hover { color: #fff; border-bottom-color: var(--l4); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--l1); }
.site-nav a:last-child { background: var(--l4); color: #0F1E33; font-weight: 800; padding: 10px 18px; border-radius: 999px; border-bottom: 0; }
.site-nav a:last-child:hover { background: #fff; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 11px; width: 20px; height: 2px; background: #fff; content: ""; }
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- shared blocks ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--deep); }
.section-lead { font-size: 19px; line-height: 1.6; color: var(--soft); max-width: 64ch; margin-bottom: 30px; }
h2 + .section-lead { margin-top: -2px; }

.hero { padding: 72px 0 84px; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--soft); max-width: 54ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 980px) { .hero-grid:has(.linemap) { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.hero-copy { min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-fine { font-family: var(--mono); font-size: 13px; color: var(--mute); margin: 16px 0 0; }
.hero-bridge { font-size: 18px; color: var(--ink); max-width: 54ch; margin: 22px 0 0; font-weight: 500; }
.hero-bullets { list-style: none; margin: 22px 0 0; padding: 0; }
.hero-bullets li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 18px; color: var(--soft); }
.hero-bullets li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 4px; border-radius: 2px; background: var(--l1); }
.hero-bullets-light li { color: var(--soft); }

.btn { display: inline-block; font-family: var(--sans); font-size: 17px; font-weight: 800; padding: 15px 28px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; letter-spacing: -0.01em; text-decoration: none; transition: background-color 160ms, color 160ms, border-color 160ms; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #B83A14; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: none; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.book .btn-primary { background: var(--l4); color: #0F1E33; }
.book .btn-primary:hover { background: #fff; color: var(--ink); }
.book .btn-ghost { border-color: #fff; color: #fff; }
.book .btn-ghost:hover { background: #fff; color: var(--ink); }

.text-link { font-weight: 700; color: var(--link); }

/* ---------- the line map (home hero) ---------- */

.linemap { margin: 0; min-width: 0; }
.linemap svg { width: 100%; height: auto; display: block; overflow: visible; }
.linemap figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.lm-lines path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.l1 { stroke: var(--l1); } .l2 { stroke: var(--l2); } .l3 { stroke: var(--l3); } .l4 { stroke: var(--l4); }
.l5 { stroke: var(--l5); } .l6 { stroke: var(--l6); } .l7 { stroke: var(--l7); }
.lm-st circle { fill: #fff; stroke: var(--ink); }
.lm-name text { font: 600 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--ground); stroke-width: 5px; }
.lm-end text { font: 800 15px var(--sans); text-decoration: none; cursor: pointer; paint-order: stroke; stroke: var(--ground); stroke-width: 5px; }
.lm-end .c1 { fill: #B83A14; } .lm-end .c2 { fill: var(--l2); } .lm-end .c3 { fill: var(--l3); } .lm-end .c4 { fill: #7A5A00; }
.lm-end .c5 { fill: var(--l5); } .lm-end .c6 { fill: var(--l6); } .lm-end .c7 { fill: #006069; }
.lm-end a:hover text { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .lm-lines path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .lm-lines .l2 { animation-delay: 0.08s; } .lm-lines .l3 { animation-delay: 0.16s; } .lm-lines .l4 { animation-delay: 0.24s; }
  .lm-lines .l5 { animation-delay: 0.32s; } .lm-lines .l6 { animation-delay: 0.4s; } .lm-lines .l7 { animation-delay: 0.48s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- cards and lists ---------- */

.trade-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.trade-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px; }
.trade-grid p { font-size: 16.5px; color: var(--soft); margin: 0; }
.trade-grid p + p { margin-top: 14px; }
.cta-grid li { border-top: 4px solid var(--ink); }

.steps, .bottleneck-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps li { border-top: 4px solid var(--ink); padding-top: 20px; }
.steps li:nth-child(1) { border-top-color: var(--l1); }
.steps li:nth-child(2) { border-top-color: var(--l2); }
.steps li:nth-child(3) { border-top-color: var(--l5); }
.steps li:nth-child(4) { border-top-color: var(--l4); }
.steps p { font-size: 16.5px; color: var(--soft); margin: 0; }
.step-num { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 10px; }
.bottleneck-list li { display: flex; gap: 20px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 20px; }
.bottleneck-num { font-family: var(--mono); font-size: 32px; color: var(--mute); line-height: 1; font-variant-numeric: tabular-nums; }
.bottleneck-list p { font-size: 17px; color: var(--soft); margin: 0; max-width: 68ch; }

.proof-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.proof-strip li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; font-size: 16px; color: var(--soft); }
.proof-strip strong { display: block; font-family: var(--mono); font-weight: 600; font-size: 30px; color: var(--ink); margin-bottom: 8px; }

.accordion-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-bottom: 26px; }
.accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.accordion-item[open] { border-color: var(--ink); }
.accordion-item summary { cursor: pointer; padding: 17px 20px; font-weight: 800; font-size: 17.5px; letter-spacing: -0.015em; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: "+"; margin-left: auto; font-family: var(--mono); font-weight: 500; font-size: 20px; }
.accordion-item[open] summary::after { content: "–"; }
.accordion-item summary .step-num { margin: 0; }
.accordion-body { padding: 0 20px 18px; }
.accordion-body p, .accordion-body li { font-size: 16.5px; color: var(--soft); }
.accordion-body p:last-child { margin-bottom: 0; }
.accordion-item-block { max-width: 760px; }
.cat-vendors { font-weight: 700; color: var(--ink) !important; }
.cat-band { font-family: var(--mono); font-size: 14.5px !important; }
.after-list, .footnotes { margin: 0; padding-left: 20px; }
.after-list li, .footnotes li { margin-bottom: 8px; }
.after-list { list-style: none; padding-left: 0; }
.legal-note { font-size: 14.5px; line-height: 1.55; color: var(--mute); max-width: 90ch; margin-top: 26px; }

/* ---------- scorecard sheets ---------- */

.scorecard-sheet, .keep-sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 22px 54px -34px rgba(14,19,17,0.4); padding: 0 0 26px; margin-top: 8px; overflow: hidden; }
.sheet-head { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; background: var(--ink); color: #fff; padding: 18px 26px; }
.sheet-head p { margin: 0; }
.sheet-kicker { font-weight: 800; font-size: 16px; }
.sheet-keep { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.sheet-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; padding: 24px 26px; border-bottom: 1px solid var(--line); }
.sheet-meta p { margin: 0; border-bottom: 1px solid var(--line); padding-bottom: 26px; }
.sheet-meta span { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.sheet-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin: 24px 26px 12px; }
.sheet-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; }
.sheet-chips li { background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px 6px 10px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.sheet-chips li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--l1); flex: none; }
.sheet-chips li:nth-child(2)::before { background: var(--l2); } .sheet-chips li:nth-child(3)::before { background: var(--l3); }
.sheet-chips li:nth-child(4)::before { background: var(--l4); } .sheet-chips li:nth-child(5)::before { background: var(--l5); }
.sheet-chips li:nth-child(6)::before { background: var(--l6); } .sheet-chips li:nth-child(7)::before { background: var(--l7); }
.sheet-chips a { color: var(--ink); font-weight: 700; text-decoration: none; }
.sheet-chips li:hover { background: var(--ink); }
.sheet-chips li:hover a { color: #fff; }
.sheet-qs { margin: 0 26px; padding-left: 22px; columns: 2; column-gap: 34px; }
.sheet-qs li { font-size: 16px; color: var(--soft); margin-bottom: 10px; break-inside: avoid; }
.sheet-ranks { list-style: none; margin: 0 26px; padding: 0; display: grid; gap: 10px; }
.sheet-ranks li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; border-bottom: 1px dotted var(--mute); padding-bottom: 9px; font-size: 16.5px; }
.sheet-ranks span { color: var(--mute); font-size: 15px; }
.sheet-close { margin: 26px 26px 0; padding: 16px 20px; border-radius: 8px; background: var(--ink); color: rgba(255,255,255,0.9); font-size: 15.5px; line-height: 1.55; }
.keep-sheet { padding-bottom: 8px; }
.keep-meta, .keep-sheet h3, .keep-sheet p, .keep-sheet ul, .keep-sheet ol { margin-left: 26px; margin-right: 26px; }
.keep-sheet h3 { margin-top: 26px; font-size: 19.5px; }
.keep-sheet p, .keep-sheet li { font-size: 16.5px; color: var(--soft); }
.keep-matrix, .keep-days { padding-left: 20px; }
.keep-matrix { list-style: none; padding-left: 0; }
.keep-matrix li { border-bottom: 1px dotted var(--mute); padding-bottom: 9px; margin-bottom: 9px; }
.keep-sheet strong, .keep-matrix strong { color: var(--ink); font-weight: 800; }

/* ---------- owner ---------- */

.owner { background: var(--deep); }
.owner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 56px; align-items: center; }
.owner-portrait { margin: 0; min-width: 0; position: relative; }
.owner-portrait img { width: 100%; border-radius: var(--r); }
.owner-portrait::after { content: "Fate, TX"; position: absolute; right: -12px; bottom: -14px; background: var(--l4); color: #0F1E33; border-radius: 999px; padding: 9px 18px; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.owner-copy { min-width: 0; }
.owner-copy p { font-size: 18px; color: var(--soft); max-width: 58ch; }
.owner-links { font-size: 16px; }

/* ---------- book / forms (ink band) ---------- */

.book { background: var(--ink) !important; color: #fff; }
.book h1, .book h2 { color: #fff; }
.book .section-lead, .book p { color: rgba(255,255,255,0.86); }
.book a { color: var(--l4); }
.book a:hover { color: #fff; }
.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px; align-items: start; }
.phone-link { font-weight: 900; font-size: 30px; letter-spacing: -0.03em; color: #fff !important; text-decoration: none; }
.phone-link:hover { color: var(--l4) !important; }

.book-form { background: var(--card); color: var(--ink); padding: 32px; border-radius: 14px; }
.book-form p, .book-form a { color: var(--soft); }
.form-intro { font-size: 15.5px; margin-bottom: 20px; }
.book-form label { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); margin: 14px 0 6px; }
.book-form input, .book-form select, .book-form textarea { width: 100%; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; font-family: var(--sans); font-size: 16.5px; color: var(--ink); }
.book-form textarea { resize: vertical; }
.book-form input:focus, .book-form select:focus, .book-form textarea:focus { outline: none; border-color: var(--l2); }
.book-form .btn-primary { width: 100%; margin-top: 22px; background: var(--ink); color: #fff; }
.book-form .btn-primary:hover { background: #B83A14; color: #fff; }
.form-note { font-size: 13.5px; margin: 14px 0 0; }
.label-opt { color: var(--mute); font-size: 11px; letter-spacing: 0.08em; }

.faq-list { margin: 0; }
.faq-list > div { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-list dt { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 7px; }
.faq-list dd { margin: 0; font-size: 17.5px; color: var(--soft); max-width: 66ch; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 40px 0; border-top: 6px solid var(--l4); }
.footer-inner { display: grid; gap: 10px; }
.footer-inner p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.footer-brand { color: #fff; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-brand .wordmark-name { font-size: 15px; }
.footer-brand .wordmark-ai { font-size: 15px; letter-spacing: 0.01em; text-transform: none; font-weight: 500; color: rgba(255,255,255,0.72); margin: 0; display: inline; }
.footer-brand a { color: var(--l4); }
.privacy { max-width: 100ch; }

/* ---------- source citations ---------- */

.source-line { font-family: var(--mono); font-size: 13px; line-height: 1.55; color: var(--mute); margin: 10px 0 0; }
.source-line a { color: var(--soft); }
.source-line a:hover { color: var(--link); }

.pullquote { margin: 30px 0; padding: 30px 32px; background: var(--ink); color: #fff; border-radius: var(--r); }
.pullquote p { font-size: clamp(19px, 2vw, 24px); line-height: 1.42; letter-spacing: -0.015em; margin: 0 0 14px; font-weight: 600; }
.pullquote cite { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--l4); font-style: normal; }

/* ---------- the fork ---------- */

.fork-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.fork-grid > li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; display: flex; flex-direction: column; box-shadow: inset 0 6px 0 var(--l1); }
.fork-grid > li:nth-child(2) { box-shadow: inset 0 6px 0 var(--l2); }
.fork-grid h3 { font-size: 25px; }
.fork-grid p { font-size: 16.5px; color: var(--soft); }
.fork-move { color: var(--ink) !important; }
.fork-grid .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- comparison table ---------- */

.compare { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 16.5px; }
.compare caption { text-align: left; font-size: 15px; color: var(--mute); padding-bottom: 12px; }
.compare th, .compare td { text-align: left; padding: 18px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 800; color: var(--ink); width: 24%; }
.compare td { color: var(--soft); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:last-child { background: var(--card); }
.compare-wrap { overflow-x: auto; }
.compare-note { font-size: 18px; color: var(--ink); font-weight: 700; max-width: 62ch; }

/* ---------- seven-layer tabs ---------- */

.layer-tabs { display: none; }
.layers[data-tabs="on"] .layer-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.layer-tab { appearance: none; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--ink); padding: 8px 18px 8px 14px; display: flex; align-items: center; gap: 9px; }
.layer-tab::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--l1); }
li:nth-child(2) > .layer-tab::before { background: var(--l2); } li:nth-child(3) > .layer-tab::before { background: var(--l3); }
li:nth-child(4) > .layer-tab::before { background: var(--l4); } li:nth-child(5) > .layer-tab::before { background: var(--l5); }
li:nth-child(6) > .layer-tab::before { background: var(--l6); } li:nth-child(7) > .layer-tab::before { background: var(--l7); }
.layer-tab:hover { background: var(--deep); }
.layer-tab[aria-selected="true"] { background: var(--ink); color: #fff; }

.layer-panel { padding-top: 4px; }
.layer-panel + .layer-panel { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 40px; }
.layers[data-tabs="on"] .layer-panel + .layer-panel { margin-top: 0; border-top: 0; padding-top: 4px; }
.layer-panel h3 { font-size: 30px; }
.layer-outcome { font-family: var(--mono); font-size: 14.5px; font-weight: 500; color: var(--ink); margin: 0 0 20px; }
.layer-grid { display: grid; gap: 24px 36px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 22px; }
.layer-block h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; font-weight: 600; }
.layer-block ul { margin: 0; padding-left: 18px; }
.layer-block li { font-size: 16.5px; color: var(--soft); margin-bottom: 9px; }
.layer-block p { font-size: 16.5px; color: var(--soft); margin: 0; }
.layer-why { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; margin: 24px 0 0; }
.layer-why p { font-size: 16.5px; color: var(--soft); margin: 0 0 10px; }
.layer-why p:last-child { margin-bottom: 0; }
.layer-why strong { color: var(--ink); }
.builder-note { font-size: 14.5px; color: var(--mute); font-style: italic; border-top: 1px dotted var(--mute); padding-top: 14px; margin-top: 22px; }

/* ---------- sticky subnav ---------- */

.subnav { position: sticky; z-index: 30; top: 68px; background: var(--card); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 0 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; font-size: 14.5px; font-weight: 700; color: var(--soft); text-decoration: none; padding: 14px 12px; border-bottom: 4px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--l1); }
@media (max-width: 700px) { .subnav { display: none; } }

/* ---------- illustrative walkthroughs ---------- */

.illustrative { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 28px 30px; margin: 0 0 20px; }
.illustrative-label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); background: var(--l4); display: inline-block; padding: 6px 12px; border-radius: 6px; margin: 0 0 18px; line-height: 1.5; }
.illustrative-label strong { font-weight: 700; }
.illustrative h3 { font-size: 23px; }
.illustrative h4 { font-size: 17.5px; margin: 0 0 12px; }
.illustrative > p { font-size: 16.5px; color: var(--soft); }
.illustrative-setup { font-weight: 700; color: var(--ink) !important; }

.diff-toggle { display: none; }
.diff[data-toggle="on"] .diff-toggle { display: inline-flex; gap: 2px; margin: 0 0 22px; padding: 4px; background: var(--deep); border-radius: 999px; }
.diff-btn { appearance: none; background: none; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--soft); padding: 9px 18px; }
.diff-btn[aria-selected="true"] { background: var(--ink); color: #fff; }
.diff-panel + .diff-panel { margin-top: 28px; }
.diff[data-toggle="on"] .diff-panel + .diff-panel { margin-top: 0; }
.diff[data-toggle="on"] .diff-panel h4 { position: absolute; left: -9999px; }

.timeline { list-style: none; margin: 0 0 18px; padding: 0; }
.timeline li { display: grid; grid-template-columns: 92px 1fr; gap: 4px 18px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--soft); }
.timeline li:first-child { border-top: 0; }
.timeline time { font-family: var(--mono); font-size: 13.5px; font-weight: 600; color: var(--ink); padding-top: 3px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }
.ranked-first { background: var(--deep); border-radius: 8px; padding: 18px 20px; margin: 20px 0 0; font-size: 16.5px; color: var(--soft); }
.ranked-first strong { color: var(--ink); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0 0 28px; padding: 0; }
.filter-chip { appearance: none; cursor: pointer; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); padding: 7px 18px; }
.filter-chip:hover { background: var(--deep); }
.filter-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* ---------- self-check ---------- */

.selfcheck { max-width: 720px; }
.sc-progress { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin: 0 0 16px; }
.sc-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.sc-bar span { display: block; height: 100%; border-radius: 3px; background: var(--l2); transition: width 180ms ease; }
.sc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; }
.sc-card fieldset { border: 0; margin: 0; padding: 0; }
.sc-card legend { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; color: var(--ink); margin-bottom: 20px; padding: 0; }
.sc-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sc-options label { display: flex; gap: 13px; align-items: flex-start; cursor: pointer; padding: 14px 16px; font-size: 16.5px; color: var(--soft); min-height: 44px; border: 2px solid var(--line); border-radius: 8px; background: #fff; }
.sc-options label:hover { border-color: var(--ink); color: var(--ink); }
.sc-options label:has(input:checked) { border-color: var(--ink); }
.sc-options input { margin: 3px 0 0; flex: none; accent-color: var(--ink); width: 18px; height: 18px; }
.sc-options input:checked + span { color: var(--ink); font-weight: 700; }
.sc-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.sc-nav .btn { font-size: 16px; padding: 12px 24px; }
.sc-result h3 { font-size: 27px; }
.sc-result > p { font-size: 17.5px; color: var(--soft); max-width: 62ch; }
.sc-ranks { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.sc-ranks li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: grid; grid-template-columns: 42px 1fr; gap: 4px 16px; }
.sc-rank-num { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--ink); line-height: 1; grid-row: span 2; }
.sc-ranks h4 { font-size: 19.5px; margin: 0 0 6px; }
.sc-ranks p { font-size: 16.5px; color: var(--soft); margin: 0 0 10px; }
.sc-clean { background: var(--deep); border-radius: var(--r); padding: 24px 26px; }
.sc-clean h4 { font-size: 20px; margin: 0 0 10px; }
.sc-clean p { font-size: 16.5px; color: var(--soft); margin: 0; }
.sc-copied { font-family: var(--mono); font-size: 13px; color: var(--l5); font-weight: 600; margin-left: 4px; }
.sc-static { margin-top: 22px; }
.sc-static ol { padding-left: 22px; }
.sc-static li { font-size: 16.5px; color: var(--soft); margin-bottom: 10px; }
.sc-intro { font-size: 17px; color: var(--soft); margin: 0 0 4px; max-width: 58ch; }

/* ---------- form feedback ---------- */

.form-status { font-size: 15.5px; margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; }
.form-status[data-state="ok"] { background: #DDF0E6; color: #0B4A31; }
.form-status[data-state="err"] { background: #FBE3DB; color: #7A2410; }
.form-status a { color: inherit; font-weight: 700; }
.mailto-fallback { margin: 16px 0 0; padding: 16px; border-radius: 8px; background: var(--deep); font-size: 15.5px; }
.mailto-fallback p { margin: 0 0 12px; color: var(--soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- scroll reveal (visible by default) ---------- */

.reveal-armed { opacity: 0; transform: translateY(12px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1), transform 400ms cubic-bezier(0.16, 1, 0.3, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-armed, .reveal-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; order: 3; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .site-nav a:last-child { text-align: center; margin-top: 12px; }
  .section { padding: 64px 0; }
  .hero { padding: 44px 0 56px; }
  .sheet-qs { columns: 1; }
  .owner-portrait::after { right: 8px; bottom: -12px; }
  .subnav { top: 62px; }
  .pullquote { padding: 24px 22px; }
  .compare tbody th { width: auto; }
  .lm-end text { font-size: 17px; }
  .lm-name text { font-size: 15px; }
}

@media print {
  .site-header, .site-footer, .hero, .book, .nav-toggle, .btn, .skip-link { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding: 0; background: #fff !important; }
  .scorecard-sheet, .keep-sheet { box-shadow: none; border-color: #999; break-inside: avoid; }
  .sheet-head { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .sheet-keep, .sheet-label { color: #000; }
}

@media (min-width: 820px) { html.js .layers:not([data-tabs]) .layer-panel ~ .layer-panel { display: none; } }
html.js .diff:not([data-toggle]) .diff-panel ~ .diff-panel { display: none; }

/* ---------- work page ---------- */

.work .wrap { max-width: 1000px; }
.work-item { display: grid; grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr); gap: 20px 56px; padding: 56px 0; border-top: 2px solid var(--ink); }
.work-item:first-child { border-top: 0; padding-top: 0; }
.work-item h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 10px; }
.work-tag { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 12px; margin: 0 0 14px; }
.work-item:nth-child(2) .work-tag { background: var(--l2); }
.work-item:nth-child(3) .work-tag { background: var(--l5); }
.work-item:nth-child(4) .work-tag { background: var(--l3); }
.work-item:nth-child(5) .work-tag { background: var(--l4); color: #0F1E33; }
.work-for { font-size: 16px; color: var(--mute); margin: 0; }
.work-body p { font-size: 17.5px; color: var(--soft); max-width: 64ch; }
.work-body strong { color: var(--ink); }
.work-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 26px 0 0; }
.work-results > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px 16px; }
.work-results dt { font-family: var(--mono); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); color: var(--ink); line-height: 1.1; margin: 0 0 8px; }
.work-results dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--soft); }
.work-safe { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.work-safe summary { cursor: pointer; padding: 16px 20px; font-weight: 800; }
.work-safe ol { margin: 0; padding: 0 22px 18px 42px; }
.work-safe li { font-size: 16px; color: var(--soft); margin-bottom: 9px; }
.work-open { background: var(--deep); border-radius: 14px; padding: 40px; border: 0; margin-top: 24px; }
@media (max-width: 820px) { .work-item { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; } .work-open { padding: 26px; } }

/* ---------- home: proof line, results strip, mobile action bar ---------- */

.hero-proof { font-size: 17px; font-weight: 700; color: var(--ink); margin: 22px 0 0; }
.hero-proof a { color: var(--link); }
.hero-proof + .hero-fine { margin-top: 8px; }
.work-results-wide { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 8px; }
.work-results-wide dt { font-size: clamp(28px, 3.4vw, 44px); }
.work-results-wide dd { font-size: 16.5px; }
.work-results-wide + .hero-actions { margin-top: 28px; }
.mobile-cta { display: none; }
@media (max-width: 820px) {
  .mobile-cta { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); border-top: 4px solid var(--l4); }
  .mobile-cta .btn { padding: 12px 18px; font-size: 16px; }
  .mobile-cta .btn-primary { flex: 1; background: var(--l4); color: #0F1E33; text-align: center; }
  .mobile-cta .btn-ghost { border-color: #fff; color: #fff; }
  body { padding-bottom: 72px; }
}

/* ---------- training ---------- */
.train-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.train-grid h3 { font-size: 26px; }
.train-len { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink) !important; margin-bottom: 12px !important; }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; order: 3; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .site-nav a:last-child { text-align: center; margin-top: 12px; }
}
