/* MegaFit by Lagree · Brandcore proposal. Web-only, responsive, no print layout. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #0a0a0b;
  --steel: #c9ced4;
  --bone: #f3f0ea;
  --signal: #c93b20;
  --signal-ink: #a8301a;
  --sig-dark: #f3795c;

  /* Fluid type tokens: bounded clamp() with viewport scaling, matched by reflow. */
  --fs-body: clamp(16px, 0.55vw + 10px, 23px);
  --fs-lede: clamp(18px, 0.5vw + 11px, 24px);
  --fs-small: clamp(15px, 0.2vw + 13px, 17px);
  --fs-label: clamp(13px, 0.4vw + 8px, 16px);
  --fs-card-h: clamp(22px, 1.2vw + 8px, 32px);
  --fs-card-p: clamp(16px, 0.35vw + 13px, 19px);
  --fs-section: clamp(40px, 3.6vw + 4px, 70px);
  --fs-cover: clamp(60px, 8.4vw, 150px);
  --pad-x: clamp(20px, 4vw, 72px);
  --ct: 64px;
  --cb: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 760px) {
  :root { --ct: 56px; --cb: 72px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: #f4f5f6; }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f4f5f6; outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #f4f5f6; color: #0a0a0b; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- Chrome: opaque, theme-matched, isolated from scrolled content ---------- */
.chrome { position: fixed; left: 0; right: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 var(--pad-x); background: #0a0a0b; color: #f4f5f6; }
.chrome-top { top: 0; height: var(--ct); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.chrome-bottom { bottom: 0; height: var(--cb); border-top: 1px solid rgba(255, 255, 255, .14); }
body[data-theme="paper"] .chrome { background: #f3f0ea; color: #121214; border-color: rgba(18, 18, 20, .16); }
body[data-theme="paper"] .chrome-bottom { border-color: rgba(18, 18, 20, .16); }

.cobrand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cobrand-brand img { height: 22px; width: auto; }
.cobrand-client { height: 26px; width: auto; }
/* Logo variants by theme: the white marks on dark chrome, the black marks on bone chrome. */
.on-light { display: none; }
body[data-theme="paper"] .on-dark { display: none; }
body[data-theme="paper"] .on-light { display: block; }
.cobrand-x { font-size: 20px; line-height: 1; opacity: .8; }
.chrome-label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.chrome-right { display: flex; align-items: center; gap: 12px; }
.counter { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: .06em; }
.btn-ghost { min-height: 44px; min-width: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid currentColor; background: transparent; font-size: 15px; font-weight: 600; }
.prepared { font-size: var(--fs-label); opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.nav-btn { min-height: 44px; min-width: 44px; padding: 10px 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.nav-btn svg { font-size: 18px; }
.nav-btn-primary { background: #f4f5f6; color: #0a0a0b; border-color: #f4f5f6; }
body[data-theme="paper"] .nav-btn-primary { background: #121214; color: #f3f0ea; border-color: #121214; }
.nav-btn:disabled { opacity: .4; cursor: default; }

.progress { position: fixed; left: 0; right: 0; top: var(--ct); height: 2px; z-index: 41; background: rgba(255, 255, 255, .08); }
.progress span { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left center; transform: scaleX(.111); transition: transform 500ms var(--ease); }

/* Right slide rail (desktop only) */
.rail { position: fixed; right: 10px; top: 50%; transform: translateY(-50%); z-index: 39; display: flex; flex-direction: column; gap: 4px; }
.rail button { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; display: grid; place-items: center; color: inherit; }
.rail button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; }
.rail button[aria-current="true"]::before { background: currentColor; opacity: 1; }
body[data-theme="dark"] .rail { color: #f4f5f6; }
body[data-theme="paper"] .rail { color: #121214; }

/* ---------- Deck and slides ---------- */
.deck { position: fixed; left: 0; right: 0; top: 0; bottom: 0; overflow: hidden; }
.slide {
  position: absolute; left: 0; right: 0; top: var(--ct); bottom: var(--cb);
  overflow: hidden; background: var(--bg); color: var(--text);
  visibility: hidden; opacity: 0; z-index: 1;
  transform: translate3d(calc(var(--dir, 1) * 7%), 0, 0);
  transition: transform 560ms var(--ease), opacity 460ms ease, visibility 0s linear 560ms;
}
.slide.is-active { visibility: visible; opacity: 1; transform: none; z-index: 10; transition: transform 560ms var(--ease), opacity 460ms ease, visibility 0s; }
.slide.is-leaving { visibility: visible; opacity: 0; z-index: 9; transform: translate3d(calc(var(--dir, 1) * -7%), 0, 0); transition: transform 520ms var(--ease), opacity 420ms ease; }
/* BOOM: the cover stays opaque while the plate breaks, then its ground fades so the incoming slide shows under the debris. */
.slide.is-boom-out { visibility: visible; opacity: 1; transform: none; z-index: 12; background: transparent; transition: background-color 420ms ease 140ms; }
.boom-run .slide.is-active { transition: transform 620ms var(--ease) 320ms, opacity 520ms ease 320ms, visibility 0s; }
.slide[data-theme="dark"] { --bg: #0a0a0b; --text: #f4f5f6; --muted: #c2c7ce; --line: rgba(255, 255, 255, .16); --card: #15161a; --sig: var(--sig-dark); }
.slide[data-theme="paper"] { --bg: #f3f0ea; --text: #121214; --muted: #3e3b37; --line: rgba(18, 18, 20, .16); --card: #fffdf8; --sig: var(--signal-ink); }

.slide-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: clamp(20px, 3.4vh, 44px) var(--pad-x) clamp(24px, 4vh, 48px); -webkit-overflow-scrolling: touch; }
.wrap { max-width: 1480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 32px); }

.kicker { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.small { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.note { font-size: var(--fs-small); color: var(--muted); }
.serif, .slide em { font-family: "Instrument Serif", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.h-section { font-size: var(--fs-section); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
.h-section em { font-size: 1.02em; }
.slide-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(18px, 3vw, 48px); align-items: end; }
.slide-head .kicker { margin-bottom: 14px; }
.slide-head .h-section { margin-bottom: 0; }
.slide-head .lede { align-self: end; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag-conflict { color: var(--sig); font-weight: 600; }
.tag-price, .tag-contact, .tag-booking, .tag-structure { color: var(--muted); }
.src { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted); letter-spacing: .02em; }

/* ---------- 01 Cover ---------- */
.slide-cover { --cover-bg: #0a0a0b; }
.slide-cover .slide-scroll { padding-top: clamp(12px, 2vh, 28px); padding-bottom: clamp(12px, 2vh, 28px); }
.cover-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(20px, 3vw, 56px); align-items: center; min-height: 100%; }
.cover-copy { display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 24px); position: relative; z-index: 2; transition: opacity 260ms ease; }
.boom-run .cover-copy { opacity: 0; }
.h-cover { font-size: var(--fs-cover); line-height: .86; letter-spacing: -.06em; font-weight: 600; color: #f4f5f6; }
.h-cover em { font-size: 1.04em; color: #e9ecef; letter-spacing: -.02em; }
.cover-copy .lede { max-width: 40ch; }
.ticker { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.ticker li { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 7px 12px; color: #d9dde2; }
.cover-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.cover-meta dt { margin-bottom: 4px; }
.cover-meta dd { font-size: var(--fs-small); color: #e3e6ea; }
.scroll-cue { align-self: flex-start; min-height: 44px; padding: 10px 14px 10px 0; background: transparent; border: 0; color: #f4f5f6; display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.scroll-cue svg { font-size: 22px; }
.cover-stage { position: relative; height: min(64vh, 680px); min-height: 360px; border-radius: 6px; background: radial-gradient(60% 55% at 50% 45%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 70%); }
.cover-stage::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 6%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0)); pointer-events: none; }
.boom-run .cover-stage { opacity: 0; transition: opacity 260ms ease; }

/* ---------- Plate fallback: shown until the 3D is ready, and for no-WebGL or reduced motion ---------- */
.plate-fallback { display: block; position: absolute; inset: 0; }
.cover-3d-on .plate-fallback { display: none; }
.plate-face { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: min(78%, 560px); aspect-ratio: 2 / 1; border-radius: 22px; background: radial-gradient(120% 90% at 30% 20%, #272b32 0%, #111216 58%, #0b0c0f 100%); box-shadow: inset 0 0 0 1px #3a3e45, 0 34px 70px rgba(0, 0, 0, .6); display: grid; place-items: center; padding: 9%; }
.plate-face img { width: 80%; height: auto; }
.rail-fallback { position: absolute; left: 12%; right: 12%; top: 14%; height: 12px; border-radius: 8px; background: linear-gradient(#e2e6eb, #7d848d); }
.spring { position: absolute; top: 20%; height: 32%; width: 42px; transform: translateX(-50%); }
.spring-l { left: 30%; }
.spring-r { left: 70%; }

/* Full-viewport WebGL layer for the cover artifact and the BOOM. Hidden unless active. */
.cover3d { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; height: 100dvh; pointer-events: none; z-index: 15; display: none; }
.cover3d.is-on { display: block; }
.boom-run .cover3d { z-index: 30; }
.no-webgl .cover3d, .reduce-motion .cover3d { display: none !important; }

/* Carriage sweep between later slides: a steel bar with a vermilion trailing spark line. */
.carriage { position: fixed; left: 0; right: 0; top: 50%; height: 3px; z-index: 35; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #f4f5f6 38%, var(--signal) 64%, rgba(201, 59, 32, 0)); box-shadow: 0 0 18px rgba(201, 59, 32, .45); transform: translateX(-100%); }
.carriage.run { animation: carriage-run 640ms cubic-bezier(.3, .6, .2, 1) both; }
.carriage.run-rev { animation: carriage-run-rev 640ms cubic-bezier(.3, .6, .2, 1) both; }
@keyframes carriage-run { 0% { transform: translateX(-100%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
@keyframes carriage-run-rev { 0% { transform: translateX(100%); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(-100%); opacity: 0; } }

/* ---------- 02 Audit ---------- */
.audit-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; }
.audit-head > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; }
.audit-photo { display: flex; flex-direction: column; gap: 8px; }
.audit-photo img { width: 100%; height: clamp(180px, 30vh, 300px); object-fit: cover; border-radius: 6px; }
.audit-photo figcaption { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted); }
.findings { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.finding { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(16px, 1.6vw, 24px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.finding h3 { font-size: var(--fs-card-h); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; }
.finding p:not(.tag):not(.src) { font-size: var(--fs-card-p); line-height: 1.5; color: var(--text); }
.finding .src { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }

/* ---------- 03 Gap ---------- */
.slide-gap .slide-scroll { padding-top: clamp(14px, 2.4vh, 32px); }
.gap-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 56px); align-items: stretch; min-height: 100%; }
.gap-photo { position: relative; min-height: 420px; border-radius: 6px; overflow: hidden; display: flex; }
.gap-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.gap-photo figcaption { position: absolute; left: 14px; bottom: 12px; background: rgba(10, 10, 11, .78); color: #f4f5f6; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); padding: 6px 10px; border-radius: 4px; }
.gap-copy { display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 22px); min-width: 0; }
.gap-copy .h-section em { color: #e9ecef; }
.gap-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.gap-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(16px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 8px; }
.gap-card p:not(.label) { font-size: var(--fs-card-p); line-height: 1.5; }
.gap-card-late { border-color: var(--sig-dark); }
.gap-big { font-size: clamp(40px, 3.8vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 4px 0; }
.gap-card-late .gap-big { color: var(--sig-dark); }
.path { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.path-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.path-row p:not(.label) { font-size: var(--fs-small); line-height: 1.5; color: var(--text); }
.path-row-target p:not(.label) { font-weight: 600; }

/* ---------- 04 Flagship concept ---------- */
.slide-flagship { --bg: #0a0a0b; }
.slide-flagship .slide-scroll { padding-top: clamp(14px, 2.4vh, 30px); }
.flagship-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.flagship-head .h-section { font-size: clamp(38px, 3.2vw + 4px, 62px); }
.concept { display: grid; grid-template-columns: minmax(0, 1fr) clamp(230px, 19vw, 300px); gap: clamp(16px, 2vw, 28px); align-items: start; }
.browser { min-width: 0; background: #101114; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1a1b20; }
.browser-bar span:not(.url) { width: 10px; height: 10px; border-radius: 50%; background: #3a3d45; }
.browser-bar .url { margin-left: 8px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; color: #b9bec6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); background: #0e0f12; flex-wrap: wrap; }
.site-mark { height: 30px; width: auto; }
.tablist { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: #d9dde2; font-size: 16px; font-weight: 600; }
.tab[aria-selected="true"] { background: #f4f5f6; color: #0a0a0b; }
.site-view { height: clamp(420px, 62vh, 580px); overflow-y: auto; overscroll-behavior: contain; padding: 18px; background: #0e0f12; }
.hero { display: grid; gap: 14px; }
.hero img { width: 100%; height: clamp(170px, 26vh, 250px); object-fit: cover; border-radius: 6px; }
.hero-copy { display: flex; flex-direction: column; gap: 10px; }
.hero-copy h3 { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.hero-copy p:not(.chip) { font-size: 17px; color: #c9ced4; }
.chip { display: inline-block; align-self: flex-start; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .06em; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .26); border-radius: 999px; color: #e3e6ea; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-cta { min-height: 44px; padding: 12px 18px; border-radius: 999px; border: 0; background: var(--signal); color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .005em; }
.btn-line { min-height: 44px; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .42); background: transparent; color: #f4f5f6; font-size: 16px; font-weight: 600; }
.btn-block { width: 100%; }
.panel-block { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.panel-block h4 { font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.illus { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; color: #b9bec6; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 8px; }
.next-strip { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.next-card { background: #15161a; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: #e3e6ea; }
.next-name { font-weight: 600; font-size: 17px; }
.studio-block { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, .58fr); gap: 16px; align-items: center; }
.studio-photo { width: 100%; height: 170px; object-fit: cover; border-radius: 6px; }
.studio-list { list-style: none; display: grid; gap: 8px; font-size: 16px; line-height: 1.45; color: #e3e6ea; }
.studio-list strong { font-weight: 600; color: #f4f5f6; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #f4f5f6; font-size: 15px; }
.filter[aria-pressed="true"] { background: #f4f5f6; color: #0a0a0b; border-color: #f4f5f6; }
.illus-line { margin-top: 10px; font-size: 14px; color: #b9bec6; }
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.day { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.day-head { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 14px; color: #b9bec6; text-transform: uppercase; letter-spacing: .06em; }
.class-btn { min-height: 64px; text-align: left; padding: 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .18); background: #15161a; color: #f4f5f6; display: flex; flex-direction: column; gap: 3px; }
.class-btn .t { font-size: 16px; font-weight: 600; }
.class-btn .s { font-size: 14px; color: #b9bec6; }
.class-btn[aria-pressed="true"] { border-color: #f4f5f6; box-shadow: inset 0 0 0 1px #f4f5f6; }
.class-detail { margin-top: 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 170px); gap: 14px; align-items: start; }
.class-detail h4 { font-size: 20px; font-weight: 600; }
.class-detail p { font-size: 16px; color: #e3e6ea; }
.class-detail figure { background: #3d3f44; border-radius: 6px; overflow: hidden; }
.class-detail figure img { width: 100%; height: 110px; object-fit: contain; }
.seats { height: 10px; background: rgba(255, 255, 255, .14); border-radius: 999px; overflow: hidden; margin: 6px 0; }
.seats span { display: block; height: 100%; background: #f4f5f6; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.detail-note { font-size: 14px; color: #b9bec6; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.book-grid h4 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.book-grid p { font-size: 16px; color: #e3e6ea; margin-bottom: 10px; }
.book-grid .small { color: #b9bec6; margin-bottom: 10px; }
.price-list { list-style: none; display: grid; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 17px; color: #e3e6ea; }
.price-list strong { font-weight: 600; color: #f4f5f6; }
.phone { position: relative; }
.phone-frame { border: 9px solid #1b1c20; border-radius: 34px; background: #050506; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .6); aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; }
.phone-screen { height: 100%; display: flex; flex-direction: column; background: #0e0f12; }
.phone-screen > img { width: 100%; height: 40%; object-fit: cover; flex-shrink: 0; }
.phone-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.phone-title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.phone-body .small { color: #c9ced4; }
.phone-body .btn-cta { margin-top: 6px; }
.readable-detail { display: none; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 16px; gap: 10px; flex-direction: column; }
.readable-detail h4 { font-size: 20px; font-weight: 600; }

/* ---------- 05 System ---------- */
.system-grid { display: grid; grid-template-columns: minmax(0, .32fr) minmax(0, .68fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.system-photo { margin: 0; border-radius: 6px; overflow: hidden; min-height: 360px; }
.system-photo img { width: 100%; height: 100%; object-fit: cover; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(16px, 1.6vw, 22px); display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.pillar h3 { font-size: var(--fs-card-h); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.pillar p:not(.fixes) { font-size: var(--fs-card-p); line-height: 1.5; }
.pillar .icon { font-size: 32px; color: var(--signal-ink); }
.fixes { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted); }

/* ---------- 06 Proof ---------- */
.slide-proof { position: absolute; }
.proof-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.proof-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.proof-wrap { position: relative; z-index: 1; }
.compare { position: relative; min-height: clamp(300px, 46vh, 420px); border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); background: #0e0f12; --split: 50%; }
.compare-panel { position: absolute; inset: 0; padding: clamp(20px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.compare-after { background: #15161a; }
.compare-after h3 { font-size: clamp(30px, 3vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; max-width: 18ch; }
.compare-before { background: #0e0f12; clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.compare-before h3 { font-size: clamp(30px, 3vw, 52px); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: #c9ced4; }
.compare-panel p:not(.label) { font-size: var(--fs-lede); color: #d3d8de; max-width: 42ch; }
.compare-after .label, .compare-before .label { color: #c9ced4; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: #f4f5f6; transform: translateX(-1px); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; background: #f4f5f6; transform: translate(-50%, -50%); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2px solid #0a0a0b; border-left: 2px solid #0a0a0b; transform: translateY(-50%); }
.compare-handle span::before { left: 12px; transform: translateY(-50%) rotate(-45deg); }
.compare-handle span::after { right: 12px; transform: translateY(-50%) rotate(135deg); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 3; }
.compare:focus-within .compare-handle span { outline: 3px solid #f4f5f6; outline-offset: 4px; }

/* ---------- 07 Roadmap ---------- */
.roadmap-band { height: clamp(120px, 20vh, 200px); border-radius: 6px; overflow: hidden; }
.roadmap-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.roadmap-head { margin-top: 4px; }
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.phase { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: clamp(18px, 1.8vw, 26px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.phase-day { font-size: clamp(44px, 4.4vw, 78px); font-weight: 600; letter-spacing: -.05em; line-height: 1; color: var(--text); }
.phase h3 { font-size: var(--fs-card-h); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.phase p:not(.phase-day) { font-size: var(--fs-card-p); line-height: 1.5; }
.phase p strong { font-weight: 600; }

/* ---------- 08 Engagement ---------- */
.engage-band { height: clamp(110px, 18vh, 180px); border-radius: 6px; overflow: hidden; margin: 0; }
.engage-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.level { background: #15161a; border: 1px solid rgba(255, 255, 255, .16); border-radius: 6px; padding: clamp(18px, 1.8vw, 26px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.level h3 { font-size: clamp(26px, 2.2vw, 36px); line-height: 1.05; letter-spacing: -.03em; font-weight: 600; }
.level-sub { font-size: var(--fs-card-p); color: #c9ced4; }
.level ul { list-style: none; display: grid; gap: 9px; font-size: var(--fs-card-p); line-height: 1.45; color: #f4f5f6; }
.level ul li { padding-left: 18px; position: relative; }
.level ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 2px; background: var(--sig-dark); }
.level-rec { border: 2px solid var(--sig-dark); background: #1a1210; }
.tag-rec { align-self: flex-start; background: var(--signal); color: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 600; }
.engage-cta { margin-top: 4px; }

/* ---------- 09 Close ---------- */
.close-wrap { min-height: 100%; gap: clamp(16px, 2.4vh, 26px); }
.close-grid { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); gap: clamp(20px, 3vw, 56px); align-items: start; }
.rep { display: flex; flex-direction: column; gap: 12px; }
.rep img { width: 100%; max-width: 384px; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }
.rep figcaption { display: flex; flex-direction: column; gap: 4px; }
.rep figcaption strong { font-size: clamp(26px, 2.2vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.rep figcaption span { font-size: var(--fs-small); color: var(--muted); }
.close-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.close-copy .h-section { font-size: clamp(40px, 3.6vw + 4px, 64px); }
.contacts { list-style: none; display: grid; gap: 4px; margin-top: 4px; }
.contacts li { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: clamp(18px, .6vw + 12px, 22px); }
.contacts a { color: var(--text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.scheduler { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 48px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 16px; text-align: left; }
.slot[aria-checked="true"] { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.scheduler .btn-cta { background: #121214; color: #f3f0ea; align-self: flex-start; }
.draft-out { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid var(--line); background: #fffdf8; color: #121214; font-size: 15px; line-height: 1.4; }
.close-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.cobrand-foot { gap: 12px; }
.cobrand-foot img { height: 24px; width: auto; }
.cobrand-foot img.cobrand-client-dark { height: 26px; }
.cobrand-foot .cobrand-x { color: var(--text); }
.close-foot .small { color: var(--muted); }
.slide-close .lede { max-width: 44ch; }

/* ---------- Index overlay ---------- */
.index-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8, 8, 9, .97); overflow-y: auto; }
.index-overlay[hidden] { display: none; }
.index-panel { max-width: 1240px; margin: 0 auto; padding: 22px var(--pad-x) 40px; display: flex; flex-direction: column; gap: 18px; }
.index-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.index-head .kicker { color: #c9ced4; }
.index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.index-card { min-height: 104px; text-align: left; padding: 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .2); background: #15161a; color: #f4f5f6; display: flex; flex-direction: column; gap: 10px; }
.index-card .n { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: #c9ced4; }
.index-card .t { font-size: clamp(18px, 1vw + 10px, 24px); font-weight: 600; line-height: 1.15; }
.index-card[aria-current="true"] { border-color: #f4f5f6; box-shadow: inset 0 0 0 1px #f4f5f6; }
.noscript { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--pad-x); background: #f3f0ea; color: #121214; z-index: 80; }

/* ---------- Reduced motion ---------- */
.reduce-motion .slide, .reduce-motion .slide.is-leaving, .reduce-motion .slide.is-active { transition: none !important; }
.reduce-motion .progress span { transition: none; }
.reduce-motion .carriage { display: none !important; }
.reduce-motion .cover-copy, .reduce-motion .cover-stage { transition: none !important; }

/* ---------- No-JS fallback: every slide reads top to bottom ---------- */
html:not(.js) body { overflow: auto; height: auto; }
html:not(.js) .deck { position: static; overflow: visible; }
html:not(.js) .slide { position: relative; visibility: visible; opacity: 1; transform: none; top: auto; bottom: auto; min-height: 100vh; }
html:not(.js) .slide-scroll { position: static; overflow: visible; }
html:not(.js) .chrome, html:not(.js) .progress, html:not(.js) .rail, html:not(.js) .cover3d, html:not(.js) .carriage, html:not(.js) .index-overlay, html:not(.js) .skip { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: minmax(0, .36fr) minmax(0, .64fr); }
  .rail { display: none; }
}
@media (max-width: 1099px) {
  .gap-grid { grid-template-columns: 1fr; }
  .gap-photo { min-height: 240px; height: 240px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-photo { min-height: 240px; max-height: 300px; }
  .concept { grid-template-columns: 1fr; }
  .phone { display: none; }
  .readable-detail { display: flex; }
  .slide-head { grid-template-columns: 1fr; }
  .audit-head { grid-template-columns: 1fr; }
  .flagship-head { grid-template-columns: 1fr; }
  .levels { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cover-grid { grid-template-columns: 1fr; gap: 22px; }
  .cover-stage { height: 46vh; min-height: 300px; order: -1; }
  .phases { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .close-grid { grid-template-columns: 1fr; }
  .rep img { max-width: 300px; }
  .studio-block { grid-template-columns: 1fr; }
  .studio-photo { height: 150px; }
  .next-strip { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .class-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .chrome { gap: 10px; padding: 0 16px; }
  .chrome-label { display: none; }
  .cobrand-brand img { height: 18px; }
  .cobrand-client { height: 22px; }
  .cobrand-x { font-size: 16px; }
  .btn-ghost { padding: 6px 10px; font-size: 14px; }
  .prepared { display: none; }
  .nav-buttons { width: 100%; justify-content: space-between; }
  .nav-btn { flex: 1; justify-content: center; }
  .nav-btn span { font-size: 16px; }
  .chrome-bottom { padding: 8px 16px; }
  .slide-scroll { padding-left: 18px; padding-right: 18px; }
  .findings, .pillars, .gap-cards { grid-template-columns: 1fr; }
  .path-row { grid-template-columns: 1fr; gap: 4px; }
  .slide-head .h-section, .h-section { font-size: clamp(36px, 9vw, 48px); }
  .h-cover { font-size: clamp(56px, 16vw, 84px); }
  .cover-meta { grid-template-columns: 1fr; }
  .cover-stage { height: 38vh; min-height: 250px; }
  .cover-copy .lede { font-size: 18px; }
  .browser-bar .url { font-size: 12px; }
  .site-view { height: 360px; }
  .tab { padding: 8px 10px; font-size: 15px; }
  .week { grid-template-columns: 1fr; }
  .day-head { display: none; }
  .class-btn { min-height: 56px; }
  .contacts li { grid-template-columns: 1fr; gap: 2px; }
  .slots { grid-template-columns: 1fr; }
  .index-grid { grid-template-columns: 1fr 1fr; }
  .compare { min-height: 340px; }
  .compare-after h3, .compare-before h3 { font-size: 30px; }
  .levels { gap: 12px; }
}
@media (max-width: 400px) {
  .index-grid { grid-template-columns: 1fr; }
  .contacts a { font-size: 17px; }
}

/* Center the shorter close column while keeping stacked layouts natural. */
@media (min-width: 901px) {
  .slide-close .rep { align-self: center; }
}
