/* Wall Works × Brandcore — one private web presentation.
   Palette is the client's own: warm cream, sign red, charcoal, chrome.
   Type scale is fluid and bounded; every substantive line reads at 100% zoom. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-500-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/instrument-serif-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --carbon: #0b0d10;
  --carbon-2: #12151a;
  --carbon-3: #191d24;
  --paper: #f6f2ea;
  --paper-2: #ede7dc;
  --card: #fffdf8;
  --ink: #14171c;
  --ink-2: #333941;
  --ink-3: #5b626c;

  --red: #c8232c;
  --red-deep: #8e1520;
  --red-ink: #79121b;
  --red-soft: #ffb3b8;
  --chrome: #b9bec6;

  --t-body: clamp(16px, 1.15vw, 22px);
  --t-lead: clamp(17px, 1.25vw, 24px);
  --t-h1: clamp(40px, 5.2vw, 92px);
  --t-h2: clamp(29px, 3.45vw, 60px);
  --t-h3: clamp(19px, 1.42vw, 27px);
  --t-label: clamp(13px, 0.875vw, 14.5px);
  --t-micro: clamp(13.5px, 0.9vw, 15px);

  --pad-x: clamp(18px, 4.4vw, 88px);
  --pad-y: clamp(14px, 2vh, 26px);
  --dock-h: 58px;
  --radius: clamp(12px, 1vw, 18px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--carbon);
  color: #fff;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow: hidden; }

h1, h2, h3, h4, p, figure, figcaption, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: 0.92em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1em; height: 1em;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.12em;
}

/* ---------------------------------------------------------------- deck shell */
.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--carbon);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 0 var(--pad-x) calc(var(--dock-h) + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  color: var(--ink);
  background: var(--paper);
}
.slide.active { display: flex; }
.slide.is-leaving { display: flex; z-index: 2; }
.slide.is-entering { display: flex; z-index: 3; }

.slide.carbon {
  --bg: var(--carbon);
  --surface: var(--carbon-2);
  --line: rgba(255, 255, 255, 0.14);
  --ink: #ffffff;
  --ink-2: #e3e7ec;
  --ink-3: #b9c0c9;
  --em: var(--red-soft);
  --rule: var(--red);
  color: #fff;
}
.slide.paper {
  --bg: var(--paper);
  --surface: var(--card);
  --line: rgba(20, 23, 28, 0.14);
  --ink: #14171c;
  --ink-2: #333941;
  --ink-3: #4d545e;
  --em: var(--red-deep);
  --rule: var(--red);
  color: var(--ink);
  background: var(--paper);
}

.carbon {
  background:
    radial-gradient(1100px 620px at 82% 8%, rgba(200, 35, 44, 0.14), transparent 62%),
    radial-gradient(900px 600px at 6% 100%, rgba(255, 179, 184, 0.05), transparent 60%),
    var(--carbon);
}

/* ------------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: calc(var(--pad-y) * 0.75) 0 12px;
  margin: 0 calc(-1 * var(--pad-x));
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bc-logo { height: clamp(15px, 1.05vw, 18px); width: auto; flex: none; }
.brand-x { font-size: 16px; color: var(--ink-3); line-height: 1; }
.client-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: #fffdf8;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.client-pill img { height: clamp(17px, 1.25vw, 22px); width: auto; }
.section-label {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.pagenum {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  color: var(--ink-3);
  white-space: nowrap;
}

/* -------------------------------------------------------------------- texts */
.kicker {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.45;
  text-wrap: pretty;
}
.kicker .dot {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: middle;
  position: relative;
  top: -1px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }
h1 { font-size: var(--t-h1); line-height: 0.94; letter-spacing: -0.045em; margin: 0.22em 0 0.24em; }
h2 { font-size: var(--t-h2); line-height: 1.0; letter-spacing: -0.038em; margin: 0.18em 0 0.2em; }
h3 { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -0.02em; }
h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--em);
}.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 62ch;
}
.note {
  font-size: var(--t-micro);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 96ch;
  border-left: 2px solid var(--rule);
  padding-left: 12px;
  margin-top: 12px;
}

.slide-head {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(20px, 3vw, 52px);
  align-items: end;
  padding: clamp(16px, 2.2vh, 30px) 0 clamp(14px, 2vh, 26px);
}
.slide-head .lead { padding-bottom: 6px; }

.foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.foot-loc { text-align: center; }
.foot .pagenum { font-size: var(--t-label); color: var(--ink-3); }

