/* ==========================================================================
   Blacktop Recruiting: main.css (v8)
   Industrial print manual. Three surfaces, used as chapters:
   ink (#0B0B09), bone (#E9E6DF), signal orange (#FF6B00).
   Type: Archivo Expanded 800 for display, Archivo for body, JetBrains Mono
   for telemetry. Motion: transform + opacity only, hover gated to fine pointers.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subsets, static instances) ---------- */
@font-face { font-family: "Archivo Display"; src: url("../fonts/archivo-display.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* Metric-matched fallbacks keep line boxes stable while webfonts swap in. */
@font-face { font-family: "Display Fallback"; src: local("Arial Black"), local("Arial-BoldMT"), local("Arial"); size-adjust: 104%; ascent-override: 88%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Body Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 100%; ascent-override: 88%; descent-override: 21%; line-gap-override: 0%; }
@font-face { font-family: "Mono Fallback"; src: local("Courier New"), local("CourierNewPSMT"); size-adjust: 100%; }

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0B09;
  --bone: #E9E6DF;
  --signal: #FF6B00;

  --bg: var(--ink);
  --surface: #141410;
  --raised: #1D1D18;
  --line: rgba(236, 234, 228, 0.12);
  --line-2: rgba(236, 234, 228, 0.28);
  --text: #ECEAE4;
  --text-2: #9C9A91;
  --accent: var(--signal);
  --accent-text: var(--signal);
  --accent-deep: #E8500A;
  --accent-hi: #FFB020;
  --on-accent: var(--ink);

  --font-display: "Archivo Display", "Display Fallback", "Arial Black", sans-serif;
  --font-body: "Archivo", "Body Fallback", "Arial", sans-serif;
  --font-mono: "JetBrains Mono", "Mono Fallback", ui-monospace, "Courier New", monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap-max: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --cw: min(var(--wrap-max), 100% - var(--gutter) * 2);
  --nav-h: 76px;
  --radius: 2px;
  --chapter-pad: clamp(96px, 12vw, 184px);

  --z-content: 1;
  --z-grain: 3;
  --z-sticky: 9;
  --z-menu: 20;
  --z-nav: 30;
  --z-skip: 40;
}

/* Surfaces. Every chapter declares one; components read the variables. */
[data-theme="dark"] {
  --bg: var(--ink); --surface: #141410; --raised: #1D1D18;
  --line: rgba(236, 234, 228, 0.12); --line-2: rgba(236, 234, 228, 0.28);
  --text: #ECEAE4; --text-2: #9C9A91; --accent-text: var(--signal);
  background: var(--bg); color: var(--text);
}
[data-theme="light"] {
  --bg: var(--bone); --surface: #DEDAD1; --raised: #F4F2ED;
  --line: rgba(11, 11, 9, 0.14); --line-2: rgba(11, 11, 9, 0.32);
  --text: var(--ink); --text-2: #57554E; --accent-text: #B33A00;
  background: var(--bg); color: var(--text);
}
[data-theme="accent"] {
  --bg: var(--signal); --surface: #F26200; --raised: #FF7D1F;
  --line: rgba(11, 11, 9, 0.22); --line-2: rgba(11, 11, 9, 0.45);
  --text: var(--ink); --text-2: rgba(11, 11, 9, 0.78); --accent-text: var(--ink);
  background: var(--bg); color: var(--text);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--ink);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  scrollbar-color: var(--line) var(--bg);
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  background: var(--ink);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 1.0625rem; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font-size: 16px; }
h1, h2, h3 { font-weight: 800; text-wrap: balance; }
strong, b { font-weight: 600; }
p { text-wrap: pretty; }

::selection { background: var(--accent); color: var(--on-accent); }

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

a, button, summary, [role="button"] { touch-action: manipulation; }
button, .btn, summary, .nav-toggle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: var(--z-skip);
  padding: 10px 16px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 500; border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline-color: var(--text); }

.wrap { width: var(--cw); margin-inline: auto; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 0;
  letter-spacing: -0.02em;
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

main { position: relative; z-index: var(--z-content); display: block; }
main:focus { outline: none; }

/* Placeholder hazard styling: unconfirmed copy must be impossible to miss. */
.is-placeholder {
  color: var(--text);
  outline: 1px dashed var(--accent);
  outline-offset: 2px;
  background: repeating-linear-gradient(-45deg, rgba(255, 107, 0, 0.14) 0 6px, transparent 6px 12px);
  padding: 0 4px;
  border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius);
  isolation: isolate;
  transition: transform 150ms var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
  z-index: -1;
}
.btn:active { transform: scale(0.97); }
/* Button-in-button: the arrow sits in its own square chip, flush right. */
.btn-arrow {
  width: 30px; height: 30px; padding: 7px;
  flex: none;
  margin-right: -12px;
  border-radius: var(--radius);
  background: rgba(10, 11, 7, 0.12);
  transition: transform 150ms var(--ease-out);
}

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary::after { background: rgba(255, 255, 255, 0.22); }
.btn--primary:focus-visible { outline-color: var(--text); }

