/* ==========================================================================
   Lupita’s Taqueria & Panaderia · Brandcore creative direction
   Palette drawn from the storefront sign at 2341 El Camino Real:
   sign red, cilantro green, masa cream, roasted cacao, marigold, concha pink.
   Every text colour below is AAA against the surface it sits on.
   ========================================================================== */

/* --- Fonts (self-hosted, OFL) --- */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/bitter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-wdth-wght-normal.woff2') format('woff2');
}

/* Archivo's and Bitter's ampersands read as an "S" at a glance; both borrow
   Plus Jakarta Sans's classic "&" so the client's name is unmistakable. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  unicode-range: U+0026;
}

@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  unicode-range: U+0026;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
}

/* --- Tokens --- */
:root {
  --cream: #FBF5EA;
  --linen: #F4EADB;
  --paper: #FFFFFF;
  --ink: #1C120D;
  --ink-2: #47352B;
  --ink-3: #574337;
  --line: #E4D4C0;
  --line-strong: #D3BEA6;

  --red: #C41E2E;
  --red-deep: #94111F;
  --green: #17663A;
  --green-deep: #0F4D2B;
  --marigold: #F2A93B;
  --pink: #E7799A;

  --cacao: #1C120D;
  --cacao-card: #2B1D15;
  --cacao-raise: #36261C;
  --cacao-line: rgba(251, 245, 234, 0.16);
  --on-dark: #FBF5EA;
  --on-dark-2: #E9DCCB;
  --on-dark-3: #D6C4B0;

  --display: 'Bitter', Georgia, 'Times New Roman', serif;
  --label: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad-x: clamp(20px, 4.4vw, 96px);
  --pad-top: clamp(16px, 3vh, 36px);
  --pad-bottom: clamp(84px, 10.5vh, 116px);
  --gap: clamp(24px, 3.6vw, 76px);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(28, 18, 13, 0.04), 0 20px 40px -28px rgba(28, 18, 13, 0.42);
  --shadow-lg: 0 2px 0 rgba(28, 18, 13, 0.04), 0 34px 70px -34px rgba(28, 18, 13, 0.55);
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--cacao);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }

img { display: block; max-width: 100%; opacity: 1; filter: none; }

a { color: inherit; }

/* Inline line icons: sized by font-size, drawn with currentColor. */
.chips svg, .card-icon, .journey-note svg, .search svg, .browser-url svg,
.compare-arrow svg, .phase li svg, .person-contact svg, .disclosure-icon,
.picker svg, #draft svg, .controls svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* --- Deck & slide frame (full-bleed) --- */
.deck { position: relative; min-height: 100svh; }

.slide {
  display: none;
  position: relative;
  flex-direction: column;
  height: 100svh;
  min-height: 100svh;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
  overflow-x: hidden;
  overflow-y: auto;
}

.slide.active { display: flex; }

.t-cream { background: var(--cream); color: var(--ink); }
.t-linen { background: var(--linen); color: var(--ink); }
.t-cacao {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(196, 30, 46, 0.10), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, rgba(23, 102, 58, 0.10), transparent 60%),
    var(--cacao);
  color: var(--on-dark);
}

.slide-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(12px, 1.6vh, 20px);
  margin-bottom: clamp(14px, 2.6vh, 36px);
  border-bottom: 1px solid var(--line);
}

.t-cacao .slide-head { border-bottom-color: var(--cacao-line); }

