/* Driveline Marketing: graphite, ember, metal. Depth comes from glass layers, glow and grain. */

:root {
  --bg: #0a0b0d;
  --bg-raise: #101215;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.065);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f3f1ec;
  --muted: #a3a6ad;
  --accent: #ff5a1f;
  --accent-hot: #ff9255;
  --accent-ink: #160802;
  --danger: #ff6b5e;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius: 1rem;
  --radius-small: 0.625rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-float: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 32px 64px -32px rgba(0, 0, 0, 0.9);
  --wrap: 78rem;

  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
  --icon-cross: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6rem; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* film grain over everything: keeps large dark areas from looking flat */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--grain); opacity: 0.07; mix-blend-mode: overlay;
}

h1, h2, h3 { font-family: var(--font-display); font-stretch: 118%; margin: 0; text-transform: uppercase; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.75rem); font-weight: 800; line-height: 0.95; }
h2 { font-size: clamp(2rem, 4.4vw, 3.75rem); font-weight: 800; line-height: 1; max-width: 20ch; }
h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.15; font-stretch: 110%; letter-spacing: 0; }
.h2--wide { max-width: none; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space-4); }
@media (min-width: 48rem) { .wrap { padding-inline: var(--space-12); } }

.accent { color: var(--accent); text-shadow: 0 0 48px rgba(255, 90, 31, 0.45); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  padding: var(--space-2) var(--space-4); margin-bottom: var(--space-6);
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
}
.eyebrow::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(255, 90, 31, 0.8); }

.skip-link { position: absolute; left: var(--space-4); top: -4rem; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: var(--space-2) var(--space-4); border-radius: var(--radius-small); }
.skip-link:focus { top: var(--space-2); }

/* Buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-hot), var(--accent));
  padding: var(--space-4) var(--space-8); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 12px 32px -8px rgba(255, 90, 31, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn::before { /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn::after {
  content: ""; width: 1em; height: 1em; background: currentColor;
  -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 20px 40px -8px rgba(255, 90, 31, 0.75); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn--small { font-size: 0.8125rem; padding: var(--space-3) var(--space-6); }
.btn--small::after { display: none; }
.btn--ghost { color: var(--text); background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: none; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--ghost:hover { box-shadow: none; border-color: var(--accent-hot); }

/* Header: floating glass bar */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: var(--space-3) var(--space-4); pointer-events: none; }
.site-header__bar {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6);
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(14, 16, 19, 0.6); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-float);
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled .site-header__bar { background: rgba(14, 16, 19, 0.85); border-color: var(--line-strong); }
.wordmark { display: flex; align-items: center; gap: var(--space-3); margin-right: auto; text-decoration: none; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.0625rem; letter-spacing: 0.08em; text-transform: uppercase; }
.wordmark svg { width: 1.5rem; height: 1.5rem; flex: none; }
.wordmark .wordmark__logo { width: auto; height: 1.125rem; overflow: visible; transition: opacity 0.5s var(--ease); }
.logo__slash { fill: var(--accent); }
.logo__word { fill: var(--text); }
/* on the home page the big 3D logo is the brand until you scroll past it */
body:has(.brand-hero--live) .wordmark__logo, body:has(.brand-hero--live) .wordmark__tag { opacity: 0; }
.brand-hero-past body .wordmark__logo, .brand-hero-past body .wordmark__tag { opacity: 1; }
.wordmark__tag { font-family: var(--font-mono); font-stretch: 100%; font-weight: 400; font-size: 0.625rem; letter-spacing: 0.16em; color: var(--muted); display: none; }
.site-nav { display: none; gap: var(--space-6); font-size: 0.875rem; color: var(--muted); }
.site-nav a { text-decoration: none; transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
@media (min-width: 60rem) { .site-nav { display: flex; } .wordmark__tag { display: inline; } }

/* Scroll rail: the page's own driveline */
.rail { display: none; }
@media (min-width: 80rem) {
  .rail { display: block; position: fixed; left: 1.75rem; top: 18vh; bottom: 18vh; width: 1px; z-index: 40; background: var(--line); }
  .rail__fill { position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--progress, 0)); background: linear-gradient(var(--accent-hot), var(--accent)); box-shadow: 0 0 12px rgba(255, 90, 31, 0.8); }
  .rail__dot { position: absolute; left: -0.25rem; top: calc(var(--progress, 0) * 100%); width: calc(0.5rem + 1px); height: calc(0.5rem + 1px); margin-top: -0.25rem; border-radius: 50%; background: var(--accent-hot); box-shadow: 0 0 16px 4px rgba(255, 90, 31, 0.7); }
}

