/* =========================================================================
   STRENGTH IN MEMBERSHIP — Burn Boot Camp x Sam's Club
   Shared Design DNA. Wireframe / interactive pitch deck.
   Self-contained. No build step. Loaded by every page.
   ========================================================================= */

:root {
  /* Burn Boot Camp side (dark) */
  --burn-cyan: #00B1E1;
  --burn-cyan-dim: #0a7ea0;
  --burn-black: #0a0a0b;
  --burn-ink: #141416;
  --burn-ink-2: #1c1c1f;

  /* Sam's Club side (light) */
  --sams-blue: #004f9a;
  --sams-interactive: #095ee2;
  --sams-tint: #e6f1fc;
  --sams-tint-2: #d3e6fb;

  /* Neutral zone */
  --white: #ffffff;
  --gray: #f2f2f2;
  --slate: #283645;
  --slate-dim: #5b6b7c;
  --line: rgba(40, 54, 69, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);

  /* System */
  --verify: #e8a33d;
  --seam: linear-gradient(180deg, var(--burn-cyan), var(--sams-interactive));
  --seam-h: linear-gradient(90deg, var(--burn-cyan), var(--sams-interactive));

  --f-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --nav-h: 68px;
  --rail-w: 56px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--burn-black);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typographic primitives ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .idx { opacity: 0.55; }
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--seam-h);
  display: inline-block;
}

.display {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
h1.display { font-size: clamp(2.8rem, 7vw, 6.2rem); }
h2.display { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3.display { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  max-width: 46ch;
}
.muted { color: var(--slate-dim); }

/* [VERIFY] badge — every unconfirmed figure carries this */
.verify {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1205;
  background: var(--verify);
  border-radius: 3px;
  padding: 2px 5px;
  vertical-align: middle;
  margin-left: 6px;
  white-space: nowrap;
}

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 90;
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 3vw, 34px);
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-dark);
}
.brandmark {
  display: flex; align-items: center; gap: 0;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.01em; color: var(--white); font-size: 1.02rem; line-height: 1;
}
.brandmark .b { color: var(--white); }
.brandmark .seam {
  width: 3px; height: 20px; margin: 0 9px;
  background: var(--seam); border-radius: 2px;
  box-shadow: 0 0 10px rgba(0,177,225,0.7);
}
.brandmark .s { color: var(--white); }
.brandmark .sub {
  font-family: var(--f-mono); font-weight: 400; font-size: 9px;
  letter-spacing: 0.2em; color: var(--slate-dim); margin-left: 12px;
  text-transform: uppercase; align-self: center;
}
@media (max-width: 720px){ .brandmark .sub { display: none; } }

.nav-links { display: flex; gap: 4px; margin-left: auto; }
.toggle { margin-left: 16px; }
@media (max-width: 900px){ .toggle { margin-left: auto; } }
.menu-btn { margin-left: 12px; }
.nav-links a {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.62);
  padding: 8px 12px; border-radius: 6px; position: relative; transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--seam-h);
}
@media (max-width: 900px){ .nav-links { display: none; } }

