/* The Original Paw Pleasers Chula Vista · Brandcore.io website concept
   Type is fluid (clamp with viewport units) and each slide reflows at
   breakpoints. Icons are inline SVG only; no Unicode arrows or emoji. */

@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: #17232a;
  --ink-2: #203239;
  --cream: #fff6ea;
  --paper: #fbf1e4;
  --paper-2: #f3e2cc;
  --rose: #e8557f;
  --rose-deep: #c23a67;
  --aqua: #2db6c4;
  --aqua-deep: #1c7f8a;
  --sun: #f5a524;
  --body-ink: #2b3a3f;
  --muted-dark: #c3ccce;
  --line-dark: rgba(255, 246, 234, 0.18);
  --line-light: rgba(23, 35, 42, 0.16);
  --gut: clamp(20px, 3.4vw, 58px);
  --chrome-top: 74px;
  --chrome-bottom: 60px;
  --body: clamp(16px, 0.6vw + 12px, 24px);
  --label: clamp(13px, 0.35vw + 9px, 15px);
  --h-title: clamp(36px, 3.2vw + 8px, 66px);
  --h-card: clamp(22px, 1vw + 10px, 32px);
  --display: clamp(54px, 6.2vw, 124px);
  --serif-payoff: clamp(28px, 2.6vw, 50px);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--body);
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; }
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- chrome ---------- */
.chrome-top, .chrome-bottom { position: fixed; left: 0; right: 0; z-index: 50; background: var(--ink); }
.chrome-top {
  top: 0; height: var(--chrome-top);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: env(safe-area-inset-top) var(--gut) 0;
  border-bottom: 1px solid var(--line-dark);
}
.lockup { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lockup-brand { height: 22px; width: auto; }
.ico-x { font-size: 16px; color: var(--sun); }
.lockup-client { font-size: var(--label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrome-label { text-align: center; font-size: var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrome-right { display: flex; align-items: center; gap: 14px; }
.counter { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--muted-dark); }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255, 246, 234, 0.12); }
.progress span { display: block; height: 100%; width: 11%; background: var(--rose); transition: width 0.4s ease; }

.chrome-bottom {
  bottom: 0; height: calc(var(--chrome-bottom) + env(safe-area-inset-bottom));
  padding: 0 var(--gut) env(safe-area-inset-bottom);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-dark);
}
.prepared-foot { font-size: var(--label); color: var(--muted-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-btns { display: flex; gap: 10px; }

.btn-rose, .btn-line, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-size: var(--label); font-weight: 700; letter-spacing: 0.02em; cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-rose { background: var(--rose-deep); color: #fff; }
.btn-rose:hover { background: #a92f57; transform: translateY(-1px); }
.btn-rose:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: rgba(23, 35, 42, 0.06); }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-ghost:disabled { opacity: 0.35; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 8px 14px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* right-hand rail */
.rail { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.rail-dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--cream); background: transparent; padding: 0; cursor: pointer; }
.rail-dot.is-on { background: var(--rose); border-color: var(--rose); }

/* index overlay */
.index-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(12, 19, 23, 0.92); display: grid; place-items: center; padding: 20px; }
.index-overlay[hidden] { display: none; }
.index-box { width: min(980px, 100%); max-height: 100%; overflow: auto; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px; }
.index-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.index-head h2 { font-size: var(--h-card); }
.index-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.index-item { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 14px; background: rgba(255, 246, 234, 0.05); border: 1px solid var(--line-dark); border-radius: 12px; cursor: pointer; color: var(--cream); }
.index-item:hover { border-color: var(--rose); }
.ix-num { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--sun); min-width: 2.2em; }
.ix-title { display: block; font-weight: 700; font-size: clamp(17px, 0.5vw + 12px, 22px); }
.ix-note { display: block; color: var(--muted-dark); font-size: var(--label); margin-top: 2px; }

/* ---------- deck and slides ---------- */
.deck { position: fixed; top: var(--chrome-top); bottom: calc(var(--chrome-bottom) + env(safe-area-inset-bottom)); left: 0; right: 0; }
.slide { position: absolute; inset: 0; background: var(--ink); color: var(--cream); }
.js .slide { display: none; }
.js .slide.is-active { display: block; }
.slide[hidden] { display: none !important; }
.slide-inner { height: 100%; padding: clamp(18px, 2.6vh, 34px) calc(var(--gut) + 30px) clamp(20px, 3vh, 36px) var(--gut); overflow: hidden; }
.slide-inner.scroll-y { overflow-y: auto; overscroll-behavior: contain; }
#s2, #s4, #s6, #s8 { background: var(--paper); color: var(--body-ink); }
#s2 .kicker, #s4 .kicker, #s6 .kicker, #s8 .kicker { color: var(--rose-deep); }

.kicker { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun); margin-bottom: 10px; }
.title { font-size: var(--h-title); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; max-width: 22ch; margin-bottom: 12px; }
.support { font-size: var(--body); max-width: 64ch; color: inherit; opacity: 0.92; margin-bottom: 18px; }
.mini-label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--rose-deep); margin-bottom: 8px; }
#s2 .mini-label, #s4 .mini-label, #s6 .mini-label, #s8 .mini-label { color: var(--rose-deep); }
.slide:not(#s2):not(#s4):not(#s6):not(#s8) .mini-label { color: var(--sun); }
.note { font-size: var(--label); margin-top: 10px; opacity: 0.9; }
.src { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--aqua-deep); margin-top: 10px; letter-spacing: 0.02em; }

