/* Strategic Home Services — Industrial WA Construction Theme
 * ─────────────────────────────────────────────────────────────
 * Dark slate · weathered copper · Doug-fir evergreen · hi-vis caution
 * Built for: confident technical voice, scroll-driven storytelling,
 * Pacific Northwest grit.
 */

:root {
  /* SURFACES ── wet-asphalt slate, not pure black */
  --ink:         #0E1318;   /* page background */
  --surface:     #161C22;   /* cards / elevated panels */
  --surface-2:   #1F262E;   /* hovered panel */
  --hair:        #2A3540;   /* hairline borders */
  --hair-soft:   #1F262E;
  --concrete:    #A9A39A;   /* warm muted gray label */
  --bone:        #D9D3C7;   /* warm off-white body text */
  --white:       #FFFFFF;   /* impact headlines only */

  /* ACCENTS ── weathered copper as the brand warmth */
  --rust:        #C0531F;   /* primary accent, oxidized copper */
  --rust-bright: #E36028;
  --rust-deep:   #8A3A14;
  --evergreen:   #1B5E3A;   /* Pacific NW pine, secondary */
  --evergreen-bright: #2E8B57;
  --caution:     #FACC15;   /* hi-vis yellow — used ONCE */

  /* Legacy aliases — older components reference these */
  --steel-900: var(--surface);
  --steel-800: var(--surface-2);
  --steel-700: var(--hair);
  --steel-600: #3A4754;
  --steel-500: #5A6A78;
  --steel-400: #7B8A97;
  --steel-300: #A9A39A;
  --steel-200: #C9C2B5;
  --steel-100: var(--bone);
  --copper: var(--rust);
  --copper-bright: var(--rust-bright);
  --copper-dim: var(--rust-deep);
  --signal: var(--evergreen-bright);
  --warn: var(--caution);
  --danger: #DC2626;
  --primary: var(--rust);

  --max: 1320px;
  --pad: 28px;
  --pad-lg: 56px;
  --rad-sm: 2px;
  --rad: 4px;
  --rad-lg: 8px;

  --font-display: "Archivo Black", "Inter", system-ui, sans-serif;
  --font-sub:     "Archivo", "Inter", system-ui, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.55;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rust); color: var(--white); }

/* ════════════════════════════════ TYPOGRAPHY ════════════════════════════════ */

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: var(--white);
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
}
h3, .h3 {
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--white);
}
h4 {
  font-family: var(--font-sub);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.005em;
  color: var(--bone);
}
p { font-size: 1rem; line-height: 1.65; color: var(--bone); opacity: 0.85; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rust);
}

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.copper, .rust { color: var(--rust); }
.muted { color: var(--bone); opacity: 0.6; }

/* ════════════════════════════════ LAYOUT ════════════════════════════════ */

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; }

.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.grid { display: grid; gap: var(--pad); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; } .mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ════════════════════════════════ HEADER ════════════════════════════════ */

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  /* Pure white bar so the logo wordmark sits on its native background */
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(14, 19, 24, 0.10);
}
.site-header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 56px; width: auto; display: block; }
.brand img.logo-footer { height: 80px; }
@media (max-width: 600px) { .brand img { height: 44px; } }

.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--ink);
  opacity: 0.72;
  position: relative;
  transition: opacity 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.nav a:hover { opacity: 1; color: var(--ink); }
.nav a.active { color: var(--ink); opacity: 1; }
.nav a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px; background: var(--rust); }
.nav-cta {
  margin-left: 6px;
  padding: 10px 18px !important;
  background: var(--rust);
  color: var(--white) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  border-radius: var(--rad-sm);
  font-size: 0.82rem !important;
  transition: background 0.18s ease;
}
.nav-cta:hover { background: var(--rust-bright); }
.nav-cta::after { display: none !important; }

.menu-toggle { display: none; }
@media (max-width: 720px) {
  .nav { display: none; position: fixed; top: 88px; left: 0; right: 0; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid rgba(14, 19, 24, 0.10); flex-direction: column; align-items: stretch; padding: 12px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-bottom: 1px solid rgba(14, 19, 24, 0.08); color: var(--ink); }
  .nav a.active::after { display: none; }
  .nav-cta { margin: 12px 0 0 0; text-align: center; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: transparent; }
  .menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: 0.2s; }
}

.has-header main { padding-top: 88px; }
@media (max-width: 600px) { .has-header main { padding-top: 76px; } }

/* ════════════════════════════════ BUTTONS ════════════════════════════════
 * Flat. Sharp corners. Industrial. NO PILLS. */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  border-radius: var(--rad-sm);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--rust);
  color: var(--white);
  border-color: var(--rust);
}
.btn-primary:hover {
  background: var(--rust-bright);
  border-color: var(--rust-bright);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(192, 83, 31, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--hair);
}
.btn-ghost:hover {
  border-color: var(--rust);
  color: var(--rust);
}
.btn-arrow { gap: 10px; }
.btn-arrow::after { content: " →"; display: inline-block; transition: transform 0.2s ease; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ════════════════════════════════ HERO / CHAPTERS ════════════════════════════════ */

.chapter {
  position: relative;
  padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.chapter-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 5; }

.chapter-bg-ink     { background: var(--ink); }
.chapter-bg-deeper  { background: #08101A; }
.chapter-bg-surface { background: var(--surface); }

.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.chapter-num::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--rust);
}

.chapter-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.038em;
  color: var(--white);
  max-width: 18ch;
}
.chapter-headline .accent { color: var(--rust); }
.chapter-headline em { font-style: normal; font-weight: 900; color: var(--bone); opacity: 0.55; }
.chapter-headline .strike { text-decoration: line-through; text-decoration-thickness: 4px; text-decoration-color: var(--rust); opacity: 0.4; }

.chapter-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--bone);
  opacity: 0.78;
  margin-top: 32px;
  max-width: 58ch;
  font-weight: 400;
}

/* ════════════════════════════════ HERO BACKGROUND IMAGERY ════════════════════════════════ */

