/* Modoc Insurance Services · Brandcore sales deck
   One cohesive system. Palette drawn from the client's own identity:
   medallion ring blue #366AA6, pencil-on-paper illustration, night-lit Main Street sign. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* night slides */
  --navy: #0C1626;
  --navy-2: #101D33;
  --card: #16263F;
  --line-d: rgba(169, 200, 240, 0.2);
  --on-dark: #FFFFFF;
  --on-dark-2: #D5DEEB;   /* 13.3:1 on navy */
  --on-dark-3: #B4C2D6;   /* 10.0:1 on navy, 8.3:1 on card */
  --gold: #EBC274;        /* 10.8:1 on navy */
  --sky: #A9C8F0;         /* 10.5:1 on navy */

  /* paper slides */
  --paper: #F4EFE5;
  --paper-2: #EBE4D6;
  --line-p: #D9CFBC;
  --ink: #111D33;         /* 14.7:1 on paper */
  --ink-2: #2B3649;       /* 10.6:1 on paper */
  --ink-3: #3A4558;       /* 8.4:1 on paper */
  --modoc: #366AA6;       /* brand ring blue (graphics only) */
  --modoc-deep: #1D4580;  /* 8.3:1 on paper, 9.5:1 on white */
  --modoc-fill: #24548F;  /* white text 7.7:1 */
  --tint: #E7EEF8;

  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* desktop frame */
  --fw: min(96vw, 1640px);
  --fh: min(91vh, 920px, calc(100vh - 96px));

  --fs-h1: clamp(34px, calc(var(--fh) * 0.068), 64px);
  --fs-h2: clamp(28px, calc(var(--fh) * 0.053), 50px);
  --fs-lead: clamp(16px, calc(var(--fh) * 0.0214), 20px);
  --fs-h3: clamp(18px, calc(var(--fh) * 0.0245), 23px);
  --fs-body: clamp(15.5px, calc(var(--fh) * 0.0186), 17.5px);
  --fs-kicker: clamp(12px, calc(var(--fh) * 0.0146), 13.5px);
  --fs-small: clamp(12.5px, calc(var(--fh) * 0.0152), 14.5px);
  --pad-y: calc(var(--fh) * 0.046);
  --pad-x: calc(var(--fw) * 0.045);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--on-dark);
  background: radial-gradient(circle at 50% 28%, #1A2740 0%, #070B13 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
button, input { font-family: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .request :focus-visible { outline-color: var(--modoc-deep); }

.ui-icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Deck frame ---------- */
.deck { position: relative; overflow: hidden; }
.slide { position: relative; display: none; }
.slide.active { display: flex; flex-direction: column; }

.slide.dark {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(54, 106, 166, 0.22) 0%, rgba(54, 106, 166, 0) 55%),
    radial-gradient(80% 70% at 0% 100%, rgba(235, 194, 116, 0.07) 0%, rgba(235, 194, 116, 0) 60%),
    var(--navy);
  color: var(--on-dark);
}
.slide.paper {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(54, 106, 166, 0.07) 0%, rgba(54, 106, 166, 0) 60%),
    linear-gradient(180deg, #F7F3EA 0%, var(--paper) 100%),
    var(--paper);
  color: var(--ink);
}

/* ---------- Header lockup (every content slide) ---------- */
.slide-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: calc(var(--fh) * 0.018);
  border-bottom: 1px solid var(--line-d);
  margin-bottom: auto;
  flex: none;
}
.paper .slide-header { border-bottom-color: var(--line-p); }
.header-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.header-logo-pill {
  width: clamp(52px, calc(var(--fh) * 0.073), 68px);
  aspect-ratio: 1; flex: none; border-radius: 50%;
  background: transparent;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}