/* Audience toggle */
.toggle {
  display: flex; align-items: center; background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 3px;
  gap: 2px;
}
.toggle button {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  background: transparent; border: 0; border-radius: 999px;
  padding: 7px 12px; transition: all .25s var(--ease); white-space: nowrap;
}
.toggle button .dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px;
  vertical-align: middle; background: currentColor; opacity: 0.5;
}
.toggle button[data-lens="sams"] .dot { color: var(--sams-interactive); }
.toggle button[data-lens="burn"] .dot { color: var(--burn-cyan); }
.toggle button[data-lens="combined"] .dot {
  background: var(--seam-h); opacity: 1;
}
.toggle button.is-active { color: #fff; background: rgba(255,255,255,0.12); }
.toggle button.is-active .dot { opacity: 1; box-shadow: 0 0 8px currentColor; }
.toggle button .t-short { display: none; }
/* Compact labels + bigger tap targets on phones */
@media (max-width: 620px){
  .toggle button { padding: 9px 9px; }
  .toggle button .t-full { display: none; }
  .toggle button .t-short { display: inline; }
}

/* mobile menu button */
.menu-btn {
  display: none; background: transparent; border: 1px solid var(--line-dark);
  border-radius: 8px; width: 40px; height: 38px; color: #fff; font-size: 18px;
}
@media (max-width: 900px){ .menu-btn { display: inline-flex; align-items:center; justify-content:center; } }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 89;
  background: rgba(10,10,11,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  display: none; flex-direction: column; padding: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.5rem; color: #fff; padding: 12px 8px; border-bottom: 1px solid var(--line-dark);
}
.mobile-menu a .n { font-family: var(--f-mono); font-size: 11px; color: var(--slate-dim); margin-right: 12px; font-weight:400;}

/* =========================================================================
   PROGRESS RAIL (left) — slide chapters
   ========================================================================= */
.rail {
  position: fixed; left: 0; top: var(--nav-h); bottom: 0; width: var(--rail-w);
  z-index: 60; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 14px; pointer-events: none;
}
.rail a {
  pointer-events: auto; font-family: var(--f-mono); font-size: 10px;
  color: rgba(255,255,255,0.4); position: relative; width: 100%; text-align: center;
  padding: 3px 0; transition: color .2s;
}
.rail a::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.25);
  transition: all .3s var(--ease);
}
.rail a span { opacity: 0; transition: opacity .2s; }
.rail a.is-active { color: #fff; }
.rail a.is-active::before {
  width: 9px; height: 9px; background: var(--seam-h); box-shadow: 0 0 10px var(--burn-cyan);
}
.rail a:hover span { opacity: 1; }
.rail a:hover { color: #fff; }
@media (max-width: 1100px){ .rail { display: none; } }

/* =========================================================================
   SLIDE / STAGE SYSTEM
   ========================================================================= */
main { padding-top: var(--nav-h); }

.slide {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: clamp(48px, 7vh, 96px) clamp(20px, 5vw, 80px);
  padding-left: clamp(20px, 5vw, calc(var(--rail-w) + 40px));
  scroll-margin-top: var(--nav-h); overflow: hidden;
}
.slide.dark { background: var(--burn-black); color: rgba(255,255,255,0.92); }
.slide.light { background: var(--white); color: var(--slate); }
.slide.tint { background: var(--sams-tint); color: var(--slate); }
.slide.ink { background: var(--burn-ink); color: rgba(255,255,255,0.92); }

.slide .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 2; }

/* deck slide number, huge ghost numeral */
.slide .ghost-n {
  position: absolute; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(9rem, 30vw, 24rem); line-height: 0.8; z-index: 1;
  right: -0.06em; bottom: -0.14em; pointer-events: none; user-select: none;
}
.slide.dark .ghost-n { color: rgba(255,255,255,0.035); }
.slide.light .ghost-n { color: rgba(40,54,69,0.045); }
.slide.tint .ghost-n { color: rgba(9,94,226,0.05); }

/* THE SEAM — literal split-stage divider */
.split {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  position: relative; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-dark);
}
.split > .side { padding: clamp(24px, 3vw, 44px); min-height: 340px; }
.split .side-burn { background: var(--burn-ink); color: rgba(255,255,255,0.9); }
.split .side-sams { background: var(--white); color: var(--slate); }
.split::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  transform: translateX(-50%); background: var(--seam);
  box-shadow: 0 0 22px rgba(0,177,225,0.5); z-index: 3;
}
@media (max-width: 760px){
  .split { grid-template-columns: 1fr; }
  .split::after { top: 50%; bottom: auto; left: 0; right: 0; width: 100%; height: 3px;
    background: var(--seam-h); transform: translateY(-50%); }
}

.side-tag {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px;
}
.side-burn .side-tag { color: var(--burn-cyan); }
.side-sams .side-tag { color: var(--sams-interactive); }
.side-tag::before { content:""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* =========================================================================
   STAT CALLOUTS
   ========================================================================= */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 56px); }
.stat { position: relative; }
.stat .n {
  font-family: var(--f-display); font-weight: 800; line-height: 0.85;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem); letter-spacing: -0.01em;
}
.stat.cyan .n { color: var(--burn-cyan); }
.stat.blue .n { color: var(--sams-interactive); }
.stat.seam .n {
  background: var(--seam-h); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .k {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.72; margin-top: 10px; max-width: 22ch;
}

/* =========================================================================
   CARDS: FLIP (brand snapshots)
   ========================================================================= */
.flip {
  perspective: 1400px; height: 480px; cursor: pointer;
}
.flip .inner {
  position: relative; width: 100%; height: 100%; transition: transform .7s var(--ease);
  transform-style: preserve-3d;
}
.flip.flipped .inner { transform: rotateY(180deg); }
.flip .face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 16px; padding: 34px; display: flex; flex-direction: column;
  border: 1px solid var(--line-dark); overflow: hidden;
}
.flip .back { transform: rotateY(180deg); }
.flip .flip-hint {
  position: absolute; right: 18px; top: 18px; font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.55;
  display: inline-flex; align-items: center; gap: 6px;
}
.card-burn { background: var(--burn-ink); color: rgba(255,255,255,0.9); }
.card-burn .face { border-color: rgba(0,177,225,0.28); }
.card-sams { background: var(--white); color: var(--slate); }
.card-sams .face { border-color: rgba(9,94,226,0.24); }
.card-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.card-list li { display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-dark); }
.card-sams .card-list li { border-color: var(--line); }
.card-list .v { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; white-space: nowrap; }
.card-burn .card-list .v { color: var(--burn-cyan); }
.card-sams .card-list .v { color: var(--sams-blue); }
.card-list .l { font-size: 0.9rem; opacity: 0.8; }