/* WA mountain silhouette — parallax-scrolled by JS. Rainier should read as
 * the dominant background image, not a faded texture. */
.hero-mountains {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 85%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
  mask-image: linear-gradient(to top, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
}
.hero-mountains svg { width: 100%; height: 100%; display: block; }

/* Topographic contour ambient texture */
.topo-bg {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 30%, transparent 0, transparent 100px, rgba(192,83,31,0.6) 100px, transparent 101px, transparent 200px, rgba(192,83,31,0.5) 200px, transparent 201px, transparent 300px, rgba(192,83,31,0.4) 300px, transparent 301px);
}

/* Cursor spotlight (desktop) */
@media (hover: hover) and (pointer: fine) {
  .cursor-spotlight {
    position: absolute; inset: 0;
    pointer-events: none;
    background: radial-gradient(circle 480px at var(--mx, 50%) var(--my, 50%), rgba(192, 83, 31, 0.10), transparent 70%);
    z-index: 2;
    transition: opacity 0.3s;
  }
}

/* Grid texture overlay */
.grid-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(217, 211, 199, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 211, 199, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  z-index: 2;
}

/* ════════════════════════════════ MARQUEE TICKER ════════════════════════════════ */

.marquee {
  background: var(--rust);
  color: var(--white);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  animation: marquee-scroll 38s linear infinite;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  align-items: center;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .dot { width: 8px; height: 8px; background: var(--white); border-radius: 50%; flex-shrink: 0; opacity: 0.7; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Caution stripe — used ONCE as a divider */
.caution-stripe {
  height: 14px;
  background-image: repeating-linear-gradient(135deg, var(--caution) 0 22px, #1a1a1a 22px 44px);
  position: relative;
  z-index: 3;
}

/* ════════════════════════════════ CARDS / TILES ════════════════════════════════ */

.tile {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--rad);
  padding: 36px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.tile:hover {
  border-color: var(--rust);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.tile-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--rust);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Problem card (chapter 1) — left-bordered industrial */
.problem-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--rust);
  border-radius: 0 var(--rad) var(--rad) 0;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: center;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.problem-card:hover { background: var(--surface-2); transform: translateX(4px); }
.problem-card-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--rust);
  line-height: 1;
}
.problem-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.problem-card p { font-size: 1rem; opacity: 0.78; color: var(--bone); margin: 0; }
.problem-card strong { color: var(--white); font-weight: 600; }
.problem-stack { display: grid; gap: 16px; margin-top: 48px; }

/* Model cards */
.model-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--rad);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.model-card:hover {
  border-color: var(--rust);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -16px rgba(192, 83, 31, 0.18);
}
.model-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-2), #0F1419);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--hair);
  position: relative;
}
.model-card-img svg { width: 70%; opacity: 0.95; }
.model-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.model-card-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
}
.model-card-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--white);
}
.model-card-specs {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--bone);
  opacity: 0.7;
}
.model-card-specs span:not(:last-child)::after { content: "·"; margin-left: 16px; color: var(--rust); }
.model-card-desc { margin-top: 18px; color: var(--bone); opacity: 0.7; flex: 1; font-size: 0.95rem; }
.model-card-foot {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between;
}
.model-card-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
}
.model-card-price small { font-family: var(--font-mono); font-size: 0.65rem; color: var(--rust); display: block; letter-spacing: 0.15em; margin-top: 4px; text-transform: uppercase; font-weight: 500; }

/* ════════════════════════════════ JOURNEY STEPS ════════════════════════════════ */

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 72px;
}
@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr; gap: 48px; } }
.journey-step { position: relative; }
.journey-step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: var(--rust);
  letter-spacing: -0.05em;
  display: block;
}
.journey-step h3 { margin-top: 18px; font-size: 1.4rem; color: var(--white); }
.journey-step p { color: var(--bone); opacity: 0.72; margin-top: 14px; font-size: 0.98rem; line-height: 1.6; }
.journey-step-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 18px;
  font-weight: 500;
}

/* ════════════════════════════════ STAT CELLS ════════════════════════════════ */

.stat-cell { text-align: left; }
.stat-cell-value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--white);
  font-feature-settings: "tnum";
}
.stat-cell-value .rust { color: var(--rust); }
.stat-cell-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 14px;
  font-weight: 500;
}
.stat-cell-sub {
  font-size: 0.92rem;
  color: var(--bone);
  opacity: 0.65;
  margin-top: 10px;
  max-width: 30ch;
}

/* Specs grid for hero stats — terse data table */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  margin-top: 56px;
}
.specs-grid > div {
  padding: 24px 0;
  border-right: 1px solid var(--hair);
  padding-right: 24px;
}
.specs-grid > div:first-child { padding-right: 24px; }
.specs-grid > div:nth-child(2) { padding-left: 24px; }
.specs-grid > div:last-child { border-right: none; padding-left: 24px; }
.spec-val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.spec-val .rust { color: var(--rust); }
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.6;
  margin-top: 10px;
}

/* ════════════════════════════════ EVERGREEN ROW ════════════════════════════════ */

.evergreen-row {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
}
.evergreen-row svg { width: 100%; height: 100%; }

/* ════════════════════════════════ WA STATE LOCATIONS ════════════════════════════════ */

.wa-locator {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--rad);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .wa-locator { grid-template-columns: 1fr; padding: 32px; } }
.wa-map { position: relative; }
.wa-map svg { width: 100%; height: auto; }
.wa-map-dot {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--rust);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(192, 83, 31, 0.6);
  animation: wa-pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.wa-map-dot:nth-child(2) { animation-delay: 0.8s; }