/* -------------------------------------------------------------------- cover */
.cover {
  --bg: var(--carbon);
  --surface: var(--carbon-2);
  --line: rgba(255, 255, 255, 0.14);
  --ink: #ffffff;
  --ink-2: #e3e7ec;
  --ink-3: #b9c0c9;
  --em: var(--red-soft);
  --rule: var(--red);
  color: #fff;
  background:
    radial-gradient(1100px 620px at 82% 8%, rgba(200, 35, 44, 0.16), transparent 62%),
    radial-gradient(900px 600px at 6% 100%, rgba(255, 179, 184, 0.05), transparent 60%),
    var(--carbon);
}
.cover-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(18px, 3vw, 52px);
  align-items: center;
  min-height: calc(100dvh - var(--dock-h) - 120px);
  padding: clamp(10px, 2vh, 26px) 0;
}
.cover-copy { position: relative; z-index: 2; max-width: 720px; }
.cover h1 { margin-top: 0.26em; }
.cover .lead { margin-top: 4px; max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(16px, 2.4vh, 28px) 0 0; }
.facts li {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.06em;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
}
.cover-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(20px, 3vh, 36px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.prepared { display: flex; align-items: center; gap: 10px; font-size: var(--t-label); color: var(--ink-2); }
.prepared b { color: #fff; font-weight: 600; margin-left: 0.28em; }
.prepared img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.35); }
.cover-hint { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: var(--t-label); color: var(--ink-3); }

.cover-stage {
  position: relative;
  min-height: clamp(320px, 58vh, 660px);
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 52% 44%, rgba(255, 255, 255, 0.08), transparent 70%),
    radial-gradient(70% 70% at 50% 100%, rgba(200, 35, 44, 0.26), transparent 68%),
    #07080a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cover-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}
.cover-stage::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: 15%;
  height: 22%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(200, 35, 44, 0.34), transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}
#logo-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-caption {
  position: absolute;
  left: 18px; right: 18px; bottom: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.56);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.stage-caption span { color: rgba(255, 255, 255, 0.36); }

