/* ============================================================================
   DETOUR - Centreville Tech
   Construction-zone theme. No frameworks. Hand-rolled.

   DESIGN SYSTEM
   -------------
   Every visual decision is a token in :root. Components reference tokens.
   To change the system: edit :root. To add a component: build it from the
   same tokens.

   TOKEN GROUPS
   - --color-*    palette
   - --font-*     font families
   - --fs-*       font sizes (3xs..xl + named display sizes)
   - --space-*    spacing scale (3xs..3xl)
   - --rule-*     border treatments
   - --shadow-*   shadows
   - --radius-*   radii
   - --card-*     card system (padding, gaps, dividers)
   - --section-*  section vertical rhythm
   - --btn-*      button system

   FILE LAYOUT (read top-to-bottom)
   1. Tokens (:root)
   2. Reset & base
   3. Layout primitives (.wrap, .skip)
   4. Typography (.stencil, h1-h3, .lede)
   5. Reusable components (mile-marker, hazard-bar, buttons, cta-row)
   6. Site chrome (header, footer)
   7. Hero
   8. Section rhythm + per-section backgrounds
   9. Per-section content (problem, solution, features, origin, philosophy,
      install, builders, services, why, process, final-cta)
   10. Accessibility
   ============================================================================ */

:root {
  /* ---- COLOR PALETTE ---- */
  --color-orange:        #F26522;
  --color-orange-deep:   #C8501A;
  --color-asphalt:       #111111;
  --color-asphalt-2:     #1F1F1F;
  --color-yellow:        #FFC72C;
  --color-concrete:      #E8E5DE;
  --color-concrete-mid:  #C9C5BB;
  --color-concrete-dark: #6E6A60;
  --color-white:         #FFFFFF;
  --color-reflective:    #FFEFC2;
  --color-highway-green: #006B3F;

  /* Color shorthand aliases (used throughout) */
  --orange:        var(--color-orange);
  --orange-deep:   var(--color-orange-deep);
  --asphalt:       var(--color-asphalt);
  --asphalt-2:     var(--color-asphalt-2);
  --yellow:        var(--color-yellow);
  --concrete:      var(--color-concrete);
  --concrete-mid:  var(--color-concrete-mid);
  --concrete-dark: var(--color-concrete-dark);
  --white:         var(--color-white);
  --reflective:    var(--color-reflective);

  /* ---- TYPOGRAPHY ---- */
  --font-display:   'Stardos Stencil', 'Oswald', Impact, sans-serif;
  --font-condensed: 'Oswald', system-ui, sans-serif;
  --font-body:      'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-code:      ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-3xs: 0.7rem;
  --fs-2xs: 0.78rem;
  --fs-xs:  0.85rem;
  --fs-sm:  0.95rem;
  --fs-md:  1rem;
  --fs-lg:  1.15rem;
  --fs-xl:  1.35rem;
  --fs-h3:  1.05rem;
  --fs-h2:  clamp(1.8rem, 4.5vw, 3.2rem);
  --fs-h1:  clamp(2.4rem, 6vw, 4.6rem);
  --fs-display-md:  2rem;       /* route-num */
  --fs-display-lg:  2.6rem;     /* stat-num */
  --fs-display-xl:  clamp(2.6rem, 5vw, 3.4rem);   /* clearance-value */
  --fs-display-2xl: clamp(1.4rem, 3vw, 2rem);     /* pullquote */

  --tracking-loose: 0.18em;
  --tracking-wide:  0.12em;
  --tracking-tag:   0.16em;

  /* ---- LAYOUT ---- */
  --max:    1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* ---- SPACING SCALE ---- */
  --space-3xs: 0.25rem;   /*  4px */
  --space-2xs: 0.5rem;    /*  8px */
  --space-xs:  0.75rem;   /* 12px */
  --space-sm:  1rem;      /* 16px */
  --space-md:  1.25rem;   /* 20px */
  --space-lg:  1.5rem;    /* 24px */
  --space-xl:  2rem;      /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: clamp(3rem, 6vw, 5rem);   /* section padding */

  /* ---- BORDERS, SHADOWS, RADII ---- */
  --rule:        4px solid var(--asphalt);
  --rule-thin:   2px solid var(--asphalt);
  --rule-dashed: 2px dashed var(--concrete-mid);
  --rule-dashed-asphalt: 2px dashed var(--asphalt);
  --shadow-hard: 6px 6px 0 var(--asphalt);
  --shadow-hard-hover: 8px 8px 0 var(--asphalt);
  --shadow-hard-active: 2px 2px 0 var(--asphalt);
  --radius-sm: 2px;
  --radius-md: 4px;

  /* ---- CARD SYSTEM ----
     Used by .stat-card, .feature-card, .origin-col, .route-list li,
     .clearance-card. Variants override background/color only. */
  --card-pad:           var(--space-lg);   /* 1.5rem inner padding */
  --card-gap:           var(--space-md);   /* 1.25rem between cards in a grid */
  --card-list-gap:      0.9rem;
  --card-list-divider:  var(--rule-dashed);

  /* ---- SECTION RHYTHM ---- */
  --section-py:        var(--space-3xl);
  --section-block-gap: var(--space-xl);   /* between H2/lede and content blocks */

  /* ---- BUTTONS ---- */
  --btn-pad-y:  14px;
  --btn-pad-x:  22px;
  --btn-fs:     1.05rem;
  --btn-border: 4px;
}