/* Brand hero: 3D logo (logo3d.js). The Blender still shows until the live scene is ready, or if it never is. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brand-hero { position: relative; height: 100vh; height: 100svh; min-height: 34rem; background: var(--bg); }
.brand-hero--live { height: 150vh; }
.brand-hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; }
.brand-hero__still img, .brand-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.brand-hero__still img { object-fit: cover; object-position: 50% 30%; transition: opacity 0.35s var(--ease); }
@media (max-aspect-ratio: 1/1) { .brand-hero__still img { object-fit: contain; object-position: 50% 22%; } }
.brand-hero__canvas { opacity: 0; transition: opacity 0.8s var(--ease); }
.brand-hero--live .brand-hero__canvas { opacity: min(1, calc((1 - var(--hero-p, 0)) * 5)); }
.brand-hero--live .brand-hero__still img { opacity: 0; }
.brand-hero__sticky::after { /* vignette + fade into the page below */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(130% 90% at 50% 38%, transparent 55%, rgba(10, 11, 13, 0.8) 100%),
    linear-gradient(to bottom, rgba(10, 11, 13, 0.6), transparent 18%, transparent 58%, rgba(10, 11, 13, 0.85) 82%, var(--bg));
}
.brand-hero__copy {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(2.5rem, 7vh, 5rem);
  display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: var(--space-4);
  opacity: calc(1 - var(--hero-p, 0) * 2.2); transform: translateY(calc(var(--hero-p, 0) * -3rem));
}
.brand-hero__copy .eyebrow { justify-content: center; }
.brand-hero__copy h1 { font-size: clamp(2rem, min(4.6vw, 7.4vh), 4.25rem); }
@media (min-width: 64rem) { .brand-hero__copy h1 { white-space: nowrap; } }
.brand-hero__lede { margin-top: var(--space-4); max-width: 38rem; font-size: clamp(1rem, 2.1vh, 1.1875rem); color: var(--muted); text-wrap: balance; }
.brand-hero__copy .hero__actions { justify-content: center; margin-top: var(--space-6); }
.brand-hero--live .brand-hero__copy > * { animation: hero-rise 0.9s var(--ease) both; }
.brand-hero--live .brand-hero__copy > :nth-child(1) { animation-delay: 1.5s; }
.brand-hero--live .brand-hero__copy > :nth-child(2) { animation-delay: 1.65s; }
.brand-hero--live .brand-hero__copy > :nth-child(3) { animation-delay: 1.8s; }
.brand-hero--live .brand-hero__copy > :nth-child(4) { animation-delay: 1.95s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(1.25rem); } }
.brand-hero__cue { display: none; }
@media (min-width: 60rem) {
  .brand-hero--live .brand-hero__cue {
    display: flex; position: absolute; z-index: 2; right: max(var(--space-12), calc((100vw - var(--wrap)) / 2 + var(--space-12))); bottom: var(--space-6);
    flex-direction: column; align-items: center; gap: var(--space-2); margin: 0;
    font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
    opacity: calc(1 - var(--hero-p, 0) * 4);
  }
  .brand-hero__cue::after { content: ""; width: 1px; height: 2.5rem; background: linear-gradient(var(--accent-hot), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
}
@media (max-width: 47.99rem) {
  .brand-hero__copy h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .brand-hero__lede { font-size: 0.9375rem; line-height: 1.5; }
  .brand-hero__copy .eyebrow { font-size: 0.625rem; letter-spacing: 0.1em; }
  .brand-hero__copy .btn { padding: var(--space-3) var(--space-6); font-size: 0.875rem; }
}
@media (max-width: 47.99rem) and (max-height: 44rem) { .brand-hero__lede { display: none; } }
@media (prefers-reduced-motion: reduce) { .brand-hero--live .brand-hero__copy > * { animation: none; } }

/* Journey: scroll-driven 3D hero. Static stacked layout by default; driveline3d.js upgrades it. */
.journey { position: relative; padding-top: 7rem; }
.journey__canvas { display: none; width: 100%; }
.journey__scrim, .journey__cue { display: none; }
.chapter { padding: var(--space-8) var(--space-4); max-width: var(--wrap); margin-inline: auto; }
.chapter--intro .hero__lede { margin-top: var(--space-6); max-width: 36rem; font-size: 1.1875rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-8); }
.chapter__index { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--accent-hot); }
.chapter__part { display: block; margin-top: var(--space-3); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.chapter h2 { margin-top: var(--space-2); font-size: clamp(1.75rem, 3.2vw, 2.75rem); }
.chapter--part p:last-child { margin-top: var(--space-3); color: var(--muted); }

.journey--still .journey__canvas { display: block; aspect-ratio: 16 / 9; max-width: var(--wrap); margin-inline: auto; border-radius: var(--radius); }

.journey--live { height: 620vh; padding-top: 0; }
.journey--live .journey__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.journey--live .journey__canvas { display: block; position: absolute; inset: 0; height: 100%; }
.journey--live .journey__scrim {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% 50%, transparent 55%, rgba(10, 11, 13, 0.85) 100%),
    linear-gradient(to bottom, rgba(10, 11, 13, 0.75), transparent 22%, transparent 72%, var(--bg) 100%);
}
.journey--live .chapter {
  position: absolute; z-index: 2; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(1.5rem);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.journey--live .chapter.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.1s, 0.1s, 0s; }