.btn--ink { background: var(--ink); color: #ECEAE4; }
.btn--ink .btn-arrow { background: var(--signal); color: var(--ink); }
.btn--ink::after { background: rgba(255, 255, 255, 0.08); }
.btn--ink:focus-visible { outline-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost .btn-arrow { background: rgba(242, 242, 236, 0.07); }
.btn--ghost::after { box-shadow: inset 0 0 0 1px var(--accent); }

.btn--lg { --btn-h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--sm { --btn-h: 40px; padding: 0 14px; font-size: 0.9375rem; gap: 8px; }
.btn--sm .btn-arrow { width: 26px; height: 26px; padding: 6px; margin-right: -8px; }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { opacity: 1; }
  .btn:hover .btn-arrow { transform: translateX(3px); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  font-weight: 500;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.text-link-arrow { width: 16px; height: 16px; transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: var(--accent); }
  .text-link:hover .text-link-arrow { transform: translateY(3px); }
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
}
.tag-bracket { color: var(--accent); }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Nav ----------
   At the top: transparent, aligned to the grid.
   Scrolled: floating hairline panel with blur (fixed element, so blur is cheap).
   Scrolling down past the hero hides it; any scroll up brings it back.
   Desktop links: a hover plate and an accent active-section marker slide between
   links (transform only). */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
  pointer-events: none;
  transition: transform 300ms var(--ease-out);
}
.nav.is-hidden { transform: translateY(calc(-100% - 12px)); transition-duration: 240ms; }

.nav-shell { position: relative; pointer-events: auto; }
.nav-bar {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
/* The panel extends 12px past the content edge, so text never touches its border. */
.nav-bar::before {
  content: "";
  position: absolute;
  inset: 0 -12px;
  background: rgba(20, 21, 15, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgba(242, 242, 236, 0.05),
    0 18px 40px -20px rgba(0, 0, 0, 0.75);
  border-radius: var(--radius);
  opacity: 0;
  transform: scaleY(0.92);
  transition: opacity 240ms var(--ease-out), transform 560ms var(--ease-out);
  pointer-events: none;
}
.nav.is-scrolled .nav-bar::before,
.nav.is-menu-open .nav-bar::before { opacity: 1; transform: none; }
.nav.is-menu-open .nav-bar::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }

.nav-logo { position: relative; display: block; flex: none; padding: 6px 0; }
/* Logo lockup: "BLACKTOP" cap height is about a third of the image height. */
.nav-logo-img { position: relative; height: 40px; width: auto; }
.nav-logo { transform-origin: 0 50%; transition: transform 560ms var(--ease-out); }
.nav.is-scrolled .nav-logo { transform: scale(0.9); }
@media (min-width: 768px) { .nav-logo-img { height: 48px; } }

/* ---------- Desktop island ----------
   Icons with the active section's label unfolded over a sliding orange plate.
   At the very top on wide screens every label is open (a plain text nav).
   On scroll the whole bar (logo, links, CTA) closes in to one centered
   capsule; see the min-width: 1024px block below. */
.nav-links {
  position: relative;
  display: none;
  margin-inline: auto;
  padding: 4px;
  contain: layout style;
}
.nav-list { position: relative; z-index: 1; display: flex; gap: 2px; }
.nav-list a {
  position: relative;
  display: inline-flex; align-items: center;
  height: 36px;
  padding: 0 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
}
.nav-ico {
  width: 18px; height: 18px; flex: none;
  opacity: 0.6;
  transition: opacity 160ms ease, color 200ms ease;
}
.nav-label {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 460ms var(--ease-out);
}
.nav-text {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  filter: blur(3px);
  transition: opacity 220ms ease, filter 220ms ease;
}
.nav-text::before { content: ""; display: inline-block; width: 8px; }

.nav-list a.is-active { color: var(--text); }
.nav-list a.is-active .nav-ico { opacity: 1; color: var(--accent); }
.nav-list a.is-active .nav-label { grid-template-columns: 1fr; }
.nav-list a.is-active .nav-text { opacity: 1; filter: none; transition-delay: 80ms; }
@media (min-width: 1280px) {
  .nav:not(.is-scrolled) .nav-label { grid-template-columns: 1fr; }
  .nav:not(.is-scrolled) .nav-text { opacity: 1; filter: none; }
  .nav:not(.is-scrolled) .nav-tip { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { color: var(--text); }
  .nav-list a:hover .nav-ico { opacity: 1; }
}

/* Tooltip for folded icons. First one waits 240ms; neighbours open instantly. */
.nav-tip {
  position: absolute; top: calc(100% + 12px); left: 50%;
  padding: 5px 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 140ms ease, transform 160ms var(--ease-out);
  pointer-events: none;
}
.nav-list a.is-active .nav-tip { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover .nav-tip { opacity: 1; transform: translate(-50%, 0); transition-delay: 240ms; }
  .nav-list.is-tipping a:hover .nav-tip { transition-delay: 0ms; }
}
.nav-list a:focus-visible .nav-tip { opacity: 1; transform: translate(-50%, 0); }

/* Hover plate (neutral) and active plate (orange). Both are 100px wide boxes
   placed with translateX + scaleX, so only transform animates. */
.nav-plate, .nav-marker {
  position: absolute; left: 0; top: 4px;
  width: 100px; height: 36px;
  transform-origin: 0 50%;
  border-radius: var(--radius);
  pointer-events: none;
  opacity: 0;
}
.nav-plate {
  background: rgba(242, 242, 236, 0.06);
  transition: opacity 160ms ease;
}
.nav-plate.is-tracking { transition: opacity 160ms ease, transform 220ms var(--ease-out); }
.nav-plate.is-on { opacity: 1; }
.nav-marker {
  background: linear-gradient(0deg, var(--accent) 0 2px, rgba(255, 107, 0, 0.11) 2px);
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.28);
  transition: opacity 220ms ease;
}
.nav-marker.is-on { opacity: 1; }

.nav-actions { position: relative; display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }

/* Burger: two lines that fold into an X */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-right: -8px;
  color: var(--text);
  border-radius: var(--radius);
  transition: transform 140ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.94); }
.burger { position: relative; display: block; width: 20px; height: 12px; }
.burger span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}
.burger span:first-child { top: 0; }
.burger span:last-child { bottom: 0; transform-origin: 100% 50%; transform: scaleX(0.6); }
.nav-toggle[aria-expanded="true"] .burger span:first-child { transform: translateY(5.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:last-child { transform-origin: 50% 50%; transform: translateY(-5.25px) rotate(-45deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-toggle:hover .burger span:last-child { transform: scaleX(1); }
  .nav-toggle[aria-expanded="true"]:hover .burger span:last-child { transform: translateY(-5.25px) rotate(-45deg); }
}

/* The nav CTA stays short ("Book audit"). Phones get the floating button instead,
   so the bar never has to fit logo + CTA + burger in 375px. */
.nav-logo { min-width: 0; flex-shrink: 1; }
.nav-cta { max-width: 180px; }
.nav-cta span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 519px) { .nav-cta { display: none; } }
@media (min-width: 1024px) {
  .nav-links { display: block; }
  .nav-actions { margin-left: 0; }
  .nav-toggle { display: none; }
  /* Scrolled: the bar closes in from full width to one capsule that hugs
     logo, links, and CTA. Transform only (no layout, no CLS): the panel
     scales to --nav-k, logo and CTA slide in by --nav-dx, the link group
     re-centers by --nav-io. JS computes all three. */
  .nav-links {
    position: absolute; left: 50%; top: 50%;
    width: max-content;
    margin: 0;
    transform: translate(-50%, -50%);
    transition: transform 560ms var(--ease-out);
  }
  .nav-actions { margin-left: auto; transition: transform 560ms var(--ease-out); }
  .nav.is-scrolled .nav-bar::before { transform: scaleX(var(--nav-k, 1)); }
  .nav.is-scrolled .nav-logo { transform: translateX(var(--nav-dx, 0px)) scale(0.8333); }
  .nav.is-scrolled .nav-actions { transform: translateX(calc(var(--nav-dx, 0px) * -1)); }
  .nav.is-scrolled .nav-links { transform: translate(calc(-50% + var(--nav-io, 0px)), -50%); }
}

/* ---------- Mobile menu sheet ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: var(--z-menu);
  height: 100dvh;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 340ms cubic-bezier(0.32, 0.72, 0, 1);
}
.menu[hidden] { display: none; }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu.is-closing { transition-duration: 220ms; }
.menu-inner {
  min-height: 100%;
  display: flex; flex-direction: column;
  padding-top: calc(env(safe-area-inset-top, 0px) + 10px + 64px + 28px);
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}
.menu-label { color: var(--text-2); margin-bottom: 12px; }
.menu-links { border-top: 1px solid var(--line); }
.menu-links li, .menu-foot {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.menu.is-open .menu-links li, .menu.is-open .menu-foot {
  opacity: 1; transform: none;
  transition-delay: var(--d, 0ms);
}
.menu-links a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.625rem, 7.4vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.menu-links a.is-active { color: var(--accent); }
.menu-idx { color: var(--text-2); font-size: 0.6875rem; }
.menu-arrow { width: 22px; height: 22px; color: var(--text-2); transition: transform 140ms var(--ease-out); }
.menu-links a:active .menu-arrow { transform: translateX(4px); color: var(--accent); }
.menu-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 20px; }
.menu-social { display: flex; gap: 20px; color: var(--text-2); }
.menu-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.menu-social svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .menu { display: none !important; } }

/* ---------- Grain: one physical layer over every surface ---------- */
.grain { position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Chapter scaffolding ---------- */
.chapter { position: relative; padding-block: var(--chapter-pad) calc(var(--chapter-pad) * 1.08); }
.chapter-head { max-width: 920px; margin-bottom: clamp(48px, 6vw, 88px); }
.chapter-head--split { max-width: none; display: grid; gap: 24px; align-items: end; }
@media (min-width: 1024px) {
  .chapter-head--split { grid-template-columns: 7fr 5fr; gap: 64px; }
  .chapter-head--split .lede { padding-bottom: 10px; }
}

/* Kicker: a short orange bar + mono label. The only "section label" on the page. */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
  color: var(--text);
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--accent-text); flex: none; }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 4.8vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  word-spacing: 0.05em;
  margin-bottom: 24px;
  max-width: 18ch;
}
.lede { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 44ch; }
.num-display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px)); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 72%, rgba(255, 107, 0, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(236, 234, 228, 0.05), transparent 70%);
}
.hero-inner { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); margin-bottom: clamp(24px, 3vw, 36px); }
.dot--live { animation: pulse 2.4s ease-in-out infinite; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6.1vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  word-spacing: 0.06em;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.ht-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ht-in { display: block; }
.ht-line--accent { color: var(--accent); }
.hero-foot { display: grid; gap: 28px; align-items: end; }
.hero-sub { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: 1fr auto; gap: 48px; }
}
.hero-media { position: relative; margin-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.frame {
  position: relative;
  transform-origin: 50% 0;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}
.frame-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 10px 16px;
  font-size: 0.6875rem; color: var(--text-2);
  border-bottom: 1px solid var(--line);
}
.frame-status { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.frame-media { position: relative; margin: 10px; overflow: hidden; border-radius: 2px; }
.frame-media img { width: 100%; }
@media (max-width: 479px) { .frame-meta { display: none; } }

/* Hero entrance: CSS only so it paints without JS. Lines rise out of a mask. */
@keyframes mask-up { from { transform: translateY(108%); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero .ht-in { animation: mask-up 760ms var(--ease-out) both; }
.hero .ht-line + .ht-line .ht-in { animation-delay: 90ms; }
.hero .eyebrow { animation: rise 560ms var(--ease-out) both; }
.hero-foot { animation: rise 640ms var(--ease-out) 220ms both; }

/* ---------- Stat strip: telemetry under the hero ---------- */
.stats { padding-bottom: clamp(72px, 9vw, 128px); }
.stats-label { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); margin-bottom: 20px; }
.stat-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line);
}
.stat { background: var(--bg); padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; align-content: space-between; min-height: 150px; }
.stat-val { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.25rem, 4.4vw, 4rem); line-height: 1; }
.stat:first-child .stat-val { color: var(--accent); }
.stat-label { color: var(--text-2); font-size: 0.6875rem; }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html.js-pending [data-count] { opacity: 0; }