/* ============================================================================
   2. RESET & BASE
   ============================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--asphalt);
  background: var(--concrete);
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.05) 1px, transparent 0);
  background-size: 14px 14px;
}
img, svg { max-width: 100%; height: auto; display: block; }
a {
  color: var(--asphalt);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--orange-deep); }
p { margin: 0 0 1em; }

/* Inline code: stays inline, never breaks mid-token */
code {
  font-family: var(--font-code);
  background: var(--asphalt);
  color: var(--yellow);
  padding: 0 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  line-height: inherit;
  white-space: nowrap;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ============================================================================
   3. LAYOUT PRIMITIVES
   ============================================================================ */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute; left: -9999px; top: auto;
  background: var(--yellow);
  color: var(--asphalt);
  padding: 8px 12px;
  font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; z-index: 1000; }

/* ============================================================================
   4. TYPOGRAPHY
   ============================================================================ */
.stencil {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.02;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 0.5em;
}
h1.stencil { font-size: var(--fs-h1); }
h2.stencil { font-size: var(--fs-h2); }
h3 {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: var(--fs-lg);
  margin: 0 0 0.4em;
}
.lede {
  font-size: var(--fs-xl);
  max-width: 60ch;
}

/* ============================================================================
   5. REUSABLE COMPONENTS
   ============================================================================ */

/* MUTCD reference-location marker (mile-marker badge) */
.mile-marker {
  display: inline-block;
  background: var(--color-highway-green);
  color: var(--white);
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: var(--fs-2xs);
  padding: 7px 14px;
  margin-bottom: var(--space-md);
  border: 3px solid var(--color-highway-green);
  box-shadow: inset 0 0 0 2px var(--white);
}
.mile-marker-light {
  background: var(--color-highway-green);
  color: var(--white);
  box-shadow: inset 0 0 0 2px var(--white);
}

/* Hazard stripe band (used as section divider) */
.hazard-bar {
  height: 22px;
  background: repeating-linear-gradient(
    135deg,
    var(--asphalt) 0 22px,
    var(--yellow) 22px 44px
  );
  border-top: var(--rule);
  border-bottom: var(--rule);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--btn-fs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: var(--btn-border) solid var(--asphalt);
  background: var(--orange);
  color: var(--asphalt);
  box-shadow: var(--shadow-hard);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard-hover);
  color: var(--asphalt);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hard-active);
}
.btn-ghost {
  background: var(--white);
  color: var(--asphalt);
}
.btn-xl {
  font-size: 1.2rem;
  padding: 18px 28px;
}
.btn-icon {
  width: 1.05em; height: 1.05em;
  flex: 0 0 auto;
  color: currentColor;
  transition: transform 0.12s ease;
}
.btn:hover .btn-icon { transform: translate(2px, -2px); }

.cta-row {
  display: flex; flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}
.cta-row-big { gap: var(--space-md); }

/* ============================================================================
   6. SITE CHROME (header + footer)
   ============================================================================ */

.site-header {
  background: var(--white);
  border-bottom: var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  gap: var(--space-sm);
}
.brand {
  display: inline-flex; align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--asphalt);
}
.brand:hover { color: var(--orange-deep); }
.brand-mark { display: inline-flex; align-items: center; }
.brand-mark svg { width: 36px; height: 22px; display: block; }
.brand-word {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: var(--tracking-loose);
  text-transform: uppercase;
}