.journey--live .chapter--intro { left: 0; right: 0; top: 50%; translate: 0 -50%; max-width: none; padding-inline: var(--space-4); }
.journey--live .chapter--part {
  left: var(--space-4); right: var(--space-4); bottom: 6.5rem; max-width: 26rem;
  padding: var(--space-6);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(14, 16, 19, 0.55); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--shadow-float);
}
@media (min-width: 60rem) {
  .journey--live .chapter--intro { padding-inline: max(var(--space-12), calc((100vw - var(--wrap)) / 2 + var(--space-12))); }
  .journey--live .chapter--intro > * { max-width: 40rem; }
  .journey--live .chapter--intro .chapter__title { max-width: 12.5em; font-size: clamp(2.25rem, min(4.7vw, 8.6vh), 4.75rem); }
  .journey--live .chapter--intro .hero__lede { max-width: 31rem; font-size: clamp(1rem, 2.2vh, 1.1875rem); }
  .journey--live .chapter--part { bottom: auto; top: 50%; translate: 0 -50%; left: max(var(--space-12), calc((100vw - var(--wrap)) / 2 + var(--space-12))); right: auto; }
  .journey--live .chapter--right { left: auto; right: max(var(--space-12), calc((100vw - var(--wrap)) / 2 + var(--space-12))); }
}
@media (max-width: 59.99rem) {
  .journey--live .chapter--intro { top: 5.5rem; translate: none; }
  .journey--live .chapter--intro .chapter__title { font-size: clamp(1.875rem, 8.6vw, 3.25rem); }
  .journey--live .chapter--intro .hero__lede { font-size: 0.9375rem; line-height: 1.5; margin-top: var(--space-4); }
  .journey--live .chapter--intro .eyebrow { font-size: 0.625rem; letter-spacing: 0.1em; margin-bottom: var(--space-4); }
  .journey--live .hero__actions { margin-top: var(--space-4); }
  .journey--live .hero__actions .btn { padding: var(--space-3) var(--space-6); font-size: 0.875rem; }
  .journey--live .hero__actions .btn--ghost { display: none; }
  /* copy sits over the top half here, so darken that half instead of the edges */
  .journey--live .journey__scrim { background: linear-gradient(to bottom, rgba(10, 11, 13, 0.94) 0%, rgba(10, 11, 13, 0.78) 42%, transparent 62%, transparent 80%, var(--bg) 100%); transition: opacity 0.6s; }
  .journey--live.is-underway .journey__scrim { opacity: 0.35; }
}
@media (max-width: 30rem) {
  .site-header__bar { gap: var(--space-3); padding-left: var(--space-4); }
  .wordmark { font-size: 0.875rem; gap: var(--space-2); }
  .wordmark svg { width: 1.25rem; height: 1.25rem; }
  .wordmark .wordmark__logo { width: auto; height: 0.95rem; }
  .btn--small { padding: var(--space-3) var(--space-4); font-size: 0.75rem; }
}
.journey--live .journey__cue {
  display: flex; position: absolute; z-index: 2; left: 50%; bottom: 5.25rem; translate: -50% 0;
  flex-direction: column; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  transition: opacity 0.4s;
}
.journey__cue::after { content: ""; width: 1px; height: 2.5rem; background: linear-gradient(var(--accent-hot), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
.journey.is-underway .journey__cue { opacity: 0; }
@media (max-width: 59.99rem) { .journey--live .journey__cue { display: none; } }
@media (min-width: 60rem) {
  .journey--live .journey__cue { left: auto; right: max(var(--space-12), calc((100vw - var(--wrap)) / 2 + var(--space-12))); bottom: var(--space-6); translate: none; align-items: flex-end; }
  /* soft dark pool behind the intro copy so it stays readable over the scene */
  .journey--live .chapter--intro::before { content: ""; position: absolute; z-index: -1; inset: -30% 45% -30% -10%; background: radial-gradient(closest-side, rgba(10, 11, 13, 0.82), transparent); }
}
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* HUD: the quiet version of "without it, nothing moves" */
.hud {
  display: none; position: absolute; z-index: 2; left: 50%; bottom: var(--space-6); translate: -50% 0;
  gap: 1px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius-small);
  background: var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-family: var(--font-mono); text-transform: uppercase; white-space: nowrap;
}
.journey--live .hud, .stage .hud { display: flex; }
.hud__item { display: grid; gap: 0.125rem; padding: var(--space-2) var(--space-4); background: rgba(10, 11, 13, 0.72); min-width: 6.75rem; }
.hud__label { font-size: 0.5625rem; letter-spacing: 0.16em; color: var(--muted); }
.hud__value { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); transition: color 0.3s; }
.hud__value.is-on { color: var(--accent-hot); text-shadow: 0 0 12px rgba(255, 90, 31, 0.7); }
.hud__value b { font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .hud__item { min-width: 0; padding-inline: var(--space-3); } }