/* ---------- The problem (bone) ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 4.2vw, 3.875rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  word-spacing: 0.05em;
  max-width: 24ch;
  margin-bottom: clamp(64px, 8vw, 120px);
}
.statement .w { display: inline; }
.fact-grid { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 3px solid var(--text); }
.fact { padding: 28px 0 8px; display: grid; gap: 10px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact-val { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: -0.045em; }
.fact:first-child .fact-val { color: var(--accent-text); }
.fact-label { color: var(--text-2); }
@media (min-width: 900px) {
  .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact + .fact { border-top: 0; border-left: 1px solid var(--line); padding-left: 32px; }
}

/* ---------- The system: sticky title, stages scroll past ---------- */
.system-grid { display: grid; gap: 48px; }
.system-meter { display: none; }
.stages { border-top: 1px solid var(--line); counter-reset: st; }
.stage {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px 20px;
  padding: clamp(28px, 3.6vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 400ms ease;
}
.stage-num { color: var(--text-2); padding-top: 10px; transition: color 300ms ease; }
.stage-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 12px; }
.stage-text { color: var(--text-2); max-width: 44ch; }
.stage-tag { grid-column: 2; justify-self: start; align-self: start; margin-top: 12px; padding: 6px 10px; font-size: 0.625rem; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--radius); }
/* Active stage: white title, orange number, orange edge bar. Inactive stays
   readable (titles drop to the secondary grey, never below 7:1 contrast). */