.section-tag {
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(12px, 0.8vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-align: right;
}

.t-cacao .section-tag { color: var(--on-dark-2); }

.slide-body {
  flex: 1;
  min-height: 0;
  display: grid;
  align-content: center;
}

.folio {
  position: absolute;
  right: var(--pad-x);
  bottom: clamp(28px, 3.9vh, 46px);
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(12px, 0.75vw, 14px);
  letter-spacing: 0.16em;
  color: var(--ink-3);
}

.t-cacao .folio { color: var(--on-dark-3); }

/* --- Client name plaque: the storefront sign, set in live type --- */
.plaque {
  --plaque: clamp(24px, 1.85vw, 38px);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  flex: none;
  padding: 0.3em 0.62em 0.34em 0.58em;
  font-size: var(--plaque);
  line-height: 1;
  background: var(--paper);
  border-radius: 0.3em;
  box-shadow: 0 0 0 1px rgba(28, 18, 13, 0.12), 0 2px 0 rgba(28, 18, 13, 0.05), 0 0.35em 0.7em -0.4em rgba(28, 18, 13, 0.35);
}

.plaque::after {
  content: "";
  position: absolute;
  inset: 0.15em;
  border: 1.5px solid rgba(23, 102, 58, 0.32);
  border-radius: 0.2em;
  pointer-events: none;
}

.plaque-name {
  font-family: var(--label);
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: 0.005em;
  color: var(--red);
  text-shadow:
    0.022em 0.022em 0 #1F7A41,
    0.044em 0.044em 0 #1A6D39,
    0.066em 0.066em 0 #145A30,
    0.08em 0.1em 0.12em rgba(28, 18, 13, 0.22);
  padding-bottom: 0.06em;
}

.plaque-sub {
  display: flex;
  flex-direction: column;
  gap: 0.18em;
  padding-left: 0.42em;
  border-left: 2px solid rgba(196, 30, 46, 0.55);
  font-family: var(--label);
  font-weight: 800;
  font-stretch: 108%;
  font-size: max(11.5px, 0.37em);
  letter-spacing: 0.12em;
  color: var(--green-deep);
  white-space: nowrap;
}

/* Cover: stacked lockup, name over a ruled sub-line */
.plaque-xl {
  --plaque: clamp(54px, 5.7vw, 116px);
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  padding: 0.24em 0.46em 0.3em;
  border-radius: 0.2em;
  box-shadow: 0 0 0 1px rgba(28, 18, 13, 0.12), 0 3px 0 rgba(28, 18, 13, 0.04), 0 0.22em 0.45em -0.26em rgba(28, 18, 13, 0.4);
}

.plaque-xl::after { inset: 0.09em; border-width: 2px; border-radius: 0.13em; }

.plaque-xl .plaque-sub {
  flex-direction: row;
  align-items: center;
  gap: 0.34em;
  padding-left: 0;
  border-left: 0;
  font-size: 0.215em;
  letter-spacing: 0.16em;
}

.plaque-xl .plaque-sub::before,
.plaque-xl .plaque-sub::after {
  content: "";
  width: 1.7em;
  height: 0.16em;
  border-radius: 1em;
  background: var(--red);
}

/* --- Type --- */
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 4.15vw, 5.3rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 800;
  font-size: clamp(2rem, 3.15vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
}

h1 em, h2 em {
  display: block;
  font-style: normal;
  color: var(--red);
}

h3 { font-weight: 800; letter-spacing: -0.008em; }

.nowrap { white-space: nowrap; }

.t-cacao h1, .t-cacao h2, .t-cacao h3 { color: var(--on-dark); }
.t-cacao h2 em { color: var(--marigold); }

.kicker {
  margin: 0 0 clamp(10px, 1.5vh, 18px);
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(12.5px, 0.85vw, 16px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.t-cacao .kicker { color: var(--marigold); }

.lead, .intro {
  max-width: 40em;
  margin: clamp(12px, 1.8vh, 22px) 0 0;
  font-size: clamp(16px, 1.1vw, 21px);
  line-height: 1.55;
  color: var(--ink-2);
}

.t-cacao .lead { color: var(--on-dark-2); }

.source {
  align-self: flex-start;
  display: inline-block;
  margin-top: clamp(10px, 1.6vh, 18px);
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 600;
  color: var(--red-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  flex: none;
  border-radius: 50%;
  background: var(--red-deep);
  color: #FFFFFF;
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(12.5px, 0.8vw, 15px);
  letter-spacing: 0.04em;
}

.t-cacao .num { background: var(--marigold); color: var(--ink); }

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: var(--gap);
  align-items: end;
}

.split-head .lead { margin: 0; }

/* --- Slide 1: cover --- */
.slide.cover.active { display: grid; }

.slide.cover {
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  grid-template-rows: minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
  padding-top: clamp(20px, 4vh, 48px);
}

.cover-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.plaque-xl { margin-bottom: clamp(22px, 4vh, 48px); }

.cover h1 { margin-top: 0.1em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: clamp(18px, 3vh, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: clamp(13.5px, 0.85vw, 16px);
  font-weight: 600;
  color: var(--ink);
}

.chips svg { width: 1.2em; height: 1.2em; color: var(--red-deep); }

.cover-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: clamp(20px, 3.4vh, 40px) 0 0;
  font-size: clamp(13px, 0.8vw, 15px);
  font-weight: 500;
  color: var(--ink-3);
}

.cover-meta img { height: clamp(18px, 1.2vw, 24px); width: auto; }

.scene {
  position: relative;
  align-self: stretch;
  min-height: 0;
  container-type: size;
}

.scene canvas, .static-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 13cqh;
  pointer-events: none;
}

.static-scene { display: none; }
.scene.no-webgl canvas { display: none; }
.scene.no-webgl .static-scene { display: block; }

.stage-main, .stage-photo { position: absolute; margin: 0; }

.stage-main { top: 13.5cqh; left: 0; width: 100%; }

.stage-main img {
  width: 100%;
  height: min(66cqh, 76cqw);
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.stage-photo { right: 0; bottom: 0; width: 31%; }

.stage-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  max-height: 40cqh;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(28, 18, 13, 0.08), 0 28px 54px -22px rgba(28, 18, 13, 0.6);
}

.stage-main figcaption, .stage-photo figcaption, .photo figcaption {
  margin-top: 12px;
  font-size: clamp(13.5px, 0.82vw, 15.5px);
  line-height: 1.4;
  color: var(--ink-2);
}

.stage-main figcaption b, .stage-photo figcaption b, .photo figcaption b,
.browser figcaption b {
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 0.86em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
}

/* --- Slide 2: two crafts --- */
.crafts {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: var(--gap);
  align-items: center;
}

.crafts-story { display: flex; flex-direction: column; justify-content: center; }

.photo-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(18px, 3vh, 34px);
}

.photo { margin: 0; }

.photo img {
  width: 100%;
  height: clamp(190px, 33vh, 380px);
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.photo:first-child img { object-position: 50% 35%; }

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  align-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: clamp(18px, 1.7vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-icon {
  width: clamp(40px, 2.5vw, 48px);
  height: clamp(40px, 2.5vw, 48px);
  padding: 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: var(--red-deep);
  color: #FFFFFF;
  stroke-width: 1.7;
}

.card:nth-child(2) .card-icon, .card:nth-child(3) .card-icon { background: var(--green-deep); }

.card-kicker {
  font-family: var(--label);
  font-stretch: 108%;
  font-weight: 800;
  font-size: clamp(11.5px, 0.72vw, 13.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.card h3 { font-size: clamp(20px, 1.45vw, 28px); line-height: 1.15; }

.card p {
  margin: 0;
  font-size: clamp(14.5px, 0.94vw, 17.5px);
  line-height: 1.5;
  color: var(--ink-2);
}

/* --- Slide 3: guest journey --- */
.routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.3vw, 26px);
  margin-top: clamp(22px, 4.2vh, 52px);
}

.route {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
  min-height: clamp(250px, 34vh, 380px);
  padding: clamp(20px, 2vw, 38px);
  background: var(--cacao-card);
  border: 1px solid var(--cacao-line);
  border-top: 5px solid var(--marigold);
  border-radius: var(--radius);
}

.route:nth-child(2) { border-top-color: #E2474F; }
.route:nth-child(3) { border-top-color: #3FA45B; }

.route-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.route-time {
  font-family: var(--label);
  font-stretch: 108%;
  font-weight: 800;
  font-size: clamp(12px, 0.78vw, 14.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.route h3 { font-size: clamp(21px, 1.7vw, 33px); line-height: 1.15; }

.route p {
  margin: 0;
  font-size: clamp(14.5px, 1.02vw, 19.5px);
  line-height: 1.5;
  color: var(--on-dark-2);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 6px 0 0; list-style: none; }

.tags li {
  padding: 5px 11px;
  border: 1px solid rgba(251, 245, 234, 0.3);
  border-radius: 999px;
  font-size: clamp(12.5px, 0.76vw, 14.5px);
  font-weight: 600;
  color: var(--on-dark);
}

.journey-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(16px, 3vh, 36px) 0 0;
  padding: clamp(14px, 1.6vh, 20px) clamp(18px, 1.4vw, 26px);
  background: rgba(251, 245, 234, 0.06);
  border: 1px solid var(--cacao-line);
  border-left: 4px solid var(--marigold);
  border-radius: 12px;
  font-size: clamp(14.5px, 0.98vw, 18.5px);
  line-height: 1.5;
  color: var(--on-dark);
}

.journey-note svg { width: 1.4em; height: 1.4em; color: var(--marigold); }
.journey-note b { color: var(--marigold); font-weight: 700; }

/* --- Slide 4: website opportunity --- */
.site {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: var(--gap);
  align-items: center;
}

.steps { display: grid; margin: clamp(18px, 3.2vh, 38px) 0 0; padding: 0; list-style: none; }

.steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(12px, 1.8vh, 20px) 0;
  border-top: 1px solid var(--line);
}

.steps h3 { font-size: clamp(17.5px, 1.2vw, 23px); line-height: 1.25; }

.steps p {
  margin: 4px 0 0;
  font-size: clamp(14.5px, 0.92vw, 17px);
  line-height: 1.5;
  color: var(--ink-2);
}

.browser {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  background: #F1E7DA;
  border-bottom: 1px solid var(--line);
}

.browser-dots { width: 52px; height: 12px; flex: none; }

.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 440px;
  flex: 1;
  padding: 6px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: clamp(13px, 0.78vw, 14.5px);
  font-weight: 600;
  color: var(--ink-2);
}

.browser-url svg { width: 14px; height: 14px; color: var(--green-deep); stroke-width: 2.2; }

.browser-view { height: clamp(300px, 42vh, 440px); }

.browser-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.browser figcaption {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-size: clamp(13.5px, 0.82vw, 15.5px);
  color: var(--ink-2);
}

/* --- Slide 5: Google presence --- */
.google {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: center;
}

.searches { display: grid; gap: 10px; margin-top: clamp(16px, 2.8vh, 32px); max-width: 34em; }

.search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: clamp(15px, 0.95vw, 17.5px);
  color: var(--ink);
}

.search svg { width: 1.2em; height: 1.2em; color: var(--ink-2); }
.search span { flex: 1; }

.search b {
  font-family: var(--label);
  font-weight: 800;
  font-size: 0.78em;
  letter-spacing: 0.12em;
  color: var(--green-deep);
}

.promise {
  margin-top: clamp(16px, 2.8vh, 32px);
  padding: clamp(18px, 1.6vw, 28px) clamp(20px, 1.8vw, 32px);
  background: var(--cacao);
  border-radius: var(--radius);
}

.promise h3 {
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(12.5px, 0.8vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold);
}

.promise p {
  margin: 8px 0 0;
  font-size: clamp(14.5px, 0.95vw, 17.5px);
  line-height: 1.55;
  color: var(--on-dark-2);
}

.checklist {
  padding: clamp(22px, 2vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.checklist-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(12px, 0.78vw, 14.5px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.checklist-head span + span { color: var(--ink-2); }

.checklist ol { display: grid; margin: 0; padding: 0; list-style: none; }

.checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: clamp(13px, 2vh, 22px) 0;
  border-top: 1px solid var(--line);
}

.checklist h3 { font-size: clamp(18px, 1.3vw, 25px); line-height: 1.2; }
.checklist h3 em { font-style: normal; color: var(--red); }

.checklist p {
  margin: 5px 0 0;
  font-size: clamp(14.5px, 0.92vw, 17px);
  line-height: 1.5;
  color: var(--ink-2);
}

/* --- Slide 6: proof --- */
.compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 32px);
  margin-top: clamp(22px, 4vh, 52px);
}

.shot {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--cacao-card);
  border: 1px solid var(--cacao-line);
  border-radius: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.shot .browser-bar { background: var(--cacao-raise); border-bottom-color: var(--cacao-line); }

.shot .browser-url {
  background: var(--cacao-card);
  border-color: var(--cacao-line);
  color: var(--on-dark-2);
}

.shot-view {
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  max-width: 100%;
  background: var(--paper);
}

.shot-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.shot figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: clamp(14px, 0.88vw, 16.5px);
  font-weight: 600;
  color: var(--on-dark);
}

.tag {
  padding: 5px 10px;
  border-radius: 6px;
  font-family: var(--label);
  font-weight: 800;
  font-size: 0.8em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.tag-before { background: var(--on-dark-2); }
.tag-after { background: var(--marigold); }

.compare-arrow { flex: none; display: grid; }

.compare-arrow svg {
  width: clamp(40px, 2.6vw, 52px);
  height: clamp(40px, 2.6vw, 52px);
  padding: 11px;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--ink);
  stroke-width: 2.4;
}

/* --- Slide 7: roadmap --- */
.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.3vw, 26px);
  margin-top: clamp(22px, 4vh, 48px);
}