/* =========================================================================
   PILLAR CARDS (expanding)
   ========================================================================= */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px){ .pillars { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .pillars { grid-template-columns: 1fr;} }
.pillar {
  background: var(--burn-ink); border: 1px solid var(--line-dark); border-radius: 14px;
  padding: 26px 22px; text-align: left; color: rgba(255,255,255,0.9);
  transition: border-color .3s, transform .3s var(--ease); position: relative;
}
.pillar:hover { border-color: rgba(0,177,225,0.4); transform: translateY(-4px); }
.pillar .p-n { font-family: var(--f-mono); font-size: 11px; color: var(--burn-cyan); letter-spacing: 0.14em; }
.pillar h4 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.35rem; margin: 14px 0 0; line-height: 1; }
.pillar .p-body {
  max-height: 0; overflow: hidden; opacity: 0; transition: all .45s var(--ease);
  font-size: 0.92rem; line-height: 1.5; color: rgba(255,255,255,0.7);
}
.pillar.open .p-body { max-height: 320px; opacity: 1; margin-top: 16px; }
.pillar .p-toggle { position: absolute; right: 20px; bottom: 20px; font-family: var(--f-mono);
  font-size: 20px; color: var(--burn-cyan); transition: transform .3s; }
.pillar.open .p-toggle { transform: rotate(45deg); }

/* =========================================================================
   MAP + RADIUS SLIDER
   ========================================================================= */
.map-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; }
@media (max-width: 900px){ .map-grid { grid-template-columns: 1fr; } }
.map-frame { position: relative; }
.us-map { width: 100%; height: auto; }
.us-map .state { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.14); stroke-width: 0.6; transition: fill .4s; }
.us-map .state.hot { fill: rgba(0,177,225,0.14); stroke: rgba(0,177,225,0.4); }
.dot-sams { fill: var(--sams-interactive); }
.dot-burn { fill: var(--burn-cyan); }
.dot-burn.in-range { filter: drop-shadow(0 0 4px var(--burn-cyan)); }
.dot-burn.out-range { opacity: 0.25; }

.slider-wrap { margin-top: 26px; }
.slider-wrap label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.7; display: block; margin-bottom: 12px; }
input[type="range"].radius {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--burn-cyan), var(--sams-interactive)); outline: none;
}
input[type="range"].radius::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 3px solid var(--burn-cyan); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
input[type="range"].radius::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--burn-cyan); cursor: pointer;
}
.radius-ticks { display: flex; justify-content: space-between; font-family: var(--f-mono);
  font-size: 10px; opacity: 0.55; margin-top: 8px; }

/* =========================================================================
   TIMELINE / ROADMAP
   ========================================================================= */
.timeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; position: relative; margin-top: 40px; }
@media (max-width: 800px){ .timeline { grid-template-columns: 1fr; } }
.phase { padding: 0 22px; position: relative; cursor: pointer; }
.phase::before {
  content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px;
  background: var(--line-dark);
}
.phase.active::before { background: var(--seam-h); }
.phase .node {
  width: 20px; height: 20px; border-radius: 50%; background: var(--burn-ink);
  border: 2px solid rgba(255,255,255,0.3); position: relative; z-index: 2; margin-bottom: 22px;
  transition: all .3s var(--ease);
}
.phase.active .node { border-color: var(--burn-cyan); background: var(--burn-cyan); box-shadow: 0 0 16px rgba(0,177,225,0.6); }
.phase .ph-tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--burn-cyan); text-transform: uppercase; }
.phase h4 { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.5rem; margin: 8px 0; line-height: 0.95; }
.phase .kpis { max-height: 0; overflow: hidden; opacity: 0; transition: all .45s var(--ease); }
.phase.active .kpis { max-height: 340px; opacity: 1; margin-top: 14px; }
.phase .kpis li { font-size: 0.9rem; margin-bottom: 8px; opacity: 0.82; }