.wa-map-dot:nth-child(3) { animation-delay: 1.6s; }
@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192, 83, 31, 0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(192, 83, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 83, 31, 0); }
}
.wa-map-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  transform: translate(-50%, 0);
  margin-top: 14px;
  white-space: nowrap;
  font-weight: 600;
}
.wa-counties h3 { font-size: 1.6rem; }
.wa-counties ul { list-style: none; margin-top: 24px; }
.wa-counties li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--bone);
}
.wa-counties li:last-child { border-bottom: none; }
.wa-counties li strong { color: var(--white); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em; }
.wa-counties li .right { color: var(--rust); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* ════════════════════════════════ BLUEPRINT REVEAL ════════════════════════════════ */

.blueprint {
  display: block;
  margin: 56px auto 0;
  max-width: 760px;
  width: 100%;
}
.blueprint-line {
  fill: none;
  stroke: var(--rust);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
}
.blueprint-text {
  font-family: var(--font-mono);
  fill: var(--bone);
  opacity: 0.55;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ════════════════════════════════ FOOTER ════════════════════════════════ */

.footer {
  background: #FFFFFF;
  color: var(--ink);
  border-top: 4px solid var(--rust);
  padding: 80px 0 32px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(135deg, var(--rust) 0 18px, rgba(14,19,24,0.85) 18px 36px);
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: var(--rust); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer ul { list-style: none; }
.footer li { padding: 7px 0; }
.footer a { color: var(--ink); opacity: 0.7; font-size: 0.95rem; transition: opacity 0.18s, color 0.18s; }
.footer a:hover { opacity: 1; color: var(--rust); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(14,19,24,0.12);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink);
  opacity: 0.55;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  flex-wrap: wrap; gap: 16px;
}
.footer p { color: var(--ink); opacity: 0.75; font-size: 0.95rem; }

/* ════════════════════════════════ INNER PAGE HEADER ════════════════════════════════ */

.page-head { padding: 100px 0 64px; border-bottom: 1px solid var(--hair); background: var(--ink); position: relative; overflow: hidden; }
.page-head h1 { max-width: 18ch; }
.page-head p { margin-top: 24px; max-width: 60ch; color: var(--bone); opacity: 0.75; font-size: 1.1rem; line-height: 1.55; }

.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--bone); opacity: 0.5; padding: 36px 0 8px; }
.breadcrumb a { color: var(--bone); opacity: 0.7; }
.breadcrumb a:hover { color: var(--rust); opacity: 1; }
.breadcrumb span { margin: 0 12px; color: var(--hair); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(192, 83, 31, 0.12);
  border: 1px solid rgba(192, 83, 31, 0.35);
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--rad-sm);
  font-weight: 500;
}
.pill-dot::before { content: ""; width: 7px; height: 7px; background: var(--rust); border-radius: 50%; box-shadow: 0 0 0 0 var(--rust); animation: wa-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }

/* ════════════════════════════════ CALCULATOR / FORMS ════════════════════════════════ */

.calc { display: grid; grid-template-columns: 380px 1fr; gap: 36px; }
@media (max-width: 1000px) { .calc { grid-template-columns: 1fr; } }
.calc-panel { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--rad); padding: 32px; }
.calc-panel h3 { font-size: 1.05rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); color: var(--white); }

.field { margin-bottom: 22px; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); opacity: 0.6; margin-bottom: 10px; }
.field input, .field select {
  width: 100%; padding: 13px 14px;
  background: var(--ink); border: 1px solid var(--hair); border-radius: var(--rad-sm);
  color: var(--white); font-size: 0.95rem;
  transition: border-color 0.18s ease;
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}
.field input:focus, .field select:focus { outline: none; border-color: var(--rust); }
.field-with-prefix { position: relative; }
.field-prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--bone); opacity: 0.5; font-family: var(--font-mono); }
.field-with-prefix input { padding-left: 30px; }

.toggle-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--ink);
  padding: 4px;
  border: 1px solid var(--hair);
  border-radius: var(--rad-sm);
}
.toggle-group button {
  padding: 11px 8px;
  background: transparent;
  color: var(--bone);
  opacity: 0.7;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  font-weight: 500;
  transition: all 0.15s ease;
}
.toggle-group button.active { background: var(--rust); color: var(--white); opacity: 1; }
.toggle-group button:not(.active):hover { background: var(--surface-2); color: var(--white); opacity: 1; }
.toggle-group-2 { grid-template-columns: repeat(2, 1fr); }

.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--rust); }

.scenario-list { display: flex; flex-direction: column; gap: 10px; }
.scenario-card {
  background: var(--surface); border: 1px solid var(--hair); border-radius: var(--rad); padding: 24px;
  cursor: pointer; transition: all 0.18s ease;
  position: relative;
}
.scenario-card:hover { border-color: var(--rust); }
.scenario-card.active { border-color: var(--rust); background: linear-gradient(180deg, rgba(192,83,31,0.06), transparent); }
.scenario-card.recommended::before {
  content: "RECOMMENDED";
  position: absolute; top: -8px; right: 16px;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em;
  background: var(--rust); color: var(--white);
  padding: 4px 9px; border-radius: 2px; font-weight: 600;
}
.scenario-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.scenario-name { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; letter-spacing: -0.018em; line-height: 1.15; color: var(--white); }
.scenario-cash { font-family: var(--font-mono); font-size: 1.25rem; color: var(--rust); font-weight: 600; }
.scenario-blurb { color: var(--bone); opacity: 0.7; font-size: 0.9rem; margin-top: 12px; line-height: 1.5; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--rad); overflow: hidden; }
@media (max-width: 700px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--surface); padding: 22px; }
.kpi-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone); opacity: 0.55; }
.kpi-value { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.025em; margin-top: 8px; color: var(--white); line-height: 1; }
.kpi-sub { font-family: var(--font-mono); font-size: 0.7rem; color: var(--rust); margin-top: 6px; letter-spacing: 0.08em; }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }
.proscons-list { list-style: none; }
.proscons-list li { padding: 8px 0; padding-left: 22px; position: relative; font-size: 0.92rem; color: var(--bone); }
.proscons-list li::before { position: absolute; left: 0; top: 8px; }
.proscons-list.pros li::before { content: "+"; color: var(--evergreen-bright); font-weight: 700; }
.proscons-list.cons li::before { content: "−"; color: var(--caution); font-weight: 700; }