.phase {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 1.7vw, 32px);
  background: var(--cacao-card);
  border: 1px solid var(--cacao-line);
  border-radius: var(--radius);
}

.phase.featured {
  background: var(--cacao-raise);
  border-color: var(--marigold);
  box-shadow: inset 0 0 0 1px var(--marigold), 0 30px 60px -34px rgba(242, 169, 59, 0.55);
}

.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.phase-num {
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(12.5px, 0.8vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--marigold);
}

.phase-days {
  padding: 5px 12px;
  border: 1px solid rgba(251, 245, 234, 0.38);
  border-radius: 999px;
  font-family: var(--label);
  font-weight: 700;
  font-size: clamp(12px, 0.76vw, 14.5px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.phase h3 { font-size: clamp(20px, 1.5vw, 29px); line-height: 1.2; }

.phase ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--cacao-line);
}

.phase li {
  display: grid;
  grid-template-columns: 1.15em minmax(0, 1fr);
  gap: 10px;
  font-size: clamp(14.5px, 0.98vw, 18px);
  line-height: 1.45;
  color: var(--on-dark-2);
}

.phase li svg { width: 1.15em; height: 1.15em; margin-top: 0.15em; color: var(--marigold); stroke-width: 2.6; }

.milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.3vw, 26px);
  margin-top: clamp(14px, 2.4vh, 28px);
}