.paper .header-logo-pill { box-shadow: 0 6px 16px rgba(17, 29, 51, 0.2); }
.header-logo-pill img, .cover-badge img {
  width: 100%; height: 100%; object-fit: contain;
  opacity: 1; filter: none;
}
.header-wordmark {
  display: flex; flex-direction: column;
  font-size: clamp(15px, calc(var(--fh) * 0.0218), 20px);
  font-weight: 800; letter-spacing: 0.13em; line-height: 1.15; text-transform: uppercase;
  color: var(--on-dark);
}
.header-wordmark small {
  margin-top: 6px;
  font-size: clamp(12px, calc(var(--fh) * 0.0142), 13px);
  font-weight: 600; letter-spacing: 0.16em;
  color: var(--on-dark-2);
}
.paper .header-wordmark { color: var(--modoc-deep); }
.paper .header-wordmark small { color: var(--ink-2); }
.header-meta {
  display: inline-flex; align-items: center; gap: 12px; flex: none;
  font-size: var(--fs-kicker); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.header-meta b {
  display: inline-grid; place-items: center; min-width: 38px; height: 28px; padding: 0 10px;
  border-radius: 999px; background: var(--gold); color: var(--navy);
  font-weight: 800; letter-spacing: 0.06em;
}
.paper .header-meta { color: var(--ink-2); }
.paper .header-meta b { background: var(--modoc-deep); color: #FFFFFF; }

/* ---------- Shared type ---------- */
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.kicker::before, .eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: currentColor; flex: none;
}
.paper .kicker { color: var(--modoc-deep); }
h2 {
  margin-top: calc(var(--fh) * 0.013);
  font-size: var(--fs-h2); font-weight: 800; line-height: 1.07; letter-spacing: -0.022em;
  color: var(--on-dark); text-wrap: balance;
}
.paper h2 { color: var(--ink); }
.accent { color: var(--gold); }
.paper .accent { color: var(--modoc-deep); }
.lead {
  margin-top: calc(var(--fh) * 0.016);
  font-size: var(--fs-lead); line-height: 1.55; font-weight: 500;
  color: var(--on-dark-2); max-width: 62ch; text-wrap: pretty;
}
.paper .lead { color: var(--ink-2); }
.source {
  display: inline-block; margin-top: calc(var(--fh) * 0.02);
  font-size: var(--fs-small); font-weight: 600; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--line-p); text-underline-offset: 4px;
}
.page {
  position: absolute; right: calc(var(--pad-x) * 0.42); bottom: calc(var(--fh) * 0.022);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; color: var(--on-dark-2);
}
.paper .page { color: var(--ink-2); }

/* ---------- Browser chrome (shared) ---------- */
.browser-bar {
  display: flex; align-items: center; gap: 14px;
  height: clamp(32px, calc(var(--fh) * 0.041), 38px); padding: 0 14px;
  background: #ECE7DD; border-bottom: 1px solid #D6CDBB; color: var(--ink-2);
}
.browser-dots { display: inline-flex; gap: 7px; flex: none; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #E0605A; }
.browser-dots i:nth-child(2) { background: #E5B33F; }
.browser-dots i:nth-child(3) { background: #5DB45A; }
.browser-url {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1; max-width: 440px; margin: 0 auto; padding: 4px 16px;
  border-radius: 999px; background: #FFFFFF; border: 1px solid #DDD5C5;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  white-space: nowrap; overflow: hidden;
}
.browser-url .ui-icon { font-size: 13px; color: #2E7D4F; }

/* ---------- Slide 1 · Cover ---------- */
.slide.cover.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.74fr);
  padding: 0;
}
.hero-copy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: calc(var(--fh) * 0.03);
  padding: calc(var(--fh) * 0.06) calc(var(--fw) * 0.04) calc(var(--fh) * 0.055) var(--pad-x);
  overflow: hidden;
}
.hero-copy > :not(#scene) { position: relative; z-index: 1; }
#scene {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  width: 100%; height: 62%;
  opacity: 0.2; pointer-events: none;
}
#scene[data-webgl="unavailable"] { display: none; }
.cover-lockup { display: flex; align-items: center; gap: calc(var(--fh) * 0.03); }
.cover-badge {
  width: clamp(92px, calc(var(--fh) * 0.155), 144px);
  aspect-ratio: 1; flex: none; border-radius: 50%;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 0 7px rgba(54, 106, 166, 0.22);
}
.cover-wordmark { display: flex; flex-direction: column; }
.cover-wordmark b {
  font-size: clamp(24px, calc(var(--fh) * 0.0405), 38px);
  font-weight: 800; letter-spacing: 0.075em; line-height: 1.04; text-transform: uppercase;
  color: #FFFFFF;
}
.cover-wordmark small {
  margin-top: calc(var(--fh) * 0.013);
  font-size: var(--fs-kicker); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.cover-message h1 {
  margin-top: calc(var(--fh) * 0.018);
  font-size: var(--fs-h1); font-weight: 800; line-height: 1.04; letter-spacing: -0.028em;
  color: #FFFFFF; text-wrap: balance;
}
.cover-message .lead { max-width: 54ch; }
.cover-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-d); padding-top: calc(var(--fh) * 0.026);
}
.stat { padding-right: 18px; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--line-d); }
.stat b {
  display: block;
  font-size: clamp(34px, calc(var(--fh) * 0.058), 54px); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: var(--gold);
}
.stat span {
  display: block; margin-top: 10px;
  font-size: var(--fs-small); font-weight: 600; line-height: 1.42; color: var(--on-dark-2);
}
.hero-visual { position: relative; overflow: hidden; background: #0A1220; }
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 32%;
  opacity: 1; filter: none;
}
.photo-tag {
  position: absolute; top: calc(var(--fh) * 0.03); left: calc(var(--fh) * 0.03);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: rgba(10, 18, 32, 0.9); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.04em; color: #FFFFFF;
}
.photo-tag .ui-icon { font-size: 16px; color: var(--gold); }
.hero-browser {
  position: absolute; left: calc(var(--fh) * 0.03); bottom: calc(var(--fh) * 0.03);
  width: 76%;
  border-radius: 12px; overflow: hidden; background: #FFFFFF;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.hero-browser .browser-bar { height: 30px; gap: 10px; padding: 0 10px; }
.hero-browser .browser-dots i { width: 9px; height: 9px; }
.hero-browser .browser-url { font-size: 12px; padding: 2px 12px; }
.hero-browser img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; object-position: center top; opacity: 1; filter: none; }
.hero-browser figcaption {
  padding: 9px 14px; background: #FFFFFF; border-top: 1px solid #E5DED0;
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--modoc-deep);
}
.cover .page {
  right: calc(var(--fh) * 0.03); bottom: calc(var(--fh) * 0.03);
  padding: 7px 13px; border-radius: 999px;
  background: rgba(10, 18, 32, 0.9); border: 1px solid rgba(255, 255, 255, 0.16); color: #FFFFFF;
}

