/* ==========================================================================
   Maritza’s Mexican Food · client sales deck
   Palette taken from the Mt Acadia storefront sign: script green, sign red,
   white sign face, set on warm espresso and masa cream.
   Every text colour below is paired with its slide background at AAA
   (7:1 for body and labels, 4.5:1 for display type).
   ========================================================================== */

@font-face {
  font-family: 'Gelasio';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('assets/fonts/gelasio-500-700-latin.woff2') format('woff2');
}

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

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
}

/* Storefront sign lettering: brush script over condensed block capitals. */
@font-face {
  font-family: 'Yellowtail';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('assets/fonts/yellowtail-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: block;
  src: url('assets/fonts/oswald-500-700-latin.woff2') format('woff2');
}

/* --- Tokens --- */
:root {
  --espresso: #1A1310;      /* dark slide */
  --espresso-2: #241A16;    /* card on dark */
  --espresso-3: #2E221D;
  --masa: #F7F0E4;          /* light slide */
  --masa-2: #FFFDF8;        /* card on light */
  --line: #DCCDB8;
  --line-dark: rgba(247, 240, 228, 0.16);

  --ink: #1A1310;           /* 16.2:1 on masa */
  --ink-2: #45372E;         /* 10.1:1 on masa */
  --cream: #F7F0E4;         /* 16.2:1 on espresso */
  --cream-2: #E3D7C6;       /* 13.0:1 on espresso */

  --sign-red: #C8102E;      /* display only: 5.4:1 on masa, 5.9:1 on sign white */
  --red-ink: #9E0F25;       /* small text: 7.3:1 on masa, 8.2:1 on white */
  --sign-green: #176249;    /* sign script: 7.3:1 on sign white */
  --marigold: #F2B04C;      /* accent on dark: 9.6:1 on espresso */

  --font-display: 'Gelasio', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: #0F0A08;
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; opacity: 1; filter: none; }
figure { margin: 0; }

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Stage: a true 16:9 slide that scales as one piece --- */
#deck {
  position: relative;
  container-type: inline-size;
  --fs-h1: 3.05cqw;
  --fs-h2: 2.6cqw;
  --fs-h3: 1.22cqw;
  --fs-lead: 1.1cqw;
  --fs-body: max(12.5px, 0.94cqw);
  --fs-label: max(12px, 0.74cqw);
  --sign: 2.05cqw;
  --sign-hero: 3.9cqw;
  --pad-top: 1.9cqw;
  --pad-x: 2.8cqw;
  --pad-bottom: 2.7cqw;
  --gap: 1.2cqw;
  --radius: 0.75cqw;
}

@media screen and (min-width: 701px) {
  html, body { height: 100%; overflow: hidden; }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: max(56px, 5vh);
  }

  #deck {
    --deck-w: min(96vw, calc(86vh * 16 / 9));
    width: var(--deck-w);
    height: calc(var(--deck-w) * 9 / 16);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    background: var(--masa);
  }

  .slide {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow: hidden;
  }
}

.slide {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--pad-top) var(--pad-x) var(--pad-bottom);
}

@media screen {
  .slide:not(.active) { display: none; }
}

.slide.paper { background: var(--masa); color: var(--ink); }
.slide.dark { background: var(--espresso); color: var(--cream); }

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

h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.012em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

h1 .accent, h2 .accent { display: block; }
.paper .accent { color: var(--sign-red); }
.dark .accent { color: var(--marigold); }

