/* Jimboy's Tacos · Brandcore sales deck
   Fluid type tokens, opaque chrome, 100dvh slides with inner scroll for long content. */

@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; 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; }
@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: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ink: #120E0C;
  --ink-2: #1D1815;
  --ink-3: #2A221E;
  --bone: #F7F0E4;
  --paper: #F5EDDD;
  --paper-2: #EDE2CC;
  --red: #E11C1B;
  --red-text-dark: #FF6A5B;
  --red-text-paper: #B3140F;
  --corn: #F2B33D;
  --corn-deep: #8A5A12;
  --muted-dark: #CBC1B0;
  --muted-paper: #4E443D;
  --hair-dark: rgba(247, 240, 228, 0.16);
  --hair-paper: rgba(26, 20, 18, 0.16);

  --f-sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --fs-body: clamp(16px, 0.5vw + 11px, 22px);
  --fs-lede: clamp(17px, 0.5vw + 12px, 23px);
  --fs-label: clamp(13px, 0.3vw + 10px, 15px);
  --fs-fine: clamp(13px, 0.25vw + 11px, 15px);
  --fs-h2: clamp(36px, min(3.85vw, 6.6vh), 62px);
  --fs-h1: clamp(52px, min(10.6vw, 15.5vh), 168px);
  --fs-card: clamp(22px, 1.1vw + 14px, 30px);

  --chrome-h: 74px;
  --chrome-b: 56px;
  --pad-x: clamp(20px, 3.6vw, 64px);
  --chrome-bg: rgba(18, 14, 12, 0.94);
  --chrome-ink: var(--bone);
  --chrome-hair: var(--hair-dark);
}
html[data-tone="paper"] {
  --chrome-bg: rgba(245, 237, 221, 0.97);
  --chrome-ink: var(--ink);
  --chrome-hair: var(--hair-paper);
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [role="tab"]:focus-visible {
  outline: 3px solid var(--corn); outline-offset: 3px; border-radius: 6px;
}
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.125em; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--corn); color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- deck frame ---------- */
.deck { position: fixed; inset: 0; }
#coverCanvas {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1; pointer-events: none; display: block;
}
html.no-webgl #coverCanvas, html:not(.cover-ready) #coverCanvas { opacity: 0; }
html.boom-live #coverCanvas { z-index: 40; }

.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 11; background: rgba(0, 0, 0, 0.2); }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0.111); transition: transform 0.45s cubic-bezier(.2, .7, .2, 1); }

.chrome {
  position: fixed; left: 0; right: 0; z-index: 10; background: var(--chrome-bg);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad-x); color: var(--chrome-ink); backdrop-filter: none;
}
.chrome.top { top: 0; height: calc(var(--chrome-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid var(--chrome-hair); }
.chrome.bottom { bottom: 0; height: calc(var(--chrome-b) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--chrome-hair); }
.lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lk-bc { height: 22px; width: auto; }
.lk-bc-paper { display: none; }
html[data-tone="paper"] .lk-bc-light { display: none; }
html[data-tone="paper"] .lk-bc-paper { display: block; }
.lk-x { font-family: var(--f-serif); font-size: 24px; line-height: 1; color: var(--red); }
.lk-client { height: 34px; width: auto; }
.lk-name { font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.chrome-label { margin: 0; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--chrome-ink); opacity: 0.85; }
.chrome-right { display: flex; align-items: center; gap: 18px; }
.counter { margin: 0; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.06em; }
.counter b { font-weight: 700; }
.chrome-btn {
  display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--chrome-hair);
  border-radius: 999px; padding: 8px 14px; font-size: var(--fs-label); font-family: var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; color: var(--chrome-ink);
  min-height: 40px;
}
.chrome-btn:hover { border-color: var(--corn); }

.prepared { margin: 0; font-size: var(--fs-label); color: var(--chrome-ink); opacity: 0.9; }
.pager { display: flex; gap: 10px; }
.pg {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--chrome-hair); background: transparent; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--chrome-ink);
}
.pg-next { background: var(--red); border-color: var(--red); color: #fff; }
.pg:disabled { opacity: 0.35; cursor: default; }
.draft-note { margin: 0; font-family: var(--f-mono); font-size: var(--fs-label); color: var(--chrome-ink); opacity: 0.75; }

.rail { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 12; }
.rail button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1.5px solid var(--bone); background: transparent; cursor: pointer; opacity: 0.7; }
.rail button[aria-current="step"] { background: var(--corn); border-color: var(--corn); opacity: 1; transform: scale(1.15); }