/* Niche hero: copy beside a framed live stage */
.hero { position: relative; isolation: isolate; padding: 8rem 0 var(--space-16); overflow: clip; }
.hero::before { /* ember glow behind the stage */
  content: ""; position: absolute; z-index: -1; right: -10%; top: 5%; width: 60rem; height: 40rem;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.2), transparent); filter: blur(20px);
}
.hero__grid { display: grid; gap: var(--space-12); align-items: center; }
.hero__lede { margin-top: var(--space-6); max-width: 36rem; font-size: 1.125rem; color: var(--muted); }
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 5fr 6fr; gap: var(--space-8); }
  .hero h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); }
}
.stage { position: relative; margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); box-shadow: var(--shadow-float), 0 0 96px -24px rgba(255, 90, 31, 0.35); aspect-ratio: 4 / 3; }
.stage__canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.stage__canvas:active { cursor: grabbing; }
.stage__toggle {
  position: absolute; z-index: 2; top: var(--space-4); right: var(--space-4);
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text);
  padding: var(--space-2) var(--space-4); border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  background: rgba(10, 11, 13, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.stage__toggle:hover { border-color: var(--accent-hot); color: var(--accent-hot); }
.stage__toggle:active { transform: scale(0.97); }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-raise); padding-block: var(--space-4); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: var(--space-8); padding-right: var(--space-8); font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 1.125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.marquee__track span::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(255, 90, 31, 0.8); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; isolation: isolate; padding-block: var(--space-24); }
@media (min-width: 48rem) { .section { padding-block: var(--space-32); } }
.section--glow::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(70rem, 100%); height: 28rem; translate: -50% -30%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.13), transparent);
}
.section--raise { background: linear-gradient(var(--bg-raise), var(--bg)); border-top: 1px solid var(--line); }
.section__intro { margin-top: var(--space-6); max-width: 42rem; font-size: 1.125rem; color: var(--muted); }