.eyebrow {
  margin: 0 0 0.9em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.paper .eyebrow { color: var(--red-ink); }
.dark .eyebrow { color: var(--marigold); }

.lead, .intro {
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 60ch;
}
.paper .lead { color: var(--ink-2); }
.dark .lead, .dark .intro { color: var(--cream-2); }

p { margin: 0; }

/* --- Client brand mark: a recreation of the storefront sign face --- */
.brand-sign {
  --s: var(--sign);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex: none;
  padding: calc(var(--s) * 0.2) calc(var(--s) * 0.62) calc(var(--s) * 0.24);
  background: #FFFFFF;
  border-radius: calc(var(--s) * 0.16);
  box-shadow:
    inset 0 0 0 calc(var(--s) * 0.085) #3A3532,
    inset 0 0 0 calc(var(--s) * 0.15) #FFFFFF,
    inset 0 0 0 calc(var(--s) * 0.175) #D9D3CC;
  line-height: 1;
  opacity: 1;
  filter: none;
  user-select: none;
}

.sign-script {
  font-family: 'Yellowtail', 'Brush Script MT', cursive;
  font-size: calc(var(--s) * 1.06);
  line-height: 1;
  color: var(--sign-green);
  margin: 0 0 calc(var(--s) * -0.16) calc(var(--s) * -0.7);
  padding-right: 0.08em;
}

.sign-block {
  font-family: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  font-weight: 700;
  font-size: var(--s);
  line-height: 1.04;
  letter-spacing: 0.004em;
  color: var(--sign-red);
  white-space: nowrap;
}

.dark .brand-sign {
  box-shadow:
    inset 0 0 0 calc(var(--s) * 0.085) #3A3532,
    inset 0 0 0 calc(var(--s) * 0.15) #FFFFFF,
    inset 0 0 0 calc(var(--s) * 0.175) #D9D3CC,
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 calc(var(--s) * 0.3) calc(var(--s) * 0.9) rgba(0, 0, 0, 0.45);
}

.paper .brand-sign {
  box-shadow:
    inset 0 0 0 calc(var(--s) * 0.085) #3A3532,
    inset 0 0 0 calc(var(--s) * 0.15) #FFFFFF,
    inset 0 0 0 calc(var(--s) * 0.175) #D9D3CC,
    0 calc(var(--s) * 0.2) calc(var(--s) * 0.6) rgba(26, 19, 16, 0.14);
}

.brand-sign--hero { --s: var(--sign-hero); }

/* --- Slide header --- */
.slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding-bottom: 0.9cqw;
  margin-bottom: 1.5cqw;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.dark .slide-head { border-bottom-color: var(--line-dark); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.section-tag::before {
  content: '';
  width: 2.2em;
  height: 2px;
  background: currentColor;
}
.paper .section-tag { color: var(--ink-2); }
.paper .section-tag::before { background: var(--sign-red); }
.dark .section-tag { color: var(--cream-2); }
.dark .section-tag::before { background: var(--marigold); }

.folio {
  position: absolute;
  right: var(--pad-x);
  bottom: calc(var(--pad-bottom) * 0.42);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.16em;
}
.paper .folio { color: var(--ink-2); }
.dark .folio { color: var(--cream-2); }

.num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.paper .num { background: var(--red-ink); color: #FFFFFF; }
.dark .num { background: var(--marigold); color: var(--espresso); }

.cap-tag {
  display: inline-block;
  margin-right: 0.8em;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Browser chrome shared by every website frame --- */
.chrome {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 0.62em 1em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  background: #ECE6DD;
  color: var(--ink);
  border-bottom: 1px solid #D5CCBF;
}

.dots { display: inline-flex; gap: 0.45em; }
.dots i { width: 0.78em; height: 0.78em; border-radius: 50%; background: #E0544B; }
.dots i:nth-child(2) { background: #E9B23E; }
.dots i:nth-child(3) { background: #4FB25E; }

.address {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  flex: 1;
  min-width: 0;
  padding: 0.3em 0.9em;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.address.secure .icon { color: #1E6B4B; }
.address.insecure .icon { color: var(--red-ink); }
.address.insecure b { color: var(--red-ink); font-weight: 700; }
.address.insecure b::after { content: ''; display: inline-block; width: 1px; height: 1em; margin-left: 0.6em; background: #C9BFB1; vertical-align: -0.15em; }

/* ==========================================================================
   SLIDE 1 · COVER
   ========================================================================== */
.slide.cover {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  column-gap: 3.2cqw;
  padding-top: 6.4cqw;
  background:
    radial-gradient(120% 90% at 85% 60%, #2A1E18 0%, rgba(42, 30, 24, 0) 60%),
    var(--espresso);
}
@media screen {
  .slide.cover:not(.active) { display: none; }
}

.picado {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6.2cqw;
  pointer-events: none;
}
.picado canvas, .picado svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.picado svg { display: none; }
.picado.no-webgl canvas { display: none; }
.picado.no-webgl svg { display: block; }

.cover-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.cover-copy .brand-sign { margin-bottom: 2.1cqw; }
.cover-copy .eyebrow { margin-bottom: 0.9cqw; }
.cover-copy h1 { margin-bottom: 1.3cqw; }
.cover-copy .intro { max-width: 52ch; margin-bottom: 1.6cqw; }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5cqw;
  margin: 0 0 1.8cqw;
  padding: 0;
  list-style: none;
}
.fact-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.95em;
  border-radius: 999px;
  background: var(--espresso-2);
  border: 1px solid var(--line-dark);
  color: var(--cream);
  font-size: calc(var(--fs-body) * 0.92);
  font-weight: 600;
  white-space: nowrap;
}
.fact-row .icon { color: var(--marigold); font-size: 1.1em; }

.prepared {
  display: flex;
  align-items: center;
  gap: 1em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.prepared img { height: 1.9cqw; width: auto; }

.cover-stage {
  position: relative;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.storefront {
  width: 90%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2cqw 4cqw rgba(0, 0, 0, 0.5);
}
.storefront img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
.storefront figcaption,
.place-panel figcaption {
  display: flex;
  align-items: center;
  padding: 0.85em 1.2em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--cream);
}
.storefront figcaption { justify-content: flex-end; }
.storefront .cap-tag { color: var(--marigold); }

.concept-card {
  position: absolute;
  left: 0;
  bottom: 9%;
  width: 43%;
  border-radius: calc(var(--radius) * 0.8);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1.6cqw 3.4cqw rgba(0, 0, 0, 0.55);
}
.mini-chrome {
  display: flex;
  align-items: center;
  gap: 0.8em;
  padding: 0.5em 0.8em;
  background: #ECE6DD;
  font-family: var(--font-mono);
  font-size: max(12px, 0.62cqw);
  color: var(--ink);
}
.mini-chrome .dots i { width: 0.7em; height: 0.7em; }
.mini-url { padding: 0.15em 0.8em; border-radius: 999px; background: #FFFFFF; }
.concept-card img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; }
.concept-card figcaption {
  padding: 0.6em 0.9em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-ink);
  background: #FFFFFF;
}

/* ==========================================================================
   SLIDE 2 · NEIGHBORHOOD INSTITUTION
   ========================================================================== */
.institution {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 3cqw;
  align-items: stretch;
}

.place-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso);
  box-shadow: 0 1.2cqw 2.6cqw rgba(26, 19, 16, 0.18);
}
.place-panel img {
  flex: 1;
  min-height: 0;
  width: 100%;
  object-fit: cover;
  object-position: 63% 20%;
}
.place-panel figcaption {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  padding: 1em 1.2em 1.1em;
}
.place-panel figcaption span { display: inline-flex; align-items: center; gap: 0.6em; }
.place-panel .icon { color: var(--marigold); font-size: 1.15em; }

.institution-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.institution-copy h2 { margin-bottom: 1cqw; }
.institution-copy .lead { margin-bottom: 1.7cqw; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.menu-card {
  padding: 1.25cqw 1.35cqw 1.35cqw;
  border-radius: var(--radius);
  background: var(--masa-2);
  border: 1px solid var(--line);
}
.menu-card .num { margin-bottom: 0.8cqw; }
.menu-card h3 { margin-bottom: 0.45cqw; color: var(--ink); }
.menu-card p { font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }

/* ==========================================================================
   SLIDE 3 · CUSTOMER JOURNEY
   ========================================================================== */
.journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3cqw;
  align-items: end;
  margin-bottom: 1.8cqw;
}
.journey {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3cqw;
  align-items: stretch;
}

.site-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1.6cqw 3.6cqw rgba(0, 0, 0, 0.5);
}
/* The screenshot fills its frame (cover, pinned top-centre); markers follow the image's own coordinates. */
.site-frame .shot { position: relative; flex: 1; min-height: 0; container-type: size; --iw: max(100cqw, 160cqh); --ih: max(62.5cqw, 100cqh); }
.site-frame .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--espresso);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  box-shadow: 0 0 0 3px var(--espresso), 0 0.3cqw 0.8cqw rgba(0, 0, 0, 0.4);
}
.chrome .marker { position: static; flex: none; margin-left: -0.6em; }
.site-frame .address { flex: 0 1 auto; }
.marker.m2 { left: calc((100cqw - var(--iw)) / 2 + 0.295 * var(--iw)); top: calc(0.416 * var(--ih)); }
.marker.m3 { left: calc((100cqw - var(--iw)) / 2 + 0.273 * var(--iw)); top: calc(0.59 * var(--ih)); }

.issue-list { display: flex; flex-direction: column; justify-content: space-between; gap: 0.9cqw; }
.issue {
  display: flex;
  gap: 1.1cqw;
  align-items: flex-start;
  padding: 1.05cqw 1.3cqw;
  border-radius: var(--radius);
  background: var(--espresso-2);
  border: 1px solid var(--line-dark);
}
.issue h3 { margin-bottom: 0.3cqw; color: var(--cream); }
.issue p { font-size: max(12px, 0.92cqw); line-height: 1.55; color: var(--cream-2); }

.takeaway {
  padding: 1cqw 1.3cqw;
  border-left: 3px solid var(--marigold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--espresso-3);
  font-size: max(12px, 0.92cqw);
  line-height: 1.55;
  color: var(--cream);
}
.takeaway strong { color: var(--marigold); }

/* ==========================================================================
   SLIDE 4 · WEBSITE CONCEPT
   ========================================================================== */
.concept {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3cqw;
  align-items: center;
}
.concept-copy h2 { margin-bottom: 1cqw; }
.concept-copy .lead { margin-bottom: 1.6cqw; }

.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.9cqw; }
.steps li {
  display: flex;
  gap: 1.1cqw;
  align-items: flex-start;
  padding: 1cqw 1.2cqw;
  border-radius: var(--radius);
  background: var(--masa-2);
  border: 1px solid var(--line);
}
.steps h3 { margin-bottom: 0.3cqw; color: var(--ink); }
.steps p { font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); }

.browser {
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #CFC4B5;
  box-shadow: 0 1.6cqw 3.6cqw rgba(26, 19, 16, 0.22);
}
.browser-view {
  height: clamp(300px, 42vh, 440px);
  aspect-ratio: 1376 / 768;
  background: #FFFFFF;
}
.browser-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.browser figcaption {
  padding: 0.75em 1.1em;
  border-top: 1px solid #E4DCD0;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

/* ==========================================================================
   SLIDE 5 · CRAFT IN PRACTICE
   ========================================================================== */
.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3cqw;
  align-items: end;
  margin-bottom: 2cqw;
}

.comparison {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
}
.comp {
  flex: none;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--espresso-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1.6cqw 3.6cqw rgba(0, 0, 0, 0.5);
}
.comp-view {
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  background: #FFFFFF;
}
.comp-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.comp figcaption {
  padding: 0.85em 1.1em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  color: var(--cream);
}
.comp .cap-tag { color: var(--cream-2); }
.comp .cap-tag.after { color: var(--marigold); }

.comp-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 3cqw;
  height: 3cqw;
  border-radius: 50%;
  background: var(--marigold);
  color: var(--espresso);
  font-size: 1.5cqw;
}
.comp-arrow .icon { stroke-width: 2.4; }

/* ==========================================================================
   SLIDE 6 · ROADMAP
   ========================================================================== */
.roadmap-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3cqw;
  align-items: end;
  margin-bottom: 1.6cqw;
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-bottom: var(--gap);
}
.phase {
  display: flex;
  flex-direction: column;
  padding: 1.6cqw 1.8cqw 1.7cqw;
  border-radius: var(--radius);
  background: var(--masa-2);
  border: 1px solid var(--line);
}
.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-bottom: 1.2cqw; }
.phase-num {
  padding: 0.45em 0.9em;
  border-radius: 999px;
  background: var(--red-ink);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.phase-days {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.phase h3 { margin-bottom: 0.5cqw; color: var(--ink); font-size: calc(var(--fs-h3) * 1.3); }
.phase > p { margin-bottom: 1.1cqw; font-size: calc(var(--fs-body) * 1.1); line-height: 1.55; color: var(--ink-2); }
.phase ul {
  display: flex;
  flex-direction: column;
  gap: 0.7cqw;
  margin: auto 0 0;
  padding: 1.1cqw 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.phase li {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  font-size: calc(var(--fs-body) * 1.08);
  line-height: 1.45;
  color: var(--ink);
}
.phase li .icon { margin-top: 0.2em; color: var(--sign-green); stroke-width: 2.6; }

.phase.featured { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.phase.featured h3, .phase.featured li { color: var(--cream); }
.phase.featured > p { color: var(--cream-2); }
.phase.featured .phase-num { background: var(--marigold); color: var(--espresso); }
.phase.featured .phase-days { color: var(--marigold); }
.phase.featured ul { border-top-color: var(--line-dark); }
.phase.featured li .icon { color: var(--marigold); }

.rail {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: auto 0 1.1cqw;
  padding: 0;
  list-style: none;
}
.rail::before {
  content: '';
  position: absolute;
  left: 0.55cqw;
  right: 0.55cqw;
  bottom: calc(0.55cqw - 1px);
  height: 2px;
  background: var(--red-ink);
}
.rail li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  padding-bottom: 1.9cqw;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
}
.rail li::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 50%;
  background: var(--red-ink);
  box-shadow: 0 0 0 0.3cqw var(--masa);
}
.rail li:first-child { align-items: flex-start; }
.rail li:first-child::after { left: 0; }
.rail li:last-child { align-items: flex-end; }
.rail li:last-child::after { right: 0; background: var(--masa); box-shadow: inset 0 0 0 2px var(--red-ink), 0 0 0 0.3cqw var(--masa); }
.rail li.live::after { background: var(--espresso); box-shadow: 0 0 0 0.3cqw var(--masa), 0 0 0 calc(0.3cqw + 2px) var(--espresso); }
.rail span {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-ink);
}

.roadmap-bar {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--espresso);
  overflow: hidden;
}
.roadmap-bar span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.8em;
  padding: 1.15cqw 1cqw;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-2);
}
.roadmap-bar span + span { border-left: 1px solid var(--line-dark); }
.roadmap-bar b {
  font-family: var(--font-display);
  font-size: calc(var(--fs-h3) * 1.05);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--marigold);
}