/* ---------- Content slides: shared padding & vertical balance ---------- */
.slide:not(.cover) { padding: var(--pad-y) var(--pad-x) calc(var(--pad-y) * 0.95); }
.slide > .split,
.slide > .journey-grid,
.slide > .comparison,
.slide > .exec-footer-bar,
.slide > .close-grid { margin-bottom: auto; }

/* ---------- Slide 2 · Foundation ---------- */
.split { display: grid; gap: calc(var(--fw) * 0.036); align-items: center; }
.split-foundation { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.pillars { display: grid; gap: calc(var(--fh) * 0.014); margin-top: calc(var(--fh) * 0.028); }
.pillar-card {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: calc(var(--fh) * 0.019) 22px;
  background: #FFFFFF; border: 1px solid var(--line-p); border-radius: 14px;
  box-shadow: 0 1px 0 rgba(17, 29, 51, 0.04);
}
.pillar-num, .c-num {
  display: grid; place-items: center;
  width: clamp(36px, calc(var(--fh) * 0.047), 44px); aspect-ratio: 1; border-radius: 50%;
  background: var(--modoc-deep); color: #FFFFFF;
  font-size: 14.5px; font-weight: 800; letter-spacing: 0.04em;
}
.pillar-card h3 {
  font-size: clamp(17px, calc(var(--fh) * 0.0215), 20px); font-weight: 800; line-height: 1.25; color: var(--ink);
}
.pillar-card p {
  margin-top: 5px;
  font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2);
}
.map-card {
  display: flex; flex-direction: column; gap: calc(var(--fh) * 0.014);
  padding: calc(var(--fh) * 0.026) 28px calc(var(--fh) * 0.022);
  background: #FFFFFF; border: 1px solid var(--line-p); border-radius: 20px;
  box-shadow: 0 28px 60px rgba(17, 29, 51, 0.13);
}
.map-head b {
  display: block; margin-top: 8px;
  font-size: clamp(18px, calc(var(--fh) * 0.025), 23px); font-weight: 800; line-height: 1.2; color: var(--ink);
}
.state-map { width: 100%; height: clamp(220px, calc(var(--fh) * 0.43), 400px); display: block; }
.state-map .st { fill: #E8E1D3; stroke: #FFFFFF; stroke-width: 1.6; stroke-linejoin: round; }
.state-map .st.on { fill: var(--modoc-fill); }
.state-map .sl {
  font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-anchor: middle; dominant-baseline: middle; fill: #3A4253;
}
.state-map .sl.on { fill: #FFFFFF; font-size: 13px; }
.state-map .pin-dot { fill: var(--gold); stroke: var(--navy); stroke-width: 2.6; }
.state-map .pin-pulse { fill: rgba(235, 194, 116, 0.45); transform-box: fill-box; transform-origin: center; }
.state-map .pin-label rect { fill: var(--navy); }
.state-map .pin-label text {
  font-family: var(--sans); font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  text-anchor: middle; dominant-baseline: middle; fill: #FFFFFF;
}
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 9px; }
.map-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--modoc-fill); }
.map-legend .sw-pin { border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2.5px var(--navy) inset; }
.map-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: calc(var(--fh) * 0.014); border-top: 1px solid var(--line-p);
  font-size: var(--fs-small); font-weight: 600; color: var(--ink-2);
}
.map-foot b { font-size: clamp(15px, calc(var(--fh) * 0.019), 17px); font-weight: 800; color: var(--ink); }