/* ---------- stage and slides ---------- */
.stage { position: fixed; inset: 0; z-index: 2; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  padding: calc(var(--chrome-h) + env(safe-area-inset-top, 0px) + 22px) var(--pad-x) calc(var(--chrome-b) + env(safe-area-inset-bottom, 0px) + 18px);
  transition: opacity 0.3s ease;
}
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.slide.is-dark { background: var(--ink); color: var(--bone); }
.slide.is-paper { background: var(--paper); color: var(--ink); }
.slide-body {
  height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-right: 4px;
}
.slide.is-paper .slide-body { scrollbar-color: #8a7d6d transparent; }
.slide.is-dark .slide-body { scrollbar-color: #5b5147 transparent; }

.kicker { margin: 0 0 14px; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; }
.is-dark .kicker { color: var(--corn); }
.is-paper .kicker { color: var(--red-text-paper); }
.fine { margin: 14px 0 0; font-size: var(--fs-fine); line-height: 1.45; }
.is-dark .fine { color: var(--muted-dark); }
.is-paper .fine { color: var(--muted-paper); }
.src { margin: 10px 0 0; font-family: var(--f-mono); font-size: var(--fs-label); letter-spacing: 0.02em; }
.is-dark .src { color: var(--muted-dark); }
.is-paper .src { color: var(--muted-paper); }
.label-note { margin: 0 0 12px; font-size: var(--fs-fine); }
.is-dark .label-note { color: var(--muted-dark); }
.is-paper .label-note { color: var(--muted-paper); }

.h-display {
  margin: 0; font-weight: 650; font-size: var(--fs-h1); line-height: 0.86; letter-spacing: -0.06em;
}
.h-2 {
  margin: 0; font-weight: 600; font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.045em; max-width: 30ch;
}
.payoff {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0;
  display: block; font-size: 0.72em; line-height: 1.05; margin-top: 0.14em;
}
.is-dark .payoff { color: var(--corn); }
.is-paper .payoff { color: var(--red-text-paper); }
.h-display .payoff { font-size: 0.34em; line-height: 1.12; margin-top: 0.42em; max-width: 22ch; }
.s-head { margin-bottom: clamp(18px, 2.6vh, 30px); }
h3 { margin: 0; font-size: var(--fs-card); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
h4 { margin: 0 0 8px; font-size: clamp(18px, 0.5vw + 13px, 22px); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 10px; }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 58ch; margin: 0 0 18px; }
.is-dark .lede { color: var(--bone); }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: #c4130f; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-primary.sm, .btn-ghost.sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.is-dark .btn-ghost { color: var(--bone); }
.is-paper .btn-ghost { color: var(--ink); }

/* ---------- 01 cover ---------- */
.slide.slide-cover { background: transparent; color: var(--bone); }
.slide-cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 72% 46%, rgba(225, 28, 27, 0.26), rgba(225, 28, 27, 0) 42%),
    radial-gradient(circle at 72% 46%, rgba(242, 179, 61, 0.12), rgba(242, 179, 61, 0) 60%),
    linear-gradient(90deg, rgba(18, 14, 12, 0.95) 0%, rgba(18, 14, 12, 0.7) 42%, rgba(18, 14, 12, 0) 68%);
}
.slide-cover .slide-body { position: relative; display: flex; flex-direction: column; }
.cover-copy { position: relative; width: min(54%, 720px); margin-block: auto; }
.slide-cover .kicker { color: var(--corn); }
.slide-cover .h-display { color: var(--bone); }
.slide-cover .lede { color: var(--bone); max-width: 52ch; }
.ticker { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.ticker li {
  font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em;
  border: 1px solid var(--hair-dark); border-radius: 999px; padding: 6px 12px; color: var(--bone);
}
.cover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cue { margin: 0; font-size: var(--fs-fine); color: var(--muted-dark); }
.cover-fallback { display: none; }
html.no-webgl .slide-cover .cover-fallback {
  display: flex; position: absolute; right: 6%; top: 50%; transform: translateY(-50%); width: min(38vw, 46vh); aspect-ratio: 1; align-items: center; justify-content: center;
}
html.no-webgl .medallion {
  width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 40% 35%, #F2C866 0%, #E0A444 58%, #C2802A 88%, #7E4515 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 10px rgba(184, 116, 42, 0.5);
}
.medallion img { width: 62%; height: auto; }

/* ---------- 02 audit ---------- */
.audit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr); gap: clamp(18px, 2.4vw, 40px); align-items: start; }
.findings { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.finding { border-top: 2px solid var(--ink); padding-top: 12px; min-width: 0; }
.finding h3 { margin: 8px 0 6px; }
.finding p:not(.src) { font-size: var(--fs-body); line-height: 1.45; margin: 0; color: var(--ink); }
.tag {
  display: inline-block; font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px; border-radius: 4px; background: var(--ink); color: var(--paper);
}
.tag.high { background: var(--red); color: #fff; }
.tag.med { background: var(--corn); color: var(--ink); }
.tag.low { background: #5E5248; color: #fff; }
.evidence { margin: 0; }
.evidence-frame { background: #fff; border: 1px solid var(--hair-paper); padding: 22px; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.evidence-frame img { width: 201px; height: 156px; image-rendering: pixelated; }
.evidence figcaption { margin-top: 12px; font-size: var(--fs-fine); color: var(--muted-paper); }

/* ---------- 03 gap ---------- */
.gap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(18px, 2.4vw, 40px); align-items: start; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--corn); }
.timeline li { position: relative; padding: 0 0 16px 6px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--corn); }
.timeline time { display: block; font-family: var(--f-mono); font-size: var(--fs-label); color: var(--corn); letter-spacing: 0.04em; margin-bottom: 2px; }
.timeline p { margin: 0; font-size: var(--fs-body); color: var(--bone); }
.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.count { border: 1px solid var(--hair-dark); padding: 16px 18px; border-radius: 4px; background: var(--ink-2); }
.count b { display: block; font-size: clamp(44px, 2.8vw + 16px, 76px); font-weight: 650; line-height: 1; color: var(--corn); letter-spacing: -0.04em; }
.count span { display: block; margin-top: 8px; font-size: var(--fs-body); line-height: 1.35; color: var(--bone); }
.heritage { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 4px; }
.heritage figure { margin: 0; }
.heritage img { width: 100%; height: auto; max-height: 400px; object-fit: cover; object-position: center; border: 1px solid var(--hair-dark); }
.heritage figure:first-child img { width: min(100%, 540px); margin-inline: auto; object-position: center 12%; }
.heritage figcaption { margin-top: 8px; font-size: var(--fs-fine); color: var(--muted-dark); }

/* ---------- 04 flagship ---------- */
.flagship { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 260px); gap: clamp(16px, 2vw, 32px); align-items: start; }
.browser { background: #F6EEDF; color: #1B1412; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(242, 179, 61, 0.35); min-width: 0; }
.b-bar { display: flex; align-items: center; gap: 12px; background: #2A221E; color: #E9DFCD; padding: 10px 14px; }
.b-dots { display: inline-flex; gap: 6px; }
.b-dots i { width: 10px; height: 10px; border-radius: 50%; background: #5B4F45; display: block; }
.b-url { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.b-url em { color: var(--corn); font-style: normal; }
.b-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 10px 16px; background: #FFF9EE; border-bottom: 1px solid #E4D7BF; }
.b-logo { height: 44px; width: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  background: transparent; border: 1.5px solid transparent; border-radius: 999px; padding: 8px 16px; min-height: 42px; cursor: pointer; font-weight: 600; font-size: 16px; color: #1B1412;
}
.tab[aria-selected="true"] { background: #E11C1B; color: #fff; }
.b-body { padding: 0; min-height: 360px; }
.panel { padding: 18px 18px 22px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; background: #FFF9EE; border: 1px solid #E4D7BF; border-radius: 8px; overflow: hidden; }
.hero img { width: 100%; height: 100%; min-height: 200px; max-height: 300px; object-fit: cover; background: #fff; }
.hero-copy { padding: 18px 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 6px; font-family: var(--f-mono); font-size: var(--fs-label); color: #B3140F; text-transform: uppercase; letter-spacing: 0.06em; }
.hero h3 { font-size: clamp(24px, 1vw + 14px, 34px); letter-spacing: -0.03em; color: #1B1412; margin-bottom: 8px; }
.hero-copy p { font-size: 17px; color: #3A302A; margin: 0 0 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn-ghost { color: #1B1412; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.week { background: #FFF9EE; border: 1px solid #E4D7BF; border-radius: 8px; padding: 14px 16px; }
.week h4 { color: #1B1412; margin-bottom: 6px; }
.week-list { list-style: none; margin: 0; padding: 0; }
.week-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #D8C9AE; font-size: 17px; }
.week-list span { font-family: var(--f-mono); font-size: 14px; color: #4E443D; }
.week-list b { font-weight: 600; color: #1B1412; }
.week .fine { color: #4E443D; }
.reward { background: #FFF9EE; border: 1px solid #E4D7BF; border-radius: 8px; overflow: hidden; }
.reward img { width: 100%; height: auto; max-height: 170px; object-fit: cover; }
.reward p { padding: 12px 14px 14px; margin: 0; font-size: 17px; color: #1B1412; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 1.5px solid #CDBB9B; background: #FFF9EE; border-radius: 999px; padding: 7px 13px; min-height: 40px; cursor: pointer; font-size: 15px; font-weight: 500; color: #1B1412;
}
.chip[aria-pressed="true"] { background: #1B1412; color: #F6EEDF; border-color: #1B1412; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.menu-item {
  text-align: left; cursor: pointer; background: #FFF9EE; border: 1.5px solid #E4D7BF; border-radius: 8px; padding: 12px 14px; min-height: 76px;
  display: flex; flex-direction: column; gap: 6px; color: #1B1412;
}
.menu-item[aria-pressed="true"] { border-color: #E11C1B; box-shadow: inset 0 0 0 1px #E11C1B; }
.mi-name { font-weight: 600; font-size: 17px; line-height: 1.2; }
.mi-cat { font-family: var(--f-mono); font-size: 13px; color: #4E443D; text-transform: uppercase; letter-spacing: 0.03em; }
.menu-detail { margin-top: 14px; background: #1B1412; color: #F6EEDF; border-radius: 8px; padding: 16px 18px; }
.menu-detail .cat { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; color: var(--corn); margin: 0 0 4px; letter-spacing: 0.05em; }
.menu-detail h4 { color: #fff; font-size: clamp(20px, 0.6vw + 14px, 26px); }
.menu-detail p { font-size: 17px; margin: 0 0 8px; }
.menu-detail .fine { color: #CBC1B0; margin-top: 6px; }
.menu-empty { margin: 12px 0 0; font-size: 16px; color: #4E443D; }
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.visit-card, .visit-others { background: #FFF9EE; border: 1px solid #E4D7BF; border-radius: 8px; padding: 18px 18px 20px; color: #1B1412; }
.visit-card .addr, .visit-card .hours { font-size: 18px; }
.addr { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; margin: 0 0 12px; }
.addr .ico { margin-top: 4px; color: #B3140F; }
.addr a { color: #1B1412; font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hours { margin: 6px 0 14px; }
.hours div { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; font-weight: 600; }
.visit-card .btn-ghost { color: #1B1412; }
.visit-others p { font-size: 17px; margin: 0 0 6px; }
.visit-others h4 { color: #1B1412; }
.visit-others .fine { color: #4E443D; }
.concept-note { margin: 0; padding: 12px 16px; background: #1B1412; color: #F6EEDF; font-size: 16px; border-top: 3px solid var(--corn); }

.phone {
  width: 100%; max-width: 260px; justify-self: center; background: #0F0B09; border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 2px #2C241F;
}
.phone-screen { background: #FFF9EE; border-radius: 30px; overflow: hidden; color: #1B1412; }
.p-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #FFF9EE; border-bottom: 1px solid #E4D7BF; }
.p-top img { height: 30px; width: auto; }
.p-top span { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; }
.p-hero { width: 100%; height: 170px; object-fit: cover; object-position: center 30%; }
.p-body { padding: 12px 14px 16px; }
.p-body h5 { margin: 0 0 2px; font-size: 19px; line-height: 1.2; }
.p-body p { font-size: 15px; margin: 0 0 10px; color: #3A302A; }
.p-btn { display: block; width: 100%; text-align: center; background: #E11C1B; color: #fff; border: 0; border-radius: 999px; padding: 11px 12px; font-weight: 600; font-size: 16px; margin-bottom: 8px; text-decoration: none; cursor: pointer; min-height: 46px; }
.p-btn.alt { background: #1B1412; }
.p-list { list-style: none; margin: 10px 0 0; padding: 0; }
.p-list li { font-size: 15px; padding: 8px 0; border-bottom: 1px dashed #D8C9AE; }
.flagship-detail { display: none; grid-column: 1 / -1; background: var(--ink-2); border: 1px solid var(--hair-dark); border-radius: 8px; padding: 16px 18px; }
.flagship-detail ul { margin: 0; padding-left: 18px; }
.flagship-detail li { margin-bottom: 8px; font-size: var(--fs-body); }

/* ---------- 05 system ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: start; }
.pillar { background: #FBF6EA; border: 1px solid var(--hair-paper); border-top: 4px solid var(--red); border-radius: 6px; padding: 18px 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.pillar img { width: 100%; height: 150px; object-fit: cover; object-position: center; margin-bottom: 12px; border-radius: 4px; }
.p-num { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--red-text-paper); margin: 0 0 6px; }
.pillar h3 { margin-bottom: 8px; }
.pillar > p:not(.p-num):not(.for) { font-size: var(--fs-body); line-height: 1.45; color: var(--ink); }
.pillar .for { margin: 0; padding-top: 12px; border-top: 1px solid var(--hair-paper); font-size: var(--fs-fine); line-height: 1.45; color: var(--muted-paper); }
.pillar .for b { display: block; font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--red-text-paper); font-weight: 500; margin-bottom: 2px; }
.pillar .for { }

/* ---------- 06 proof ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 2.8vw, 44px); align-items: start; }
.case-tag { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--corn); margin: 0 0 14px; }
.proof-list { list-style: none; padding: 0; margin: 0 0 14px; }
.proof-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--hair-dark); font-size: var(--fs-body); line-height: 1.45; }
.proof-list .ico { color: var(--corn); margin-top: 4px; font-size: 20px; }
.proof .fine { color: var(--muted-dark); }
.ba-wrap { min-width: 0; }
.ba {
  position: relative; aspect-ratio: 1920 / 1337; overflow: hidden; border-radius: 8px; background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); touch-action: none; cursor: ew-resize; user-select: none;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; pointer-events: none; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-tag { position: absolute; top: 12px; z-index: 2; font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 10px; background: rgba(18, 14, 12, 0.85); color: #fff; border-radius: 4px; }
.ba-l { left: 12px; }
.ba-r { right: 12px; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--corn); transform: translateX(-1px); z-index: 3; pointer-events: none; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--corn); box-shadow: 0 0 0 4px rgba(18, 14, 12, 0.35);
}
.ba-handle .ico { position: absolute; top: 50%; z-index: 4; width: 20px; height: 20px; transform: translateY(-50%); color: var(--ink); }
.ba-handle .ico:first-of-type { right: 50%; }
.ba-handle .ico + .ico { left: 50%; }
.ba-range { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: var(--fs-fine); color: var(--muted-dark); }
.ba-range span { white-space: nowrap; }
.ba-range input { flex: 1; accent-color: var(--red); min-height: 32px; }
.ba-caption { margin: 10px 0 0; font-size: var(--fs-fine); color: var(--muted-dark); }
.ba-caption span { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; color: var(--corn); margin-right: 4px; }

/* ---------- 07 roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.phase { background: #FBF6EA; border: 1px solid var(--hair-paper); border-radius: 6px; padding: 20px 20px 22px; min-width: 0; display: flex; flex-direction: column; }
.ph-when { margin: 0 0 6px; font-family: var(--f-mono); font-size: clamp(20px, 0.6vw + 14px, 26px); font-weight: 700; color: var(--red-text-paper); letter-spacing: -0.02em; }
.phase h3 { margin-bottom: 12px; }
.phase dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.phase dt { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--red-text-paper); margin-top: 12px; }
.phase dd { margin: 2px 0 0; font-size: var(--fs-body); line-height: 1.45; color: var(--ink); }

/* ---------- 08 engagement ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.level { position: relative; background: var(--ink-2); border: 1px solid var(--hair-dark); border-radius: 6px; padding: 22px 20px 22px; display: flex; flex-direction: column; min-width: 0; }
.level p { font-size: var(--fs-body); line-height: 1.5; color: var(--bone); }
.level .best { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hair-dark); font-size: var(--fs-fine); color: var(--muted-dark); }
.level .best b { color: var(--corn); font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.05em; display: block; font-weight: 500; }
.level.is-rec { border: 2px solid var(--corn); background: #241B16; }
.rec-tag { position: absolute; top: -13px; left: 20px; background: var(--corn); color: var(--ink); font-family: var(--f-mono); font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 4px; }
.price { margin: 20px 0 6px; font-size: var(--fs-body); color: var(--bone); }
.price b { color: var(--corn); }
.slide-body .fine:last-child, .center-stack .fine:last-child { margin-top: 6px; }

/* ---------- 09 close ---------- */
.close { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(18px, 2.6vw, 40px); align-items: start; }
.rep { margin: 0; background: #fff; border: 1px solid var(--hair-paper); border-radius: 6px; overflow: hidden; }
.rep img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.rep figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.rep figcaption b { font-size: clamp(22px, 0.8vw + 14px, 28px); letter-spacing: -0.02em; }
.rep figcaption span { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--red-text-paper); text-transform: uppercase; letter-spacing: 0.04em; }
.close-card { background: var(--ink); color: var(--bone); border-radius: 6px; padding: clamp(18px, 2vw, 28px); min-width: 0; }
.msg { font-size: var(--fs-lede); line-height: 1.45; margin: 0 0 16px; color: var(--bone); }
.contacts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.contacts li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--hair-dark); }
.contacts span { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--corn); text-transform: uppercase; letter-spacing: 0.05em; }
.contacts a { font-size: clamp(18px, 0.4vw + 15px, 22px); font-weight: 600; color: var(--bone); text-decoration-thickness: 2px; text-underline-offset: 4px; word-break: break-word; }
.sched { border-top: 1px solid var(--hair-dark); padding-top: 16px; }
.sched-title { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--corn); margin: 0 0 12px; }
.sched-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sched label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-fine); color: var(--muted-dark); margin-bottom: 10px; }
.sched label span { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.sched select, .sched input {
  font: inherit; font-size: 17px; color: var(--ink); background: #FFF9EE; border: 1.5px solid #CDBB9B; border-radius: 8px; padding: 10px 12px; min-height: 46px; width: 100%;
}
.sched-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.sched-actions .btn-ghost { color: var(--bone); }
.sched-status { margin: 10px 0 0; font-size: var(--fs-fine); color: var(--bone); min-height: 1.4em; }
.sched-status[data-state="error"] { color: #FFB4A8; }
.closing-line { margin: 18px 0 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 1vw + 14px, 30px); line-height: 1.2; color: var(--corn); }
.brand-foot { margin-top: clamp(16px, 2.4vh, 26px); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--hair-paper); padding-top: 14px; }
.brand-foot img { height: 40px; width: auto; }
.brand-foot p { margin: 0; font-family: var(--f-mono); font-size: var(--fs-label); color: var(--muted-paper); letter-spacing: 0.02em; }

/* ---------- index overlay ---------- */
.index-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(12, 9, 8, 0.96); display: none; }
.index-overlay.open { display: block; }
.index-panel { position: absolute; inset: 0; padding: 24px clamp(20px, 4vw, 60px); overflow-y: auto; }
.index-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.index-head .kicker { margin: 0; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.index-list button {
  width: 100%; text-align: left; background: var(--ink-2); border: 1px solid var(--hair-dark); border-radius: 6px; padding: 16px 18px; min-height: 96px; cursor: pointer; color: var(--bone);
  display: flex; flex-direction: column; gap: 4px;
}
.index-list button:hover { border-color: var(--corn); }
.ix-num { font-family: var(--f-mono); font-size: var(--fs-label); color: var(--corn); }
.ix-label { font-family: var(--f-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-dark); }
.ix-title { font-size: clamp(18px, 0.5vw + 13px, 22px); font-weight: 600; line-height: 1.25; }

/* ---------- transitions ---------- */
.wipe { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: none; overflow: hidden; }
.wipe.run { display: block; }
.wipe .band {
  position: absolute; inset: 0; background: linear-gradient(90deg, #7F0D0B 0%, #E11C1B 55%, #F2B33D 100%);
  transform: scaleX(0); transform-origin: left; animation: band 620ms cubic-bezier(.7, 0, .3, 1) forwards;
}
.wipe .crumb {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 20px; opacity: 0;
  background: linear-gradient(135deg, #FFE08A 0%, #E0A444 55%, #C2802A 100%);
  clip-path: polygon(0 0, 100% 22%, 78% 100%, 14% 78%);
  animation: crumb 560ms ease-out forwards; animation-delay: var(--d, 0ms);
}
@keyframes band {
  0% { transform: scaleX(0); transform-origin: left; }
  48% { transform: scaleX(1); transform-origin: left; }
  52% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes crumb {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); }
}
.deck.quake .stage { animation: quake 460ms cubic-bezier(.36, .07, .19, .97); }
@keyframes quake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, -2px, 0); }
  30%, 50%, 70% { transform: translate3d(-7px, 3px, 0); }
  40%, 60% { transform: translate3d(7px, -3px, 0); }
}

/* ---------- responsive reflow ---------- */
@media (max-width: 1320px) {
  .audit { grid-template-columns: minmax(0, 1fr); }
  .evidence { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
  .evidence-frame { min-height: 0; padding: 14px; }
  .evidence figcaption { margin: 0; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .flagship { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 300px; }
  .gap { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .cover-copy { width: min(100%, 680px); }
  .slide-cover::before { background: linear-gradient(180deg, rgba(18,14,12,0.2) 0%, rgba(18,14,12,0.92) 58%); }
  .close { grid-template-columns: minmax(0, 1fr); }
  .rep img { aspect-ratio: 16 / 11; object-position: center 25%; }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .levels { grid-template-columns: minmax(0, 1fr); }
  .findings { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .rail { display: none; }
  .draft-note { display: none; }
  .visit { grid-template-columns: minmax(0, 1fr); }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero img { max-height: 220px; min-height: 0; }
  .flagship-detail { display: block; }
  .heritage { grid-template-columns: minmax(0, 1fr); }
  .heritage img { max-height: 220px; }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --chrome-h: 64px; --chrome-b: 62px; }
  .lk-name, .chrome-label, .counter { display: none; }
  .lk-bc { height: 18px; }
  .lk-client { height: 30px; }
  .chrome.top { justify-content: space-between; }
  .chrome-btn span { display: none; }
  .chrome-btn { min-width: 44px; justify-content: center; padding: 8px; }
  .chrome.bottom { flex-wrap: nowrap; padding-top: 6px; padding-bottom: 6px; height: var(--chrome-b); }
  .prepared { display: none; }
  .pager { width: 100%; justify-content: space-between; }
  .pg { flex: 1; justify-content: center; min-height: 46px; }
  .chrome.bottom { gap: 0; }
  .slide { padding: calc(var(--chrome-h) + env(safe-area-inset-top, 0px) + 14px) 18px calc(var(--chrome-b) + env(safe-area-inset-bottom, 0px) + 14px); }
  .slide-body { padding-right: 0; }
  .s-head { margin-bottom: 16px; }
  .h-2 { max-width: none; }
  .slide-cover .slide-body { justify-content: flex-start; padding-top: 0; }
  .cover-copy { width: 100%; padding-top: 50vh; background: linear-gradient(180deg, rgba(18,14,12,0) 0, rgba(18,14,12,0.92) 60px); padding-bottom: 16px; }
  .slide-cover::before { background: linear-gradient(180deg, rgba(18,14,12,0.1) 0%, rgba(18,14,12,0.25) 40%, rgba(18,14,12,0.96) 52%); }
  .ticker li { font-size: 13px; }
  .pillar img { height: 130px; }
  .browser .b-nav { padding: 8px 10px; }
  .b-logo { height: 36px; }
  .tab { padding: 8px 12px; font-size: 15px; }
  .b-url { display: none; }
  .b-bar { padding: 8px 10px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .phone { max-width: 280px; }
  .counts { grid-template-columns: minmax(0, 1fr); }
  .ba { aspect-ratio: 4 / 3; }
  .ba img { object-position: 30% top; }
  .phases, .levels { gap: 12px; }
  .sched-row { grid-template-columns: minmax(0, 1fr); }
  .contacts li { grid-template-columns: 72px minmax(0, 1fr); }
  .rep img { aspect-ratio: 4 / 3; }
  .brand-foot p { font-size: 13px; }
}

@media (max-width: 420px) {
  .lk-x { font-size: 20px; }
  .lk-client { height: 28px; }
  .pg span { display: none; }
  .pg { min-width: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .wipe .band, .wipe .crumb { animation-duration: 1ms; }
  .deck.quake .stage { animation: none; }
  .slide { transition: none; }
  .progress i { transition: none; }
}

/* ---------- whole-composition vertical centering (G5 display standard, deck-5274) ----------
   One wrapper per flagged slide. The scroll container becomes a column flexbox; the wrapper's
   auto block margins center the whole composition (kicker, heading, lead, body, cards and notes)
   between the fixed global masthead and footer when it fits, and collapse to zero on tall
   content so natural reachable top flow is preserved. No font shrink, no scaling, no dummy space. */
.slide-body.center-fit { display: flex; flex-direction: column; }
.center-fit > .center-stack { width: 100%; margin: auto 0; }
