/* ========================================================================
   Tomasetti Tech — Locked Design System (family look: bre/admin)
   Shared across: tomasetti.online, tomasetti.shop, plan.tomasetti.online
   Dual theme: dark default + [data-theme="light"] (white w/ purple accents,
   matching admin.tomasetti.shop's light mode).
   Same class names + variables as tomasetti-atelier.css so page content
   keeps working — only the visual layer changes.
   ======================================================================== */

/* ── 1. TOKENS ── */
:root {
  /* Semantic text + line colors (flip per theme) */
  --ink: #e2d9ee;
  --ink-2: #bca8d0;
  --muted: #9a88b0;
  --quiet: #8b7aa8;
  --line: rgba(216, 150, 255, 0.12);
  --purple: #d896ff;
  --purple-dark: #c084fc;
  --purple-mid: #c084fc;
  --purple-soft: rgba(216, 150, 255, 0.12);
  --purple-softer: rgba(216, 150, 255, 0.08);
  --line-strong: rgba(216, 150, 255, 0.3);
  --radius: 14px;
  --radius-sm: 10px;
  --ink-soft: #bca8d0;
  --blue: #7dd3fc;
  --green: #34d399;
  --orange: #fbbf24;
  --on-accent: #0a0514;

  /* Legacy aliases still used by page inline styles */
  --paper: #0f0a1a;
  --paper-2: #151022;
  --white: #1e1530;
  --off-white: #1a1329;
  --purple-deep: #7c3aed;

  /* Surfaces */
  --page-bg: radial-gradient(circle at 12% 0%, rgba(168, 85, 247, 0.22), transparent 32%),
             linear-gradient(145deg, #0c0815 0%, #17102a 55%, #24184a 100%);
  --grid-opacity: .5;
  --header-bg: rgba(12, 8, 21, 0.82);
  --alt-bg: rgba(21, 16, 34, 0.55);
  --card-bg: rgba(30, 21, 48, 0.72);
  --card-bg-2: rgba(26, 20, 48, 0.72);
  --card-bg-3: rgba(32, 22, 52, 0.72);
  --card-bg-4: rgba(24, 30, 44, 0.72);
  --card-border: var(--line);
  --card-hover-border: rgba(216, 150, 255, 0.45);
  --card-shadow: 0 18px 40px rgba(76, 29, 149, 0.3);
  --card-shadow-sm: 0 18px 40px rgba(76, 29, 149, 0.25);
  --inclusion-bg: rgba(30, 21, 48, 0.55);
  --input-bg: rgba(30, 21, 48, 0.72);
  --input-border: rgba(216, 150, 255, 0.18);
  --input-focus-ring: rgba(216, 150, 255, 0.15);
  --diag-bg: rgba(10, 5, 20, 0.6);
  --diag-ink: #e0dce6;

  /* Hero */
  --hero-bg: radial-gradient(circle at 85% 0%, rgba(157, 80, 229, 0.28), transparent 40%),
             linear-gradient(180deg, #0a0514 0%, #17102a 100%);
  --hero-ink: #f6efff;
  --hero-muted: #c8bfd6;
  --hero-eyebrow: #c9b7ff;
  --hero-strong: #fff;

  /* Headings */
  --heading-ink: #f6efff;

  /* Buttons */
  --btn-primary-bg: #d896ff;
  --btn-primary-ink: #0a0514;
  --btn-primary-hover: #e6b8ff;
  --btn-ghost-border: rgba(216, 150, 255, 0.4);
  --btn-ghost-ink: #f4efff;
  --btn-ghost-hover-bg: rgba(216, 150, 255, 0.12);
  --btn-light-border: rgba(216, 150, 255, 0.28);

  /* Proof / dark band */
  --proof-line: rgba(216, 150, 255, 0.14);
  --proof-hover: rgba(216, 150, 255, 0.08);
  --proof-strong: #fff;
  --proof-muted: #aaa2af;
  --stamp-border: rgba(216, 150, 255, 0.35);
  --stamp-ink: #d8cdf9;
  --band-bg: linear-gradient(180deg, #0a0514 0%, #151022 100%);
  --band-ink: #e2d9ee;
  --band-muted: #c8c0ce;
  --band-accent: #d896ff;

  /* CTA box (deep purple accent in both themes) */
  --cta-bg: linear-gradient(145deg, rgba(36, 24, 74, 0.9), rgba(23, 16, 42, 0.95));
  --cta-border: rgba(216, 150, 255, 0.2);
  --cta-ink: #f6efff;
  --cta-muted: #ddd6e8;

  /* Venture map */
  --map-bg: rgba(30, 21, 48, 0.72);
  --map-border: rgba(216, 150, 255, 0.18);
  --map-node-ink: #eee7f1;
  --map-node-muted: #aaa2af;
  --map-connector: rgba(216, 150, 255, 0.35);

  /* Layout */
  --max: 1180px;
  --sans: "Inter", "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", "Inter", "Trebuchet MS", sans-serif;
  --mono: "Share Tech Mono", Consolas, monospace;
}

/* ── 1b. LIGHT THEME (matches admin.tomasetti.shop [data-theme=light]) ── */
[data-theme="light"] {
  --ink: #20172c;
  --ink-2: #44365a;
  --muted: #6f637c;
  --quiet: #8b7fa0;
  --line: rgba(63, 45, 88, 0.14);
  --purple: #6036b8;
  --purple-dark: #4d2a99;
  --purple-mid: #7a5cc7;
  --purple-soft: rgba(96, 54, 184, 0.10);
  --purple-softer: rgba(96, 54, 184, 0.05);
  --line-strong: rgba(96, 54, 184, 0.26);
  --radius: 14px;
  --radius-sm: 10px;
  --ink-soft: #44365a;
  --blue: #0284c7;
  --green: #059669;
  --orange: #c2410c;
  --on-accent: #ffffff;

  --paper: #f3f1f7;
  --paper-2: #ece4f5;
  --white: #ffffff;
  --off-white: #f5f2fa;
  --purple-deep: #6036b8;

  --page-bg: radial-gradient(800px 480px at 15% -8%, rgba(124, 58, 237, 0.06), transparent 55%),
             radial-gradient(600px 380px at 85% 0%, rgba(109, 40, 217, 0.04), transparent 50%),
             linear-gradient(165deg, #f8f4fc 0%, #f3f1f7 50%, #ede5f5 100%);
  --grid-opacity: .25;
  --header-bg: rgba(255, 255, 255, 0.85);
  --alt-bg: rgba(255, 255, 255, 0.7);
  --card-bg: #ffffff;
  --card-bg-2: #f7f3fb;
  --card-bg-3: #f1ecf8;
  --card-bg-4: #eef0f7;
  --card-border: rgba(96, 54, 184, 0.18);
  --card-hover-border: rgba(96, 54, 184, 0.45);
  --card-shadow: 0 8px 24px rgba(96, 54, 184, 0.12);
  --card-shadow-sm: 0 6px 20px rgba(96, 54, 184, 0.10);
  --inclusion-bg: rgba(255, 255, 255, 0.75);
  --input-bg: #ffffff;
  --input-border: rgba(96, 54, 184, 0.2);
  --input-focus-ring: rgba(96, 54, 184, 0.15);
  --diag-bg: #f1ecf8;
  --diag-ink: var(--ink);

  --hero-bg: radial-gradient(circle at 85% 0%, rgba(96, 54, 184, 0.10), transparent 45%),
             linear-gradient(180deg, #f8f4fc 0%, #f3f1f7 100%);
  --hero-ink: var(--ink);
  --hero-muted: var(--muted);
  --hero-eyebrow: var(--purple);
  --hero-strong: var(--ink);

  --heading-ink: var(--ink);

  --btn-primary-bg: #6036b8;
  --btn-primary-ink: #ffffff;
  --btn-primary-hover: #7c3aed;
  --btn-ghost-border: rgba(96, 54, 184, 0.45);
  --btn-ghost-ink: var(--purple);
  --btn-ghost-hover-bg: rgba(96, 54, 184, 0.08);
  --btn-light-border: rgba(96, 54, 184, 0.25);

  /* Band surfaces are always deep purple, so band text stays light */
  --proof-line: rgba(255, 255, 255, 0.16);
  --proof-hover: rgba(255, 255, 255, 0.07);
  --proof-strong: #ffffff;
  --proof-muted: #d6cde6;
  --stamp-border: rgba(255, 255, 255, 0.35);
  --stamp-ink: #e6d5ff;
  --band-accent: #e6d5ff;
  --band-bg: linear-gradient(145deg, #6036b8 0%, #4d2a99 100%);
  --band-ink: #ffffff;
  --band-muted: #ece4f5;

  --cta-bg: linear-gradient(145deg, #6036b8 0%, #4d2a99 100%);
  --cta-border: rgba(255, 255, 255, 0.25);
  --cta-ink: #ffffff;
  --cta-muted: #ece4f5;

  --map-bg: #ffffff;
  --map-border: rgba(96, 54, 184, 0.18);
  --map-node-ink: var(--ink);
  --map-node-muted: var(--muted);
  --map-connector: rgba(96, 54, 184, 0.35);
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  background-attachment: fixed;
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

/* Subtle lilac grid overlay (family signature) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(rgba(216, 150, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 150, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(#000, transparent 85%);
}

a { color: inherit; }

/* ── 3. LAYOUT ── */
.wrap {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
}

/* ── 4. SKIP LINK ── */
.skip {
  position: absolute;
  top: -100px;
  left: 18px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--purple);
  color: var(--on-accent);
  text-decoration: none;
  font: 12px var(--mono);
  border-radius: 0 0 8px 8px;
}
.skip:focus { top: 14px; }

/* ── 5. PRIDE BAR ── */
.pride {
  height: 6px;
  background: linear-gradient(90deg,
    #e40303 0 14%, #ff8c00 14% 28%, #ffed00 28% 42%,
    #008026 42% 57%, #004dff 57% 72%, #750787 72% 86%, #d896ff 86%);
}

/* ── 6. INCLUSION STRIP ── */
.inclusion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--inclusion-bg);
  border-bottom: 1px solid var(--line);
  font: 12px var(--mono);
  letter-spacing: .04em;
  color: var(--muted);
}
.inclusion .flag {
  background: linear-gradient(90deg,
    #e40303, #ff8c00, #ffed00, #008026, #004dff, #750787, #d896ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}
.inclusion .sep { opacity: .3; }

/* ── 7. SCROLL PROGRESS ── */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 5px;
  background: var(--purple);
  pointer-events: none;
}

/* ── 8. HEADER / NAV ── */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Header wrapper used by the guides/audio pages — keeps brand, links and
   the theme toggle on one row (atelier.css used to provide this). */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand (venture name, no subtitle) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.brand:hover { color: var(--purple); }

/* Nav links */
.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navlinks a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font: 12px var(--mono);
  letter-spacing: .025em;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.navlinks a:hover {
  color: var(--purple);
  background: var(--purple-soft);
}
.navlinks .nav-cta {
  border-color: var(--purple);
  color: var(--purple);
  font-weight: 600;
}
.navlinks .nav-cta:hover {
  background: var(--purple);
  color: var(--on-accent);
}

/* Theme toggle (every page, same spot) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  margin-left: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 12px var(--mono);
  letter-spacing: .025em;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover {
  color: var(--purple);
  border-color: var(--purple);
  background: var(--purple-soft);
}
.theme-toggle .tt-icon { width: 16px; height: 16px; flex-shrink: 0; }
.theme-toggle .tt-label { text-transform: uppercase; }

/* ── 9. HERO ── */
.hero {
  padding: clamp(56px, 8vw, 94px) 0 62px;
  background: var(--hero-bg);
  color: var(--ink);
  position: relative;
  transition: background .25s ease;
}

/* Decorative orb */
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(216, 150, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(216, 150, 255, 0.03), 0 0 0 76px rgba(216, 150, 255, 0.02);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(370px, .9fr);
  gap: clamp(42px, 8vw, 112px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--hero-eyebrow);
  font: 11px var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--purple);
}

.hero h1 {
  max-width: 730px;
  margin: 0 0 25px;
  font-family: var(--display);
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  font-weight: 700;
  letter-spacing: -.085em;
  line-height: .9;
  color: var(--hero-ink);
}
.hero h1 em {
  color: var(--purple);
  font-style: normal;
}

.hero-lede {
  max-width: 640px;
  margin: 0;
  color: var(--hero-muted);
  font-size: 1.22rem;
  line-height: 1.48;
}
.hero-lede strong { color: var(--hero-strong); font-weight: 600; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

/* ── 10. BUTTONS ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font: 12px var(--mono);
  letter-spacing: .025em;
  transition: all .2s ease;
  cursor: pointer;
}
.button-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  font-weight: 700;
}
.button-primary:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
}
.button-dark-ghost {
  border-color: var(--btn-ghost-border);
  color: var(--btn-ghost-ink);
}
.button-dark-ghost:hover {
  border-color: var(--purple);
  background: var(--btn-ghost-hover-bg);
}
.button-light {
  border-color: var(--btn-light-border);
  color: var(--ink);
}
.button-light:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ── 11. CAPABILITY BOARD (dark card in hero) ── */
.capability-board {
  position: relative;
  padding: 25px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
}
.board-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.board-top b { color: var(--green); font-weight: 500; }

.board-title {
  margin: 23px 0 18px;
  color: var(--heading-ink);
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -.04em;
}

.capability {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.capability:first-of-type { border-top: 0; }

.capability-index {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--purple);
  border-radius: 50%;
  color: var(--purple);
  font: 11px var(--mono);
}
.capability strong {
  display: block;
  color: var(--heading-ink);
  font-size: 1rem;
}
.capability span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .86rem;
}

.board-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.board-foot b { color: var(--purple); font-weight: 500; }

/* ── 12. SECTIONS ── */
.section { padding: 92px 0; }

/* ── 12b. AUDIO-FAMILY GAP (dot, ghost, footer-sub, section-lede) ── */
/* Accent dot inside headings — used by audio / showroom hero h1 */
.dot { color: var(--purple); }

/* Ghost / outline button — used by audio pages' hero-actions */
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--btn-ghost-border);
  border-radius: 8px;
  background: transparent;
  color: var(--btn-ghost-ink);
  font: 12px var(--mono);
  letter-spacing: .025em;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}
.ghost:hover {
  border-color: var(--purple);
  background: var(--btn-ghost-hover-bg);
}

/* Footer subtitle line — small text below footer links */
.footer-sub {
  font-size: .78rem;
  color: var(--quiet);
}
.footer-sub a { color: var(--purple); text-decoration: underline; }

/* Section lede — paragraph after section h2 */
.section-lede {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.section.alt {
  background: var(--alt-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.dark {
  background: var(--band-bg);
  color: var(--band-ink);
}

.section-head {
  max-width: 760px;
  margin-bottom: 46px;
}
.kicker {
  margin: 0 0 13px;
  color: var(--purple);
  font: 11px var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.dark .kicker { color: var(--band-accent); }

.section h2 {
  max-width: 800px;
  margin: 0 0 17px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5.5vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .94;
  color: var(--heading-ink);
}
.section-head > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.dark .section-head > p:last-child { color: var(--band-muted); }

/* ── 13. WHAT GRID (2-col cards) ── */
.what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.what-card {
  position: relative;
  display: block;
  min-height: 260px;
  padding: 28px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s;
}
.what-card:hover, .what-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-shadow);
}
.what-card:nth-child(2) { background: var(--card-bg-2); }
.what-card:nth-child(3) { background: var(--card-bg-3); }
.what-card:nth-child(4) { background: var(--card-bg-4); }

.card-number {
  color: var(--purple);
  font: 12px var(--mono);
}
.what-card h3 {
  max-width: 420px;
  margin: 27px 0 10px;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -.05em;
  color: var(--heading-ink);
}
.what-card p {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
}
.card-result {
  position: absolute;
  right: 25px;
  bottom: 22px;
  color: var(--purple);
  font: 11px var(--mono);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.what-card:hover .card-result { color: var(--purple-dark); }

/* ── 14. PROOF BAND (dark, timeline) ── */
.proof-band {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: start;
}
.proof-copy p {
  max-width: 580px;
  margin: 0 0 20px;
  color: var(--band-muted);
  font-size: 1.05rem;
}
.proof-copy p strong { color: var(--band-ink); }

.proof-list { border-top: 1px solid var(--proof-line); }
.proof-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 19px 0;
  border-bottom: 1px solid var(--proof-line);
  text-decoration: none;
  transition: background .2s, padding .2s;
}
.proof-item:hover, .proof-item:focus-visible {
  background: var(--proof-hover);
  padding-left: 10px;
}
.proof-item time {
  color: var(--band-accent);
  font: 11px var(--mono);
  text-transform: uppercase;
}
.proof-item strong {
  display: block;
  color: var(--proof-strong);
}
.proof-item span {
  display: block;
  margin-top: 3px;
  color: var(--proof-muted);
  font-size: .9rem;
}
.proof-item b {
  display: block;
  margin-top: 8px;
  color: var(--band-accent);
  font: 10px var(--mono);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.proof-stamp {
  margin-top: 34px;
  display: inline-block;
  padding: 14px 18px;
  border: 1px solid var(--stamp-border);
  color: var(--stamp-ink);
  font: 11px var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

/* ── 15. MODEL GRID (3-col steps) ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.model-step {
  min-height: 250px;
  padding: 28px;
  background: var(--card-bg);
}
.model-step:nth-child(2) { background: var(--card-bg-2); }
.model-step:nth-child(3) { background: var(--card-bg-3); }
.model-step .step-label {
  display: inline-block;
  margin-bottom: 35px;
  padding: 6px 8px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  font: 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 4px;
}
.model-step h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: -.04em;
  color: var(--heading-ink);
}
.model-step p { margin: 0; color: var(--muted); }
.model-step p strong { color: var(--purple); font-weight: 700; }
.model-step b {
  display: block;
  margin-top: 22px;
  color: var(--purple);
  font: 11px var(--mono);
  font-weight: 500;
  text-transform: uppercase;
}

/* ── 16. CREDIBILITY STRIP ── */
.credibility-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
}
.credibility-strip span {
  padding: 18px;
  background: var(--card-bg);
  color: var(--muted);
  font: 11px var(--mono);
  text-transform: uppercase;
}
.credibility-strip b {
  display: block;
  margin-bottom: 5px;
  color: var(--purple);
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -.04em;
  text-transform: none;
}

/* ── 17. UMBRELLA (company section, dark) ── */
.umbrella {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.umbrella p {
  max-width: 480px;
  color: var(--band-muted);
  font-size: 1.06rem;
}

.venture-map {
  padding: 22px;
  border: 1px solid var(--map-border);
  background: var(--map-bg);
  border-radius: 16px;
}
.map-line {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.map-line:last-child { margin-bottom: 0; }
.map-node {
  padding: 13px 14px;
  border: 1px solid var(--map-border);
  color: var(--map-node-ink);
  font-size: .91rem;
  border-radius: 8px;
}
.map-node small {
  display: block;
  margin-top: 3px;
  color: var(--map-node-muted);
  font: 10px var(--mono);
  text-transform: uppercase;
}
.map-connector {
  height: 1px;
  background: var(--map-connector);
}
.map-root {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--purple);
  color: var(--map-node-ink);
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  border-radius: 8px;
}
.map-root small {
  display: block;
  margin-top: 3px;
  color: var(--purple);
  font: 10px var(--mono);
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── 18. CTA BOX ── */
.cta {
  padding: 96px 0 112px;
}
.cta-box {
  display: grid;
  grid-template-columns: 1fr .75fr;
  gap: 60px;
  align-items: end;
  padding: 45px;
  background: var(--cta-bg);
  border: 1px solid var(--cta-border);
  border-radius: 16px;
  color: var(--cta-ink);
  box-shadow: var(--card-shadow);
  transition: background .25s ease;
}
.cta h2 {
  max-width: 680px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  letter-spacing: -.085em;
  line-height: .9;
  color: var(--cta-ink);
}
.cta-copy p {
  margin: 0;
  color: var(--cta-muted);
  font-size: 1.02rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

/* ── 19. FOOTER ── */
.footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
}

/* .site-footer: alias used by the repair guide/verdict pages (they share the
   footer markup with the shop pages but load this sheet, not repair-design). */
.site-footer {
  padding: 44px 28px 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  background: var(--alt-bg);
}
.site-footer p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 10px;
}
.site-footer a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-address {
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.site-footer .footer-address span {
  margin: 0 8px;
  color: var(--quiet);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: flex-start;
}
.footer p { margin: 0; font: 11px var(--mono); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}
.footer-links a {
  color: var(--muted);
  font: 11px var(--mono);
  text-decoration: none;
}
.footer-links a:hover { color: var(--purple); }

.footer-umbrella {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font: 11px var(--mono);
  color: var(--quiet);
}
.footer-umbrella a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 500;
}
.footer-umbrella a:hover { text-decoration: underline; }

/* ── 20. CONTACT FORM (repair shop) ── */
.form-grid {
  max-width: 640px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-field label {
  color: var(--muted);
  font: 12px var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  color: var(--ink);
  font: 15px var(--sans);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--input-focus-ring);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-actions .button { flex: 1; min-width: 180px; }

.form-diagnosis {
  padding: 18px;
  background: var(--diag-bg);
  color: var(--diag-ink);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: .95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  margin-bottom: 18px;
}

/* ── 21. GALLERY CARDS (repair showcase) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-sm);
}
.gallery-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.gallery-card-body {
  padding: 20px;
}
.gallery-card-body h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -.03em;
  color: var(--heading-ink);
}
.gallery-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

/* ── 22. SERVICE CARDS (repair 8-grid) ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service-card {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--purple);
  border-radius: 16px;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-sm);
}
.service-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -.03em;
  color: var(--heading-ink);
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

/* ── 23. STATS GRID ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat-cell {
  padding: 24px;
  background: var(--card-bg);
  text-align: center;
}
.stat-cell .num {
  display: block;
  color: var(--purple);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.04em;
}
.stat-cell .label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font: 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── 24. REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── 25. FOCUS STATES ── */
a:focus-visible, .button:focus-visible, .theme-toggle:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

/* ── 26. RESPONSIVE: TABLET (850px) ── */
@media (max-width: 850px) {
  .hero-grid,
  .proof-band,
  .umbrella,
  .cta-box {
    grid-template-columns: 1fr;
  }
  .hero-grid { gap: 48px; }
  .capability-board { max-width: 650px; }
  .model-grid { grid-template-columns: 1fr; }
  .model-step { min-height: 0; }
  .credibility-strip { grid-template-columns: repeat(2, 1fr); }
  .umbrella { gap: 35px; }
  .cta-box { gap: 32px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ── 27. RESPONSIVE: PHONE (620px) ── */
@media (max-width: 620px) {
  .wrap {
    width: min(var(--max), calc(100% - 34px));
  }
  .nav {
    min-height: 66px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .brand { font-size: .98rem; }
  .navlinks {
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .navlinks a { padding: 7px 8px; }
  .theme-toggle { margin-left: 0; }
  .nav-inner { flex-wrap: wrap; }
  .hero { padding: 55px 0 58px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .hero-lede { font-size: 1.06rem; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .button { width: 100%; }
  .capability-board { padding: 19px; }
  .section { padding: 70px 0; }
  .section h2 { font-size: clamp(2.7rem, 14vw, 4.3rem); }
  .what-grid { grid-template-columns: 1fr; }
  .what-card { min-height: 235px; }
  .proof-item {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }
  .map-line { grid-template-columns: 1fr; }
  .map-connector { display: none; }
  .map-line .map-node:nth-child(3) {
    margin-top: -5px;
    margin-left: 18px;
  }
  .credibility-strip { grid-template-columns: 1fr; }
  .cta { padding: 70px 0 85px; }
  .cta-box {
    padding: 30px 24px;
  }
  .footer-row { flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .inclusion { font-size: 11px; padding: 10px 14px; }
}

/* ── 28. REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .what-card:hover, .what-card:focus-visible,
  .proof-item:hover, .proof-item:focus-visible,
  .button-primary:hover {
    transform: none;
  }
  .what-card, .proof-item, .button-primary {
    transition: none;
  }
  .progress { display: none; }
}
