/* Liticker's Mexican & Vegan Cuisine · Brandcore proposal
   Palette taken from the client's own sign art: brown field, cream lettering, leaf green.
   Type: Geist (display/body), Instrument Serif italic (one payoff per headline), JetBrains Mono (labels). */

@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: #16110a;
  --ink-2: #1f1709;
  --paper: #f3ead6;
  --paper-2: #fbf6ea;
  --cream: #f8e79a;
  --leaf: #2f7a1a;
  --leaf-deep: #1e5511;
  --lime: #a9c46f;
  --brown: #7e4d13;
  --chili: #a8321b;
  --gold-bronze: #7a5410;

  --txt-dark: #efe6cf;
  --muted-dark: #d2c6a8;
  --txt-paper: #2a2116;
  --muted-paper: #5a4a31;

  --chrome-top: 74px;
  --chrome-bottom: 60px;
  --gutter: clamp(20px, 3.6vw, 58px);

  --fs-body: clamp(16px, 0.5vw + 14px, 24px);
  --fs-lede: clamp(18px, 0.45vw + 15px, 24px);
  --fs-label: clamp(13px, 0.45vw + 11px, 15px);
  --fs-h1: clamp(56px, 7.4vw, 150px);
  --fs-h2: clamp(38px, 3.85vw, 66px);
  --fs-h3: clamp(22px, 1.7vw, 32px);
  --fs-card: clamp(18px, 0.5vw + 15px, 22px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--txt-dark);
  background: var(--ink);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
body[data-theme="paper"] { color: var(--txt-paper); background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 50; padding: 12px 16px; background: var(--paper); color: var(--txt-paper); border-radius: 12px; }

:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
body[data-theme="paper"] :focus-visible { outline-color: var(--leaf-deep); }

/* ---------- Chrome ---------- */
.chrome { position: fixed; left: 0; right: 0; z-index: 20; padding: 0 var(--gutter); }
.chrome-top { top: 0; height: var(--chrome-top); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.chrome-bottom { bottom: 0; height: var(--chrome-bottom); display: flex; align-items: center; gap: 16px; }

.brandlock { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { height: 26px; width: auto; }
.brand-mark-light { display: none; }
body[data-theme="paper"] .brand-mark-dark { display: none; }
body[data-theme="paper"] .brand-mark-light { display: block; height: 24px; }
.cobrand-x { font-family: "Instrument Serif", serif; font-style: italic; font-size: 24px; color: var(--cream); line-height: 1; }
body[data-theme="paper"] .cobrand-x { color: var(--gold-bronze); }
.client-lockup { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600; font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.client-lockup img { width: 30px; height: 28px; border-radius: 6px; object-fit: cover; }

.section-label { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.chrome-right { display: flex; align-items: center; gap: 14px; }
.counter { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.08em; }

.chrome-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px;
  background: transparent; border: 1px solid currentColor; border-radius: 999px; cursor: pointer;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.02em; color: inherit;
  border-color: rgba(239, 230, 207, 0.45);
}
body[data-theme="paper"] .chrome-btn { border-color: rgba(42, 33, 22, 0.35); }

.nav-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid rgba(239, 230, 207, 0.4); background: rgba(239, 230, 207, 0.08);
  color: var(--txt-dark); font-weight: 600; font-size: var(--fs-label); cursor: pointer; white-space: nowrap;
}
body[data-theme="paper"] .nav-btn { color: var(--txt-paper); border-color: rgba(42, 33, 22, 0.3); background: rgba(42, 33, 22, 0.05); }
.nav-btn:disabled { opacity: 0.4; cursor: default; }
.nav-btn svg { flex: none; }

.progress { flex: 1; height: 2px; background: rgba(239, 230, 207, 0.22); border-radius: 2px; overflow: hidden; min-width: 40px; }
body[data-theme="paper"] .progress { background: rgba(42, 33, 22, 0.18); }
.progress-fill { height: 100%; width: 0%; background: var(--cream); transition: width 0.5s ease; }
body[data-theme="paper"] .progress-fill { background: var(--leaf-deep); }

/* Index overlay */
.index-overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 24px; background: rgba(14, 10, 6, 0.94); }
.index-card { width: min(680px, 100%); max-height: 100%; overflow-y: auto; }
.index-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.index-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.index-list button {
  width: 100%; display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 10px 18px; text-align: left;
  background: rgba(239, 230, 207, 0.05); border: 1px solid rgba(239, 230, 207, 0.18); border-radius: 14px; color: var(--txt-dark); cursor: pointer;
  font-size: var(--fs-card); font-weight: 600;
}
.index-list button[aria-current="true"] { border-color: var(--cream); background: rgba(248, 231, 154, 0.12); }
.index-list .n { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); opacity: 0.8; min-width: 2.2em; }