.milestones p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: clamp(12px, 1.6vh, 18px) clamp(16px, 1.3vw, 24px);
  background: rgba(251, 245, 234, 0.06);
  border: 1px solid var(--cacao-line);
  border-radius: 14px;
}

.milestones b {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 1.5vw, 29px);
  color: var(--marigold);
}

.milestones span { font-size: clamp(14px, 0.9vw, 17px); font-weight: 600; color: var(--on-dark); }

/* --- Slide 8: closing --- */
.closing-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: var(--gap);
  align-items: center;
}

.person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(18px, 1.7vw, 32px);
  align-items: start;
  margin-top: clamp(20px, 3.4vh, 40px);
  padding: clamp(20px, 1.8vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.portrait {
  width: clamp(112px, 7.2vw, 140px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: transparent;
}

/* Edge-to-edge crop: scaling past the source's baked-in ring leaves only the photo. */
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.1);
}

.person-info h3 { font-size: clamp(25px, 1.8vw, 35px); line-height: 1.1; }

.person-role {
  margin: 6px 0 0;
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(12.5px, 0.8vw, 15px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.person blockquote {
  margin: clamp(12px, 1.8vh, 18px) 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--red);
  font-size: clamp(15px, 0.98vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
}

.person-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: clamp(12px, 1.8vh, 18px) 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(14.5px, 0.92vw, 17px);
  color: var(--ink-2);
}

.person-contact li { display: inline-flex; align-items: center; gap: 8px; }
.person-contact svg { width: 1.15em; height: 1.15em; color: var(--red-deep); }
.person-contact a { color: var(--ink); font-weight: 700; text-decoration: none; }
.person-contact a:hover { text-decoration: underline; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.2vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.contact-card .kicker { margin: 0; }

.card-title { font-size: clamp(30px, 2.4vw, 46px); line-height: 1.05; }

.card-desc { margin: 0; font-size: clamp(15px, 0.95vw, 17.5px); line-height: 1.5; color: var(--ink-2); }

.time-disclosure {
  padding: 4px clamp(14px, 1.2vw, 20px) 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.time-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-family: var(--label);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(12.5px, 0.8vw, 15px);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}

.time-disclosure summary::-webkit-details-marker { display: none; }
.time-disclosure summary::marker { content: ""; }
.time-disclosure summary:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 8px; }

.disclosure-icon { width: 18px; height: 18px; color: var(--red-deep); stroke-width: 2.4; }
.time-disclosure[open] .disclosure-vertical { display: none; }

.time-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.time-actions button {
  min-height: 48px;
  cursor: pointer;
  background: var(--paper);
  border: 1.5px solid var(--red-deep);
  border-radius: 12px;
  font-family: var(--label);
  font-weight: 800;
  font-size: clamp(13px, 0.82vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-deep);
}

.time-actions button:hover, .time-actions button:focus-visible { background: var(--red-deep); color: #FFFFFF; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--label);
  font-weight: 700;
  font-size: clamp(12px, 0.76vw, 14px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.date-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 4px 0 12px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}

.date-field:focus-within { outline: 3px solid var(--marigold); outline-offset: 2px; }

.date-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.date-field input::-webkit-calendar-picker-indicator { display: none; }

.picker {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  cursor: pointer;
  background: var(--linen);
  border: 0;
  border-radius: 10px;
  color: var(--red-deep);
}

.picker svg { width: 20px; height: 20px; }

#status, #picker-fallback { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }

#draft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px;
  background: var(--red-deep);
  border-radius: 14px;
  font-family: var(--label);
  font-stretch: 108%;
  font-weight: 800;
  font-size: clamp(14px, 0.9vw, 16.5px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFFFF;
  box-shadow: 0 16px 30px -18px rgba(156, 19, 35, 0.9);
}

#draft:hover, #draft:focus-visible { background: #7A0E1A; }
#draft:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
#draft svg { width: 1.25em; height: 1.25em; stroke-width: 2.4; }

.card-note { font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }

.contact-card .brand { height: clamp(22px, 1.4vw, 28px); width: auto; align-self: flex-start; margin-top: 4px; }

.print-contact { display: none; }

/* --- Presentation controls --- */
.controls {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 2.4vh, 28px);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  transform: translateX(-50%);
  background: rgba(28, 18, 13, 0.94);
  border: 1px solid rgba(251, 245, 234, 0.16);
  border-radius: 999px;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.controls button {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--on-dark);
}

.controls button:hover { background: rgba(251, 245, 234, 0.1); }
.controls button:focus-visible { outline: 3px solid var(--marigold); outline-offset: 1px; }
.controls svg { width: 20px; height: 20px; stroke-width: 2.1; }

#counter {
  min-width: 58px;
  text-align: center;
  font-family: var(--label);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--on-dark);
}