/* ---------- 01 cover ---------- */
.slide-cover { background: radial-gradient(120% 90% at 78% 40%, #2c4048 0%, var(--ink) 58%, #10181c 100%); }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 56px); height: 100%; }
.cover-copy { min-width: 0; align-self: center; }
.cover-title { font-size: var(--display); line-height: 0.95; letter-spacing: -0.045em; font-weight: 800; max-width: 12ch; }
.cover-payoff { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: var(--serif-payoff); line-height: 1.1; color: var(--sun); margin: 14px 0 16px; }
.lede { max-width: 52ch; color: var(--muted-dark); font-size: var(--body); }
.ticker { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.ticker li { font-size: var(--label); padding: 7px 12px; border: 1px solid var(--line-dark); border-radius: 999px; color: var(--cream); }
.cover-meta { display: grid; gap: 6px; font-size: var(--label); color: var(--muted-dark); }
.cover-meta p { display: flex; align-items: center; gap: 8px; }
.prepared { margin-top: 16px; font-size: var(--label); color: var(--cream); opacity: 0.9; }
.hero-stage { position: relative; width: 100%; height: min(72vh, 100%); min-height: 280px; align-self: center; }
.hero-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.hero-fallback::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(78%, 62vh); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fffbf4 0%, #f5e3cd 62%, #e9cfb4 100%); box-shadow: inset 0 0 0 14px var(--aqua), inset 0 0 0 20px rgba(232, 85, 127, 0.9), 0 30px 60px rgba(0, 0, 0, 0.45); }
.hero-fallback > span { position: relative; color: var(--ink); }
.fb-top { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(20px, 2.2vw, 34px); }
.fb-main { font-weight: 800; font-size: clamp(30px, 3.6vw, 58px); letter-spacing: -0.02em; line-height: 1.02; margin-top: 2px; }
.fb-sub { font-weight: 700; color: var(--rose-deep); font-size: clamp(13px, 1.1vw, 18px); letter-spacing: 0.1em; margin-top: 6px; }
.webgl-on .hero-fallback { display: none; }
#hero-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.no-webgl #hero-canvas { display: none; }
.scroll-cue { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: var(--label); color: var(--muted-dark); pointer-events: none; }
.scroll-cue .ico { animation: nudge 2.2s ease-in-out infinite; }

/* ---------- 02 audit ---------- */
.findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.finding { background: #fff9f0; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; min-width: 0; }
.finding header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sev { font-size: var(--label); font-weight: 800; padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.sev-high { background: #9e1b1f; color: #fff; }
.sev-med { background: #7a4a00; color: #fff; }
.sev-low { background: #2a5a63; color: #fff; }
.fcount { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--body-ink); font-weight: 700; }
.finding h3 { font-size: var(--h-card); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 8px; }
.finding p { font-size: var(--body); line-height: 1.45; }
.finding .src { margin-top: auto; padding-top: 10px; }

/* ---------- 03 gap ---------- */
.gap-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.gap-copy { min-width: 0; }
.gap-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; margin-top: 6px; }
.gap-col { border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.gap-col h3 { font-size: var(--h-card); margin-bottom: 8px; letter-spacing: -0.02em; }
.gap-col ol { list-style: none; counter-reset: st; display: grid; gap: 10px; }
.gap-col li { counter-increment: st; display: grid; grid-template-columns: 2em 1fr; font-size: var(--body); line-height: 1.4; }
.gap-col li::before { content: counter(st) "."; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); padding-top: 0.2em; color: var(--sun); }
.gap-now { background: #f8e0d8; color: #2a1714; }
.gap-now li::before { color: #9e1b1f; }
.gap-next { background: #d9f1f3; color: #0c2a2f; }
.gap-next li::before { color: var(--aqua-deep); }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.numbers div { border-top: 2px solid var(--sun); padding-top: 10px; }
.numbers dt { font-size: clamp(34px, 2.6vw + 6px, 56px); font-weight: 800; line-height: 1; color: var(--sun); }
.numbers dd { font-size: var(--label); margin-top: 6px; color: var(--muted-dark); }
.gap-photo { min-width: 0; }
.gap-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.gap-photo figcaption { font-size: var(--label); color: var(--muted-dark); margin-top: 10px; }

/* ---------- 04 flagship ---------- */
.flag-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); grid-template-areas: "head head" "browser phone"; gap: 18px 22px; align-content: start; }
.flag-head { grid-area: head; }
.flag-head .title { font-size: clamp(32px, 2.6vw + 8px, 56px); margin-bottom: 6px; }
.flag-head .support { margin-bottom: 0; }
.browser { grid-area: browser; min-width: 0; background: #fffaf3; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-light); box-shadow: 0 24px 50px rgba(23, 35, 42, 0.18); }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #e8ddcc; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c9b89d; }
.browser-bar em { margin-left: 10px; font-style: normal; font-size: var(--label); color: #5c5246; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line-light); background: #fff3e4; }
.tabs [role="tab"] { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: transparent; font-size: var(--label); font-weight: 700; cursor: pointer; color: var(--body-ink); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.panel { padding: 16px; color: var(--body-ink); }
.panel[hidden] { display: none; }
.home-hero { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.home-hero img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.home-copy h4 { font-size: var(--h-card); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 8px; color: var(--ink); }
.home-copy p { font-size: var(--body); }
.strip { margin-top: 14px; background: var(--paper-2); border-radius: 12px; padding: 12px 14px; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.strip li { font-size: var(--label); background: #fffaf3; border: 1px solid var(--line-light); border-radius: 999px; padding: 6px 12px; color: var(--ink); }
.cake-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cake-card { background: #fff; border: 1px solid var(--line-light); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.cake-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-2); }
.cake-card h4 { font-size: var(--label); font-weight: 800; padding: 10px 12px 0; color: var(--ink); }
.cake-card p { font-size: var(--label); padding: 2px 12px 10px; color: #4a5a5f; }
.cake-card .btn-sm { margin: auto 12px 12px; align-self: flex-start; }
.order-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.svc { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: #fff; font-size: var(--label); font-weight: 700; cursor: pointer; color: var(--body-ink); }
.chip.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); text-align: center; color: #5c5246; padding: 4px 0; }
.cal-day { min-height: 40px; border-radius: 8px; border: 1px solid var(--line-light); background: #fff; font-size: var(--label); font-weight: 700; cursor: pointer; color: var(--ink); }
.cal-day.is-on { background: var(--rose-deep); color: #fff; border-color: var(--rose-deep); }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.time-chip.is-on { background: var(--aqua-deep); border-color: var(--aqua-deep); color: #fff; }
.req { background: #fff; border: 1px solid var(--line-light); border-radius: 12px; padding: 14px; min-width: 0; }
.req-list { display: grid; gap: 6px; margin-bottom: 12px; }
.req-list div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; font-size: var(--label); }
.req-list dt { color: #5c5246; }
.req-list dd { font-weight: 700; color: var(--ink); }
.field { display: grid; gap: 6px; font-size: var(--label); margin-bottom: 12px; }
.field input { min-height: 44px; border-radius: 10px; border: 1px solid var(--line-light); padding: 8px 12px; font-size: var(--body); background: #fffdf9; color: var(--ink); }
.phone-wrap { grid-area: phone; display: grid; gap: 14px; align-content: start; justify-items: center; }
.phone { width: min(100%, 260px); aspect-ratio: 9 / 18.5; border-radius: 38px; background: #0e171b; padding: 12px; box-shadow: 0 26px 46px rgba(23, 35, 42, 0.35); }
.phone-screen { height: 100%; border-radius: 28px; background: var(--cream); padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; color: var(--ink); }
.ph-brand { font-size: var(--label); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.phone-screen img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 14px; }
.ph-h { font-size: clamp(18px, 1vw + 8px, 24px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.phone-screen .btn-rose, .phone-screen .btn-line { min-height: 42px; font-size: 14px; cursor: default; }
.ph-meta { font-size: 13px; color: #4a5a5f; margin-top: auto; }
.phone-detail { background: #fffaf3; border: 1px solid var(--line-light); border-radius: 12px; padding: 14px 16px; color: var(--body-ink); width: 100%; }
.phone-detail ol { padding-left: 1.2em; font-size: var(--label); display: grid; gap: 6px; }
.phone-detail .mini-label { color: var(--rose-deep); }

/* ---------- 05 system ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pillar { background: #173038; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.pillar h3 { font-size: var(--h-card); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 8px; color: var(--cream); }
.pillar p { font-size: var(--body); line-height: 1.45; color: var(--cream); opacity: 0.95; }
.pillar-img { border-radius: 12px; overflow: hidden; margin-bottom: 12px; background: #203d45; }
.pillar-img img { width: 100%; height: clamp(120px, 15vh, 180px); object-fit: cover; }

/* ---------- 06 proof (before and after) ---------- */
.ba { position: relative; margin-top: 8px; height: min(52vh, 440px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-light); user-select: none; }
.ba-layer { position: absolute; inset: 0; padding: clamp(18px, 2.6vw, 34px); display: flex; flex-direction: column; }
.ba-concept { background: #d9f1f3; color: #0c2a2f; }
.ba-today { background: #f8e0d8; color: #2a1714; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-label { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.ba-layer ul { list-style: none; display: grid; gap: 12px; }
.ba-layer li { font-size: var(--body); line-height: 1.4; display: grid; gap: 2px; }
.ba-layer li b { font-size: var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--cream); z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); }
.ba-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -20px; border-radius: 50%; background: var(--rose-deep); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3); }

/* ---------- 07 roadmap ---------- */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.phase { background: #173038; border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.phase-day { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--sun); letter-spacing: 0.08em; text-transform: uppercase; }
.phase h3 { font-size: var(--h-card); letter-spacing: -0.02em; line-height: 1.12; }
.phase p { font-size: var(--body); line-height: 1.45; color: var(--cream); }
.owner { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-dark); font-size: var(--label) !important; color: var(--muted-dark) !important; }
.owner b { color: var(--sun); margin-right: 6px; }
.supply { margin-top: 16px; background: rgba(255, 246, 234, 0.06); border-radius: var(--radius); padding: 16px 20px; }
.supply h3 { font-size: var(--h-card); letter-spacing: -0.02em; margin-bottom: 8px; }
.supply ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
.supply li { font-size: var(--body); line-height: 1.4; padding-left: 14px; position: relative; }
.supply li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }

/* ---------- 08 engagement ---------- */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
.level { background: #fff9f0; border: 1px solid var(--line-light); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; min-width: 0; }
.level-rec { border: 2px solid var(--rose-deep); box-shadow: 0 16px 34px rgba(194, 58, 103, 0.14); }
.level-tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--rose-deep); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; font-weight: 700; }
.level h3 { font-size: var(--h-card); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 12px; }
.level ul { list-style: none; display: grid; gap: 10px; }
.level li { font-size: var(--body); line-height: 1.4; padding-left: 16px; position: relative; }
.level li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--rose-deep); }

/* ---------- 09 close ---------- */
.slide-close { background: radial-gradient(90% 90% at 20% 40%, #2a4149 0%, var(--ink) 62%); }
.close-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 56px); align-items: center; }
.rep-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; }
.rep-photo { width: min(100%, 440px); aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; background: #22363e; }
.rep-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.rep-name { font-size: clamp(30px, 2.2vw + 10px, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.rep-role { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--sun); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
.rep-msg { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: clamp(22px, 1.6vw + 8px, 34px); line-height: 1.2; margin: 14px 0; color: var(--cream); }
.contact { list-style: none; display: grid; gap: 10px; }
.contact li { display: flex; align-items: center; gap: 10px; font-size: var(--body); }
.contact a { text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line-dark); }
.contact a:hover { border-color: var(--cream); }
.sched { min-width: 0; }
.sched .title { font-size: clamp(30px, 2.6vw + 6px, 56px); }
.slots { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.slots legend { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: var(--label); color: var(--sun); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; padding: 0; }
#slot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-dark); background: rgba(255, 246, 234, 0.05); cursor: pointer; font-size: var(--label); }
.slot:has(input:checked) { border-color: var(--rose); background: rgba(232, 85, 127, 0.14); }
.slot input { width: 18px; height: 18px; accent-color: var(--rose); flex: 0 0 auto; }
.brand-sign { margin-top: 18px; font-size: var(--label); color: var(--muted-dark); }
#prep-draft { margin-top: 2px; }

/* ---------- transitions ---------- */
.wipe { position: fixed; inset: 0; z-index: 45; pointer-events: none; background: var(--aqua); transform: translateX(-102%); }
.wipe.go-f { animation: wipe-f 640ms cubic-bezier(0.7, 0, 0.2, 1) forwards; box-shadow: -18px 0 0 var(--rose); }
.wipe.go-b { animation: wipe-b 640ms cubic-bezier(0.7, 0, 0.2, 1) forwards; box-shadow: 18px 0 0 var(--rose); }
@keyframes wipe-f { 0% { transform: translateX(-102%); } 50% { transform: translateX(0); } 100% { transform: translateX(102%); } }
@keyframes wipe-b { 0% { transform: translateX(102%); } 50% { transform: translateX(0); } 100% { transform: translateX(-102%); } }
.flash-veil { position: fixed; inset: 0; z-index: 39; pointer-events: none; opacity: 0; background: radial-gradient(60% 60% at 50% 46%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 190, 215, 0.55) 35%, rgba(255, 190, 215, 0) 70%); }
.flash-veil.on { animation: veil 560ms ease-out; }
@keyframes veil { 0% { opacity: 0.95; } 100% { opacity: 0; } }
.slide.enter-boom { animation: enter-boom 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes enter-boom { from { opacity: 0; transform: translateX(7%) scale(0.985); } to { opacity: 1; transform: none; } }
.slide.enter-f { animation: fade-in 640ms ease-out both; }
.slide.enter-b { animation: fade-in 640ms ease-out both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
body.quake .deck { animation: quake 460ms ease-out; }
@keyframes quake { 0%, 100% { transform: translate(0, 0); } 15% { transform: translate(-7px, 4px); } 30% { transform: translate(6px, -5px); } 45% { transform: translate(-4px, 3px); } 60% { transform: translate(3px, -2px); } 80% { transform: translate(-1px, 1px); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .wipe, .flash-veil, .scroll-cue .ico, .progress span { transition: none !important; animation: none !important; }
  .slide.enter-boom, .slide.enter-f, .slide.enter-b { animation: none !important; }
  body.quake .deck { animation: none !important; }
}

/* ---------- laptop and tablet reflow ---------- */
@media (max-width: 1280px) {
  .cover-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); }
  .gap-grid { grid-template-columns: minmax(0, 1fr); }
  .gap-photo { max-width: 360px; }
  .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .close-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .rep-photo { width: min(100%, 320px); }
}
@media (max-height: 820px) {
  .flag-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .phone { width: min(100%, 220px); }
}
@media (max-width: 1100px) {
  .flag-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "browser" "phone"; }
  .phone-wrap { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); justify-items: stretch; align-items: center; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { grid-template-columns: minmax(0, 1fr); }
  .home-hero img { max-width: 360px; }
}
@media (max-width: 900px) {
  .rail { display: none; }
  .slide-inner { padding-right: var(--gut); }
  .cover-grid, .order-grid, .close-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { height: 52vh; min-height: 300px; }
  .rep-card { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); align-items: center; }
  .rep-photo { width: 100%; }
  .phone-wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .phone { width: min(100%, 240px); }
  .levels, .pillars, .phases, .findings { grid-template-columns: minmax(0, 1fr); }
  .supply ul { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- tablet and phone: opaque chrome, scroll inside each slide ---------- */
@media (max-width: 760px) {
  :root { --chrome-top: 60px; --chrome-bottom: 62px; --gut: 18px; }
  .chrome-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .chrome-label { display: none; }
  .lockup-client { font-size: 12px; }
  .lockup-brand { height: 18px; }
  .btn-ghost span { display: none; }
  .btn-ghost { min-width: 44px; padding: 10px; }
  .counter { font-size: 13px; }
  .chrome-bottom { gap: 8px; }
  .prepared-foot { display: none; }
  .nav-btns { width: 100%; justify-content: space-between; }
  .nav-btns .btn-rose, .nav-btns .btn-ghost { flex: 1 1 0; }
  .slide-inner { padding: 18px var(--gut) 26px; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .cover-grid { height: auto; min-height: 100%; }
  .cover-title { max-width: none; }
  .scroll-cue { position: static; margin: 14px 0 6px; }
  .findings, .gap-cols { gap: 12px; }
  .gap-cols { grid-template-columns: minmax(0, 1fr); }
  .numbers { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .numbers div { display: grid; grid-template-columns: 4.5em 1fr; align-items: baseline; }
  .numbers dd { margin-top: 0; }
  .browser-bar { display: none; }
  .tabs [role="tab"] { flex: 1 1 auto; }
  .cake-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-grid { gap: 3px; }
  .cal-day { min-height: 42px; }
  .ba { height: min(60vh, 420px); }
  .ba-layer { padding: 16px; }
  .ba-layer li { font-size: 17px; }
  #slot-list { grid-template-columns: minmax(0, 1fr); }
  .index-list { grid-template-columns: minmax(0, 1fr); }
  .supply ul { grid-template-columns: minmax(0, 1fr); }
  .rep-card { grid-template-columns: minmax(0, 1fr); }
  .rep-photo { width: min(100%, 360px); }
}
@media (max-width: 480px) {
  .cake-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .phone { width: min(100%, 230px); }
  .phone-wrap { grid-template-columns: minmax(0, 1fr); }
  .title { font-size: clamp(30px, 8.4vw, 40px); }
  .cover-title { font-size: clamp(40px, 12vw, 58px); }
}
@media (max-width: 360px) {
  .cake-grid { grid-template-columns: minmax(0, 1fr); }
  .counter { display: none; }
}

@supports (height: 100dvh) {
  .slide-inner { min-height: 0; }
}

/* ============================================================
   G5.A2 / G5.A4 · whole-composition vertical centering (2026-11-02)
   Center the ENTIRE meaningful composition — kicker, title, lead,
   body, cards and notes as ONE group — in the stage between the
   fixed global masthead and footer on the four Terra-flagged
   slides (05 System, 06 Proof, 07 Roadmap, 08 Engagement).
   The heading block travels with the composition; it is no longer
   frozen at the top while cards sit lower, and the earlier
   cards-only auto-margin centering on 08 is removed. Internal
   rhythm (kicker/title/support margins, card gaps) is unchanged.

   Overflow-safe centering: two equal spacer pseudo-elements grow
   only when the stage has free space. When content is taller than
   the stage, the spacers collapse to zero height, the composition
   stays top-aligned inside the normal paddings, and the slide
   scrolls naturally with no clipped beginnings or unreachable
   endings at laptop/tablet/phone sizes.
   ============================================================ */
#s5 .slide-inner,
#s6 .slide-inner,
#s7 .slide-inner,
#s8 .slide-inner { display: flex; flex-direction: column; }
#s5 .slide-inner > *,
#s6 .slide-inner > *,
#s7 .slide-inner > *,
#s8 .slide-inner > * { flex: 0 0 auto; }
#s5 .slide-inner::before,
#s5 .slide-inner::after,
#s6 .slide-inner::before,
#s6 .slide-inner::after,
#s7 .slide-inner::before,
#s7 .slide-inner::after,
#s8 .slide-inner::before,
#s8 .slide-inner::after {
  content: "";
  display: block;
  flex: 1 1 0;
  min-height: 0;
  pointer-events: none;
}