/* static sign fallback (phone, reduced motion, no WebGL) */
.sign-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  perspective: 1100px;
}
.cover-stage[data-webgl="unavailable"] .sign-fallback,
.cover-stage[data-webgl="static"] .sign-fallback { display: flex; }
.cover-stage[data-webgl="unavailable"] #logo-scene,
.cover-stage[data-webgl="static"] #logo-scene { display: none; }
.sign-plate {
  position: relative;
  width: min(100%, 560px);
  padding: 34px 26px 18px;
  border-radius: 14px;
  background:
    radial-gradient(120% 100% at 20% 0%, #fffdf6, #efe7d7 70%, #e2d8c4);
  box-shadow:
    0 0 0 7px #a91720,
    0 0 0 9px #7c1018,
    0 28px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: rotate(-2.4deg) rotateY(-8deg);
}
.sign-plate img { width: 100%; height: auto; }
.sign-engrave {
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(121, 18, 27, 0.25);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-align: center;
  color: #6d1a20;
}
.sign-bolts i {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #98a0aa 55%, #4e555e);
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.sign-bolts i:nth-child(1) { top: 9px; left: 9px; }
.sign-bolts i:nth-child(2) { top: 9px; right: 9px; }
.sign-bolts i:nth-child(3) { bottom: 9px; left: 9px; }
.sign-bolts i:nth-child(4) { bottom: 9px; right: 9px; }

/* -------------------------------------------------------------------- audit */
.audit-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  gap: clamp(20px, 2.6vw, 44px);
  align-items: start;
  padding-bottom: 4px;
}
.audit-evidence { display: grid; gap: 14px; position: sticky; top: 74px; }
.shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.shot-dots { display: inline-flex; gap: 4px; }
.shot-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20,23,28,.22); }
.shot img { width: 100%; height: auto; }
.shot figcaption {
  font-size: var(--t-micro);
  line-height: 1.45;
  color: var(--ink-3);
  padding: 9px 11px 11px;
  border-top: 1px solid var(--line);
}
.shot figcaption b { color: var(--ink); }
.shot-mobile { max-width: 300px; }
.shot-mobile img { max-height: 340px; object-fit: cover; object-position: top; }
.shot-desktop img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.gap-phone { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mini-phone {
  width: min(100%, 268px);
  border: 7px solid #191d24;
  border-radius: 26px;
  overflow: hidden;
  background: #191d24;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
}
.mini-phone img { width: 100%; height: auto; }
.gap-phone figcaption { font-size: var(--t-micro); line-height: 1.5; color: var(--ink-3); max-width: 34ch; text-align: center; }
.gap-phone figcaption b { color: #fff; }

.findings { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(16px, 1.6vw, 26px); align-content: start; }
.finding {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.finding:first-child { border-top: 0; padding-top: 0; }
.sev {
  align-self: start;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 6px;
  border-radius: 3px;
  text-align: center;
  color: #fff;
  background: var(--ink-3);
}
.sev.high { background: var(--red); }
.sev.med { background: #8a5a12; }
.sev.low { background: #5b626c; }
.finding h3 { font-size: clamp(17px, 1.15vw, 21px); line-height: 1.2; letter-spacing: -0.01em; }
.finding p { font-size: var(--t-body); line-height: 1.4; color: var(--ink-2); margin-top: 3px; }
.finding .src {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-top: 4px;
}
.audit-credit {
  font-size: var(--t-micro);
  line-height: 1.55;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 6px;
}
.audit-credit b { color: var(--ink); }

/* ---------------------------------------------------------------------- gap */
.gap-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(22px, 3vw, 52px);
  align-items: center;
  padding: clamp(10px, 2vh, 26px) 0;
}
.gap-copy .lead { margin-top: 2px; max-width: 52ch; }
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 14px; margin-top: clamp(18px, 2.6vh, 30px); }
.path {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.path.next { border-color: rgba(200, 35, 44, 0.62); background: rgba(200, 35, 44, 0.09); }
.path-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.path.next .path-tag { color: var(--red-soft); }
.path ol { counter-reset: step; display: grid; gap: 9px; }
.path li {
  counter-increment: step;
  position: relative;
  padding-left: 30px;
  font-size: var(--t-body);
  line-height: 1.35;
  color: var(--ink-2);
}
.path li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 21px; height: 21px;
  display: grid;
  place-items: center;
}
.path.next li::before { color: #fff; border-color: var(--red); background: var(--red); }
.path.next li { color: #fff; }
.gap-photo { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gap-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.gap-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px 14px;
  font-size: var(--t-micro);
  line-height: 1.45;
  color: #f2eee6;
  background: linear-gradient(transparent, rgba(7, 8, 10, 0.92));
}
.gap-photo figcaption b { color: #fff; }

/* ----------------------------------------------------------------- flagship */
.flagship-stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 15vw, 250px);
  gap: clamp(16px, 2.2vw, 34px);
  align-items: start;
  padding: 4px 0 6px;
}
.concept-panel { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.concept-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.05em;
  color: var(--ink-2);
}
.tabs button[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.detail-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  color: var(--ink-2);
  white-space: nowrap;
}
.detail-panel { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.detail-panel[hidden] { display: none; }
.detail-panel:not([hidden]) { display: grid; }
.detail-panel b { display: block; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 3px; }
.detail-panel p { font-size: 15px; line-height: 1.4; color: var(--ink-2); }

.browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(20, 23, 28, 0.24);
  background: #fff;
  box-shadow: 0 22px 50px rgba(20, 23, 28, 0.16);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #e8e2d7;
  border-bottom: 1px solid rgba(20, 23, 28, 0.14);
}
.browser-dots { display: inline-flex; gap: 4px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(20,23,28,.24); }
.browser-url {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #fffdf8;
  border-radius: 5px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  min-width: 0;
}
.browser-url b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-url .ico { color: #2f7d4f; }
.browser-tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; }

/* concept site */
.site { background: #fbf8f2; color: #17191d; --site-red: #c8232c; font-family: var(--font-body); }
.site button { border: 0; background: none; }
.site-nav {
  display: flex; align-items: center; gap: 16px;
  padding: 9px 14px;
  background: #fffdf8;
  border-bottom: 1px solid rgba(20,23,28,.12);
}
.site-logo { height: 30px; width: auto; }
.site-links { display: flex; gap: 14px; margin-left: auto; }
.site-links button { font-size: 14px; color: #333941; padding: 3px 0; border-bottom: 1px solid transparent; }
.site-links button:hover { border-bottom-color: var(--site-red); }
.site-call { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: #17191d; text-decoration: none; white-space: nowrap; }
.site-call .ico { color: var(--site-red); }
.site-cta {
  background: var(--site-red) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 3px;
  white-space: nowrap;
}
.site-cta:hover { background: #a91720 !important; }
.site-view { display: none; padding: 14px; }
.site-view.is-active { display: block; }
.site-hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 18px; align-items: center; }
.site-eyebrow { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: #6b727c; }
.site-h { font-family: var(--font-display); font-size: clamp(24px, 2vw, 34px); line-height: 1; letter-spacing: -.035em; margin: 7px 0 8px; font-weight: 500; }
.site-h em, .site-h2 em { font-family: var(--font-serif); font-style: italic; color: var(--site-red); }
.site-p { font-size: 14.5px; line-height: 1.45; color: #3a414a; max-width: 44ch; }
.site-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.site-actions a { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(23,25,29,.3); }
.site-trust { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; color: #6b727c; margin-top: 10px; }
.site-hero-media { position: relative; border-radius: 5px; overflow: hidden; }
.site-hero-media img { width: 100%; height: clamp(150px, 23vh, 300px); object-fit: cover; object-position: center 38%; }
.site-hero-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72));
  padding: 14px 9px 7px;
}
.site-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.site-service {
  text-align: left;
  padding: 10px 11px;
  border: 1px solid rgba(20,23,28,.14);
  border-radius: 4px;
  background: #fffdf8;
}
.site-service:hover { border-color: var(--site-red); }
.site-service b { display: block; font-size: 13.5px; line-height: 1.2; }
.site-service span { display: block; font-size: 12.5px; color: #6b727c; margin-top: 2px; line-height: 1.3; }
.site-view-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; align-items: end; margin-bottom: 14px; }
.site-h2 { font-family: var(--font-display); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
.site-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.site-service-grid article { border: 1px solid rgba(20,23,28,.14); border-radius: 5px; padding: 12px; background: #fffdf8; }
.site-service-grid article span { font-family: var(--font-mono); font-size: 11.5px; color: var(--site-red); }
.site-service-grid article b { display: block; font-size: 15px; margin: 3px 0 4px; }
.site-service-grid article p { font-size: 13.5px; line-height: 1.4; color: #4a515b; }
.site-band { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 12px 14px; border-radius: 5px; background: #f1ece1; }
.site-band p { font-size: 14px; line-height: 1.4; }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.work-card { text-align: left; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; background: #e8e2d7; }
.work-card.is-selected { border-color: var(--site-red); }
.work-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.work-card span { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; padding: 6px 7px; background: #fffdf8; }
.work-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0; margin-top: 9px; border-radius: 5px; overflow: hidden; border: 1px solid rgba(20,23,28,.14); background: #fffdf8; }
.work-detail img { width: 100%; height: 150px; object-fit: cover; }
.work-detail figcaption { padding: 12px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.work-detail figcaption span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--site-red); }
.work-detail figcaption b { font-size: 15px; line-height: 1.3; }
.estimate-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 16px; }
.estimate-fields { display: grid; gap: 8px; }
.estimate-fields label { display: grid; gap: 3px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: #6b727c; }
.estimate-fields select, .estimate-fields input, .estimate-fields textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: #17191d;
  background: #fffdf8;
  border: 1px solid rgba(20,23,28,.24);
  border-radius: 3px;
  padding: 7px 8px;
  width: 100%;
}
.estimate-fields textarea { resize: vertical; min-height: 54px; }
.est-hint { font-size: 12.5px; color: #6b727c; }
.estimate-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.estimate-actions a { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(23,25,29,.3); }
.estimate-side { display: grid; gap: 9px; align-content: start; }
.estimate-card { border: 1px solid rgba(20,23,28,.14); border-radius: 5px; padding: 11px; background: #fffdf8; }
.estimate-card b { font-size: 13.5px; }
.estimate-card ol { margin-top: 6px; display: grid; gap: 4px; counter-reset: n; }
.estimate-card li { counter-increment: n; font-size: 12.5px; line-height: 1.35; color: #4a515b; padding-left: 18px; position: relative; }
.estimate-card li::before { content: counter(n); position: absolute; left: 0; font-family: var(--font-mono); font-size: 10.5px; color: var(--site-red); }
.estimate-card p { font-size: 12.5px; line-height: 1.4; color: #4a515b; margin-top: 4px; }
.estimate-card a { color: var(--site-red); font-weight: 600; text-decoration: none; }
.estimate-card.muted { background: #f1ece1; }

/* phone */
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; --site-red: #c8232c; }
.phone {
  width: 100%;
  max-width: 250px;
  border-radius: 26px;
  padding: 7px;
  background: linear-gradient(160deg, #2a2f36, #0c0e11);
  box-shadow: 0 18px 40px rgba(20, 23, 28, 0.26);
}
.phone-screen { background: #fbf8f2; border-radius: 20px; overflow: hidden; color: #17191d; }
.phone-status { display: flex; justify-content: space-between; padding: 7px 12px 2px; font-family: var(--font-mono); font-size: 9px; color: #6b727c;  align-items: center; }
.phone-sys { width: 26px; height: 11px; flex: none; color: #6b727c; }
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 3px 12px 7px; }
.phone-top img { height: 21px; width: auto; }
.phone-top span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #4a515b; }
.phone-hero img { width: 100%; aspect-ratio: 1 / 0.86; object-fit: cover; }
.phone-h { font-family: var(--font-display); font-size: 22px; line-height: 1.02; letter-spacing: -.03em; padding: 11px 12px 3px; }
.phone-p { font-size: 12px; color: #4a515b; padding: 0 12px 10px; }
.phone-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 0 12px 7px;
  padding: 10px;
  background: var(--site-red);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  width: calc(100% - 24px);
  white-space: nowrap;
}
.phone-cta.ghost { background: transparent; color: #17191d !important; border: 1px solid rgba(20,23,28,.3); margin-bottom: 14px; }
.phone-cap { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--ink-3); text-align: center; }

/* ------------------------------------------------------------------- system */
.pillars {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-content: start;
  padding-bottom: 4px;
}
.pillar {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(14px, 1.5vw, 22px);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.p-num {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: .1em;
  color: var(--red-soft);
}
.pillar h3 { font-size: clamp(20px, 1.5vw, 26px); }
.pillar p { font-size: var(--t-body); line-height: 1.45; color: var(--ink-2); }
.p-out {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: .05em;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: auto;
}

/* -------------------------------------------------------------------- proof */
.ba { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ba-stage {
  position: relative;
  flex: 1;
  min-height: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0d10;
  user-select: none;
  touch-action: pan-y;
}
.ba-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.ba-after { position: absolute; inset: 0; }
.ba-before { position: absolute; inset: 0; width: 100%; overflow: hidden; will-change: clip-path; }
.ba-before .ba-img { width: 100%; }
.ba-tag {
  position: absolute;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 3px;
  background: rgba(11, 13, 16, 0.82);
  color: #fff;
  z-index: 3;
}
.ba-tag.before { left: 12px; }
.ba-tag.after { right: 12px; background: var(--red); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 52%;
  width: 2px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
}
.ba-handle i {
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.ba-handle i::before, .ba-handle i::after {
  content: "";
  position: absolute;
  top: 50%; width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.ba-handle i::before { left: 11px; border-right: 6px solid #14171c; }
.ba-handle i::after { right: 11px; border-left: 6px solid #14171c; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 4; margin: 0; }
.ba figcaption { display: flex; gap: 14px; align-items: baseline; font-size: var(--t-micro); line-height: 1.5; color: var(--ink-3); }
.ba figcaption span { font-family: var(--font-mono); letter-spacing: .06em; white-space: nowrap; color: var(--ink-2); }
.ba figcaption b { color: var(--ink); }
.proof-foot { display: flex; justify-content: space-between; gap: 18px; font-size: var(--t-micro); color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.proof-src { font-family: var(--font-mono); letter-spacing: .05em; }

/* ------------------------------------------------------------------ roadmap */
.phases {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-content: start;
  padding-bottom: 10px;
}
.phase {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(14px, 1.5vw, 22px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase.featured { border-color: var(--red); box-shadow: 0 0 0 1px rgba(200,35,44,.18) inset; }
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phase-days {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: .05em;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
}
.phase.featured .phase-days { background: var(--red); color: #fff; }
.phase p { font-size: var(--t-body); line-height: 1.42; color: var(--ink-2); }
.phase ul { display: grid; gap: 7px; margin-top: 2px; }
.phase li { display: flex; gap: 8px; font-size: var(--t-body); line-height: 1.35; color: var(--ink-2); }
.phase li .ico { color: var(--red); margin-top: .28em; }
.phase-owner {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: .04em;
  color: var(--ink-3);
}
.supply {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 11px;
  font-size: var(--t-micro);
  color: var(--ink-3);
}
.supply b { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.supply span { position: relative; padding-left: 12px; }
.supply span::before { content: ""; position: absolute; left: 0; top: .48em; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }

/* --------------------------------------------------------------- engagement */
.tiers {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  align-items: stretch;
  align-content: start;
  padding-bottom: 6px;
}
.tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(16px, 1.6vw, 24px);
  background: rgba(255,255,255,.03);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier.recommended { border-color: var(--red); background: linear-gradient(180deg, rgba(200,35,44,.14), rgba(200,35,44,.04)); }
.tier-flag {
  position: absolute;
  top: -11px; left: clamp(16px, 1.6vw, 24px);
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 3px;
}
.tier-tag { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tier h3 { font-size: clamp(24px, 1.9vw, 34px); }
.tier-fit { font-size: var(--t-body); line-height: 1.42; color: var(--ink-2); }
.tier ul { display: grid; gap: 7px; margin-top: 2px; }
.tier li { font-size: var(--t-body); line-height: 1.35; color: var(--ink-2); padding-left: 16px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--red); }
.tier-note { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .04em; color: var(--ink-3); }
.tier-line { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .04em; color: var(--ink-2); }
.tier-line + .tier-note { margin-top: 0; border-top: 0; padding-top: 0; }

/* -------------------------------------------------------------------- close */
.close-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(22px, 3vw, 54px);
  align-items: center;
  padding: clamp(12px, 2vh, 26px) 0 8px;
}
.close-copy .lead { max-width: 46ch; }
.partner {
  display: grid;
  grid-template-columns: clamp(96px, 9vw, 132px) minmax(0, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(14px, 1.5vw, 20px);
  background: var(--surface);
  margin-top: clamp(16px, 2.4vh, 26px);
}
.partner-photo {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.partner-kicker { font-family: var(--font-mono); font-size: var(--t-label); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); display: block; }
.partner-name { display: block; font-family: var(--font-display); font-size: clamp(24px, 1.9vw, 32px); letter-spacing: -.03em; margin-top: 2px; }
.partner-role { display: block; font-size: var(--t-body); color: var(--ink-2); margin-top: 2px; }
.partner-note { font-size: var(--t-body); line-height: 1.45; color: var(--ink-2); margin-top: 8px; max-width: 44ch; }
.partner-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.partner-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--t-body);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(20,23,28,.28);
  padding-bottom: 1px;
}
.partner-links a .ico { color: var(--red); }
.signoff { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.signoff img { height: 20px; width: auto; }
.signoff span { font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: .06em; color: var(--ink-3); }

.scheduler {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(16px, 1.7vw, 24px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.scheduler h3 { font-size: clamp(21px, 1.6vw, 27px); }
.sched-p { font-size: var(--t-body); line-height: 1.45; color: var(--ink-2); }
.slot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot-row button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 6px;
  padding: 9px 10px;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: .03em;
  color: var(--ink-2);
}
.slot-row button:hover { border-color: var(--red); color: var(--red-deep); }
.sched-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sched-fields label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.sched-fields label:first-of-type { grid-column: 1; }
.sched-fields input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 8px 9px;
  font-size: var(--t-body);
  margin-top: 4px;
}
.sched-status { font-size: var(--t-micro); color: var(--ink-3); min-height: 1.4em; }
.sched-status.bad { color: var(--red-deep); }
.sched-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-size: var(--t-body);
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 6px;
}
.sched-cta:hover { background: #a91720; }
.sched-fine { font-size: var(--t-micro); line-height: 1.45; color: var(--ink-3); }

/* -------------------------------------------------------------------- chrome */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.1); z-index: 70; }
.progress i { display: block; height: 100%; width: 11.111%; background: var(--red); transition: width .5s cubic-bezier(.22,1,.36,1); }

.rail {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 999px;
  background: rgba(8, 10, 13, 0.55);
  backdrop-filter: blur(6px);
}
.rail button {
  width: 8px; height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
}
.rail button.on { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,35,44,.22); }

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--dock-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(8, 10, 13, 0.96);
  border-top: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}
.dock-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
}
.dock-btn:hover { border-color: var(--red); background: rgba(200,35,44,.2); }
.dock-count { font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; color: #d8dce2; min-width: 54px; text-align: center; }
.dock-sep { width: 1px; height: 22px; background: rgba(255,255,255,.18); margin: 0 6px; }
.dock-index {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: #fff;
  border-radius: 6px;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
}
.dock-index:hover { border-color: var(--red); }

.index-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 48px);
  background: rgba(8, 10, 13, 0.97);
  color: #fff;
  overflow-y: auto;
}
.index-overlay.open { display: flex; }
.index-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.14); padding-bottom: 14px; }
.index-kicker { display: block; font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #b9c0c9; margin-bottom: 6px; }
.index-head b { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 34px); letter-spacing: -.03em; }
.index-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); background: transparent; color: #fff; border-radius: 6px; font-size: 18px; }
.index-close:hover { border-color: var(--red); }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.index-grid button {
  text-align: left;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.035);
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 104px;
}
.index-grid button:hover { border-color: var(--red); background: rgba(200,35,44,.12); }
.index-grid span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--red-soft); }
.index-grid b { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.02em; }
.index-grid i { font-style: normal; font-size: 14px; line-height: 1.4; color: #b9c0c9; }

/* --------------------------------------------------------------- transitions */
.is-cutting .slide.is-leaving { pointer-events: none; }
.is-cutting .slide.is-entering { pointer-events: none; }
.deck-seam { position: fixed; inset: 0; z-index: 92; pointer-events: none; visibility: hidden; }
.deck-seam b, .deck-seam i { position: absolute; top: 0; bottom: 0; left: 0; width: 18vw; }
/* every Next carries the painter's language: the leading edge of a wet roller pass with a paint wash behind it */
.deck-seam i {
  width: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #ffe3e5 0%, #e03a44 30%, #c8232c 62%, #8e1520 100%);
  box-shadow: 0 0 26px rgba(200,35,44,.9), 0 0 3px rgba(255,255,255,.95), inset 2px 0 0 rgba(255,255,255,.55);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 88px, rgba(0,0,0,.35) 88px 94px, #000 94px 190px);
          mask-image: repeating-linear-gradient(180deg, #000 0 88px, rgba(0,0,0,.35) 88px 94px, #000 94px 190px);
}
.deck-seam b { width: 24vw; background: linear-gradient(90deg, rgba(200,35,44,0), rgba(200,35,44,.5) 46%, rgba(142,21,32,.72) 82%, rgba(142,21,32,0)); filter: blur(5px); }
.deck-vignette { position: fixed; inset: 0; z-index: 91; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(0,0,0,.55) 100%); opacity: 0; }
#boom-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 96; pointer-events: none; }
@keyframes deck-shake {
  0%, 100% { transform: translate3d(0, 0, 0); }
  10% { transform: translate3d(-10px, 7px, 0) scale(1.004); }
  22% { transform: translate3d(9px, -6px, 0); }
  36% { transform: translate3d(-7px, 4px, 0); }
  52% { transform: translate3d(5px, -3px, 0); }
  70% { transform: translate3d(-3px, 2px, 0); }
  86% { transform: translate3d(2px, -1px, 0); }
}
body.is-exploding .deck { animation: deck-shake .46s cubic-bezier(.36,.07,.19,.97) both; }

/* ------------------------------------------------------------------- motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rail button, .dock-btn { transition: none; }
}

/* ------------------------------------------------------------- breakpoints */
@media (max-width: 1180px) {
  .slide-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 8px; }
  .slide-head .lead { max-width: 72ch; }
  .audit-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .finding { grid-template-columns: 60px minmax(0, 1fr); }
  .flagship-stage { grid-template-columns: minmax(0, 1fr) 190px; }
  .site-nav { gap: 10px; }
  .site-links { gap: 10px; }
}

@media (max-width: 1020px) {
  .flagship-stage { grid-template-columns: minmax(0, 1fr); }
  .ba { flex: 0 0 auto; }
  .ba-stage { flex: 0 0 auto; height: 360px; min-height: 0; }
  .phone-wrap { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 16px; margin-top: 6px; }
  .phone-wrap .phone { max-width: 190px; }
  .phone-cap { max-width: 12ch; text-align: left; padding-top: 8px; }
  .detail-toggle { display: inline-block; }
  .cover-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cover-stage { min-height: 330px; order: -1; }
  .cover h1 { font-size: clamp(38px, 6.4vw, 64px); }
  .stage-caption { display: none; }
  .sign-fallback { padding: 18px; }
  .sign-plate { padding: 24px 18px 13px; }
  .sign-engrave { font-size: 9.5px; letter-spacing: .09em; }
  .audit-grid { grid-template-columns: minmax(0, 1fr); }
  .audit-evidence { position: static; }
  .gap-grid { grid-template-columns: minmax(0, 1fr); }
  .gap-phone { align-items: flex-start; }
  .gap-phone figcaption { text-align: left; }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
  .phases, .pillars, .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:last-child, .tier:last-child { grid-column: span 2; }
}

@media (max-width: 820px) {
  .findings { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --dock-h: 60px; --pad-y: 12px; }
  .section-label { display: none; }
  .findings { grid-template-columns: minmax(0, 1fr); }
  .finding { grid-template-columns: 72px minmax(0, 1fr); }
  .phone-wrap { display: none; }
  .concept-bar { flex-direction: column; align-items: stretch; gap: 8px; }
  .tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; gap: 5px; }
  .tabs button { padding: 7px 5px; text-align: center; font-size: 13px; }
  .detail-toggle { display: none; }
  .foot { flex-direction: column; align-items: flex-start; gap: 3px; }
  .foot-loc { text-align: left; }
  .cover-stage { min-height: 250px; }
  .cover h1 { font-size: clamp(31px, 8.8vw, 44px); }
  .cover .lead { font-size: 16px; }
  .cover-foot { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
  .facts { gap: 6px; margin-top: 14px; }
  .facts li { padding: 5px 9px; }
  .sign-plate { padding: 20px 14px 11px; border-radius: 10px; box-shadow: 0 0 0 6px #a91720, 0 0 0 8px #7c1018, 0 18px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.9); }
  .sign-engrave { font-size: 8.5px; letter-spacing: .06em; }
  .audit-evidence { grid-template-columns: minmax(0, 1fr); }
  .shot-mobile { max-width: 260px; }
  .shot-mobile img { max-height: 300px; }
  .paths { grid-template-columns: minmax(0, 1fr); }
  .pillars, .phases, .tiers { grid-template-columns: minmax(0, 1fr); }
  .pillar:last-child, .tier:last-child { grid-column: auto; }
  .site-nav { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .site-links { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .site-call { display: none; }
  .site-cta { margin-left: auto; }
  .site-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .site-hero-media { order: -1; }
  .site-hero-media img { aspect-ratio: 16 / 9; }
  .site-strip { grid-template-columns: 1fr 1fr; }
  .site-view { padding: 12px; }
  .site-view-head { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .site-service-grid { grid-template-columns: minmax(0,1fr); }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-detail { grid-template-columns: minmax(0,1fr); }
  .work-detail img { height: 130px; }
  .estimate-grid { grid-template-columns: minmax(0,1fr); }
  .estimate-side { display: none; }
  .ba-stage { flex: 0 0 auto; height: 300px; min-height: 0; }
  .ba figcaption { flex-direction: column; gap: 4px; }
  .ba-before .ba-img { width: 100%; }
  .ba-before { width: 100%; }
  .proof-foot { flex-direction: column; gap: 4px; }
  .partner { grid-template-columns: minmax(0, 1fr); }
  .partner-photo { width: 132px; }
  .sched-fields { grid-template-columns: minmax(0, 1fr); }
  .slot-row { grid-template-columns: minmax(0, 1fr); }
  .detail-panel:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .dock { gap: 4px; }
  .dock-index span { display: none; }
  .index-grid { grid-template-columns: minmax(0, 1fr); }
  .pause-note { display: none; }
}

@media (max-width: 420px) {
  .topbar { gap: 8px; }
  .bc-logo { height: 14px; }
  .client-pill img { height: 16px; }
  .pagenum { font-size: 12px; }
  .dock-count { min-width: 46px; font-size: 12px; }
  .cover h1 { font-size: 33px; }
  .site-cta { padding: 7px 10px; font-size: 13px; }
  .site-call { font-size: 12.5px; }
}

@media (max-height: 780px) and (min-width: 1021px) {
  .cover-stage { min-height: 0; height: calc(100dvh - var(--dock-h) - 120px); }
  .cover-grid { min-height: calc(100dvh - var(--dock-h) - 110px); }
  .slide-head { padding: 10px 0 10px; }
  .pillar, .phase, .tier { padding: 13px; }
}

@media (min-width: 1181px) and (max-height: 820px) {
  .slide-head { padding: 8px 0 12px; }
  .audit-credit { padding-top: 8px; margin-top: 2px; }
  .gap-grid { padding: 4px 0; }
  .paths { margin-top: 12px; }
  .foot { padding: 8px 0 6px; }
  .highlight-note, .note { margin-top: 8px; }
  .phone { max-width: 180px; }
  .phone-hero img { height: 118px; object-fit: cover; }
  .phone-h { font-size: 17px; padding: 8px 10px 2px; }
  .phone-p { font-size: 11px; padding-bottom: 6px; }
  .phone-cta { padding: 7px; font-size: 10.5px; margin-bottom: 5px; letter-spacing: -0.01em; }
  .phone-status { padding: 5px 10px 0; }
  .phone-top { padding: 2px 10px 5px; }
}

/* Tall desktops (1920x1080 and up): use the height instead of leaving a void under short grids.
   Padding, gaps and card headings grow with the viewport; body copy keeps its bounded fluid size. */
@media (min-width: 1700px) and (min-height: 960px) {
  .audit-grid { align-items: center; }
  .findings { align-content: center; }
  .finding { padding: clamp(14px, 2vh, 24px) 0; gap: 14px; }
  .finding h3 { font-size: clamp(19px, 1.2vw, 24px); }
  .pillars, .phases, .tiers { align-content: center; gap: clamp(16px, 2.2vh, 30px) clamp(16px, 1.5vw, 28px); }
  .pillar, .phase, .tier { padding: clamp(20px, 2.6vh, 36px) clamp(20px, 1.8vw, 36px); gap: clamp(9px, 1.2vh, 16px); }
  .pillar h3 { font-size: clamp(24px, 1.6vw, 31px); }
  .phase h3 { font-size: clamp(24px, 1.6vw, 31px); }
  .tier h3 { font-size: clamp(28px, 2vw, 38px); }
  .pillar p, .phase p, .phase li, .tier-fit, .tier li { font-size: clamp(20px, 1.2vw, 24px); }
  .phases { padding-bottom: 20px; }
}

/* ---------------------------------------------------------------- whole-composition centering (G5, deck-301)
   Flagged slides 2/5/7/8: inner kicker, heading, lead, body cards and closing note move as ONE group
   inside .slide-stage, centered between the fixed masthead and the anchored footer. The stage keeps
   natural block margins that collapse to zero when content is taller than the stage, so tall slides
   keep reachable top flow. No font shrinking, scaling or dummy space. Passable slides stay untouched. */
.slide-stage {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: min-content;
}
.slide-stage > :first-child { margin-top: auto; }
.slide-stage > :last-child { margin-bottom: auto; }
.slide-stage .audit-grid,
.slide-stage .pillars,
.slide-stage .phases,
.slide-stage .tiers { flex: 0 1 auto; }