#autoplay {
  padding: 0 18px;
  border-left: 1px solid rgba(251, 245, 234, 0.2);
  border-radius: 0 999px 999px 0;
  font-family: var(--label);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.12em;
}

/* --- Laptop heights --- */
@media screen and (max-height: 820px) and (min-width: 1101px) {
  .card p, .route p { font-size: 14.5px; }
  .card-icon { width: 38px; height: 38px; padding: 9px; margin-bottom: 2px; }
  .photo img { height: 29vh; }
  .phase { gap: 10px; }
  .phase ul { gap: 7px; }
}

/* --- Tablet --- */
@media screen and (max-width: 1100px) {
  .slide { height: auto; min-height: 100svh; }
  .slide.cover { grid-template-columns: 1fr; grid-template-rows: auto; }
  .scene { container-type: normal; height: auto; display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; align-items: end; padding-top: 110px; }
  .scene canvas, .static-scene { height: 100px; }
  .stage-main, .stage-photo { position: static; width: auto; }
  .stage-main img { height: auto; aspect-ratio: 1.4; }
  .stage-photo img { max-height: none; }
  .crafts, .site, .google, .closing-grid, .split-head { grid-template-columns: 1fr; }
  .split-head { align-items: start; gap: 16px; }
  .routes, .phases, .milestones { grid-template-columns: 1fr; }
  .compare { flex-direction: column; }
  .compare-arrow { transform: rotate(90deg); }
  .shot { width: 100%; }
  .shot-view { height: auto; width: 100%; }
}