.stage { position: relative; }
.stage::before { content: ""; position: absolute; left: -24px; top: -1px; bottom: -1px; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; transition: transform 420ms var(--ease-out); }
.stage-title { transition: color 300ms ease; }
.js .stages.is-live .stage .stage-title { color: var(--text-2); }
.js .stages.is-live .stage.is-on .stage-title { color: var(--text); }
.stage.is-on .stage-num { color: var(--accent); }
.js .stages.is-live .stage.is-on::before { transform: scaleY(1); }
@media (max-width: 767px) { .stage::before { left: calc(var(--gutter) * -1); } }
@media (min-width: 1024px) {
  .system-grid { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .system-head { position: sticky; top: calc(var(--nav-h) + 48px); }
  .system-meter { display: block; position: relative; width: 100%; max-width: 360px; height: 3px; margin-top: 40px; background: var(--line); }
  .system-meter-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
  .stage { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .stage-tag { grid-column: 3; grid-row: 1; margin-top: 12px; }
}

/* ---------- The number (signal orange) ---------- */
.number { overflow: clip; }
.number::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, transparent 14px 28px);
  opacity: 0.9;
}
.number-inner { position: relative; }
.number-title { display: grid; margin-bottom: clamp(32px, 4vw, 48px); }
.number-val {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(6.5rem, 26vw, 23rem);
  line-height: 0.8; letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  margin-left: -0.04em;
}
.number-unit { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1; letter-spacing: -0.035em; margin-top: 18px; }
.number-facts { display: flex; flex-wrap: wrap; gap: 10px 0; margin-bottom: 40px; color: var(--text); }
.number-facts li { display: inline-flex; align-items: center; }
.number-facts li + li::before { content: ""; width: 6px; height: 6px; background: var(--ink); margin: 0 16px; }

/* ---------- The proof: tune shared ledger blocks for the dark chapter ---------- */
.proof .prev { border-top: 3px solid var(--text); }
.prev-head .kicker { margin-bottom: 8px; }
.prev-meta { color: var(--text-2); margin-bottom: 24px; }
.prev-val { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; }
.quote-body p { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.025em; }

/* ---------- The math (bone with a dark instrument) ---------- */
.instrument {
  border-radius: 6px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: 0 40px 80px -40px rgba(11, 11, 9, 0.55), 0 0 0 1px rgba(11, 11, 9, 0.9);
  margin-bottom: clamp(56px, 7vw, 96px);
}
.vs-title { color: var(--text-2); margin-bottom: 16px; }
.math .vs-wrap { background: var(--raised); }

/* ---------- Pricing (ink) ---------- */
.tier-grid { display: grid; gap: 16px; }
.tier {
  display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 2.8vw, 36px);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 4px;
}
.tier-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tier-name { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; }
.tier-note { color: var(--text-2); font-size: 0.625rem; }
.tier-price { display: grid; gap: 6px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.tier-price .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -0.045em; }
.tier-period { color: var(--text-2); font-size: 0.6875rem; }
.tier-list { display: grid; gap: 12px; flex: 1; }
.tier-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--text); }
.tier-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); }
.tier .btn { margin-top: 8px; }
.tier--hl { --line: rgba(11, 11, 9, 0.2); --text: var(--ink); --text-2: rgba(11, 11, 9, 0.75); --accent-text: var(--ink); background: var(--signal); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(255, 107, 0, 0.35); }
@media (min-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .tier--hl { transform: translateY(-16px); }
}

/* ---------- Audit + FAQ (bone, one chapter pair) ---------- */
.plan { padding-bottom: calc(var(--chapter-pad) * 0.6); }
.faq { padding-top: calc(var(--chapter-pad) * 0.6); }
.faq::before { content: ""; position: absolute; top: 0; left: 50%; width: var(--cw); transform: translateX(-50%); border-top: 3px solid var(--text); }
.plan-time { color: var(--accent-text) !important; }
.plan-step::before { box-shadow: 0 0 0 1px var(--accent-text) !important; background: var(--bg) !important; }
.plan-rail-fill { background: var(--accent-text) !important; }
.qa summary { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); min-height: 72px; }
.qa[open] .qa-icon { color: var(--accent-text); }