/* ==========================================================================
   SLIDE 7 · PARTNER & CONVERSATION
   ========================================================================== */
.closing-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 3cqw;
  align-items: center;
}
.closing-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.closing-copy h2 { margin-bottom: 1.2cqw; font-size: calc(var(--fs-h2) * 1.15); }
.closing-copy .lead { margin-bottom: 2cqw; font-size: calc(var(--fs-lead) * 1.05); }

.partner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.9cqw;
  align-items: start;
  width: 100%;
  padding: 2cqw;
  border-radius: var(--radius);
  background: var(--espresso-2);
  border: 1px solid var(--line-dark);
}
.partner-photo {
  width: clamp(112px, 8.6cqw, 140px);
  height: clamp(112px, 8.6cqw, 140px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: 0 0 0 3px var(--marigold), 0 0.8cqw 1.8cqw rgba(0, 0, 0, 0.45);
}
.partner-details h3 { font-size: calc(var(--fs-h3) * 1.55); color: var(--cream); }
.partner-role {
  display: block;
  margin: 0.35cqw 0 0.9cqw;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.partner blockquote {
  margin: 0 0 1.3cqw;
  padding-left: 1.1cqw;
  border-left: 2px solid var(--marigold);
  font-size: calc(var(--fs-body) * 1.08);
  line-height: 1.6;
  color: var(--cream-2);
}
.partner-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6cqw 1.8cqw;
  margin: 0;
}
.partner-contacts div { display: flex; flex-direction: column; gap: 0.2em; }
.partner-contacts dt {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}
.partner-contacts dd { margin: 0; font-size: calc(var(--fs-body) * 1.08); font-weight: 600; color: var(--cream); }
.partner-contacts a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--marigold); text-underline-offset: 0.2em; }