/* Feature chips for screening tool */
.feature-chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; margin-top: 8px;
  background: var(--ink); border: 1px solid var(--hair); border-radius: var(--rad);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.35);
}
.feature-chip {
  position: relative;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.7;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-chip:hover { border-color: var(--hair); color: var(--white); opacity: 1; transform: translateY(-1px); }
.feature-chip.active {
  background: var(--rust); border-color: var(--rust-bright); color: var(--white); font-weight: 600; opacity: 1;
  box-shadow: 0 0 0 2px rgba(192,83,31,0.22), 0 4px 14px -4px rgba(192,83,31,0.5);
}
.feature-chip.warn:hover { border-color: var(--caution); color: var(--caution); }
.feature-chip.warn.active { background: var(--caution); border-color: var(--caution); color: var(--ink); box-shadow: 0 0 0 2px rgba(250,204,21,0.22), 0 4px 14px -4px rgba(250,204,21,0.45); }
.feature-chip.popping { animation: chip-pop 0.36s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes chip-pop { 0%{transform:scale(1);} 35%{transform:scale(1.18);} 70%{transform:scale(0.96);} 100%{transform:scale(1);} }
.feature-chip::after { content: ""; position: absolute; top: var(--ry,50%); left: var(--rx,50%); width: 6px; height: 6px; background: rgba(192,83,31,0.55); border-radius: 50%; transform: translate(-50%,-50%) scale(0); opacity: 0; pointer-events: none; }
.feature-chip.warn::after { background: rgba(250,204,21,0.55); }
.feature-chip.active::after { background: rgba(255,255,255,0.65); }
.feature-chip.rippling::after { animation: chip-ripple 0.55s ease-out; }
@keyframes chip-ripple { 0%{transform:translate(-50%,-50%) scale(0); opacity:0.6;} 100%{transform:translate(-50%,-50%) scale(28); opacity:0;} }

.screen-meter { width: 100%; height: 8px; background: var(--ink); border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.screen-meter-fill { height: 100%; width: 0%; background: var(--rust); border-radius: 999px; transition: width 0.3s ease, background 0.2s ease; }
.screen-reasons-list { list-style: none; padding: 0; margin: 0; }
.screen-reasons-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: 0.9rem; color: var(--bone); line-height: 1.45; border-bottom: 1px solid var(--hair); }
.screen-reasons-list li:last-child { border-bottom: none; }
.screen-reason-mark { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; flex-shrink: 0; width: 16px; text-align: center; line-height: 1.4; }

/* Mode-conditional input fields */
body[data-mode="buying"] .mode-owning-only { display: none; }
body[data-mode="owning"] .mode-buying-only { display: none; }

/* CTA Banner */
.cta-banner {
  margin-top: 56px;
  padding: 56px 48px;
  background: linear-gradient(135deg, var(--surface), #0E1318);
  border: 1px solid var(--hair);
  border-radius: var(--rad);
  position: relative;
  overflow: hidden;
}
.cta-banner::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--rust); }
.cta-banner h2 { max-width: 22ch; }
.cta-banner-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Section head pattern (for non-chapter sections) */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2 { max-width: 18ch; }
.section-head p { max-width: 42ch; color: var(--bone); opacity: 0.75; }
.divider { height: 1px; background: var(--hair); margin: 64px 0; }
.rail { padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }

/* Steps for process page */
.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--hair); align-items: start; }
.step:last-child { border-bottom: none; }
.step-num { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; color: var(--rust); letter-spacing: -0.04em; }
.step h3 { margin-bottom: 12px; }
.step-meta { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--bone); opacity: 0.55; margin-top: 14px; letter-spacing: 0.05em; }
@media (max-width: 700px) { .step { grid-template-columns: 1fr; gap: 12px; } }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--hair); padding: 24px 0; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--white); cursor: pointer; padding: 0; }
.faq-q::after { content: "+"; font-family: var(--font-mono); font-size: 1.6rem; color: var(--rust); font-weight: 300; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] .faq-q::after { content: "−"; }
.faq-a { padding: 16px 0 0; color: var(--bone); opacity: 0.78; line-height: 1.65; max-width: 70ch; }

/* Trust strip */
.trust { padding: 24px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.trust-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trust-item { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone); opacity: 0.55; }

/* Background helpers */
.bg-surface { background: var(--surface); }

/* ════════════════════════════════ SCROLL PROGRESS ════════════════════════════════ */

.scroll-progress { position: fixed; top: 50%; right: 24px; transform: translateY(-50%); z-index: 50; display: flex; flex-direction: column; gap: 14px; pointer-events: none; }
.scroll-progress-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(217, 211, 199, 0.18); border: 1px solid rgba(217, 211, 199, 0.25); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: auto; cursor: pointer; }
.scroll-progress-dot.active { background: var(--rust); border-color: var(--rust); transform: scale(1.4); box-shadow: 0 0 0 4px rgba(192, 83, 31, 0.22); }
.scroll-progress-dot:hover { background: var(--rust-bright); }
@media (max-width: 1000px) { .scroll-progress { display: none; } }

/* ════════════════════════════════ REVEAL ANIMATIONS ════════════════════════════════ */

body.gsap-ready .reveal       { opacity: 0; transform: translateY(40px); }
body.gsap-ready .reveal-left  { opacity: 0; transform: translateX(-40px); }
body.gsap-ready .reveal-right { opacity: 0; transform: translateX(40px); }
body.gsap-ready .reveal-scale { opacity: 0; transform: scale(0.94); }
body.gsap-ready .reveal-fade  { opacity: 0; }

/* Split-letter reveal — JS wraps each char in span.split-char */
body.gsap-ready .split-char { opacity: 0; transform: translateY(80%) rotate(-3deg); display: inline-block; will-change: transform, opacity; }