/* ---------- Slide 3 · Growth opportunities ---------- */
.journey-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(var(--fw) * 0.035); align-items: end;
  margin-bottom: calc(var(--fh) * 0.032);
}
.today-thumb {
  width: clamp(260px, calc(var(--fh) * 0.46), 420px);
  border-radius: 12px; overflow: hidden; background: #FFFFFF;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.today-thumb .browser-bar { height: 28px; gap: 8px; padding: 0 10px; }
.today-thumb .browser-dots i { width: 8px; height: 8px; }
.today-thumb .browser-url { font-size: 12px; padding: 1px 10px; }
.today-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; opacity: 1; filter: none; }
.today-thumb figcaption {
  padding: 8px 12px; background: var(--card);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2);
}
.journey-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--fw) * 0.014); }
.journey-card {
  display: flex; flex-direction: column; gap: calc(var(--fh) * 0.013);
  padding: calc(var(--fh) * 0.026) 24px calc(var(--fh) * 0.022);
  background: var(--card); border: 1px solid var(--line-d); border-radius: 16px;
}
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-num {
  padding: 5px 12px; border-radius: 999px; background: var(--gold); color: var(--navy);
  font-size: 14px; font-weight: 800; letter-spacing: 0.06em;
}
.card-tag {
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(169, 200, 240, 0.4);
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky);
}
.journey-card h3 { margin-top: 4px; font-size: var(--fs-h3); font-weight: 800; line-height: 1.22; color: #FFFFFF; }
.journey-card p { flex: 1; font-size: var(--fs-body); line-height: 1.52; color: var(--on-dark-2); }
.today-next {
  display: grid; grid-template-columns: 1fr 1fr;
  border-radius: 11px; overflow: hidden; border: 1px solid var(--line-d);
}
.today-next span {
  display: flex; flex-direction: column; gap: 3px; padding: 10px 13px;
  font-size: var(--fs-small); font-weight: 700; line-height: 1.3; color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}
.today-next span:last-child { background: rgba(235, 194, 116, 0.11); border-left: 1px solid var(--line-d); }
.today-next small { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3); }
.today-next span:last-child small { color: #F6DCA6; }

/* ---------- Slide 4 · Website upgrade ---------- */
.split-website { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.concept-notes { display: grid; gap: calc(var(--fh) * 0.013); margin-top: calc(var(--fh) * 0.026); }
.note {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  padding: calc(var(--fh) * 0.017) 20px;
  background: #FFFFFF; border: 1px solid var(--line-p); border-radius: 14px;
}
.note b { display: block; font-size: clamp(16.5px, calc(var(--fh) * 0.0205), 19px); font-weight: 800; line-height: 1.25; color: var(--ink); }
.note p { margin-top: 4px; font-size: var(--fs-body); line-height: 1.48; color: var(--ink-2); }
.browser-window {
  border-radius: 16px; overflow: hidden; background: #FFFFFF;
  border: 1px solid #CFC5B1;
  box-shadow: 0 36px 76px rgba(17, 29, 51, 0.24), 0 6px 16px rgba(17, 29, 51, 0.08);
}
.mock-hero-stage {
  position: relative; width: 100%;
  height: clamp(300px, 42vh, 440px);
  overflow: hidden; background: #0B0F17;
}
.mock-hero-stage img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  opacity: 1; filter: none;
}
.browser-window figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-top: 1px solid #E5DED0;
  font-size: var(--fs-small); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips i {
  font-style: normal; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; text-transform: none;
  padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--modoc-deep);
}