/* ---------- Tagline: the brand line, moving with scroll ---------- */
.tagline { overflow: clip; padding-block: clamp(40px, 6vw, 80px); border-block: 1px solid var(--line); }
.tagline-track { display: flex; width: max-content; align-items: center; will-change: transform; }
.mq-item {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3.5rem, 11vw, 10rem); line-height: 0.9; letter-spacing: -0.05em;
  text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(236, 234, 228, 0.35);
}
.mq-item:nth-child(4n+1) { color: var(--accent); -webkit-text-stroke: 0; }
.mq-sep { width: clamp(16px, 2vw, 28px); height: clamp(16px, 2vw, 28px); background: var(--accent); margin-inline: clamp(24px, 3vw, 48px); flex: none; }

/* Closing on ink: a tighter top since the tagline sits above it. */
.closing-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; }
.ct-line { display: block; }
.ct-line--accent { color: var(--accent); }
.quote {
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
}
.quote-body p {
  font-size: clamp(1.1875rem, 1.9vw, 1.5625rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 62ch;
}
.quote-cite { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.quote-name { font-weight: 500; }
.quote-role { color: var(--text-2); }

@media (min-width: 1024px) {
  .res-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
  .res-copy { grid-column: 1 / 7; padding-right: 48px; }
  .readout { grid-column: 7 / -1; }
  .quote { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
  .quote-body { grid-column: 3 / -1; }
  .quote-cite { grid-column: 3 / -1; padding-top: 28px; }
}


/* Ledger: funnel bars + campaign table */
.ledger { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.panel {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.panel-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--text);
}
.panel-meta { color: var(--text-2); }
.panel-note { padding: 14px 20px 18px; color: var(--text-2); font-size: 0.6875rem; text-transform: none; letter-spacing: 0.02em; line-height: 1.6; border-top: 1px solid var(--line); }

.funnel { display: flex; flex-direction: column; }
.fn-list { flex: 1; display: grid; gap: 18px; align-content: space-evenly; padding: 24px 20px 26px; }
.fn-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 52px 44px;
  align-items: center;
  gap: 14px;
}
.fn-label { color: var(--text-2); font-size: 0.6875rem; }
.fn-bar { position: relative; height: 26px; background: rgba(242, 242, 236, 0.04); box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); overflow: hidden; }
.fn-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(var(--w, 1));
}
.fn-row:last-child .fn-fill { background: var(--accent-hi); }
.fn-val { font-size: 1.25rem; text-align: right; color: var(--text); }
.fn-pct { color: var(--text-2); font-size: 0.6875rem; text-align: right; }
/* Fills grow in order when the panel enters (JS adds .is-in). */
.js .funnel .fn-fill { transform: scaleX(0); transition: transform 900ms var(--ease-out); }
.js .funnel .fn-row:nth-child(2) .fn-fill { transition-delay: 120ms; }
.js .funnel .fn-row:nth-child(3) .fn-fill { transition-delay: 240ms; }
.js .funnel .fn-row:nth-child(4) .fn-fill { transition-delay: 360ms; }
.js .funnel.is-in .fn-fill { transform: scaleX(var(--w, 1)); }