/* ════════════════════════════════ PAGE TRANSITION ════════════════════════════════
 * Construction-themed wipe between routes. A full-screen panel of safety-orange
 * + black caution stripes slides in from the right when a nav link is clicked,
 * the page navigates, then on load the same panel slides out to the left.
 * Brief flash of the SHS mark in the center while the panel covers.
 */

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translateX(105%);
  background-color: #0E1318;
  background-image:
    /* Diagonal caution stripes — copper + ink */
    repeating-linear-gradient(
      135deg,
      var(--rust)      0   28px,
      #0E1318         28px 56px
    );
  will-change: transform;
}
.page-transition::after {
  /* Center mark — SHS roof glyph over the wipe */
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 88px; height: 64px;
  margin: -32px 0 0 -44px;
  background: url("/assets/images/logo-full.png?v=20260513") center/contain no-repeat;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity 0.18s ease;
}
body.pt-cover .page-transition {
  transform: translateX(0);
  transition: transform 0.36s cubic-bezier(0.65, 0, 0.35, 1);
}
body.pt-cover .page-transition::after {
  opacity: 1;
  transition-delay: 0.18s;
}
/* On the new page, start covered (no animation), then slide out */
body.pt-incoming .page-transition {
  transform: translateX(0);
  transition: none;
}
body.pt-incoming .page-transition::after { opacity: 1; }
body.pt-reveal .page-transition {
  transform: translateX(-105%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
body.pt-reveal .page-transition::after {
  opacity: 0;
  transition: opacity 0.14s ease;
}

/* ════════════════════════════════ HOVER POLISH ════════════════════════════════ */

/* Nav links — animated underline that rises from below.
 * (Active state uses its existing static underline; hover adds the rise effect.) */
.nav a:not(.nav-cta)::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}
.nav a:not(.nav-cta):hover::before { transform: scaleX(1); }
.nav a.active::before { display: none; } /* don't double-up with the .active underline */

/* CTA button — magnetic cursor track + rivet flourish on hover */
.btn-primary {
  position: relative;
  isolation: isolate;
  --mx: 0; --my: 0;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 120px at var(--mx) var(--my), rgba(255,255,255,0.22), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
  pointer-events: none;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
  /* Slight lift + shadow that matches the rust accent */
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 32px -10px rgba(192, 83, 31, 0.55),
    0 0 0 1px rgba(192, 83, 31, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:active { transform: translateY(0) scale(0.99); transition: transform 0.08s; }

/* Ghost buttons — same magnetic vibe but cooler */
.btn-ghost { position: relative; overflow: hidden; }
.btn-ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(192,83,31,0.10), transparent);
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-ghost:hover::after { transform: translateX(100%); }

/* Card 3D tilt — JS sets --tx / --ty on hover */
.tile, .model-card, .problem-card {
  --tx: 0deg; --ty: 0deg;
  transform: perspective(900px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform 0.18s ease-out, border-color 0.25s, background 0.25s, box-shadow 0.25s;
  will-change: transform;
}

/* Stat cells — copper number glow on hover */
.stat-cell {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-cell:hover { transform: translateY(-4px); }
.stat-cell:hover .stat-cell-value {
  text-shadow: 0 0 18px rgba(192, 83, 31, 0.5), 0 0 40px rgba(192, 83, 31, 0.18);
  transition: text-shadow 0.3s ease;
}

/* Input focus — copper draftsman ring + slight scale */
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow:
    0 0 0 3px rgba(192, 83, 31, 0.16),
    0 0 22px -4px rgba(192, 83, 31, 0.45);
  transform: translateY(-1px);
  transition: all 0.2s ease;
}
.field { transition: transform 0.2s ease; }

/* Toggle buttons get an animated lift on hover */
.toggle-group button:not(.active) {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-group button:not(.active):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px rgba(192, 83, 31, 0.4);
}
.toggle-group button.active {
  box-shadow: 0 4px 12px -4px rgba(192, 83, 31, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Scroll progress dots — bigger on hover, fill animation when active */
.scroll-progress-dot {
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.scroll-progress-dot:hover {
  transform: scale(1.6);
  background: var(--rust);
  border-color: var(--rust);
  box-shadow: 0 0 0 4px rgba(192, 83, 31, 0.18), 0 4px 14px -2px rgba(192, 83, 31, 0.55);
}
.scroll-progress-dot.active:hover { transform: scale(1.7); }

/* Plan KPI numbers — subtle pulse on first reveal */
.kpi:hover { background: var(--surface-2); transition: background 0.22s; }
.kpi-value { transition: color 0.2s; }
.kpi:hover .kpi-value { color: var(--rust); }

/* Feature chips already have nice motion — just tighten the hover lift */
.feature-chip:hover:not(.active) {
  box-shadow: 0 4px 12px -4px rgba(192, 83, 31, 0.45);
}

/* Anchor links in body copy — animated underline */
a.copper, a.rust, .chapter-lead a {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
a.copper:hover, a.rust:hover, .chapter-lead a:hover {
  background-size: 100% 1.5px;
}

/* Section eyebrow — animated underline on view */
.eyebrow::before, .chapter-num::before {
  transition: width 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Card-num and journey-step-num — subtle wiggle on parent hover */
.problem-card:hover .problem-card-num,
.journey-step:hover .journey-step-num {
  color: var(--rust-bright);
  text-shadow: 0 0 16px rgba(192, 83, 31, 0.4);
  transition: color 0.25s, text-shadow 0.25s;
}

/* Hero CTA group — entrance flourish handled by JS, but on hover give a cooler shadow */
.hero-cta-row .btn-primary:hover {
  box-shadow:
    0 16px 36px -8px rgba(192, 83, 31, 0.65),
    0 0 0 1px rgba(192, 83, 31, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* ════════════════════════════════ ANALYSIS MODAL ════════════════════════════════
 * In-depth questionnaire modal launched from the lot-screening step.
 * Pulls the user out of the calculator for a focused, dark-industrial form. */

.analysis-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px;
  overflow-y: auto;
}
.analysis-modal.open { display: flex; }
.analysis-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 12, 16, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
  cursor: pointer;
}
.analysis-modal.open .analysis-modal-backdrop { opacity: 1; }
.analysis-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--rad-lg);
  /* Copper left rail accent */
  border-left: 4px solid var(--rust);
  padding: 48px clamp(28px, 5vw, 56px);
  margin: auto;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(192,83,31,0.18);
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.analysis-modal.open .analysis-modal-panel { opacity: 1; transform: none; }

.analysis-modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--bone);
  opacity: 0.7;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid var(--hair);
}
.analysis-modal-close:hover {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--white);
  opacity: 1;
  transform: rotate(90deg);
}

.analysis-modal-header { padding-right: 48px; margin-bottom: 32px; }

.analysis-modal-form {}
.analysis-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}
.analysis-fieldset legend {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
  width: 100%;
  display: block;
}
.analysis-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) { .analysis-row { grid-template-columns: 1fr; } }

.analysis-modal-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: var(--rad-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  line-height: 1.5;
}
.analysis-modal-form textarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(192,83,31,0.16), 0 0 22px -4px rgba(192,83,31,0.45);
  transform: translateY(-1px);
}

.required { color: var(--rust); font-weight: 600; }

/* Day-of-week chips — same vibe as feature-chips but smaller */
.analysis-day-chips {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.analysis-day-chip {
  padding: 10px 18px;
  background: var(--ink);
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--bone);
  opacity: 0.7;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  min-width: 64px;
}
.analysis-day-chip:hover { color: var(--white); opacity: 1; border-color: var(--steel-500); transform: translateY(-1px); }
.analysis-day-chip.active {
  background: var(--rust);
  border-color: var(--rust-bright);
  color: var(--white);
  opacity: 1;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(192,83,31,0.22), 0 4px 14px -4px rgba(192,83,31,0.5);
}

.analysis-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.analysis-modal-actions .btn { flex: 1; min-width: 180px; }

.analysis-modal-success {
  text-align: left;
}

/* Lock scroll on body when modal is open */
body.modal-open { overflow: hidden; }

/* Visually hidden, still in DOM for SEO crawlers + screen readers. */
.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;
}