/* ---------- Slide 5 · Before / after ---------- */
.proof-head, .exec-head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: calc(var(--fw) * 0.035); align-items: end;
  margin-bottom: calc(var(--fh) * 0.03);
}
.proof-head .lead, .exec-head .lead { margin-top: 0; }
.comparison {
  display: grid; grid-template-columns: auto auto auto; justify-content: center; align-items: center;
  gap: calc(var(--fw) * 0.018);
}
.case-arrow {
  display: grid; place-items: center;
  width: clamp(48px, calc(var(--fh) * 0.068), 62px); aspect-ratio: 1; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 0 0 8px rgba(235, 194, 116, 0.14), 0 14px 30px rgba(0, 0, 0, 0.4);
}
.case-arrow .ui-icon { font-size: 26px; stroke-width: 2.4; }
.case-frame {
  width: calc(clamp(280px, 38vh, 400px) * 1.6);
  max-width: 100%;
  border-radius: 14px; overflow: hidden; background: var(--card);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.case-tag {
  flex: none; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.case-tag.before { background: #D9D2C4; color: var(--ink); }
.case-tag.after { background: var(--modoc-deep); color: #FFFFFF; }
.case-viewport {
  position: relative; width: 100%;
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  overflow: hidden; background: #FFFFFF;
}
.case-viewport img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transform: scale(1.035); transform-origin: center top;
  opacity: 1; filter: none;
}
.case-frame figcaption {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  font-size: var(--fs-small); font-weight: 600; color: var(--on-dark-2);
}
.case-frame figcaption b {
  flex: none; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1); color: #FFFFFF;
}
.case-frame:last-child figcaption b { background: var(--gold); color: var(--navy); }

/* ---------- Slide 6 · Roadmap ---------- */
.exec-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto; column-gap: calc(var(--fw) * 0.014); row-gap: 0; }
.exec-phase-card {
  display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: calc(var(--fh) * 0.015);
  padding: calc(var(--fh) * 0.026) 26px calc(var(--fh) * 0.022);
  background: #FFFFFF; border: 1px solid var(--line-p); border-radius: 18px;
  box-shadow: 0 14px 34px rgba(17, 29, 51, 0.07);
}
.exec-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.exec-phase-num { font-size: var(--fs-kicker); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--modoc-deep); }
.exec-duration-pill {
  padding: 5px 12px; border-radius: 999px; background: var(--tint); color: var(--modoc-deep);
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
}
.exec-phase-card h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.22; color: var(--ink); }
.exec-deliverables { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: calc(var(--fh) * 0.011); }
.exec-deliverables li {
  position: relative; padding-left: 30px;
  font-size: var(--fs-body); line-height: 1.46; color: var(--ink-2);
}
.exec-deliverables li::before {
  content: ""; position: absolute; left: 0; top: 0.2em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--modoc-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.exec-big {
  align-self: end; padding-top: calc(var(--fh) * 0.015); border-top: 1px solid var(--line-p);
  font-size: clamp(30px, calc(var(--fh) * 0.05), 46px); font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: var(--modoc-deep);
}
.exec-phase-card.featured { background: var(--navy); border-color: var(--navy); box-shadow: 0 24px 54px rgba(12, 22, 38, 0.32); }
.featured .exec-phase-num { color: var(--gold); }
.featured .exec-duration-pill { background: var(--gold); color: var(--navy); }
.featured h3 { color: #FFFFFF; }
.featured .exec-deliverables li { color: var(--on-dark-2); }
.featured .exec-deliverables li::before {
  background-color: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%230C1626' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.featured .exec-big { color: var(--gold); border-top-color: rgba(255, 255, 255, 0.16); }
.exec-footer-bar {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: calc(var(--fh) * 0.024);
  border-radius: 14px; overflow: hidden; background: var(--navy);
}
.exec-footer-bar span {
  display: flex; align-items: center; gap: 14px; padding: calc(var(--fh) * 0.016) 24px;
  font-size: var(--fs-small); font-weight: 700; letter-spacing: 0.02em; color: #FFFFFF;
}
.exec-footer-bar span + span { border-left: 1px solid rgba(255, 255, 255, 0.14); }
.exec-footer-bar b { font-size: clamp(24px, calc(var(--fh) * 0.034), 32px); font-weight: 800; line-height: 1; color: var(--gold); }

/* ---------- Slide 7 · Partner sign-off ---------- */
.close-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: calc(var(--fw) * 0.036); align-items: center; }
.partner-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start;
  margin-top: calc(var(--fh) * 0.028);
  padding: calc(var(--fh) * 0.026) 26px;
  background: var(--card); border: 1px solid var(--line-d); border-radius: 20px;
}
.partner-avatar-wrap {
  width: clamp(112px, calc(var(--fh) * 0.152), 140px); aspect-ratio: 1;
  border-radius: 24px; overflow: hidden; background: transparent;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}
.partner-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; opacity: 1; filter: none; }
.partner-meta-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.partner-name-heading { margin-top: 6px; font-size: clamp(24px, calc(var(--fh) * 0.032), 30px); font-weight: 800; line-height: 1.1; color: #FFFFFF; }
.partner-role-sub { margin-top: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--on-dark-2); }
.partner-quote {
  margin-top: calc(var(--fh) * 0.016); padding-left: 16px; border-left: 3px solid var(--gold);
  font-size: var(--fs-body); line-height: 1.55; color: #E8EEF6;
}
.partner-contact-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(var(--fh) * 0.018); }
.partner-pill {
  padding: 8px 14px; border-radius: 999px;
  background: rgba(169, 200, 240, 0.1); border: 1px solid rgba(169, 200, 240, 0.32);
  font-size: var(--fs-small); font-weight: 700; color: #FFFFFF; text-decoration: none; white-space: nowrap;
}
a.partner-pill:hover { background: rgba(169, 200, 240, 0.2); }
.request {
  padding: calc(var(--fh) * 0.034) 32px calc(var(--fh) * 0.03);
  border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
}
.request .kicker { color: var(--modoc-deep); }
.request h3 { margin-top: 10px; font-size: clamp(30px, calc(var(--fh) * 0.046), 42px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.request > p { margin-top: 8px; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); }
.screen-request { margin-top: calc(var(--fh) * 0.022); }
.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggestions button {
  padding: 13px 10px; border-radius: 12px; cursor: pointer;
  background: #FFFFFF; border: 1.5px solid #CBC1AC; color: var(--ink);
  font-size: var(--fs-small); font-weight: 800; letter-spacing: 0.04em;
}
.suggestions button:hover { border-color: var(--modoc-deep); background: var(--tint); }
.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: calc(var(--fh) * 0.018); }
.picker-col label {
  display: block; margin-bottom: 7px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
}
.date-control {
  display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 6px 0 14px;
  background: #FFFFFF; border: 1.5px solid #CBC1AC; border-radius: 12px;
}
.date-control:focus-within { border-color: var(--modoc-deep); }
.date-control input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font-size: 16px; font-weight: 600; color: var(--ink);
}
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-control button {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; cursor: pointer;
  border: 0; border-radius: 9px; background: var(--tint); color: var(--modoc-deep);
}
.date-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#picker-help { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
#contact {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: calc(var(--fh) * 0.02); padding: 17px 20px; border-radius: 14px;
  background: var(--modoc-deep); color: #FFFFFF; text-decoration: none;
  font-size: 15px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(29, 69, 128, 0.32);
}
#contact:hover { background: #163A6E; }
#contact .ui-icon { font-size: 18px; }
.request-note { display: block; margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.print-contact { display: none; }

/* ---------- Controls ---------- */
.controls {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 6px; border-radius: 999px;
  background: rgba(12, 22, 38, 0.92); border: 1px solid rgba(169, 200, 240, 0.24);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
}
.controls button {
  display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: #FFFFFF; cursor: pointer;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em;
}
.controls button .ui-icon { font-size: 18px; }
.controls button:hover { background: rgba(169, 200, 240, 0.14); }
#play { border-left: 1px solid rgba(169, 200, 240, 0.24); border-radius: 0 999px 999px 0; color: var(--gold); white-space: nowrap; }
#counter { min-width: 52px; text-align: center; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; color: var(--on-dark-2); }

/* ---------- Desktop: centered architectural frame ---------- */
@media screen and (min-width: 701px) {
  html, body { width: 100%; height: 100%; overflow: hidden; }
  body { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
  .deck {
    width: var(--fw); height: var(--fh); flex: none;
    border-radius: 18px;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  .slide { width: 100%; height: 100%; overflow: hidden; }
  .controls { flex: none; }
}

/* ---------- Short desktop viewports (e.g. 1366x768): keep body copy at its floor, tighten chrome ---------- */
@media screen and (min-width: 701px) and (max-height: 860px) {
  .slide:not(.cover) { padding-bottom: calc(var(--pad-y) * 1.2); }
  .journey-head { margin-bottom: calc(var(--fh) * 0.022); }
  .today-thumb { width: clamp(220px, calc(var(--fh) * 0.4), 300px); }
  .today-thumb figcaption { display: none; }
  .journey-card { gap: 8px; padding: 16px 20px 14px; }
  .concept-notes { gap: 8px; margin-top: 16px; }
  .note { padding: 11px 16px; }
  .browser-window figcaption .chips { display: none; }
}

/* ---------- Tablet ---------- */
@media screen and (min-width: 701px) and (max-width: 1100px) {
  .split-foundation, .split-website, .close-grid { grid-template-columns: 1fr 1fr; }
  .journey-head .today-thumb { display: none; }
  .header-meta { font-size: 12px; }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 700px) {
  :root { --fh: 760px; --fw: 100vw; }
  html, body { height: auto; overflow-x: hidden; }
  body { padding-bottom: 84px; background: var(--navy); }
  .deck { width: 100%; }
  .slide { width: 100%; min-height: 100svh; }
  .slide:not(.cover) { padding: 20px 18px 36px; }
  .slide.active { gap: 18px; }
  .slide-header { margin-bottom: 4px; flex-wrap: wrap; gap: 12px; }
  .header-meta { font-size: 12px; }
  .slide.cover.active { display: flex; flex-direction: column; padding: 0; }
  .hero-copy { padding: 26px 18px 24px; gap: 22px; }
  .cover-lockup { gap: 16px; }
  .cover-badge { width: 88px; }
  .cover-wordmark b { font-size: 24px; }
  .cover-message h1 { font-size: 34px; }
  .cover-stats { grid-template-columns: 1fr; gap: 14px; }
  .stat + .stat { padding-left: 0; border-left: 0; padding-top: 14px; border-top: 1px solid var(--line-d); }
  .hero-visual { height: 118vw; }
  .hero-browser { width: auto; right: 14px; left: 14px; bottom: 14px; }
  .split, .split-foundation, .split-website, .close-grid,
  .journey-head, .proof-head, .exec-head,
  .journey-grid, .exec-cards-grid, .comparison, .exec-footer-bar { grid-template-columns: minmax(0, 1fr); }
  .journey-head .today-thumb { width: 100%; }
  .comparison { gap: 18px; }
  .case-frame { width: 100%; }
  .case-arrow { justify-self: center; transform: rotate(90deg); }
  .exec-cards-grid { grid-template-rows: none; row-gap: 16px; }
  .exec-phase-card { display: flex; flex-direction: column; grid-row: auto; }
  .exec-big { align-self: stretch; margin-top: 4px; }
  .case-viewport { height: auto; }
  .mock-hero-stage { height: auto; aspect-ratio: 1376 / 768; }
  .exec-footer-bar span + span { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .partner-card { grid-template-columns: 1fr; }
  .suggestions, .picker-grid { grid-template-columns: 1fr; }
  .browser-window figcaption .chips { display: none; }
  .page { position: static; align-self: flex-end; }
  .cover .page { position: absolute; }
  .controls { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .state-map .pin-pulse { animation: pin-pulse 2.6s ease-out infinite; }
  @keyframes pin-pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.1); opacity: 0; } }
  .slide.active .hero-browser { animation: rise-in 900ms cubic-bezier(.2, .7, .2, 1) both 200ms; }
  @keyframes rise-in { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Print ---------- */
@media print {
  @page { size: 1600px 900px; margin: 0; }
  html, body { background: #FFFFFF; height: auto; overflow: visible; }
  .controls { display: none !important; }
  .deck { width: 1600px; overflow: visible; }
  .slide, .slide.active { display: flex !important; width: 1600px; height: 900px; break-after: page; overflow: hidden; }
  .slide.cover, .slide.cover.active { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 0.74fr); padding: 0; }
  :root { --fh: 900px; --fw: 1600px; }
  .screen-request { display: none; }
  .print-contact { display: block; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--ink); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