/* =========================================================================
   IMPACT CALCULATOR
   ========================================================================= */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,50px); align-items: start; }
@media (max-width: 820px){ .calc { grid-template-columns: 1fr; } }
.calc-controls .ctrl { margin-bottom: 30px; }
.calc-controls .ctrl-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-controls .ctrl-head .name { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.calc-controls .ctrl-head .val { font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; color: var(--burn-cyan); }
input[type="range"].calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,0.18); outline: none;
}
input[type="range"].calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--burn-cyan); cursor: pointer; box-shadow: 0 0 12px rgba(0,177,225,0.5);
}
input[type="range"].calc-range::-moz-range-thumb { width:20px;height:20px;border-radius:50%;background:var(--burn-cyan);border:0;cursor:pointer;}
.calc-out { display: grid; gap: 16px; }
.calc-out .out-card {
  border: 1px solid var(--line-dark); border-radius: 14px; padding: 26px;
}
.calc-out .out-card.burn { background: var(--burn-ink); }
.calc-out .out-card.sams { background: rgba(255,255,255,0.04); }
.calc-out .out-n { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem,5vw,3.6rem); line-height: 0.9; }
.calc-out .burn .out-n { color: var(--burn-cyan); }
.calc-out .sams .out-n { color: var(--sams-interactive); }
.calc-out .out-k { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-top: 8px; }

/* =========================================================================
   LENS SYSTEM — audience toggle reframes the deck
   ========================================================================= */
/* headline stat swaps: show the stat for the active lens */
.lens-stat { display: none; }
body[data-lens="combined"] .lens-stat.for-combined,
body[data-lens="sams"]     .lens-stat.for-sams,
body[data-lens="burn"]     .lens-stat.for-burn { display: block; }

/* emphasis blocks: dim the non-active side, spotlight the active */
body[data-lens="sams"] .emph-burn { opacity: 0.4; filter: saturate(0.6); }
body[data-lens="burn"] .emph-sams { opacity: 0.4; filter: saturate(0.6); }
.emph-burn, .emph-sams { transition: opacity .4s, filter .4s, order .1s; }

/* reorder the "what each wins" pair so active lens leads */
.wins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px){ .wins-grid { grid-template-columns: 1fr; } }
body[data-lens="sams"] .win-sams { order: -1; }
body[data-lens="burn"] .win-burn { order: -1; }
.win-card.spotlight { border-width: 2px; }
body[data-lens="sams"] .win-sams { box-shadow: 0 0 0 2px var(--sams-interactive) inset; }
body[data-lens="burn"] .win-burn { box-shadow: 0 0 0 2px var(--burn-cyan) inset; }

/* lens-reactive accent line under section eyebrows */
.lens-accent { height: 3px; width: 60px; border-radius: 2px; background: var(--seam-h); transition: background .4s, width .4s; margin-top: 16px; }
body[data-lens="sams"] .lens-accent { background: var(--sams-interactive); width: 90px; }
body[data-lens="burn"] .lens-accent { background: var(--burn-cyan); width: 90px; }

/* a small live banner telling the viewer which lens is active */
.lens-note {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.7; margin-bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
}
.lens-note .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--seam-h); }
body[data-lens="sams"] .lens-note .swatch { background: var(--sams-interactive); }
body[data-lens="burn"] .lens-note .swatch { background: var(--burn-cyan); }

/* =========================================================================
   GENERIC BLOCKS, GRIDS, CHIPS
   ========================================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items: center; }
@media (max-width: 820px){ .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 820px){ .grid-3 { grid-template-columns: 1fr; } }

.chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 999px; padding: 7px 14px; opacity: 0.85;
}
.panel {
  border: 1px solid var(--line-dark); border-radius: 14px; padding: clamp(22px,3vw,34px);
  background: rgba(255,255,255,0.03);
}
.slide.light .panel, .slide.tint .panel { background: rgba(9,94,226,0.04); border-color: var(--line); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  padding: 15px 26px; border-radius: 10px; border: 0; transition: transform .2s, box-shadow .2s;
}
.btn-seam { background: var(--burn-cyan); color: #04222b; }
.btn-seam:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,177,225,0.35); }
.btn-ghost { background: transparent; border: 1px solid currentColor; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-blue { background: var(--sams-interactive); color: #fff; }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(9,94,226,0.3); }

/* =========================================================================
   COVER-specific: interlock seam + pulse
   ========================================================================= */