/* ════════════════════════════════ HERO SPICE ════════════════════════════════
 * Atmospheric strip below the front-page CTAs:
 *   1. Three peak names "Helens / Adams / Rainier" in display-black caps.
 *   2. Hand-drawn Cascade silhouette in copper.
 *   3. Mono caps service-area line. */
.hero-spice {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: var(--rust);
  text-align: center;
}
.hero-spice-range {
  width: clamp(260px, 50%, 480px);
  height: auto;
  color: var(--rust);
  opacity: 0.8;
  display: block;
  margin: 0 auto;
}
.hero-spice-svc {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.55;
}
@media (max-width: 640px) {
  .hero-spice { margin-top: 48px; gap: 14px; }
  .hero-spice-svc { font-size: 0.62rem; letter-spacing: 0.18em; }
}

/* ════════════════════════════════ WHY PREFAB ════════════════════════════════
 * Full-bleed dusk-DADU photo behind a left-anchored column. Headline + each
 * card's text types in char-by-char as it scrolls into view. Content stays left
 * so the lit DADU on the right of the photo reads clearly. */
.why-prefab {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 12vw, 160px) 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.why-prefab { background: var(--ink); }
.why-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("/assets/images/why-bg.jpg?v=20260520a") center/cover no-repeat;
}
.why-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* top starts SOLID ink (seamless handoff from hero) → clears to reveal photo */
    linear-gradient(180deg, rgba(14,19,24,1) 0%, rgba(14,19,24,0.80) 10%, rgba(14,19,24,0.30) 32%, rgba(14,19,24,0.0) 55%, rgba(14,19,24,0.45) 100%),
    /* left column kept dark for legibility, clears toward the lit DADU on the right */
    linear-gradient(90deg, rgba(14,19,24,0.96) 0%, rgba(14,19,24,0.82) 30%, rgba(14,19,24,0.30) 62%, rgba(14,19,24,0.08) 100%);
}
.why-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Hard-left: minimal gutter, no centering, no max container. */
  padding: 0 clamp(20px, 4vw, 40px);
}
.why-col { max-width: 560px; margin-left: 0; }
.why-eyebrow { color: var(--rust); }
.why-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 14px 0 clamp(32px, 5vw, 56px);
}
.why-title .type-line { display: block; }
.why-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.why-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--rust);
  font-weight: 600;
  padding-top: 4px;
  min-width: 24px;
}
.why-item h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}
.why-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.82;
  margin: 0;
}
/* Scroll-in: fade + slide from the left, staggered via JS transition-delay. */
.why-reveal {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.why-reveal.in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .why-scrim {
    background:
      linear-gradient(180deg, rgba(14,19,24,1) 0%, rgba(14,19,24,0.70) 14%, rgba(14,19,24,0.55) 45%, rgba(14,19,24,0.90) 100%);
  }
  .why-col { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .why-reveal { opacity: 1; transform: none; transition: none; }
}

/* ════════════════════════════════ HERO PHOTO ════════════════════════════════
 * Front-page hero gets a full-bleed dark Rainier photo, copper glow top-left.
 * Scrim keeps the headline + CTAs legible. */
.hero-photo { position: relative; overflow: hidden; }
.hero-photo-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/images/hero-bg.jpg?v=20260520a") center/cover no-repeat;
  z-index: 0;
}
.hero-photo-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* bottom fades to SOLID ink so it hands off seamlessly to the next section */
    linear-gradient(180deg, rgba(14,19,24,0.35) 0%, rgba(14,19,24,0.12) 42%, rgba(14,19,24,0.90) 88%, rgba(14,19,24,1) 100%),
    linear-gradient(90deg, rgba(14,19,24,0.78) 0%, rgba(14,19,24,0.30) 42%, rgba(14,19,24,0.05) 100%);
}
.hero-photo .chapter-inner { position: relative; z-index: 2; }