.closing-brand { height: 1.9cqw; width: auto; margin-top: 1.6cqw; }

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 2.1cqw 2.2cqw;
  border-radius: var(--radius);
  background: var(--masa-2);
  color: var(--ink);
  box-shadow: 0 1.6cqw 3.6cqw rgba(0, 0, 0, 0.45);
}
.contact-card .eyebrow { color: var(--red-ink); margin-bottom: 0.5cqw; }
.contact-card h3 { font-size: calc(var(--fs-h2) * 0.95); margin-bottom: 0.5cqw; color: var(--ink); }
.card-desc { margin-bottom: 1cqw; font-size: calc(var(--fs-body) * 1.05); line-height: 1.5; color: var(--ink-2); }

.time-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.6em;
  cursor: pointer;
  list-style: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.time-disclosure summary::-webkit-details-marker { display: none; }
.disclosure-icon { width: 1.3em; height: 1.3em; fill: none; stroke: var(--red-ink); stroke-width: 2.2; stroke-linecap: round; }
.time-disclosure[open] .disclosure-vertical { display: none; }

.time-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6cqw; margin: 0.2cqw 0 0.6cqw; }
.time-actions button {
  min-height: 44px;
  padding: 0.6em 0.8em;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--masa);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.time-actions button:hover { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }

.contact-card label {
  display: block;
  margin: 0.5cqw 0 0.25cqw;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.date-field { display: flex; gap: 0.5cqw; }
.date-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.5em 0.8em;
  border-radius: 8px;
  border: 1px solid #CDBFAB;
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-size: max(13px, var(--fs-label));
  color: var(--ink);
}
.date-field input::-webkit-calendar-picker-indicator { display: none; }
.date-field .picker {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #CDBFAB;
  background: var(--masa);
  color: var(--ink);
  font-size: 18px;
}

#status, #picker-fallback {
  margin: 0.6cqw 0 0;
  min-height: 1.4em;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--ink-2);
}

#draft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  min-height: 48px;
  margin-top: 0.9cqw;
  padding: 0.8em 1.2em;
  border-radius: 8px;
  background: var(--red-ink);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.15s ease;
}
#draft:hover { background: #7E0B1D; }
#draft .icon { font-size: 1.2em; stroke-width: 2.2; }

.contact-card small {
  display: block;
  margin-top: 0.7cqw;
  font-size: var(--fs-label);
  line-height: 1.45;
  color: var(--ink-2);
}
.print-contact { display: none; }

/* --- Focus --- */
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.paper :focus-visible, .contact-card :focus-visible { outline-color: var(--red-ink); }