.site-nav {
  display: flex; align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: var(--fs-sm);
  padding: 6px 4px;
  border-bottom: 3px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.site-nav a:hover { border-bottom-color: var(--asphalt); }
.nav-cta {
  background: var(--asphalt);
  color: var(--yellow) !important;
  padding: 8px 14px !important;
  border: 2px solid var(--asphalt);
}
.nav-cta:hover {
  background: var(--orange);
  color: var(--asphalt) !important;
  border-color: var(--orange);
}

/* Footer */
.site-footer {
  background: var(--asphalt);
  color: var(--reflective);
}

/* W-beam highway guardrail divider at the top of the footer */
.footer-divider {
  height: 58px;
  position: relative;
  background: var(--asphalt);
  overflow: hidden;
}
.footer-divider::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 9px; bottom: 9px;
  background: linear-gradient(to bottom,
    #1a1a1a 0,
    #1a1a1a 1px,
    #9a9a9a 1px,
    #c4c4c4 4px,
    #8c8c8c 18%,
    #5a5a5a 26%,
    #404040 32%,
    #6c6c6c 40%,
    #aaaaaa 46%,
    #dcdcdc 50%,
    #aaaaaa 54%,
    #6c6c6c 60%,
    #404040 68%,
    #5a5a5a 74%,
    #8c8c8c 82%,
    #c4c4c4 calc(100% - 4px),
    #9a9a9a calc(100% - 1px),
    #1a1a1a calc(100% - 1px),
    #1a1a1a 100%
  );
}
.footer-divider::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 10px;
  transform: translateY(-50%);
  background-image: radial-gradient(circle, #0c0c0c 0 3.5px, rgba(0,0,0,0) 4px);
  background-size: 160px 10px;
  background-position: 80px center;
  background-repeat: repeat-x;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-md);
}
.foot-mark {
  display: flex; align-items: center;
  gap: 10px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: var(--tracking-loose);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--reflective);
}
.foot-pitch { max-width: 36ch; }
.foot-license {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--yellow);
}
.foot-col h4 {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin: 0 0 0.6rem;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: var(--space-3xs); }
.foot-col a { color: var(--reflective); }
.foot-col a:hover { color: var(--yellow); }

.foot-col-built .built-by-line {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.55;
  margin: 0 0 0.9rem;
  max-width: 38ch;
}
.built-heart {
  display: inline-block;
  transform: translateY(1px);
  font-size: 1.05em;
}
.foot-col-built .built-by-line a {
  color: var(--yellow);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.foot-col-built .built-by-line a:hover { color: var(--orange); }
.foot-col-built .built-by-foot {
  margin: 0;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: var(--fs-xs);
}
.foot-col-built .built-by-foot a {
  color: var(--reflective);
  border-bottom: 2px solid var(--orange);
  text-decoration: none;
  padding-bottom: 2px;
}
.foot-col-built .built-by-foot a:hover { color: var(--yellow); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--space-sm) 0 var(--space-md);
  border-top: 2px dashed var(--concrete-dark);
  margin-top: var(--space-sm);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
  color: var(--concrete-mid);
  flex-wrap: wrap;
  gap: 0.6rem;
}
.foot-bottom .mile { color: var(--yellow); }
.foot-legal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}
.foot-legal a {
  color: var(--reflective);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 1px;
}
.foot-legal a:hover {
  border-bottom-color: var(--orange);
  color: var(--yellow);
}
.foot-legal span[aria-hidden="true"] { color: var(--concrete-dark); }

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ============================================================================
   7. HERO
   ============================================================================ */
.hero {
  background: var(--white);
  border-bottom: var(--rule);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(0,0,0,0.04) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,0.04) 38px 39px);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  position: relative;
}
.hero-headline {
  font-size: var(--fs-h1);
  line-height: 1;
  margin: 0 0 var(--space-sm);
}
.hero-line-1, .hero-line-2 { display: block; }
.hero-line-1 { color: var(--asphalt); }
.hero-line-2 { color: var(--orange); }
.hero-pitch {
  font-size: clamp(var(--fs-lg), 1.8vw, var(--fs-xl));
  font-weight: 700;
  max-width: 32ch;
  margin-bottom: 0.8rem;
}
.hero-sub { max-width: 56ch; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-sm) var(--space-md);
  list-style: none;
  margin: var(--space-sm) 0 0;
  padding: var(--space-sm) 0 0;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  border-top: 3px dashed var(--asphalt);
}
.hero-meta li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-meta strong {
  color: var(--orange-deep);
  font-weight: 700;
  letter-spacing: 0.14em;
}
@media (max-width: 600px) {
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
}
.hero-art {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-sign {
  width: 100%;
  max-width: 460px;
  height: auto;
}
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 360px; margin-inline: auto; }
}

/* ============================================================================
   8. SECTION RHYTHM + BACKGROUNDS
   ============================================================================ */
section {
  padding: var(--section-py) 0;
  border-bottom: var(--rule);
}
section.hero { padding: 0; border-bottom: 0; }

/* Backgrounds, grouped by tone */
section.problem,
section.origin,
section.services           { background: var(--concrete); }

section.solution,
section.features,
section.install,
section.services-intro,
section.process            { background: var(--white); }

section.philosophy,
section.builders,
section.why                { background: var(--asphalt); color: var(--reflective); }
section.philosophy .stencil,
section.builders .stencil,
section.why .stencil       { color: var(--yellow); }
section.philosophy a       { color: var(--yellow); }
section.builders .btn      { background: var(--orange); color: var(--asphalt); }