/* ---------- Deck and slides ---------- */
.deck { position: fixed; inset: 0; overflow: hidden; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.6s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }
.slide.is-leaving { opacity: 0; transform: translate3d(calc(var(--dir, 1) * -6%), 0, 0) scale(1.02); transition: opacity 0.36s ease, transform 0.36s ease, visibility 0s linear 0.36s; visibility: visible; }
.slide.is-entering { opacity: 0; visibility: visible; transform: translate3d(calc(var(--dir, 1) * 5%), 0, 0) scale(0.985); transition: none; }

.slide[data-theme="dark"] {
  background:
    radial-gradient(900px 560px at 80% 22%, rgba(169, 196, 111, 0.10), transparent 62%),
    radial-gradient(700px 500px at 12% 100%, rgba(126, 77, 19, 0.22), transparent 65%),
    linear-gradient(180deg, #1c150c 0%, #120d07 100%);
}
.slide[data-theme="paper"] {
  background:
    radial-gradient(900px 500px at 92% 0%, rgba(47, 122, 26, 0.07), transparent 60%),
    linear-gradient(180deg, #f6eedc 0%, #efe4cc 100%);
}

.slide-inner {
  position: absolute; top: var(--chrome-top); bottom: var(--chrome-bottom); left: 0; right: 0;
  padding: clamp(14px, 2.2vw, 34px) var(--gutter);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}

.kicker { margin: 0 0 10px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
body[data-theme="paper"] .kicker { color: var(--leaf-deep); }

.section-title { margin: 0 0 14px; font-weight: 600; font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.045em; max-width: 24ch; text-wrap: balance; }
.section-title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--cream); }
body[data-theme="paper"] .section-title em { color: var(--gold-bronze); }

.support { margin: 0 0 22px; max-width: 64ch; font-size: var(--fs-body); line-height: 1.5; color: var(--muted-dark); }
body[data-theme="paper"] .support { color: var(--muted-paper); }
.slide-head { margin-bottom: 18px; }

.col-tag { margin: 0 0 8px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
body[data-theme="paper"] .col-tag { color: var(--leaf-deep); }

/* ---------- 01 Cover ---------- */
.slide-cover { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.cover-copy { max-width: min(700px, 100%); padding-bottom: 12px; }
.eyebrow { margin: 0 0 18px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.cover-title { margin: 0; font-weight: 600; font-size: var(--fs-h1); line-height: 0.86; letter-spacing: -0.06em; }
.cover-title span { display: block; }
.cover-title em { display: block; margin-top: 0.1em; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; font-size: 0.7em; letter-spacing: -0.02em; line-height: 1; color: var(--cream); }
.lede { margin: 22px 0 18px; max-width: 46ch; font-size: var(--fs-lede); line-height: 1.45; color: var(--txt-dark); }
.ticker { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ticker li { padding: 6px 12px; border: 1px solid rgba(248, 231, 154, 0.45); border-radius: 999px; font-size: var(--fs-label); color: var(--cream); }
.prepared { margin: 0 0 14px; font-size: var(--fs-label); color: var(--muted-dark); max-width: 60ch; }
.cue { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-label); color: var(--lime); }
.cue svg { flex: none; }

.cover-fallback { display: none; }
html.no-webgl .cover-fallback, html.reduced .cover-fallback { display: grid; place-items: center; }
.medallion {
  width: min(42vw, 520px); padding: clamp(12px, 1.2vw, 18px); border-radius: 30px;
  background: linear-gradient(160deg, #2f7a1a 0%, #1e5511 60%, #163f0c 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 0 2px rgba(248, 231, 154, 0.45);
}
.medallion img { width: 100%; height: auto; border-radius: 16px; }

/* ---------- 02 Audit ---------- */
.findings { list-style: none; margin: 0; padding: 0; }
.finding {
  display: grid; grid-template-columns: 112px minmax(0, 1fr) minmax(170px, 250px); gap: 20px; align-items: start;
  padding: 18px 0; border-top: 1px solid rgba(42, 33, 22, 0.2);
}
.finding:last-child { border-bottom: 1px solid rgba(42, 33, 22, 0.2); }
.sev { display: inline-block; justify-self: start; padding: 5px 12px; border-radius: 999px; font-size: var(--fs-label); font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.sev-high { background: var(--chili); }
.sev-med { background: var(--gold-bronze); }
.finding h3 { margin: 0 0 6px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.finding p { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--txt-paper); max-width: 70ch; }
.src { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); line-height: 1.45; color: var(--muted-paper); padding-top: 4px; }

/* ---------- 03 Gap ---------- */
.gap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gap-col { padding: clamp(18px, 2vw, 28px); border-radius: 18px; border: 1px solid rgba(239, 230, 207, 0.16); background: rgba(239, 230, 207, 0.04); }
.gap-next { border-color: rgba(248, 231, 154, 0.5); background: rgba(169, 196, 111, 0.08); }
.gap-col h3 { margin: 0 0 14px; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.steps li { position: relative; padding-left: 46px; font-size: var(--fs-card); line-height: 1.4; color: var(--txt-dark); }
.steps li::before {
  counter-increment: st; content: counter(st);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); font-weight: 700;
  background: rgba(239, 230, 207, 0.12); color: var(--cream);
}
.gap-next .steps li::before { background: var(--cream); color: var(--ink); }
.tally { margin: 22px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tally div { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(239, 230, 207, 0.16); }
.tally dt { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--muted-dark); letter-spacing: 0.02em; }
.tally dd { margin: 4px 0 0; font-size: clamp(34px, 2.9vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--cream); }

/* ---------- 04 Flagship ---------- */
.flagship { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.browser { border-radius: 16px; overflow: hidden; background: var(--paper-2); color: var(--txt-paper); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); border: 1px solid rgba(248, 231, 154, 0.35); min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #2a2016; color: #e6dcc3; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #6b5a40; display: block; }
.url { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 4px; padding: 6px 10px 0; background: #ece2cb; border-bottom: 1px solid #d8ccae; }
.tab {
  min-height: 44px; padding: 10px 16px; border: 0; background: transparent; cursor: pointer; border-radius: 10px 10px 0 0;
  font-weight: 600; font-size: var(--fs-label); color: #4b3e28;
}
.tab[aria-selected="true"] { background: var(--paper-2); color: var(--txt-paper); box-shadow: inset 0 -3px 0 var(--leaf); }
.panel { padding: 18px 22px 22px; height: clamp(380px, 55vh, 540px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.panel-note { margin: 0 0 14px; font-size: var(--fs-label); color: var(--muted-paper); }

.hero-photo { position: relative; height: clamp(190px, 28vh, 250px); border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: #2a2016; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; background: linear-gradient(0deg, rgba(14, 10, 5, 0.92) 0%, rgba(14, 10, 5, 0.55) 60%, rgba(14, 10, 5, 0) 100%); color: #f8f2e2; }
.hero-kicker { margin: 0 0 4px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); }
.hero-copy h4 { margin: 0 0 6px; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; }
.hero-copy p { margin: 0; font-size: var(--fs-card); line-height: 1.4; }

.home-next { display: grid; gap: 14px; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 999px; background: #e7efd5; color: #1f3d10; font-weight: 600; font-size: var(--fs-label); line-height: 1.3; justify-self: start; }
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #8a5a12; flex: none; }
.status-pill[data-open="true"] .dot { background: var(--leaf); box-shadow: 0 0 0 4px rgba(47, 122, 26, 0.2); }
.status-wide { font-size: var(--fs-card); padding: 10px 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: var(--fs-label); line-height: 1.2; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; text-align: center; }
.btn-solid { background: var(--leaf); color: #ffffff; border-color: var(--leaf); }
.btn-solid:hover { background: var(--leaf-deep); }
.btn-line { background: transparent; color: var(--txt-paper); border-color: rgba(42, 33, 22, 0.45); }
.btn-block { width: 100%; }
.browser .btn-line { color: var(--txt-paper); }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat { min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid #cbbd98; background: #fffdf6; cursor: pointer; font-weight: 600; font-size: var(--fs-label); color: var(--txt-paper); }
.cat.is-on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.cat-detail { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--leaf); background: #fffdf6; border-radius: 0 12px 12px 0; }
.cat-detail h4 { margin: 0 0 6px; font-size: clamp(22px, 1.8vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.cat-detail p { margin: 0 0 6px; font-size: var(--fs-card); line-height: 1.45; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #e4d9bd; margin-bottom: 16px; flex-wrap: wrap; }
.seg-btn { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: var(--fs-label); color: var(--txt-paper); }
.seg-btn.is-on { background: var(--txt-paper); color: #fff7e0; }
.hours-range { margin: 0 0 10px; font-size: clamp(26px, 2.4vw, 38px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.hours-readout { display: grid; gap: 12px; margin-bottom: 18px; }
.hours-days { margin: 0; font-size: var(--fs-label); color: var(--muted-paper); }

.phone { min-width: 0; }
.phone-frame { width: 100%; max-width: 260px; aspect-ratio: 9 / 18.5; margin: 0 auto; padding: 12px; border-radius: 38px; background: #0f0b07; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55); border: 1px solid rgba(248, 231, 154, 0.3); }
.phone-screen { height: 100%; border-radius: 28px; background: var(--paper-2); color: var(--txt-paper); padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.phone-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.phone-top img { width: 28px; height: 26px; border-radius: 6px; object-fit: cover; }
.phone-kicker { margin: 0; font-size: 15px; color: var(--muted-paper); }
.phone-line { margin: 0; font-size: 16px; line-height: 1.4; }
.phone-screen .status-pill { font-size: 14px; padding: 6px 10px; }
.phone-screen .btn { min-height: 44px; font-size: 15px; }
.phone-note { margin: auto 0 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--muted-paper); }

.detail-card { display: none; padding: 18px 20px; border-radius: 16px; background: rgba(239, 230, 207, 0.06); border: 1px solid rgba(239, 230, 207, 0.2); }
.detail-card h4 { margin: 0 0 10px; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; }
.detail-card ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 8px; font-size: var(--fs-card); line-height: 1.45; }
.detail-status { margin: 0; font-size: var(--fs-card); }
.detail-live { font-weight: 600; color: var(--cream); }
.source-note { margin: 14px 0 0; font-size: var(--fs-label); color: var(--muted-dark); max-width: 90ch; }

/* ---------- 05 System ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 18px; }
.pillar { display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 1.8vw, 28px); border-radius: 18px; background: var(--paper-2); border: 1px solid rgba(42, 33, 22, 0.14); }
.pillar-n { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); color: var(--leaf-deep); }
.pillar h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.pillar p { margin: 0; font-size: var(--fs-card); line-height: 1.5; color: var(--txt-paper); }
.pillar-get { margin-top: auto !important; padding-top: 10px; border-top: 1px solid rgba(42, 33, 22, 0.15); font-size: var(--fs-label) !important; color: var(--muted-paper) !important; }

/* ---------- 06 Proof ---------- */
.compare { display: grid; border-radius: 18px; overflow: hidden; border: 1px solid rgba(248, 231, 154, 0.3); position: relative; --pos: 50%; }
.compare-side { grid-area: 1 / 1; padding: clamp(20px, 2.2vw, 34px); }
.compare-before { background: #241b11; color: var(--txt-dark); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-after { background: #f3ead6; color: var(--txt-paper); clip-path: inset(0 0 0 var(--pos)); }
.compare-before .col-tag { color: var(--muted-dark); }
.compare-after .col-tag { color: var(--leaf-deep); }
.compare-side ul { margin: 0; padding-left: 22px; display: grid; gap: 12px; font-size: var(--fs-card); line-height: 1.45; }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--cream); pointer-events: none; }
.compare-range { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 16px 0 0; font-size: var(--fs-label); color: var(--muted-dark); }
.compare-range input { width: 100%; min-height: 44px; accent-color: var(--cream); }
.proof-note { margin: 14px 0 0; font-size: var(--fs-label); color: var(--muted-dark); max-width: 90ch; }

/* ---------- 07 Roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-auto-rows: 1fr; }
.phase { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 1.8vw, 28px); border-radius: 18px; background: var(--paper-2); border: 1px solid rgba(42, 33, 22, 0.14); }
.phase-day { margin: 0; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--leaf-deep); font-weight: 700; }
.phase h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.phase p { margin: 0; font-size: var(--fs-card); line-height: 1.5; }
.phase-owner { display: flex; flex-wrap: wrap; gap: 8px; }
.owner { padding: 5px 12px; border-radius: 999px; background: #e3ebd0; color: #1f3d10; font-size: var(--fs-label); font-weight: 600; }
.phase .need { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(42, 33, 22, 0.15); font-size: var(--fs-label) !important; line-height: 1.5 !important; color: var(--muted-paper); }
.launch-note { margin: 20px 0 0; font-size: var(--fs-card); max-width: 80ch; }

/* ---------- 08 Engagement ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; grid-auto-rows: 1fr; }
.tier { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2vw, 30px); border-radius: 20px; border: 1px solid rgba(239, 230, 207, 0.2); background: rgba(239, 230, 207, 0.05); }
.tier h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.tier ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: var(--fs-card); line-height: 1.45; color: var(--txt-dark); }
.tier-rec { border-color: var(--cream); background: rgba(169, 196, 111, 0.1); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.rec-tag { margin: 0; align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: var(--fs-label); font-weight: 700; }
.fine { margin: 22px 0 0; font-size: var(--fs-label); color: var(--muted-dark); max-width: 90ch; }

/* ---------- 09 Close ---------- */
.close-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 2.6vw, 44px); align-items: start; }
.close-copy .support { margin-bottom: 18px; }
.reps { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.rep { display: flex; gap: 16px; align-items: center; }
.rep img { width: clamp(120px, 11vw, 176px); aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; border: 1px solid rgba(42, 33, 22, 0.14); background: #e6dcc2; }
.rep-lead img { width: clamp(160px, 16vw, 240px); }
.rep h3 { margin: 0 0 4px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.rep-role { margin: 0 0 6px; font-size: var(--fs-card); color: var(--muted-paper); }
.rep p { margin: 0 0 4px; font-size: var(--fs-card); }
.rep a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.office { margin: 0; font-size: var(--fs-card); }
.office a { font-weight: 600; }

.scheduler { display: grid; gap: 14px; padding: clamp(18px, 2vw, 28px); border-radius: 20px; background: var(--paper-2); border: 1px solid rgba(42, 33, 22, 0.16); }
.scheduler h3 { margin: 0; font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.sched-note { margin: 0; font-size: var(--fs-label); color: var(--muted-paper); }
.scheduler label { display: grid; gap: 6px; font-size: var(--fs-label); font-weight: 600; color: var(--txt-paper); }
.scheduler select { min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid #b9a77f; background: #fffdf6; font-size: var(--fs-card); color: var(--txt-paper); }
.sched-status { margin: 0; min-height: 1.4em; font-size: var(--fs-label); color: var(--muted-paper); }

.close-foot { margin-top: clamp(20px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-top: 18px; border-top: 1px solid rgba(42, 33, 22, 0.18); }
.foot-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 999px; background: #fffdf6; border: 1px solid rgba(42, 33, 22, 0.16); font-size: var(--fs-label); }
.foot-pill img { height: 22px; width: auto; }
.last-line { margin: 0; font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(22px, 2vw, 32px); color: var(--gold-bronze); }

/* ---------- Steam sweep (non-cover cuts) ---------- */
.steam-sweep {
  position: fixed; inset: -10% 0; z-index: 6; pointer-events: none; opacity: 0; transform: translate3d(-100%, 0, 0);
  background: linear-gradient(100deg, rgba(255, 236, 190, 0) 30%, rgba(255, 240, 210, 0.55) 49%, rgba(255, 236, 190, 0.0) 68%);
}
.steam-sweep.run { animation: steam-sweep 0.8s ease-in-out forwards; }
@keyframes steam-sweep {
  0% { transform: translate3d(-100%, 0, 0); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate3d(100%, 0, 0); opacity: 0; }
}

/* ---------- WebGL canvas (cover only, fixed above slides, click-through) ---------- */
#hero-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; display: block; }
#hero-canvas[hidden] { display: none; }

/* ---------- Reflow: tablet ---------- */
@media (max-width: 1279px) {
  .flagship { grid-template-columns: minmax(0, 1fr); }
  .phone { display: none; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases .phase:last-child { grid-column: 1 / -1; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiers .tier:last-child { grid-column: 1 / -1; }
  .close-grid { grid-template-columns: minmax(0, 1fr); }
  .finding { grid-template-columns: 100px minmax(0, 1fr); }
  .finding .src { grid-column: 2; }
  .tally { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tally div { grid-column: span 2; }
  .tally div:nth-child(n + 4) { grid-column: span 3; }
}

/* ---------- Reflow: phone and small tablet (<820) ---------- */
@media (max-width: 819px) {
  :root { --chrome-top: 58px; --chrome-bottom: 66px; }
  .chrome { background: var(--ink); }
  body[data-theme="paper"] .chrome { background: var(--paper); }
  .chrome-top { gap: 8px; }
  .section-label { display: none; }
  .brand-mark { height: 22px; }
  .brand-mark-light { height: 20px; }
  .client-lockup span { display: none; }
  .client-lockup img { width: 28px; height: 26px; }
  .chrome-btn span { display: none; }
  .chrome-btn { padding: 8px 12px; }
  .counter { font-size: 13px; }
  .chrome-bottom { padding: 0 14px; gap: 10px; }
  .nav-btn { padding: 8px 14px; }
  .nav-btn span { display: inline; }
  .progress { min-width: 24px; }

  .slide-inner { padding: 16px 18px 20px; }
  .slide-cover { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; }
  .cover-fallback { order: -1; }
  .cover-copy { margin-top: 0; }
  html:not(.no-webgl):not(.reduced) .cover-copy { margin-top: calc(50vh + 6px); }
  html.no-webgl .cover-copy, html.reduced .cover-copy { margin-top: 18px; }
  .medallion { width: min(62vw, 260px); }
  .cover-title { font-size: clamp(50px, 14vw, 84px); }
  .lede { font-size: 18px; }
  .ticker li { font-size: 13px; padding: 5px 10px; }

  .finding { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
  .finding .src { grid-column: auto; }
  .finding h3 { font-size: 22px; }

  .gap-grid { grid-template-columns: minmax(0, 1fr); }
  .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tally div:last-child { grid-column: 1 / -1; }

  .flagship { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .browser { display: none; }
  .phone { display: none; }
  .detail-card { display: block; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pillars { grid-template-columns: minmax(0, 1fr); }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .phases .phase:last-child { grid-column: auto; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tiers .tier:last-child { grid-column: auto; }
  .tier-rec { order: -1; }

  .compare { grid-template-columns: minmax(0, 1fr); }
  .compare-side { grid-area: auto; clip-path: none !important; }
  .compare::after { display: none; }
  .compare-after { border-top: 1px solid rgba(42, 33, 22, 0.2); }
  .compare-range { display: none; }

  .close-grid { grid-template-columns: minmax(0, 1fr); }
  .reps { flex-direction: column; align-items: stretch; gap: 14px; }
  .rep { gap: 14px; }
  .rep img, .rep-lead img { width: 118px; }
  .rep-lead img { width: 150px; }
  .scheduler { padding: 18px; }
  .foot-pill span { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide.is-leaving, .slide.is-entering { transition: none !important; }
  .progress-fill { transition: none; }
  .steam-sweep.run { animation: none; opacity: 0; }
}