.cover { position: relative; }
.cover .cover-split {
  position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; z-index: 0;
}
.cover .cover-split .cl { background: var(--burn-black); }
.cover .cover-split .cr { background: #fff; }
.cover .cover-seam {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%);
  background: var(--seam); z-index: 1; box-shadow: 0 0 30px 4px rgba(0,177,225,0.6);
  animation: seampulse 3.2s var(--ease) infinite;
}
@keyframes seampulse {
  0%,100% { box-shadow: 0 0 24px 2px rgba(0,177,225,0.45); }
  50% { box-shadow: 0 0 46px 8px rgba(9,94,226,0.6); }
}
.cover .wrap { position: relative; z-index: 2; }
/* left half of cover heading reads on dark, right half on light — mix-blend for the seam word */
.cover h1 .l1 { color: #fff; }
.cover h1 .l2 { color: var(--burn-cyan); }
@media (max-width: 760px){
  .cover .cover-split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .cover .cover-split .cl { grid-row: 1; } .cover .cover-split .cr { grid-row: 2; }
  .cover .cover-seam { top: 50%; left: 0; right: 0; bottom: auto; width: 100%; height: 4px; background: var(--seam-h); transform: translateY(-50%); }
  .cover h1 .l2 { color: #fff; }
}

/* =========================================================================
   REVEAL ANIMATION
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--burn-black); color: rgba(255,255,255,0.6);
  border-top: 1px solid var(--line-dark); padding: 56px clamp(20px,5vw,80px) 40px;
}
.footer .f-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start;
  max-width: var(--maxw); margin: 0 auto; }
.footer .f-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer .f-links a { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer .f-links a:hover { color: #fff; }
.footer .f-note { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.06em; opacity: 0.5;
  max-width: var(--maxw); margin: 34px auto 0; line-height: 1.7; }
.footer .corephp { color: var(--burn-cyan); }

/* small helpers */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.flex { display: flex; } .gap { gap: 16px; } .wrap-flex { flex-wrap: wrap; } .items-center { align-items: center; }
.max-46 { max-width: 46ch; } .max-60 { max-width: 60ch; }

/* =========================================================================
   MOBILE REFINEMENTS  (phone navigation + reduced dead space)
   ========================================================================= */
@media (max-width: 760px) {
  /* Slides stop being forced to a full 100vh — this removes the long empty
     stretches you had to scroll past. They now size to their content with
     comfortable padding, so scrolling covers real material. */
  .slide {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: 56px;
    padding-left: 20px;
    padding-right: 20px;
  }
  /* Keep the cover feeling like a cover, using dynamic vh so the mobile URL
     bar doesn't clip it. */
  .slide.cover {
    min-height: 86vh;
    min-height: 86dvh;
    justify-content: center;
  }
  /* Tame the giant ghost numerals so they don't dominate small screens */
  .slide .ghost-n { font-size: clamp(7rem, 34vw, 12rem); opacity: 0.7; }

  /* Nav: tighter gaps so brandmark + toggle + menu never overflow */
  .nav { gap: 10px; padding: 0 12px; }
  .brandmark { font-size: 0.92rem; }
  .brandmark .seam { margin: 0 6px; height: 17px; }

  /* Slightly smaller display type so headlines don't run off-screen */
  h1.display { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  h2.display { font-size: clamp(1.9rem, 9vw, 2.8rem); }

  /* Comfortable stat spacing when stacked */
  .stat-row { gap: 22px 30px; }
}

@media (max-width: 480px) {
  .slide { padding-top: 34px; padding-bottom: 48px; }
  .brandmark .b, .brandmark .s { letter-spacing: 0; }
  /* give the mobile menu links a real thumb-sized target */
  .mobile-menu a { padding: 16px 8px; font-size: 1.6rem; }
}

/* Larger, easier-to-hit range thumbs on touch devices */
@media (pointer: coarse) {
  input[type="range"].radius::-webkit-slider-thumb { width: 28px; height: 28px; }
  input[type="range"].radius::-moz-range-thumb { width: 28px; height: 28px; }
  input[type="range"].calc-range::-webkit-slider-thumb { width: 26px; height: 26px; }
  input[type="range"].calc-range::-moz-range-thumb { width: 26px; height: 26px; }
  .toggle button { min-height: 36px; }
  .pillar, .flip, .phase { -webkit-tap-highlight-color: rgba(0,177,225,0.25); }
}

/* Very narrow phones: drop toggle dots + tighten nav so it never crowds */
@media (max-width: 400px) {
  .nav { gap: 8px; padding: 0 10px; }
  .toggle { gap: 0; }
  .toggle button { padding: 9px 8px; }
  .toggle button .dot { display: none; }
  .brandmark { font-size: 0.86rem; }
}