section.final-cta {
  background: var(--yellow);
  border-bottom: 0;
}

/* ============================================================================
   9. PER-SECTION CONTENT
   ============================================================================ */

/* ---- PROBLEM: stat row ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: var(--space-xl);
}
.stat-card {
  background: var(--white);
  border: var(--rule);
  padding: var(--card-pad);
  box-shadow: var(--shadow-hard);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  color: var(--orange);
  -webkit-text-stroke: 1.5px var(--asphalt);
  line-height: 1;
  margin-bottom: var(--space-2xs);
}
.stat-label { font-weight: 500; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }

/* ---- SOLUTION: text + diagram ---- */
.solution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.solution-art svg {
  background: var(--concrete);
  border: var(--rule);
  padding: var(--space-sm);
  box-shadow: var(--shadow-hard);
}
@media (max-width: 800px) { .solution-grid { grid-template-columns: 1fr; } }

/* ---- FEATURES: card grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--card-gap);
  margin-top: var(--space-xl);
}
.feature-card {
  position: relative;
  background: var(--white);
  border: var(--rule);
  padding: var(--card-pad);
  box-shadow: var(--shadow-hard);
}
.feature-card h3 { margin: 0 0 var(--space-2xs); }
.feature-card p  { margin: 0; }
.feature-card p + p,
.feature-card p + ul,
.feature-card ul + p { margin-top: 0.6rem; }
.feature-card-hero {
  background: var(--orange);
  color: var(--asphalt);
  grid-column: span 2;
}
.feature-card-hero h3 { font-size: 1.4rem; }

/* Flagship grid: two large color-coded service cards (services page) */
.flagship-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin-top: var(--space-xl);
}
.flagship-card {
  position: relative;
  border: var(--rule);
  padding: var(--card-pad);
  box-shadow: var(--shadow-hard);
  color: var(--asphalt);
}
.flagship-card--orange { background: var(--orange); }
.flagship-card--yellow { background: var(--yellow); }
.flagship-head {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.flagship-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--asphalt);
  display: block;
}
.flagship-card h3 {
  font-size: 1.5rem;
  margin: 0 0 var(--space-2xs);
}
.flagship-card p { margin: 0 0 var(--space-sm); }
.flagship-card .card-list { padding-left: 1.1rem; }
@media (max-width: 720px) {
  .flagship-grid { grid-template-columns: 1fr; }
}
.card-tag {
  display: inline-block;
  background: var(--asphalt);
  color: var(--yellow);
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: var(--tracking-loose);
  font-size: var(--fs-3xs);
  padding: 4px 10px;
  margin-bottom: 0.6rem;
}
.card-list { padding-left: 1.1rem; margin: 0; }
.card-list li { margin-bottom: var(--space-3xs); }
@media (max-width: 720px) { .feature-card-hero { grid-column: span 1; } }

/* ---- ORIGIN: fork story ---- */
.origin .lede { max-width: 70ch; }
.origin p     { max-width: 72ch; }
.origin a     { color: var(--orange-deep); }

.origin-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: start;
  margin: 0 0 var(--space-sm);
}
.origin-text > p:first-child { margin-top: 0; }
.origin-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}
.origin-visual svg {
  width: 100%;
  max-width: 400px;
  height: auto;
}
@media (max-width: 800px) {
  .origin-top { grid-template-columns: 1fr; }
  .origin-visual { max-width: 320px; margin: var(--space-sm) auto 0; }
}

/* Hard-hat tip callout */
.hardhat-tip {
  display: flex;
  align-items: stretch;
  margin: var(--space-lg) 0 var(--space-xl);
  border: var(--rule);
  background: var(--white);
  box-shadow: var(--shadow-hard);
}
.hardhat-tag {
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow);
  color: var(--asphalt);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tag);
  text-transform: uppercase;
  font-size: var(--fs-xs);
  text-align: center;
  padding: var(--space-sm) 1.1rem;
  border-right: 4px solid var(--asphalt);
  flex: 0 0 180px;
  line-height: 1.1;
}
.hardhat-tip p {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  max-width: none;
}
@media (max-width: 700px) {
  .hardhat-tip { flex-direction: column; }
  .hardhat-tag { flex: 0 0 auto; border-right: 0; border-bottom: 4px solid var(--asphalt); }
}