/* Glass card with a cursor-tracked spotlight */
.card, .diag__row, .trades a, .spec__col, .stat, .parts li, .steps li {
  position: relative; isolation: isolate;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
[data-spot]::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 50%), rgba(255, 110, 50, 0.16), transparent 60%);
}
[data-spot]:hover::before { opacity: 1; }
[data-spot]:hover { border-color: rgba(255, 146, 85, 0.45); }

/* Diagnosis */
.diag { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.diag__row { display: grid; gap: var(--space-3); padding: var(--space-6); overflow: hidden; }
.diag__row::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent-hot), var(--accent)); box-shadow: 0 0 16px rgba(255, 90, 31, 0.8); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease); }
.diag__row:hover::after { transform: scaleY(1); }
.diag__row:hover { transform: translateX(6px); background: var(--glass-strong); }
.diag__code { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--accent-hot); }
.diag__cause { color: var(--muted); }
@media (min-width: 56rem) {
  .diag__row { grid-template-columns: 5.5rem 5fr 6fr; gap: var(--space-8); align-items: baseline; padding: var(--space-8); }
}

/* Parts strip (niche pages) */
.parts { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; gap: var(--space-3); }
.parts li { padding: var(--space-6); }
.parts li:hover { transform: translateY(-4px); background: var(--glass-strong); }
.parts__n { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--accent-hot); }
.parts__part { display: block; margin-top: var(--space-4); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.parts h3 { margin-top: var(--space-1); }
.parts p { margin-top: var(--space-3); font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
@media (min-width: 40rem) { .parts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .parts { grid-template-columns: repeat(5, 1fr); } }

/* Steps: cards on a live shaft */
.steps { position: relative; list-style: none; margin: var(--space-16) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.steps li { padding: var(--space-8) var(--space-6) var(--space-6); }
.steps li:hover { transform: translateY(-4px); background: var(--glass-strong); }
.steps__n { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 3.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 146, 85, 0.7); }
.steps h3 { margin-top: var(--space-6); }
.steps p { margin-top: var(--space-3); font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) {
  .steps { grid-template-columns: repeat(4, 1fr); overflow-x: clip; padding-top: var(--space-8); margin-top: var(--space-8); }
  .steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); }
  .steps::after { content: ""; position: absolute; top: -1px; left: 0; width: 9rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, var(--accent-hot)); box-shadow: 0 0 16px rgba(255, 90, 31, 0.9); animation: shaft-pulse 3.2s var(--ease) infinite; }
  .steps li::after { content: ""; position: absolute; top: calc(-2rem - 0.3125rem); left: var(--space-6); width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-hot); box-shadow: 0 0 12px rgba(255, 90, 31, 0.7); }
}
@keyframes shaft-pulse { from { left: -9rem; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }

/* Trades */
.trades { list-style: none; margin: var(--space-12) 0 0; padding: 0; display: grid; gap: var(--space-4); }
.trades a { display: grid; gap: var(--space-2); align-content: start; height: 100%; padding: var(--space-8) var(--space-6); text-decoration: none; }
.trades a:hover { transform: translateY(-6px); background: var(--glass-strong); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 32px 48px -24px rgba(0, 0, 0, 0.9), 0 0 64px -24px rgba(255, 90, 31, 0.5); }
.trades a:active { transform: translateY(-2px); }
.trades__icon { width: 2.75rem; height: 2.75rem; padding: var(--space-2); margin-bottom: var(--space-8); border: 1px solid var(--line-strong); border-radius: var(--radius-small); fill: none; stroke: var(--accent-hot); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; background: rgba(255, 90, 31, 0.08); }
.trades__name { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-family: var(--font-display); font-stretch: 118%; font-weight: 800; font-size: 1.375rem; line-height: 1.1; text-transform: uppercase; }
.trades__name::after { content: ""; flex: none; width: 1.125rem; height: 1.125rem; background: var(--accent-hot); -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; transform: translateX(-6px); opacity: 0.5; transition: transform 0.4s var(--ease), opacity 0.4s; }
.trades a:hover .trades__name::after { transform: none; opacity: 1; }
.trades__note { color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
@media (min-width: 40rem) { .trades { grid-template-columns: repeat(2, 1fr); } .trades__rest { grid-column: span var(--span-2); } }
@media (min-width: 72rem) { .trades { grid-template-columns: repeat(3, 1fr); } .trades__rest { grid-column: span var(--span-3); } }

/* Pilot */
.stats { margin-top: var(--space-12); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.stat { padding: var(--space-6); }
.stat b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1; color: var(--accent); text-shadow: 0 0 40px rgba(255, 90, 31, 0.5); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: var(--space-2); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 56rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.spec { margin-top: var(--space-3); display: grid; gap: var(--space-3); }
.spec__col { padding: var(--space-8) var(--space-6); }
.spec__col--note { background: rgba(255, 90, 31, 0.05); border-color: rgba(255, 146, 85, 0.25); }
.spec ul { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-3); font-size: 0.9375rem; color: var(--muted); }
.spec li { display: grid; grid-template-columns: 1rem 1fr; gap: var(--space-3); line-height: 1.5; }
.spec li::before { content: ""; width: 1rem; height: 1rem; margin-top: 0.2rem; }
.ticks li::before { background: var(--accent-hot); -webkit-mask: var(--icon-check) center / contain no-repeat; mask: var(--icon-check) center / contain no-repeat; }
.crosses li::before { background: var(--muted); -webkit-mask: var(--icon-cross) center / contain no-repeat; mask: var(--icon-cross) center / contain no-repeat; }
@media (min-width: 56rem) { .spec { grid-template-columns: repeat(3, 1fr); } }

/* Straight talk */
.talk { margin-top: var(--space-12); display: grid; gap: var(--space-4); }
.card { padding: var(--space-8) var(--space-6); }
.card:hover { transform: translateY(-4px); background: var(--glass-strong); }
.card__n { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--accent-hot); }
.card h3 { margin-top: var(--space-4); }
.card p { margin-top: var(--space-3); font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 48rem) { .talk { grid-template-columns: repeat(2, 1fr); } }

/* Contact */
.cta { position: relative; isolation: isolate; overflow: clip; padding-block: var(--space-24); border-top: 1px solid var(--line); }
.cta::before { content: ""; position: absolute; z-index: -1; right: -10rem; bottom: -14rem; width: 56rem; height: 44rem; background: radial-gradient(closest-side, rgba(255, 90, 31, 0.28), transparent); }
.cta__inner { display: grid; gap: var(--space-12); align-items: start; }
.cta h2 { max-width: 14ch; }
.cta__inner > div > p { margin-top: var(--space-6); max-width: 34rem; color: var(--muted); font-size: 1.125rem; }
@media (min-width: 64rem) { .cta__inner { grid-template-columns: 5fr 6fr; gap: var(--space-16); } .cta__inner > div:first-child { position: sticky; top: 8rem; } }

.lead-form, .lead-form__done {
  padding: var(--space-6); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) * 1.25);
  background: rgba(16, 18, 21, 0.72); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: var(--shadow-float), 0 0 120px -32px rgba(255, 90, 31, 0.45);
}
.lead-form__fields { display: grid; gap: var(--space-4); }
@media (min-width: 40rem) {
  .lead-form, .lead-form__done { padding: var(--space-12); }
  .lead-form__fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: grid; gap: var(--space-2); }