/* Larger hero CTAs to fill the lower hero void. */
.hero-cta-lg .btn {
  padding: 20px 34px;
  font-size: 1.05rem;
}
@media (max-width: 640px) {
  .hero-cta-lg .btn { padding: 17px 26px; font-size: 0.98rem; }
}

/* ════════════════════════════════ THE OPPORTUNITY ════════════════════════════════
 * WA DADU-law opportunity band: stat cards + condoization callout. Flows on
 * solid ink from the hero, hands off to the why-prefab photo below. */
.opportunity { padding: clamp(80px, 11vw, 150px) 0; }
.opp-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.opp-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--white);
  margin: 14px 0 24px;
}
.opp-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--bone);
  opacity: 0.82;
}
.opp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  margin-bottom: clamp(24px, 4vw, 40px);
}
@media (max-width: 820px) { .opp-grid { grid-template-columns: 1fr; } }
.opp-card {
  padding: 30px 26px 28px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--rad);
  border-top: 3px solid var(--rust);
}
.opp-stat {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.025em;
  color: var(--rust);
  margin-bottom: 14px;
  line-height: 1;
}
.opp-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 10px;
}
.opp-card p {
  font-size: 0.94rem;
  line-height: 1.58;
  color: var(--bone);
  opacity: 0.78;
  margin: 0;
}
.opp-condo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, rgba(192,83,31,0.10), rgba(22,28,34,0.4));
  border: 1px solid var(--hair);
  border-left: 4px solid var(--rust);
  border-radius: var(--rad-lg);
}
.opp-condo-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.8;
  color: var(--rust);
  opacity: 0.65;
}
.opp-condo h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}
.opp-condo p {
  font-size: 1rem;
  line-height: 1.62;
  color: var(--bone);
  opacity: 0.85;
  margin: 0;
}
.opp-condo strong { color: var(--white); font-weight: 700; }
@media (max-width: 600px) {
  .opp-condo { grid-template-columns: 1fr; gap: 12px; }
  .opp-condo-mark { font-size: 2.6rem; }
}

/* ════════════════════════════════ SLIM FOOTER ════════════════════════════════
 * Home page: just logo + contact info on one row. */
.footer-slim { padding: 22px 0; }
.footer-slim-row {
  display: flex !important;
  align-items: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}
.footer-slim .brand { margin: 0; flex: 0 0 auto; }
.footer-slim .logo-footer { height: 44px !important; width: auto; display: block; }
.footer-slim-info {
  font-size: 0.78rem;
  opacity: 0.6;
  line-height: 1.6;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .footer-slim-row { gap: 14px; }
  .footer-slim .logo-footer { height: 38px; }
  .footer-slim-info { gap: 2px; flex-direction: column; }
}

/* ════════════════════════════════ MEDIA LIGHTBOX ════════════════════════════════
 * Reusable modal for floor-plan images and 3D-tour iframes. One shell, two
 * content modes (image / iframe) driven by data-media-type on the trigger. */
.media-modal {
  position: fixed; inset: 0; z-index: 1100;
  display: none;
  align-items: center; justify-content: center;
  padding: clamp(12px, 4vw, 56px);
  overflow-y: auto;
}
.media-modal.open { display: flex; }
.media-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 12, 16, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.24s ease;
  cursor: pointer;
}
.media-modal.open .media-modal-backdrop { opacity: 1; }
.media-modal-panel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - clamp(24px, 8vw, 112px));
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 4px solid var(--rust);
  border-radius: var(--rad-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.media-modal.open .media-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.media-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.media-modal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
}
.media-modal-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 2px;
}
.media-modal-close {
  background: transparent;
  border: 1px solid var(--hair);
  color: var(--bone);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.media-modal-close:hover {
  transform: rotate(90deg);
  border-color: var(--rust);
  color: var(--rust);
}
.media-modal-body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border-radius: var(--rad);
  overflow: hidden;
  min-height: 360px;
}
.media-modal-body img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}
.media-modal-body iframe {
  width: 100%;
  height: clamp(360px, 70vh, 720px);
  border: 0;
  display: block;
}
.media-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end;
}
.media-modal-actions .btn {
  padding: 10px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}
@media (max-width: 640px) {
  .media-modal { padding: 0; align-items: stretch; }
  .media-modal-panel {
    border-radius: 0;
    border-left: none;
    border-top: 4px solid var(--rust);
    max-height: 100vh;
    height: 100vh;
    padding: 18px;
  }
  .media-modal-body { min-height: 220px; }
  .media-modal-body iframe { height: 50vh; }
}

/* ════════════════════════════════ MODEL VARIANTS ════════════════════════════════
 * Sub-section under each Helens/Adams/Rainier model showing 2+ floor-plan
 * variants we can build inside that envelope. Each card has a download link to
 * the actual floor plan gif/PDF. */
.variants-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--hair);
}
.variants-section h4.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
  font-weight: 600;
}
.variants-section h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}
.variants-section > p {
  color: var(--bone);
  opacity: 0.7;
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 56ch;
}
.variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.variant-card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--rust);
  border-radius: var(--rad);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.variant-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--rust-bright, #d96a35);
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.4);
}
.variant-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.variant-card-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.1;
}
.variant-card-dims {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
  white-space: nowrap;
}
.variant-card-specs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--bone);
  opacity: 0.78;
}
.variant-card-specs span:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--rust);
  opacity: 0.6;
}
.variant-card-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.variant-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.variant-card-price .price-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--white);
  font-feature-settings: "tnum";
}
.variant-card-price .price-ppsf {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--rust);
  font-weight: 600;
  font-feature-settings: "tnum";
  white-space: nowrap;
}
.variant-card-price .price-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone);
  opacity: 0.55;
}
/* Floor plan + 3D tour buttons in the model hero (above Screen/Quote). */
.plan-media-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-media-row .variant-floorplan,
.plan-media-row .variant-tour {
  flex: 1 1 0;
  min-width: 160px;
}
@media (max-width: 480px) {
  .plan-media-row { flex-direction: column; }
}