/* Attribution plate (orange-header permit placard with 2x2 grid) */
.attribution-plate {
  margin: var(--space-xl) 0;
  background: var(--white);
  border: var(--rule);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.plate-header {
  background: var(--orange);
  color: var(--asphalt);
  padding: 12px 18px;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.32em;
  font-size: var(--fs-md);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 4px solid var(--asphalt);
}
.plate-body { background: var(--white); }
.plate-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--rule-thin);
}
.plate-row:last-child { border-bottom: 0; }
.plate-cell {
  padding: var(--space-sm) var(--space-md);
  border-right: var(--rule-thin);
}
.plate-cell:last-child { border-right: 0; }
.plate-key {
  display: block;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-loose);
  font-size: var(--fs-3xs);
  color: var(--orange-deep);
  margin-bottom: var(--space-3xs);
}
.plate-val {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  color: var(--asphalt);
}
.plate-val a {
  color: var(--asphalt);
  text-decoration-color: var(--orange);
}
.plate-val a:hover { color: var(--orange-deep); }
@media (max-width: 600px) {
  .plate-row { grid-template-columns: 1fr; }
  .plate-cell { border-right: 0; border-bottom: var(--rule-thin); }
  .plate-cell:last-child { border-bottom: 0; }
}

/* Drop-in zones (3-color strip: WHAT STAYS / WHAT IS ADDED / HOW TO MIGRATE) */
.dropin-heading {
  margin: var(--space-xl) 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--asphalt);
}
.dropin-zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: var(--rule);
  box-shadow: var(--shadow-hard);
  background: var(--white);
}
.dropin-zone {
  padding: var(--card-pad);
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
}
.dropin-zone:last-child { border-right: 0; }
.dropin-zone--keep    { background: var(--white);  color: var(--asphalt); }
.dropin-zone--add     { background: var(--orange); color: var(--asphalt); }
.dropin-zone--migrate { background: var(--yellow); color: var(--asphalt); }
.dropin-zone__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-2xs);
  border-bottom: 2px solid currentColor;
}
.dropin-zone__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: currentColor;
}
.dropin-zone__head h4 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
  font-weight: 700;
}
.dropin-zone__lede {
  margin: 0 0 var(--space-sm);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.45;
}
.dropin-zone__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dropin-zone__code {
  display: inline-block;
  padding: 4px 8px;
  font-family: var(--font-code);
  font-size: var(--fs-sm);
  background: var(--asphalt);
  color: var(--yellow);
  border-radius: var(--radius-sm);
  white-space: normal;
  word-break: break-all;
  max-width: 100%;
  line-height: 1.4;
}
.dropin-zone__note {
  margin: auto 0 0;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--fs-3xs);
  font-weight: 700;
  line-height: 1.4;
}
.dropin-zone__body {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
@media (max-width: 800px) {
  .dropin-zones { grid-template-columns: 1fr; }
  .dropin-zone { border-right: 0; border-bottom: var(--rule); }
  .dropin-zone:last-child { border-bottom: 0; }
}

/* Legacy drop-in plate (deprecated, retained for backward compat) */
.dropin-plate {
  margin: var(--space-md) 0 0;
  background: var(--white);
  border: var(--rule);
  box-shadow: var(--shadow-hard);
}
.dropin-list { margin: 0; padding: 0; }
.dropin-row {
  display: grid;
  grid-template-columns: minmax(180px, 26%) 1fr;
  gap: var(--space-md);
  padding: 0.85rem var(--space-md);
  border-bottom: var(--rule-thin);
  align-items: start;
}
.dropin-row:last-child { border-bottom: 0; }
.dropin-label {
  margin: 0;
  padding-top: 0.3rem;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tag);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dropin-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: var(--orange-deep);
}
.dropin-value {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}
.dropin-value .plate-code {
  font-family: var(--font-code);
  font-size: 0.9rem;
  background: var(--asphalt);
  color: var(--yellow);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: normal;
  word-break: break-all;
  max-width: 100%;
}
.dropin-note {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: 0.7rem;
  color: var(--orange-deep);
}
.dropin-prose {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--asphalt);
}
@media (max-width: 600px) {
  .dropin-row {
    grid-template-columns: 1fr;
    gap: var(--space-3xs);
    padding: 0.85rem var(--space-sm);
  }
  .dropin-label { padding-top: 0; }
}

/* Origin grid (removed/built columns) */
.origin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  margin: var(--space-xl) 0 var(--space-lg);
}
.origin-col {
  background: var(--white);
  border: var(--rule);
  padding: var(--card-pad);
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
}
.origin-col h3 {
  display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-sm);
  padding: 0;
}
.origin-tag {
  display: inline-block;
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: var(--tracking-loose);
  font-size: var(--fs-3xs);
  padding: 4px 9px;
  border: 2px solid var(--asphalt);
}
.origin-tag-out {
  background: var(--asphalt);
  color: var(--yellow);
  text-decoration: line-through;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}