/* --- Phone --- */
@media screen and (max-width: 700px) {
  :root { --pad-x: 16px; --pad-top: 14px; --pad-bottom: 92px; }
  .slide { height: 100svh; min-height: 100svh; overflow-y: auto; }
  .slide.cover.active { display: flex; flex-direction: column; gap: 22px; }
  .slide-head { gap: 12px; }
  .section-tag { display: none; }
  .plaque { --plaque: 24px; }
  .plaque-xl { --plaque: clamp(40px, 13vw, 60px); }
  .scene { grid-template-columns: 1fr 0.62fr; padding-top: 70px; }
  .scene canvas, .static-scene { height: 64px; }
  .stage-main img { aspect-ratio: 1.05; border-radius: 16px; }
  .stage-photo img { border-radius: 14px; }
  .photo-pair { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .field-row, .time-actions { grid-template-columns: 1fr; }
  .person { grid-template-columns: 1fr; }
  .folio { display: none; }
  .controls { bottom: 12px; }
  .controls button { min-width: 42px; min-height: 42px; }
}

/* --- Print: one slide per landscape page --- */
@media print {
  @page { size: 16in 9in; margin: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #FFFFFF; }
  .slide, .slide.active {
    display: flex !important;
    height: 9in;
    min-height: 0;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
  }
  .slide.cover { display: grid !important; }
  .controls, .time-disclosure, #draft, .card-note { display: none !important; }
  .print-contact { display: block; font-size: 14px; color: var(--ink); }
  .scene canvas { display: none; }
  .static-scene { display: block; }
}