.variant-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 211, 199, 0.08);
}
.variant-floorplan,
.variant-tour {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid var(--rust);
  color: var(--rust);
  border-radius: var(--rad-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.variant-floorplan:hover,
.variant-tour:hover {
  background: var(--rust);
  color: var(--white);
}
.variant-floorplan svg,
.variant-tour svg {
  width: 14px;
  height: 14px;
}
.variant-floorplan.disabled,
.variant-tour.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--hair);
  color: var(--bone);
}
/* 3D tour button: filled fallback color so it visually distinguishes from the
 * floor plan button when sitting side by side. */
.variant-tour {
  background: rgba(192, 83, 31, 0.08);
}
.variant-tour:hover { background: var(--rust); }

@media (max-width: 640px) {
  .variants-grid { grid-template-columns: 1fr; }
  .variant-card { padding: 20px 18px 18px; }
  .variant-card-name { font-size: 1.15rem; }
  .variant-card-price .price-num { font-size: 1.4rem; }
}

/* ════════════════════════════════ MOBILE TIGHTEN ════════════════════════════════
 * Final pass: tighten typography, padding, stack CTAs, fix tables/modals
 * for phones. Touch devices also skip hover-only motion. */

/* —— Touch devices: disable hover-only effects ——————————————— */
@media (hover: none), (pointer: coarse) {
  .btn-primary, .nav-cta { transform: none !important; }
  .tile, .model-card, .problem-card { transform: none !important; }
  /* Re-enable focus/active feedback */
  .btn:active { transform: translateY(1px) !important; }
}

/* —— Phone (≤640px) ———————————————————————————————— */
@media (max-width: 640px) {
  :root { --pad: 20px; }

  /* Section padding tightens */
  .chapter { padding: 80px 0 !important; }
  .chapter-inner { padding: 0 var(--pad); }
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }

  /* Headlines scale down + don't break mid-word (acronyms like "DADUs" must stay intact) */
  .chapter-headline {
    font-size: clamp(1.7rem, 7.5vw, 2.3rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    -webkit-hyphens: manual;
    max-width: 100%;
  }
  .chapter-lead {
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 24px;
  }
  .chapter-num {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
  }

  /* Hero CTAs: stack full-width + thumb-friendly */
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .hero-cta-row .btn {
    width: 100%;
    padding: 18px 24px;
    justify-content: center;
  }

  /* Stat cells stack tighter, smaller numbers */
  .stat-cell-value { font-size: clamp(2.2rem, 10vw, 3rem); }
  .stat-cell-sub { font-size: 0.88rem; }
  .specs-grid { grid-template-columns: 1fr; }
  .specs-grid > div { padding: 16px 0 !important; border-right: none !important; border-bottom: 1px solid var(--hair); }
  .specs-grid > div:last-child { border-bottom: none; }

  /* Page head (inner pages) */
  .page-head { padding: 76px 0 40px; }
  .page-head h1 { font-size: clamp(2rem, 8.5vw, 2.4rem); }
  .page-head p { font-size: 0.98rem; margin-top: 18px; }

  /* Breadcrumb spacing */
  .breadcrumb { font-size: 0.72rem; }

  /* Buttons: enforce tap target */
  .btn { padding: 15px 22px; font-size: 0.95rem; min-height: 48px; }
  .btn-ghost { padding: 14px 20px; }

  /* Forms */
  input, select, textarea { font-size: 16px; /* prevent iOS zoom on focus */ }

  /* Calculator: form rows that were 2-col side-by-side stack to 1 */
  .calc-row, .calc-grid-2, .calc-grid-3 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .calc { gap: 32px; }
  .calc-card, .calc-section { padding: 22px !important; }

  /* Toggle groups: wrap nicely */
  .toggle-group { flex-wrap: wrap; }
  .toggle-group button {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 12px 8px;
    font-size: 0.82rem;
  }

  /* KPI grid: 2-cols already kicks in at 700px; tighten cell padding */
  .kpi-grid > * { padding: 18px !important; }
  .kpi-value { font-size: 1.6rem !important; }
  .kpi-label { font-size: 0.66rem !important; }

  /* Comparison tables: enable horizontal scroll fallback */
  .calc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .calc-table { min-width: 540px; }

  /* Footer */
  .footer { padding: 56px 0 24px; }
  .footer-grid { gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand img.logo-footer { height: 60px; }

  /* Page transition logo: scale down */
  .page-transition::after { width: 64px; height: 48px; margin: -24px 0 0 -32px; }

  /* Hero blueprint title-block: keep but smaller */
  .hero-titleblock { font-size: 0.62rem !important; }

  /* Analysis modal: fullscreen on phone, edge-to-edge panel */
  .analysis-modal { padding: 0; align-items: stretch; }
  .analysis-modal-panel {
    border-radius: 0;
    border-left: none;
    border-top: 4px solid var(--rust);
    padding: 28px 22px;
    max-width: 100%;
    min-height: 100vh;
    box-shadow: none;
  }
  .analysis-modal-close { top: 12px; right: 14px; }
  .analysis-modal-actions { flex-direction: column; }
  .analysis-modal-actions .btn { width: 100%; min-width: 0; }
  .analysis-fieldset { padding: 20px 0; }
  .analysis-day-chip { flex: 1 1 calc(33.333% - 6px); }
}

/* —— Small phone (≤380px) ———————————————————————————————— */
@media (max-width: 380px) {
  :root { --pad: 16px; }
  .chapter-headline { font-size: 1.6rem; }
  .btn { padding: 14px 18px; font-size: 0.92rem; }
  .stat-cell-value { font-size: 2.1rem; }
  .brand img { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
  .wa-map-dot { animation: none !important; }
  body.gsap-ready * { opacity: 1 !important; transform: none !important; }
  .page-transition { display: none !important; }
  .analysis-modal-panel { transform: none !important; }
}