.ct-wrap { overflow-x: auto; }
.ct { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.ct th, .ct td { padding: 14px 20px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ct thead th { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.ct th:first-child { text-align: left; font-weight: 500; }
.ct tbody td { color: var(--text); }
.ct td:last-child { color: var(--accent); }
.ct-total th, .ct-total td { border-bottom: 0; font-weight: 800; background: rgba(255, 107, 0, 0.06); }
.ct-total th { font-family: var(--font-display); }
@media (max-width: 599px) {
  .ct thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ct, .ct tbody, .ct tr, .ct th, .ct td { display: block; }
  .ct tr { padding: 14px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .ct th[scope="row"] { grid-column: 1 / -1; padding: 0; border: 0; text-align: left; }
  .ct td { padding: 0; border: 0; text-align: left; white-space: normal; }
  .ct td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 2px; }
  .ct-total { border-bottom: 0 !important; }
  .ct-total th, .ct-total td { background: none; }
  .ct tr.ct-total { background: rgba(255, 107, 0, 0.06); }
}

/* Previous campaign */
.prev {
  margin-top: clamp(56px, 7vw, 104px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.prev .quote { margin-top: 0; padding-top: 0; border-top: 0; }
.prev-meta { color: var(--text-2); }
.prev-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 4px 0 28px;
}
.prev-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.prev-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px; background: var(--bg); }
.prev-val { margin: 0; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; color: var(--text); }
.prev-label { color: var(--text-2); font-size: 0.625rem; }
@media (min-width: 1024px) {
  .ledger { grid-template-columns: 5fr 7fr; }
  .prev { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: start; }
  .prev-head { grid-column: 1 / 6; padding-right: 40px; }
  .prev .quote { grid-column: 7 / -1; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .prev .quote-body, .prev .quote-cite { grid-column: auto; padding-top: 0; }
}

/* ---------- 04 Cost dial (truck tachometer) ---------- */
.dial-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.dial-wrap {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dial-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.6875rem;
  color: var(--text-2);
}
.dial-bar-title { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.dial-stage {
  position: relative;
  padding: clamp(16px, 3vw, 32px) clamp(8px, 2vw, 24px) 0;
  background: radial-gradient(70% 80% at 50% 70%, rgba(255, 107, 0, 0.05), transparent 70%);
}
.dial-svg { width: 100%; height: auto; overflow: visible; }
.dial-bezel { fill: none; stroke: var(--line); stroke-width: 1; }
.dial-track { fill: none; stroke: rgba(242, 242, 236, 0.06); stroke-width: 10; }
.dial-redline { fill: none; stroke: url(#dial-hz); stroke-width: 10; }
.dial-band {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
}
.dial-band.is-on { opacity: 0.9; }
.dial-band[data-band="agency"].is-on, .dial-band[data-band="inhouse"].is-on { opacity: 0.55; }
.tk { stroke: rgba(242, 242, 236, 0.35); stroke-width: 1; }
.tk--major { stroke: var(--text); stroke-width: 2; }
.dial-labels text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  fill: var(--text-2);
  text-anchor: middle;
  dominant-baseline: middle;
}
.dial-redline-label, .dial-marker-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dial-redline-label { fill: var(--text-2); }
.dial-marker { fill: var(--accent); }
.dial-marker-label { fill: var(--accent); text-anchor: end; }
.needle-body { fill: var(--text); }
.needle-tip { stroke: var(--accent); stroke-width: 3; stroke-linecap: square; }
.dial-hub { fill: var(--raised); stroke: var(--line); stroke-width: 1.5; }
.dial-hub-dot { fill: var(--accent); }

.dial-readout {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 18px 18px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.dial-ch { color: var(--text-2); font-size: 0.6875rem; }
.dial-val { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 500; line-height: 1; color: var(--text); white-space: nowrap; }
.dial-grid[data-selected="blacktop"] .dial-val { color: var(--accent); }

.dial-panel { display: grid; gap: 20px; align-content: start; }
.ch-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 1px; background: var(--line); box-shadow: 0 0 0 1px var(--line); }
.ch-set legend { color: var(--text-2); padding: 0 0 12px; background: var(--bg); width: 100%; }
.ch-row {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  background: var(--bg);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.ch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ch-row::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--accent);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}
.ch-row:has(input:checked)::after { opacity: 1; }
.ch-row:has(input:checked) { background: var(--surface); }
.ch-row:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; }
.ch-dot { width: 10px; height: 10px; box-shadow: inset 0 0 0 1px var(--text-2); position: relative; }
.ch-dot::after { content: ""; position: absolute; inset: 2px; background: var(--accent); opacity: 0; transform: scale(0.4); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.ch-row:has(input:checked) .ch-dot::after { opacity: 1; transform: none; }
.ch-name { font-weight: 500; }
.ch-row--us .ch-name { color: var(--accent); }
.ch-range { font-size: 0.9375rem; color: var(--text-2); }
.ch-row:has(input:checked) .ch-range { color: var(--text); }
.ch-row:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) { .ch-row:hover { background: var(--surface); } }

.dial-detail { display: grid; gap: 6px; min-height: 96px; }
.dial-mult { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.15; }
.dial-mult .num { font-weight: 500; color: var(--accent); }
.dial-note { color: var(--text-2); font-size: 0.9375rem; }
.dial-source { color: var(--text-2); font-size: 0.625rem; }

.dial-calc {
  display: grid; gap: 14px;
  padding: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
}
.calc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-head label { font-weight: 500; }
.calc-count { font-size: 1.5rem; font-weight: 500; color: var(--accent); }
.calc-result { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0; }
.calc-row[hidden] { display: none; }
.calc-row--key { padding-top: 10px; border-top: 1px dashed var(--line); }
.calc-row--key .calc-label { color: var(--text); }
.calc-row--key .calc-value { color: var(--accent); font-size: clamp(1.375rem, 2.4vw, 1.875rem); }
.calc-pick { color: var(--text-2); font-size: 0.6875rem; }
.calc-label { color: var(--text-2); font-size: 0.6875rem; }
.calc-value { font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 500; line-height: 1; }
.dial-foot { color: var(--text-2); font-size: 0.8125rem; }

/* Range input: square thumb on a hairline lane */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 32px;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--fill, 18%), var(--line) var(--fill, 18%)); }
input[type="range"]::-moz-range-track { height: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; margin-top: -10px;
  background: var(--accent); border: 0; border-radius: var(--radius);
  box-shadow: 0 0 0 4px var(--bg);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; background: var(--accent); border: 0; border-radius: var(--radius); box-shadow: 0 0 0 4px var(--bg); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

@media (min-width: 1024px) {
  .dial-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: start; }
  .dial-wrap { grid-column: 1 / 8; }
  .dial-panel { grid-column: 8 / -1; padding-left: 32px; }
}

/* ---------- 05 Side by side ---------- */
.vs-wrap { box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--radius); background: var(--surface); }
.vs-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.vs-table th, .vs-table td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 0.9375rem; line-height: 1.45; }
.vs-table tbody tr:last-child th, .vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table thead th { font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.vs-table tbody th { font-weight: 500; color: var(--text); width: 22%; }
.vs-table td { color: var(--text-2); }
.vs-table .vs-us { color: var(--text); background: rgba(255, 107, 0, 0.07); box-shadow: inset 1px 0 0 rgba(255, 107, 0, 0.35), inset -1px 0 0 rgba(255, 107, 0, 0.35); }
.vs-table thead .vs-us { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent), inset 1px 0 0 rgba(255, 107, 0, 0.35), inset -1px 0 0 rgba(255, 107, 0, 0.35); font-weight: 500; }
.vs-table td.vs-us { font-weight: 500; }
.vs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; }
.vs-note { color: var(--text-2); font-size: 0.6875rem; text-transform: none; letter-spacing: 0.02em; line-height: 1.6; max-width: 72ch; }
@media (max-width: 899px) {
  .vs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .vs-table, .vs-table tbody, .vs-table tr, .vs-table th, .vs-table td { display: block; width: auto; }
  .vs-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .vs-table tbody tr:last-child { border-bottom: 0; }
  .vs-table tbody th { grid-column: 1 / -1; width: auto; padding: 16px 16px 10px; border: 0; font-family: var(--font-display); font-weight: 800; }
  .vs-table td { padding: 10px 16px 14px; border: 0; font-size: 0.875rem; }
  .vs-table td::before { content: attr(data-label); display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 0.5625rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
  .vs-table td.vs-us { grid-column: 1 / -1; box-shadow: inset 3px 0 0 var(--accent); }
  .vs-table td.vs-us::before { color: var(--accent); }
}

/* ---------- Pointer spotlight (cards) ---------- */
[data-spot] { position: relative; overflow: hidden; isolation: isolate; }
.spot {
  position: absolute; left: 0; top: 0;
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.10), rgba(255, 107, 0, 0.03) 55%, transparent);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 220ms ease;
}
[data-spot].is-lit .spot { opacity: 1; }