.origin-tag-in {
  background: var(--orange);
  color: var(--asphalt);
}
.origin-col ul { list-style: none; padding: 0; margin: 0; }
.origin-col ul li {
  position: relative;
  padding: var(--card-list-gap) 0 0 32px;
}
.origin-col ul li:first-child {
  padding-top: 0;
  border-top: 0;
}
.origin-col ul li:not(:first-child) {
  border-top: var(--card-list-divider);
  padding-top: calc(var(--card-list-gap) + 0.2rem);
}
.origin-col ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--card-list-gap) + 0.4rem);
  width: 20px;
  height: 20px;
}
.origin-col ul li:first-child::before { top: 0.3rem; }
.origin-col ul li:not(:first-child)::before {
  top: calc(var(--card-list-gap) + 0.6rem);
}
.origin-removed ul li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='m15 9-6 6'/><path d='m9 9 6 6'/></svg>");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}
.origin-built ul li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26522' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M8 12h8'/><path d='m12 8 4 4-4 4'/></svg>");
  background-size: 20px 20px;
  background-repeat: no-repeat;
}
@media (max-width: 800px) { .origin-grid { grid-template-columns: 1fr; } }

/* ---- PHILOSOPHY: pullquote ---- */
.pullquote {
  margin: var(--space-xl) 0 var(--space-sm);
  border-left: 8px solid var(--orange);
  padding: var(--space-sm) var(--space-md);
  background: var(--asphalt-2);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: var(--fs-display-2xl);
  line-height: 1.2;
  color: var(--yellow);
  margin: 0 0 0.6rem;
}
.pullquote cite {
  font-style: normal;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--fs-xs);
  color: var(--reflective);
}
.philo-foot { max-width: 60ch; }

/* ---- INSTALL: route list (numbered cards) ---- */
.route-list {
  list-style: none;
  padding: 0;
  margin: var(--space-xl) 0;
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(3, 1fr);
}
.route-list-five { grid-template-columns: repeat(5, 1fr); }
.route-list li {
  position: relative;
  background: var(--white);
  border: var(--rule);
  padding: var(--card-pad);
  box-shadow: var(--shadow-hard);
}
.route-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  color: var(--orange);
  -webkit-text-stroke: 1.5px var(--asphalt);
  line-height: 1;
  margin-bottom: var(--space-3xs);
}
@media (max-width: 900px) {
  .route-list,
  .route-list-five { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .route-list,
  .route-list-five { grid-template-columns: 1fr; }
}

/* Minimum clearances (requirements display) */
.clearance { margin-top: var(--space-xl); }
.clearance-tag {
  display: inline-block;
  background: var(--asphalt);
  color: var(--yellow);
  font-family: var(--font-condensed);
  letter-spacing: var(--tracking-loose);
  font-size: var(--fs-2xs);
  font-weight: 700;
  padding: 6px 12px;
  margin-bottom: var(--space-sm);
  border: 2px solid var(--asphalt);
}
.clearance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}
.clearance-card {
  position: relative;
  background: var(--white);
  border: var(--rule);
  padding: var(--card-pad);
  box-shadow: var(--shadow-hard);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.clearance-card-orange { background: var(--orange); color: var(--asphalt); }
.clearance-card-yellow { background: var(--yellow); color: var(--asphalt); }
.clearance-card-white  { background: var(--white);  color: var(--asphalt); }
.clearance-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 0.3rem;
}
.clearance-label {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: var(--tracking-tag);
  font-size: var(--fs-xs);
  border-bottom: 3px solid var(--asphalt);
  padding-bottom: var(--space-2xs);
}
.clearance-value {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  line-height: 1;
  margin-top: 0.1rem;
}
.clearance-value sup {
  font-size: 0.5em;
  vertical-align: super;
}
.clearance-foot {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--fs-3xs);
  color: var(--asphalt);
  border-top: var(--rule-dashed-asphalt);
  padding-top: 0.55rem;
  margin-top: 0.2rem;
}
@media (max-width: 720px) { .clearance-grid { grid-template-columns: 1fr; } }

/* ---- BUILDERS: home-page Centreville Tech callout ---- */
.builders-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}
.builders-art {
  display: flex;
  justify-content: center;
}
.builders-art svg {
  width: 100%;
  height: auto;
}
@media (max-width: 800px) { .builders-grid { grid-template-columns: 1fr; } }

/* ---- WHY: services-page why-us grid ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: var(--space-xl);
}
.why-card {
  background: var(--asphalt-2);
  border: 4px solid var(--yellow);
  padding: var(--card-pad);
}
.why-card h3 {
  color: var(--yellow);
  font-size: var(--fs-lg);
}
.why-num {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--orange);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: var(--space-3xs);
}
@media (max-width: 800px) { .why-grid { grid-template-columns: 1fr; } }

/* ---- FINAL CTA strip ----
   Yellow background section, framed top-and-bottom by thick asphalt borders
   instead of busy hazard stripes. CTAs centered. */