/* --- Presentation controls --- */
.controls {
  position: fixed;
  left: 50%;
  bottom: max(10px, 1.2vh);
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(26, 19, 16, 0.94);
  border: 1px solid rgba(247, 240, 228, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  color: var(--cream);
}
.controls button {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
}
.controls button:hover { background: rgba(247, 240, 228, 0.1); }
.controls .icon { width: 16px; height: 16px; }
#counter {
  min-width: 52px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
#autoplay {
  border-left: 1px solid rgba(247, 240, 228, 0.22);
  border-radius: 0 999px 999px 0;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   PHONE (700px and below): one slide at a time, scrolling natively
   ========================================================================== */
@media screen and (max-width: 700px) {
  body { background: var(--espresso); }

  #deck {
    --fs-h1: 33px;
    --fs-h2: 28px;
    --fs-h3: 19px;
    --fs-lead: 16px;
    --fs-body: 15px;
    --fs-label: 12px;
    --sign: 22px;
    --sign-hero: 40px;
    --pad-top: 18px;
    --pad-x: 18px;
    --pad-bottom: 96px;
    --gap: 12px;
    --radius: 12px;
  }

  .slide { min-height: 100svh; gap: 0; }
  .slide.cover, .institution, .journey-head, .journey, .concept, .proof-head, .roadmap-head, .closing-grid, .phases, .roadmap-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .slide.cover { padding-top: 92px; }
  .slide.cover:not(.active) { display: none; }
  .picado { height: 80px; }

  .slide-head { gap: 12px; padding-bottom: 12px; margin-bottom: 18px; }
  .section-tag::before { display: none; }
  .section-tag { text-align: right; letter-spacing: 0.1em; }

  .cover-copy .brand-sign { margin-bottom: 22px; }
  .cover-copy .eyebrow, .cover-copy h1, .cover-copy .intro, .fact-row { margin-bottom: 14px; }
  .fact-row { gap: 8px; }
  .fact-row li { white-space: normal; }
  .prepared img { height: 22px; }
  .cover-stage { flex-direction: column; gap: 14px; height: auto; }
  .storefront { width: 100%; }
  .concept-card { position: static; width: 100%; }

  .place-panel img { flex: none; aspect-ratio: 4 / 3; }
  .institution-copy h2, .institution-copy .lead, .concept-copy h2, .concept-copy .lead, .closing-copy h2, .closing-copy .lead { margin-bottom: 14px; }
  .menu-grid { grid-template-columns: 1fr; gap: 10px; }
  .menu-card, .issue, .steps li, .phase, .takeaway { padding: 16px; }
  .menu-card .num { margin-bottom: 10px; }
  .issue, .steps li { gap: 14px; }
  .issue-list, .steps { gap: 10px; }

  .chrome { gap: 10px; }
  .site-frame { width: 100%; }
  .site-frame .shot { container-type: normal; flex: none; }
  .site-frame .shot img { height: auto; aspect-ratio: 16 / 10; }
  .marker.m2 { left: 21%; top: 41.6%; }
  .marker.m3 { left: 27.3%; top: 59%; }
  .closing-copy h2 { font-size: var(--fs-h2); }
  .marker.m2, .marker.m3 { font-size: 11px; }

  .browser-view, .comp-view { height: auto; width: 100%; }
  .comparison { flex-direction: column; gap: 12px; }
  .comp { width: 100%; }
  .comp-arrow { width: 40px; height: 40px; font-size: 20px; transform: rotate(90deg); }

  .rail { margin: 0 0 16px; }
  .rail li { font-size: 12px; padding-bottom: 26px; text-align: center; }
  .rail li::after { width: 12px; height: 12px; box-shadow: 0 0 0 3px var(--masa); }
  .rail::before { left: 6px; right: 6px; bottom: 5px; }
  .phase-top { margin-bottom: 12px; }
  .phase > p { margin-bottom: 12px; }
  .phase ul { gap: 8px; padding-top: 12px; }
  .roadmap-bar { gap: 0; }
  .roadmap-bar span { justify-content: space-between; padding: 14px 16px; }
  .roadmap-bar span + span { border-left: 0; border-top: 1px solid var(--line-dark); }

  .partner { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px; gap: 16px; }
  .partner-photo { width: 120px; height: 120px; }
  .partner-role { margin: 6px 0 12px; }
  .partner blockquote { padding: 12px 0 0; border-left: 0; border-top: 2px solid var(--marigold); margin-bottom: 14px; }
  .partner-contacts { justify-content: center; gap: 10px 20px; }
  .closing-brand { height: 24px; margin-top: 18px; }
  .contact-card { padding: 20px; }
  .contact-card h3 { font-size: 26px; }
  .time-actions, .date-field { gap: 8px; }
  #status { margin-top: 8px; }
  #draft { margin-top: 12px; }
  .contact-card small { margin-top: 10px; }

  .folio { display: none; }
}

/* ==========================================================================
   PRINT: one 16:9 page per slide, colours kept
   ========================================================================== */
@media print {
  @page { size: 13.333in 7.5in; margin: 0; }
  html, body { background: #FFFFFF; height: auto; overflow: visible; }
  body { display: block; padding: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #deck { width: 13.333in; height: auto; box-shadow: none; border-radius: 0; overflow: visible; }
  .slide {
    position: relative;
    height: 7.5in;
    overflow: hidden;
    break-after: page;
    page-break-after: always;
  }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .slide.cover { display: grid; }
  .picado canvas { display: none; }
  .picado svg { display: block; }
  .controls, .time-disclosure, #draft, .contact-card small { display: none; }
  .print-contact {
    display: block;
    margin-top: 1cqw;
    font-family: var(--font-mono);
    font-size: 10pt;
    font-weight: 700;
    color: var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