/* ---------- 08 The free audit: a 30-minute run sheet ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.plan-bring { margin: 28px 0 32px; }
.plan-bring-title { color: var(--text-2); margin-bottom: 14px; }
.plan-bring .tier-list { padding-top: 16px; }
.plan-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.plan-phone { color: var(--text); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; padding: 12px 0; }
@media (hover: hover) and (pointer: fine) { .plan-phone:hover { text-decoration-color: var(--accent); } }
.plan-track { position: relative; padding-left: 28px; }
.plan-clock { display: inline-flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 20px; }
.plan-clock .dot { animation: pulse 2.4s ease-in-out infinite; }
.plan-rail { position: absolute; left: 3px; top: 40px; bottom: 8px; width: 1px; background: var(--line); }
.plan-rail-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: 50% 0; transform: scaleY(1); }
.js .plan-rail-fill { transform: scaleY(0); }
.plan-steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan-step { position: relative; display: grid; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.plan-step::before { content: ""; position: absolute; left: -29px; top: 30px; width: 7px; height: 7px; background: var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.plan-time { color: var(--accent); }
.plan-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -0.015em; }
.plan-body { color: var(--text-2); max-width: 52ch; }
@media (min-width: 1024px) {
  .plan-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; align-items: start; }
  .plan-head { grid-column: 1 / 6; padding-right: 40px; margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 40px); }
  .plan-track { grid-column: 7 / -1; }
}

/* ---------- 09 FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::marker { content: ""; }
.qa-icon { width: 22px; height: 22px; flex: none; color: var(--text-2); transition: transform 220ms var(--ease-out); }
.qa[open] .qa-icon { transform: rotate(45deg); color: var(--accent); }
.qa-a { padding: 0 48px 26px 0; }
.qa-a p { color: var(--text-2); max-width: 64ch; }
.qa[open] .qa-a { animation: rise 280ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .qa summary:hover .qa-icon { color: var(--accent); } }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .faq-head { grid-column: 1 / 5; padding-right: 40px; }
  .faq-list { grid-column: 5 / -1; }
}

/* ---------- Final CTA: driver breaks out of the frame ---------- */
.closing { position: relative; padding-block: calc(var(--chapter-pad) + 56px) var(--chapter-pad); }
.closing-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background:
    radial-gradient(60% 90% at 85% 100%, rgba(255, 107, 0, 0.10), transparent 70%),
    var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
  overflow-x: clip;
}
/* Top edge highlight: a hairline of accent that the driver's head crosses. */
.closing-panel::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.7) 60%, transparent);
  pointer-events: none;
}
.closing-copy { position: relative; z-index: 3; padding: 8px clamp(24px, 5vw, 72px) clamp(32px, 5vw, 72px); }
.closing-title { font-size: clamp(1.75rem, 7.2vw, 3rem); margin-bottom: 24px; }
.ct-line { display: block; }
.closing-title .rot { margin-top: 0.06em; }
.closing-body { color: var(--text-2); max-width: 44ch; margin-bottom: 32px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.ghl-slot { margin-top: 24px; }
.closing-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .closing-ctas .btn { width: 100%; justify-content: space-between; padding-inline: 20px; font-size: 1rem; } }

.closing-visual {
  position: relative;
  order: -1;
  z-index: 2;
  height: 340px;
  margin: -96px 0 0;
  display: flex; justify-content: center; align-items: flex-end;
  pointer-events: none;
}
/* Warm backlight behind the head and shoulders */
.closing-visual::before {
  content: "";
  position: absolute;
  left: 50%; top: 4%;
  width: 280px; height: 280px;
  margin-left: -140px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.32), rgba(255, 107, 0, 0.08) 55%, transparent);
  z-index: -1;
}
.closing-driver {
  height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
  will-change: transform;
}
.hud-callout {
  position: absolute;
  right: 6px; top: 64%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  font-size: 0.625rem;
  color: var(--text);
  background: rgba(10, 11, 7, 0.86);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 360ms var(--ease-out) 500ms, transform 360ms var(--ease-out) 500ms;
}
.hud-callout::before {
  content: "";
  position: absolute; right: 100%; top: 50%;
  width: 36px; height: 1px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 107, 0, 0.2));
}
.closing.is-in .hud-callout, .no-js .hud-callout { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .closing-title { font-size: min(4.2vw, 3.5rem); }
}
@media (min-width: 1024px) {
  .closing { padding-top: calc(var(--chapter-pad) + 120px); }
  .closing-panel { grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: 460px; align-items: center; }
  .closing-copy { grid-column: 1 / 8; grid-row: 1; padding: clamp(40px, 5vw, 72px); }
  .closing-visual {
    position: absolute;
    right: clamp(16px, 6vw, 96px); bottom: 0;
    height: calc(100% + 150px);
    margin: 0;
    order: 0;
  }
  .closing-visual::before { width: 420px; height: 420px; margin-left: -210px; top: 0; }
  .hud-callout { left: auto; right: calc(100% - 40px); top: 40%; }
  .hud-callout::before { right: auto; left: 100%; background: linear-gradient(270deg, var(--accent), rgba(255, 107, 0, 0.2)); }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: var(--z-content);
  border-top: 1px solid var(--line);
  padding-top: 56px;
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.footer-logo img { height: 48px; width: auto; }
.footer-desc { color: var(--text-2); max-width: 40ch; margin-top: 18px; font-size: 0.9375rem; }
.footer-label { color: var(--text-2); margin-bottom: 14px; }
.footer-nav ul, .footer-social ul { display: grid; gap: 2px; }
.footer-nav a, .footer-social a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}
.footer-social svg { width: 20px; height: 20px; color: var(--text-2); }
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover, .footer-social a:hover { text-decoration-color: var(--accent); }
}
.footer-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-2); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
  .footer-brand { grid-column: 1 / 7; }
  .footer-nav { grid-column: 7 / 10; }
  .footer-social { grid-column: 10 / -1; }
}