section.final-cta {
  border-top: 8px solid var(--asphalt);
  border-bottom: 0;
}
.final-cta-inner { text-align: center; position: relative; }
.final-cta .wrap {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.final-cta .cta-row {
  justify-content: center;
}
.final-cta .lede {
  margin-left: auto;
  margin-right: auto;
}
.final-cta p { text-align: center; }
.contact-line {
  font-family: var(--font-condensed);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================================
   LEGAL PAGES (Privacy, Terms)
   Long-prose layout with hero band, generous reading column, and a "Read next"
   internal-link block at the end for SEO.
   ============================================================================ */
.legal-hero {
  background: var(--white);
  border-bottom: var(--rule);
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(0,0,0,0.04) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,0.04) 38px 39px);
  pointer-events: none;
}
.legal-hero-inner {
  position: relative;
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  max-width: 65ch;
}
.legal-meta {
  margin-top: var(--space-sm);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--fs-xs);
  color: var(--orange-deep);
}

.legal-body {
  background: var(--white);
  padding: var(--section-py) 0;
  border-bottom: var(--rule);
}
.legal-prose {
  max-width: 70ch;
  font-size: var(--fs-md);
  line-height: 1.65;
}
.legal-prose h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--asphalt);
  border-bottom: 3px solid var(--asphalt);
  padding-bottom: var(--space-2xs);
}
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose h3 {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--fs-lg);
  margin: var(--space-lg) 0 var(--space-2xs);
  color: var(--asphalt);
}
.legal-prose p { margin: 0 0 var(--space-sm); }
.legal-prose ul,
.legal-prose ol {
  margin: 0 0 var(--space-sm);
  padding-left: 1.4rem;
}
.legal-prose li { margin-bottom: 0.4rem; }
.legal-prose strong { font-weight: 700; }
.legal-prose a {
  color: var(--orange-deep);
  text-decoration-thickness: 2px;
}
.legal-prose code {
  /* inherits from base */
}

.legal-related {
  max-width: 70ch;
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  border: var(--rule);
  background: var(--concrete);
  box-shadow: var(--shadow-hard);
}
.legal-related__title {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tag);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--orange-deep);
  margin: 0 0 var(--space-sm);
}
.legal-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-related li {
  padding: var(--space-2xs) 0;
  border-top: var(--rule-dashed);
  font-size: var(--fs-md);
}
.legal-related li:first-child { border-top: 0; }
.legal-related a {
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--asphalt);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--orange);
}
.legal-related a:hover { color: var(--orange-deep); }

/* ---- INSTALL: small FAQ link below requirements ---- */
.install-faq-link {
  margin-top: var(--space-xl);
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-sm);
  text-align: center;
}
.install-faq-link a {
  color: var(--orange-deep);
  text-decoration-thickness: 2px;
}

/* ============================================================================
   COMPONENT: Epigraph
   Bordered + shadowed card with tag header, display-stencil quote, dashed
   divider, and Oswald uppercase citation. Same visual family as .hardhat-tip,
   .attribution-plate, .dropin-zone.
   ============================================================================ */
.epigraph {
  position: relative;
  margin: var(--space-lg) 0 var(--space-md);
  padding: var(--card-pad);
  background: var(--white);
  border: var(--rule);
  box-shadow: var(--shadow-hard);
  max-width: 78ch;
}
.epigraph__tag {
  display: inline-block;
  background: var(--asphalt);
  color: var(--yellow);
  font-family: var(--font-condensed);
  font-weight: 700;
  letter-spacing: var(--tracking-loose);
  font-size: var(--fs-3xs);
  padding: 5px 11px;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
}
.epigraph__quote {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--asphalt);
  text-transform: none;
}
.epigraph__cite {
  display: block;
  margin-top: var(--space-2xs);
  padding-top: var(--space-2xs);
  border-top: var(--rule-dashed);
  font-family: var(--font-condensed);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--orange-deep);
}
.epigraph__cite a {
  color: var(--orange-deep);
  text-decoration-thickness: 2px;
}
.epigraph-foot {
  margin: var(--space-md) 0 var(--space-lg);
  max-width: 70ch;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--asphalt);
}

/* ============================================================================
   FAQ PAGE
   ============================================================================ */
.page-page .faq-hero,
.faq-hero {
  background: var(--white);
  border-bottom: var(--rule);
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(0,0,0,0.04) 38px 39px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(0,0,0,0.04) 38px 39px);
  pointer-events: none;
}
.faq-hero-inner {
  position: relative;
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}
.faq-hero .lede { max-width: 65ch; margin-bottom: var(--space-lg); }

.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  padding-top: var(--space-md);
  border-top: 3px dashed var(--asphalt);
}
.faq-toc__link {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid var(--asphalt);
  background: var(--white);
  color: var(--asphalt);
  text-decoration: none;
  font-family: var(--font-condensed);
  text-transform: uppercase;
  letter-spacing: var(--tracking-tag);
  font-size: var(--fs-2xs);
  font-weight: 700;
}
.faq-toc__link:hover {
  background: var(--asphalt);
  color: var(--yellow);
}