.field label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field__hint { text-transform: none; letter-spacing: 0.02em; opacity: 0.7; }
.field input, .field select {
  font: inherit; color: var(--text); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong); border-radius: var(--radius-small);
  min-height: 3rem; padding: var(--space-2) var(--space-4); width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field select option { background: var(--bg-raise); color: var(--text); }
.field input:hover, .field select:hover { border-color: rgba(255, 146, 85, 0.6); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent-hot); background: rgba(255, 255, 255, 0.07); box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.22); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 107, 94, 0.16); }
.field--trap { position: absolute; left: -9999px; }
.check { display: grid; grid-template-columns: 1.25rem 1fr; gap: var(--space-3); align-items: start; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.check input { width: 1.25rem; height: 1.25rem; margin: 0.125rem 0 0; accent-color: var(--accent); }
.lead-form .btn, .lead-details .btn { margin-top: var(--space-8); width: 100%; justify-content: center; }
.lead-details { margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.lead-details .lead-form__fields { margin-top: var(--space-6); align-items: end; }
.lead-details__done { padding-top: var(--space-6); }
.lead-form__fine { margin-top: var(--space-4); font-size: 0.8125rem; color: var(--muted); text-align: center; }
.lead-form__error { margin-top: var(--space-4); color: var(--danger); font-weight: 500; }
.lead-form__done p { margin-top: var(--space-3); color: var(--muted); }

/* Preview tool (/preview/) */
.ptool { position: relative; padding: 8.5rem 0 var(--space-24); overflow: hidden; isolation: isolate; }
.ptool::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(52rem 34rem at 78% 18%, rgba(255, 90, 31, 0.2), transparent 62%), radial-gradient(40rem 26rem at 0% 100%, rgba(255, 90, 31, 0.08), transparent 60%); }
.ptool__in { display: grid; gap: var(--space-12); align-items: start; }
@media (min-width: 60rem) { .ptool__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-24); } .ptool__stage { position: sticky; top: 6.5rem; } }
.ptool h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.ptool h1 em { display: block; font-style: normal; color: var(--accent); text-shadow: 0 0 48px rgba(255, 90, 31, 0.45); }
.ptool__lede { margin-top: var(--space-6); max-width: 34rem; font-size: 1.1875rem; color: var(--muted); }
.ptool__search { margin-top: var(--space-8); display: grid; gap: var(--space-4); padding: var(--space-6); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) * 1.25); background: rgba(16, 18, 21, 0.72); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--shadow-float); }
@media (min-width: 40rem) { .ptool__search { grid-template-columns: 1.3fr 1fr; padding: var(--space-8); } .ptool__search .btn, .ptool__note { grid-column: 1 / -1; } }
.ptool__search .btn { justify-content: center; }
.ptool__note { min-height: 1.5rem; font-size: 0.9375rem; color: var(--accent-hot); }
.ptool__note:empty { display: none; }
.ptool__results { margin-top: var(--space-8); }
.ptool__label { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ptool__results ul { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.ptool__pick { width: 100%; display: grid; gap: 0.125rem; text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: var(--space-4); border-radius: var(--radius-small); border: 1px solid var(--line-strong); background: var(--glass); transition: border-color 0.2s, background-color 0.2s, transform 0.2s; }
.ptool__pick span { color: var(--muted); font-size: 0.9375rem; }
.ptool__pick:hover { border-color: var(--accent-hot); transform: translateX(3px); }
.ptool__pick[aria-current="true"] { border-color: var(--accent); background: rgba(255, 90, 31, 0.1); }
.ptool__link { margin-top: var(--space-3); padding: 0; border: 0; background: none; font: inherit; font-size: 0.9375rem; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.ptool__link:hover { color: var(--text); }
.ptool__offer { margin-top: var(--space-12); }
.ptool__offer h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.ptool__points { margin: var(--space-6) 0 var(--space-8); padding: 0; list-style: none; display: grid; gap: var(--space-2); color: var(--muted); }
.ptool__points li { display: flex; gap: var(--space-3); }
.ptool__points li::before { content: ""; flex: none; width: 0.4rem; height: 0.4rem; margin-top: 0.6rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 2px rgba(255, 90, 31, 0.6); }
.ptool__caption { margin: var(--space-6) auto 0; max-width: 20rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
.phone { width: 19.5rem; margin-inline: auto; padding: 0.625rem; border-radius: 2.75rem; background: linear-gradient(160deg, #2a2d33, #0c0d10); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: var(--shadow-float), 0 0 140px -30px rgba(255, 90, 31, 0.55); }
.phone__screen { position: relative; width: 18.25rem; height: 37rem; border-radius: 2.2rem; overflow: hidden; background: #0e1013; }
/* The preview is laid out at a real phone width (375px) and scaled down to fit the frame. */
.phone__screen iframe { width: 375px; height: 760px; border: 0; transform: scale(0.7787); transform-origin: 0 0; }
.phone__veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-4); background: rgba(10, 11, 13, 0.92); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.phone__veil[hidden] { display: none; }
.phone__spin { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.14); border-top-color: var(--accent); animation: ptool-spin 0.8s linear infinite; }
@keyframes ptool-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .phone__spin { animation-duration: 2.4s; } }
.ptool-how__list { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; gap: var(--space-4); counter-reset: how; }
@media (min-width: 48rem) { .ptool-how__list { grid-template-columns: repeat(3, 1fr); } }
.ptool-how__list li { counter-increment: how; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.ptool-how__list li::before { content: "0" counter(how); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--accent-hot); }
.ptool-how__list h3 { margin-top: var(--space-3); font-size: 1.375rem; }
.ptool-how__list p { margin-top: var(--space-2); color: var(--muted); }

/* Legal pages */
.legal { padding: 9rem 0 var(--space-24); }
.legal__wrap { max-width: 48rem; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.legal__meta { margin-top: var(--space-4); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.legal h2 { margin-top: var(--space-16); font-size: 1.5rem; max-width: none; padding-top: var(--space-6); border-top: 1px solid var(--line); }
.legal h3 { margin-top: var(--space-8); font-size: 1rem; color: var(--accent-hot); }
.legal p, .legal ul, .legal address { margin-top: var(--space-4); color: var(--muted); font-style: normal; }
.legal ul { padding-left: var(--space-6); display: grid; gap: var(--space-3); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a, .lead-form__fine a { color: var(--accent-hot); text-underline-offset: 0.2em; }
.legal a:hover, .lead-form__fine a:hover { color: var(--text); }
.legal code { font-family: var(--font-mono); font-size: 0.875em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--glass-strong); color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--accent-hot); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-block: var(--space-8); }

/* Reveal; main.js adds the class, so nothing is hidden without JS */
.reveal { opacity: 0; transform: translateY(2rem); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .steps::after, .journey__cue::after { animation: none; }
  .btn, .btn::before, .btn::after, .card, .diag__row, .trades a, .parts li, .steps li { transition: none; }
}