/* ---------- Floating audit button ----------
   One tap target. Rises in after the hero, drops away at the final CTA.
   First appearance gets a single orange sweep; never repeats. */
.float-cta {
  position: fixed;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-sticky);
  width: min(100% - var(--gutter) * 2, 460px);
  transform: translate(-50%, calc(100% + 28px)) scale(0.96);
  opacity: 0;
  transition: transform 240ms var(--ease-out), opacity 200ms ease;
  pointer-events: none;
}
.float-cta.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  transition: transform 520ms var(--ease-out), opacity 240ms ease;
  pointer-events: auto;
}
.float-btn {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  height: 56px;
  padding: 0 6px 0 18px;
  overflow: hidden;
  color: var(--text);
  background: rgba(20, 21, 15, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px var(--line),
    inset 0 1px 0 rgba(242, 242, 236, 0.06),
    0 24px 48px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(0, 0, 0, 0.4);
  border-radius: var(--radius);
  transition: transform 140ms var(--ease-out), box-shadow 200ms ease;
  touch-action: manipulation;
}
.float-btn:active { transform: scale(0.97); }
/* One-shot sweep: a soft orange band crosses once on first reveal. */
.float-btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.22), transparent);
  transform: translateX(-110%) skewX(-18deg);
  pointer-events: none;
}
.float-cta.is-swept .float-btn::after { animation: float-sweep 1100ms var(--ease-in-out) 380ms both; }
@keyframes float-sweep { to { transform: translateX(320%) skewX(-18deg); } }

.float-meta {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0;
  font-size: 0.6875rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
}
.float-meta .dot { animation: pulse 2.4s ease-in-out infinite; }
.float-label {
  margin-left: auto;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.float-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
  width: 44px; height: 44px;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius);
}
.float-arrow svg { width: 18px; height: 18px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .float-btn:hover { box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.45), inset 0 1px 0 rgba(242, 242, 236, 0.06), 0 24px 48px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4); }
  .float-btn:hover .float-arrow svg { transform: translateX(3px); }
}
@media (max-width: 419px) {
  .float-meta span:last-child { display: none; }
  .float-btn { padding-left: 18px; gap: 10px; }
  .float-label { margin-left: 0; }
  .float-arrow { margin-left: auto; }
}


/* ---------- Hero scan line: a telemetry sweep over the dashboard every 6s ---------- */
.frame-scan-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.frame-scan {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 82%, rgba(255, 107, 0, 0.08) 95%, rgba(255, 140, 40, 0.55) 99.4%, transparent 100%);
  transform: translateY(-100%);
  opacity: 0;
}
.frame-scan.is-running { animation: scan 6s cubic-bezier(0.45, 0, 0.25, 1) 1.2s infinite; }
@keyframes scan {
  0% { transform: translateY(-100%); opacity: 0; }
  6% { opacity: 1; }
  38% { transform: translateY(0); opacity: 1; }
  44%, 100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Odometer digits (stat bar) ---------- */
.odo { display: inline-flex; align-items: flex-start; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; vertical-align: top; }
.odo-strip { display: block; transform: translateY(0); }
.odo-strip > span { display: block; height: 1em; line-height: 1; }
.odo-strip.is-rolling { transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1); }
.odo-static { display: inline-block; line-height: 1; }
}

/* Dial legibility on phones: SVG text scales with the gauge, so size it up. */
@media (max-width: 599px) {
  .dial-labels text { font-size: 18px; }
  .dial-redline-label, .dial-marker-label { font-size: 15px; }
  .tk--major { stroke-width: 3; }
}

/* ---------- Reduced motion: final states, no scrubbing, no reveals ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .dot--live, .float-meta .dot { animation: none !important; }
  .js .funnel .fn-fill { transform: scaleX(var(--w, 1)); }
  .js .plan-rail-fill { transform: none; }
  .js .stages.is-live .stage .stage-title { color: var(--text); }
  .float-cta { transform: translate(-50%, 0) !important; }
  .float-btn::after { display: none; }
  .nav-text { filter: none; }
  .menu { clip-path: none; }
  .menu-links li, .menu-foot { transform: none !important; }
  html.js-pending [data-count] { opacity: 1; }
  .frame-scan { display: none; }
  .hud-callout { opacity: 1; transform: none; }
  .statement .w { opacity: 1 !important; }
}

@media print {
  .grain, .nav, .menu, .float-cta, .tagline { display: none !important; }
  body, html, [data-theme] { background: #fff !important; color: #000 !important; }
}