/* FAQ blocks: section per category, alternating concrete/white backgrounds. */
.faq-block { padding: var(--section-py) 0; border-bottom: var(--rule); }
.faq-block:nth-of-type(odd)  { background: var(--concrete); }
.faq-block:nth-of-type(even) { background: var(--white); }

.faq-list {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  padding: var(--space-lg) 0;
  border-top: var(--rule-dashed);
}
.faq-item:first-child { border-top: 0; padding-top: 0; }
.faq-q {
  margin: 0 0 var(--space-2xs);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  line-height: 1.15;
  color: var(--asphalt);
}
.faq-a {
  max-width: 75ch;
}
.faq-a p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
}
.faq-a a {
  color: var(--orange-deep);
  text-decoration-thickness: 2px;
}
.faq-a q {
  font-style: italic;
  color: var(--asphalt);
}

/* FAQ outro / CTA */
.faq-outro { background: var(--asphalt); color: var(--reflective); border-bottom: 0; }
.faq-outro .stencil { color: var(--yellow); }
.faq-outro-inner { text-align: center; }
.faq-outro .lede {
  margin-left: auto;
  margin-right: auto;
}
.faq-outro p { text-align: center; }
.faq-outro .cta-row { justify-content: center; }

@media (max-width: 600px) {
  .faq-toc { gap: 6px; }
  .faq-toc__link { font-size: 0.7rem; padding: 4px 8px; }
}

/* ============================================================================
   10. RESPONSIVE: Mobile cascade
   Token overrides and layout fixes for tablet (≤800px), phone (≤600px),
   and tiny phone (≤420px). Component-specific @media queries above this
   handle their own stacking; this section catches the cross-cutting concerns.
   ============================================================================ */

/* Tablet (≤ 800px): tighten section rhythm and hero proportions */
@media (max-width: 800px) {
  :root {
    --section-py: var(--space-xl);
    --card-gap: var(--space-sm);
  }
  .hero-grid {
    gap: var(--space-md);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }
  .hero-art {
    max-width: 280px;
  }
  .hero-headline { font-size: clamp(2.2rem, 6.5vw, 3.4rem); }
}

/* Phone (≤ 600px): collapse nav, stack CTAs, soften display sizes */
@media (max-width: 600px) {
  :root {
    --section-py: var(--space-lg);
    --card-pad: var(--space-md);
  }

  /* Header: brand + CTA only, hide internal nav links */
  .header-row { gap: var(--space-2xs); }
  .site-nav { gap: var(--space-2xs); }
  .site-nav a:not(.nav-cta) { display: none; }
  .brand-word { font-size: 1.25rem; letter-spacing: 0.14em; }
  .brand-mark svg { width: 30px; height: 18px; }
  .nav-cta { font-size: var(--fs-xs); padding: 6px 10px !important; }

  /* Hero */
  .hero-headline { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-pitch { font-size: var(--fs-md); }
  .hero-sub { font-size: var(--fs-sm); }
  .hero-art { max-width: 220px; }
  .hero-meta {
    gap: var(--space-xs) var(--space-md);
    font-size: var(--fs-3xs);
  }

  /* Section headings shrink on phone */
  h2.stencil { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .lede { font-size: var(--fs-lg); }

  /* Stack CTAs full-width */
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xs);
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: var(--fs-md);
  }
  .btn-xl { font-size: var(--fs-lg); padding: 14px 20px; }

  /* Tag-style labels: smaller, less letterspacing on phone */
  .mile-marker, .clearance-tag, .card-tag, .origin-tag {
    letter-spacing: 0.12em;
  }

  /* Pullquote */
  .pullquote { padding: var(--space-sm); }
  .pullquote p { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  /* Hardhat tip + drop-in plate already collapse via existing rules */
  .hardhat-tag { font-size: var(--fs-3xs); padding: 0.75rem; }

  /* Stat numbers, route numbers, why numbers shrink */
  .stat-num { font-size: 2.2rem; }
  .route-num { font-size: 1.7rem; }
  .why-num { font-size: 2rem; }

  /* Final CTA inset padding */
  .final-cta .wrap {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  /* Footer */
  .footer-grid { padding: var(--space-md) 0 var(--space-sm); }
  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2xs);
  }
}

/* Tiny phone (≤ 420px): drop the decorative hero sign entirely */
@media (max-width: 420px) {
  .hero-art { display: none; }
  .hero-meta strong { font-size: 0.65rem; }
}

/* ============================================================================
   11. ACCESSIBILITY
   ============================================================================ */
:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}
