/* iGuey Taqueria sales deck — Brandcore
   Palette is drawn from the iGuey logo itself: forest letterforms, sun-yellow
   outline, chili TAQUERIA and comal flames, set on charcoal and masa cream.
   Every small-text pairing below is at least 7:1 against its own background. */

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

:root {
  /* Grounds */
  --char: #14110E;          /* charcoal comal */
  --char-2: #1C1814;
  --char-3: #241E19;
  --cream: #FBF6EE;         /* masa cream */
  --linen: #F4ECDF;
  --card: #FFFFFF;
  /* Ink */
  --ink: #1A1512;           /* 16.8:1 on cream */
  --umber: #4A3F36;         /*  9.5:1 on cream */
  --masa: #D8CCBB;          /* 11.9:1 on charcoal */
  /* Logo colours */
  --sun: #F5D43A;           /* logo outline, 12.9:1 on charcoal */
  --flame: #F39A2E;         /* logo flames, 8.5:1 on charcoal */
  --chili: #C62D1F;         /* TAQUERIA red, large type only on cream (5.1:1) */
  --chili-lite: #FF8A6E;    /* chili on charcoal, 7.2:1 */
  --forest: #1F4A22;        /* logo letterforms, 9.5:1 on cream */
  --forest-deep: #1A3F1D;   /* badge ground, sun numerals at 7.9:1 */
  --forest-tint: #E7EEDD;
  --line-dark: rgba(245, 212, 58, 0.18);
  --line-light: rgba(26, 21, 18, 0.14);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
  --pad-x: 4.4rem;
}

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

html { font-size: 16px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--char);
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input, summary { font: inherit; }

img { max-width: 100%; }

.icon, .calendar-icon, .clock-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

/* ---------- Deck and slide frame ---------- */

#deck, .deck {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slide {
  position: relative;
  display: none;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  padding: 2rem var(--pad-x) 4.6rem;
  overflow: hidden;
  background:
    radial-gradient(70rem 40rem at 92% 112%, rgba(243, 154, 46, 0.13), transparent 62%),
    radial-gradient(50rem 30rem at -6% -10%, rgba(245, 212, 58, 0.06), transparent 60%),
    var(--char);
  color: var(--cream);
}

.slide.active { display: flex; }

.slide.paper {
  background:
    radial-gradient(60rem 34rem at 104% -8%, rgba(245, 212, 58, 0.16), transparent 60%),
    radial-gradient(50rem 30rem at -8% 110%, rgba(31, 74, 34, 0.07), transparent 60%),
    var(--cream);
  color: var(--ink);
}

/* ---------- Type ---------- */

h1, h2, h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  color: inherit;
  text-wrap: balance;
}

h1 {
  font-size: 3.6rem;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0.2rem 0 1.3rem;
}

h2 {
  font-size: 2.85rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0.15rem 0 1rem;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: -0.012em;
}

h1 em, h2 em {
  font-style: normal;
  color: var(--flame);
  background: linear-gradient(92deg, var(--sun) 0%, var(--flame) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide.paper h1 em, .slide.paper h2 em {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--chili);
}

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}

.eyebrow::before, .kicker::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}

.slide.paper .kicker, .slide.paper .eyebrow { color: var(--forest); }

.lead {
  font-size: 1.14rem;
  line-height: 1.58;
  font-weight: 500;
  margin: 0;
  max-width: 40em;
  color: var(--masa);
}

.slide.paper .lead { color: var(--umber); }

/* ---------- Slide header: the client's mark leads every slide ---------- */

.slide-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.05rem;
  margin-bottom: 1.7rem;
  border-bottom: 1px solid var(--line-dark);
}

.slide.paper .slide-head { border-bottom-color: var(--line-light); }

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}

/* Charcoal plaque, like the storefront sign: the yellow outline and flames read
   the way the logo was drawn, on any slide colour. */
.header-logo-plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 4.6rem;
  padding: 0.42rem 1rem;
  border-radius: 1rem;
  background: radial-gradient(120% 150% at 30% 18%, #2B2119 0%, #16120E 68%);
  box-shadow: inset 0 0 0 1px rgba(245, 212, 58, 0.42), 0 0.7rem 1.6rem rgba(20, 17, 14, 0.2);
}

.header-logo-plaque img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 1;
  filter: none;
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--cream);
}

.header-wordmark small {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--masa);
}

.slide.paper .header-wordmark { color: var(--ink); }
.slide.paper .header-wordmark small { color: var(--umber); }

.header-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--masa);
  white-space: nowrap;
}

.slide.paper .header-meta { color: var(--umber); }

.header-tag {
  display: inline-grid;
  place-items: center;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.5rem;
  border-radius: 0.6rem;
  background: var(--forest-deep);
  color: var(--sun);
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1.5px rgba(245, 212, 58, 0.5);
}

/* ---------- Slide footer + folio ---------- */

.slide-foot {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  bottom: 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--masa);
  pointer-events: none;
  z-index: 2;
}

.slide.paper .slide-foot { color: var(--umber); }

.folio { color: inherit; }

.brand-signature {
  display: block;
  height: 1.35rem;
  width: auto;
  opacity: 1;
}

/* ---------- Shared layouts ---------- */

.two, .close-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.head-split {
  flex: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: end;
  margin-bottom: 1.4rem;
}

.head-split h2 { margin-bottom: 0; }

h2.stacked span, h2.stacked em { display: block; white-space: nowrap; }
.head-split .lead { padding-bottom: 0.35rem; }

/* Number badge: forest fill and sun numeral, exactly like the logo letters */
.pillar-num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.75rem;
  background: var(--forest-deep);
  color: var(--sun);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1.5px rgba(245, 212, 58, 0.55);
}

.pillar-list {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.pillar-item {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.pillar-item h3 { margin: 0.1rem 0 0.3rem; font-size: 1.32rem; }

.pillar-item p {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.52;
  color: var(--masa);
}

.slide.paper .pillar-item p { color: var(--umber); }

.source-row {
  margin: 1.6rem 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--umber);
}

.source-row a {
  color: var(--forest);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Browser chrome (shared) ---------- */

.browser-chrome, .case-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  height: 2.35rem;
  padding: 0 0.95rem;
  background: #ECE3D5;
  border-bottom: 1px solid rgba(26, 21, 18, 0.12);
  color: var(--ink);
}

.browser-dots { display: inline-flex; gap: 0.38rem; flex: none; }
.browser-dots i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: #C9BBA8; }
.browser-dots i:nth-child(1) { background: #E2604A; }
.browser-dots i:nth-child(2) { background: #E9B347; }
.browser-dots i:nth-child(3) { background: #5DAA62; }

.browser-url {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  max-width: 22rem;
  margin: 0 auto;
  justify-content: center;
  padding: 0.28rem 0.9rem;
  border-radius: 0.5rem;
  background: #FFFFFF;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}

/* ---------- Slide 1: cover ---------- */

.slide.cover {
  padding-top: 3rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 4.6rem;
  align-items: center;
}

.slide.cover.active { display: grid; }

#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.cover.no-webgl #scene,
#scene[data-webgl="unavailable"] { display: none; }

.cover-copy, .hero-stage { position: relative; z-index: 1; min-width: 0; }

.cover-logo-wrap {
  position: relative;
  width: min(27rem, 100%);
  margin: 0 0 1.5rem -0.6rem;
}

/* Warm comal glow behind the mark; the logo itself is never filtered or faded */
.cover-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -18% -14%;
  background: radial-gradient(closest-side, rgba(243, 154, 46, 0.22), rgba(243, 154, 46, 0.07) 55%, transparent 100%);
  z-index: -1;
}

.cover-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
}

.cover-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.1rem 0 1.4rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.cover-facts div { padding: 0 1.2rem; border-left: 1px solid var(--line-dark); min-width: 0; }
.cover-facts div:first-child { padding-left: 0; border-left: 0; }

.cover-facts dt {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.4rem;
}

.cover-facts dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
}

.cover-credit {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--masa);
}

.hero-stage {
  height: min(46rem, 100%);
  align-self: center;
}

.store-frame, .site-frame { margin: 0; }

.store-frame {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 76%;
  border-radius: 1.3rem;
  overflow: hidden;
  background: #2A231D;
  box-shadow: 0 2.2rem 4.4rem rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(245, 212, 58, 0.22);
}

.store-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
  opacity: 1;
  filter: none;
}

.site-frame {
  position: absolute;
  left: -2.6rem;
  bottom: 0;
  width: 64%;
  border-radius: 1rem;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.site-frame .browser-url { max-width: 12rem; }

.site-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1376 / 768;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

/* ---------- Slide 2: food mosaic ---------- */

.col-copy, .col-visual { min-width: 0; }

.mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  height: 33rem;
}

.mosaic figure {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: var(--linen);
  box-shadow: 0 1.1rem 2.4rem rgba(26, 21, 18, 0.16);
}

.mosaic .tall { grid-row: 1 / span 2; }

.mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
}

.mosaic .tall img { object-position: 30% 50%; }

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.9rem;
  padding: 1.05rem 0;
  border-radius: 1.1rem;
  background: var(--char);
  color: var(--cream);
}

.info-strip div { padding: 0 1.3rem; border-left: 1px solid var(--line-dark); min-width: 0; }
.info-strip div:first-child { border-left: 0; }

.info-strip span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 0.3rem;
}

.info-strip b { font-size: 1.02rem; font-weight: 800; }

/* ---------- Slides 3 and 6: three equal cards ---------- */

.cards-3 {
  flex: 0 1 auto;
  min-height: 0;
  margin: auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.6rem;
  row-gap: 0;
}

.journey .cards-3 { grid-template-rows: repeat(5, auto); }
.execution-slide .cards-3 { grid-template-rows: repeat(4, auto); }

.journey-card, .exec-phase-card {
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0.9rem;
  min-height: 0;
  padding: 1.4rem 1.55rem 1.5rem;
  border-radius: 1.2rem;
}

.journey-card { grid-row: span 5; }
.exec-phase-card { grid-row: span 4; }

.journey-card {
  background: linear-gradient(170deg, var(--char-3) 0%, var(--char-2) 100%);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.38), inset 0 0 0 1px var(--line-dark);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-tag {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}

.journey-card h3 { font-size: 1.5rem; color: var(--cream); }

.journey-card > p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.55;
  color: var(--masa);
}

.evidence-label {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--masa);
}

.site-quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0.95rem 1.05rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px rgba(216, 204, 187, 0.16);
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cream);
}

.site-quote .evidence-label { margin-bottom: auto; padding-bottom: 0.6rem; }
.site-quote .quote-text { display: block; margin-bottom: auto; }

.site-quote mark {
  background: none;
  color: var(--chili-lite, #FF8A6E);
  font-weight: 700;
  text-decoration: underline wavy rgba(255, 138, 110, 0.75);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.button-stack {
  display: grid;
  align-content: start;
  gap: 0.26rem;
  padding: 0.85rem 1.05rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.32);
  box-shadow: inset 0 0 0 1px rgba(216, 204, 187, 0.16);
}

.button-stack .evidence-label { padding: 0; background: none; color: var(--masa); text-align: left; letter-spacing: 0.15em; margin-bottom: 0.3rem; }

.button-stack span {
  display: block;
  padding: 0.2rem 0;
  border-radius: 0.35rem;
  background: #F2EBE0;
  color: var(--ink);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-fix {
  padding: 0.95rem 1.1rem;
  border-radius: 0.75rem;
  background: rgba(245, 212, 58, 0.08);
  box-shadow: inset 3px 0 0 var(--sun);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--cream);
}

.journey-fix strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}

/* ---------- Slide 4: website concept ---------- */

.browser-mockup {
  margin: 0;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2.2rem 4.6rem rgba(26, 21, 18, 0.26), 0 0 0 1px rgba(26, 21, 18, 0.1);
}

.mock-hero-stage {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vh, 440px);
  overflow: hidden;
  background: #121516;
}

.mockup-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

.figure-note {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.1rem 0 0;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--umber);
}

.figure-note::before {
  content: "";
  width: 1.7rem;
  height: 2px;
  border-radius: 2px;
  background: var(--forest);
}

/* ---------- Slide 5: before and after ---------- */

.comparison {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.case-frame {
  margin: 0;
  flex: none;
  border-radius: 1rem;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(216, 204, 187, 0.2);
}

.case-frame.after { box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5), 0 0 0 2px var(--sun); }

.case-label {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--umber);
}

.case-frame.after .case-label { color: var(--forest); }

.case-viewport {
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #F4F1EC;
}

.case-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

.case-frame figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--char-2);
  color: var(--masa);
  font-size: 0.92rem;
  font-weight: 500;
}

.case-frame figcaption b { color: var(--cream); font-weight: 800; white-space: nowrap; }
.case-frame.after figcaption b { color: var(--sun); }

.compare-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--char);
  font-size: 1.5rem;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.45);
}

.compare-arrow svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Slide 6: roadmap ---------- */

.exec-phase-card {
  background: var(--card);
  box-shadow: 0 1.2rem 2.8rem rgba(26, 21, 18, 0.1), inset 0 0 0 1px var(--line-light);
  color: var(--ink);
}

.exec-phase-num {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
}

.exec-duration-pill {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  background: var(--forest-deep);
  color: var(--sun);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.exec-phase-card h3 { font-size: 1.5rem; }

.exec-phase-card > p {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.55;
  color: var(--umber);
}

.exec-deliverables {
  list-style: none;
  margin: 0;
  padding: 1.05rem 0 0;
  display: grid;
  gap: 0.55rem;
  border-top: 1px solid var(--line-light);
}

.exec-deliverables li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.exec-deliverables .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.05rem;
  color: var(--forest);
  stroke-width: 2.6;
}

/* The build phase carries the logo's own colours */
.exec-phase-card.featured {
  background: linear-gradient(165deg, #21512A 0%, var(--forest-deep) 100%);
  box-shadow: 0 1.6rem 3.4rem rgba(26, 63, 29, 0.32), inset 0 0 0 2px rgba(245, 212, 58, 0.55);
  color: var(--cream);
}

.exec-phase-card.featured .exec-phase-num { color: var(--sun); }
.exec-phase-card.featured .exec-duration-pill { background: var(--sun); color: var(--forest-deep); }
.exec-phase-card.featured > p { color: #E4ECD9; }
.exec-phase-card.featured .exec-deliverables { border-top-color: rgba(245, 212, 58, 0.3); }
.exec-phase-card.featured .exec-deliverables li { color: var(--cream); }
.exec-phase-card.featured .exec-deliverables .icon { color: var(--sun); }

.exec-footer-bar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  padding: 1.05rem 0;
  border-radius: 1.1rem;
  background: var(--char);
  color: var(--cream);
}

.exec-footer-bar div {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0 1.6rem;
  border-left: 1px solid var(--line-dark);
  min-width: 0;
}

.exec-footer-bar div:first-child { border-left: 0; }

.exec-footer-bar b {
  flex: none;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sun);
}

.exec-footer-bar span { font-size: 0.98rem; font-weight: 600; color: var(--masa); }

/* ---------- Slide 7: partner sign-off ---------- */

.close-grid { align-items: center; }

.partner-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.5rem;
  row-gap: 1.1rem;
  margin-top: 1.8rem;
  padding: 1.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(170deg, var(--char-3) 0%, var(--char-2) 100%);
  box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.38), inset 0 0 0 1px var(--line-dark);
}

/* Edge-to-edge cover crop, no white framing */
.partner-avatar-wrap {
  width: clamp(112px, 7.6rem, 140px);
  height: clamp(112px, 7.6rem, 140px);
  border-radius: 1.1rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0.9rem 2rem rgba(0, 0, 0, 0.45);
}

.partner-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: none;
}

.partner-body { min-width: 0; }

.partner-meta-kicker {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
}

.partner-name-heading {
  margin-top: 0.3rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--cream);
}

.partner-role-sub {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--masa);
}

.partner-quote {
  margin: 0.8rem 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
}

.partner-contact {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.4rem;
  border-top: 1px solid var(--line-dark);
}

.partner-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--masa);
}

.partner-contact .icon { color: var(--sun); width: 1.1rem; height: 1.1rem; }
.partner-contact b { color: var(--cream); font-weight: 800; }

.partner-contact a {
  color: var(--cream);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(245, 212, 58, 0.6);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Conversation card: masa cream on charcoal so the action is the brightest thing on the slide */
.col-request { min-width: 0; }

.request {
  position: relative;
  padding: 2rem 2.2rem 1.7rem;
  border-radius: 1.3rem;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(245, 212, 58, 0.5);
}

.request .kicker { color: var(--forest); }

.request h3 {
  margin: 0.55rem 0 0.5rem;
  font-size: 2rem;
  letter-spacing: -0.025em;
}

.request > p {
  margin: 0 0 1.3rem;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--umber);
}

#open-planner { display: none; }

#planner-fields { display: grid; gap: 0.95rem; }

.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }

.suggestions button {
  min-height: 3rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.7rem;
  border: 1.5px solid rgba(26, 21, 18, 0.2);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.suggestions button:hover { border-color: var(--forest); }

.suggestions button[aria-pressed="true"] {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--sun);
}

.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }

.picker-col label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--umber);
}

.date-field { position: relative; display: flex; align-items: center; }

.date-field input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 2.6rem 0.55rem 0.85rem;
  border-radius: 0.7rem;
  border: 1.5px solid rgba(26, 21, 18, 0.2);
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  color-scheme: light;
  outline: none;
}

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

.date-field input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 74, 34, 0.18); }

.calendar-trigger, .time-trigger {
  position: absolute;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--forest);
  font-size: 1.15rem;
  cursor: pointer;
}

#picker-fallback, #selection {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--forest);
}

#draft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.3rem;
  padding: 0.8rem 1.4rem;
  border-radius: 0.8rem;
  background: var(--forest-deep);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: inset 0 0 0 1.5px rgba(245, 212, 58, 0.55);
  transition: background-color 160ms ease;
}

#draft .icon { color: var(--sun); }
#draft:hover { background: #12301A; }

.request-note {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--umber);
}

.print-only { display: none; }

/* ---------- Controls ---------- */

.controls {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.45rem;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.94);
  color: var(--cream);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(245, 212, 58, 0.3);
  backdrop-filter: blur(8px);
}

.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.controls button .icon { font-size: 1.05rem; }
.controls button:hover { background: rgba(251, 246, 238, 0.12); }

#counter {
  min-width: 3.6rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sun);
}

.controls button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible,
.suggestions button:focus-visible, .calendar-trigger:focus-visible, .time-trigger:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

.slide.paper a:focus-visible, .request a:focus-visible, .request button:focus-visible, .request input:focus-visible {
  outline-color: var(--forest);
}

/* ---------- Desktop: a true full-screen presentation ---------- */

@media screen and (min-width: 701px) {
  html { font-size: clamp(11px, min(0.94vw, 1.67vh), 24px); }
  html, body { height: 100%; overflow: hidden; }
  #deck, .deck { height: 100vh; }
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  :root { --pad-x: 1.15rem; }
  html, body { overflow-x: hidden; }

  .slide {
    height: auto;
    min-height: 100svh;
    padding: 1.25rem var(--pad-x) 6.2rem;
    overflow: visible;
  }

  .slide.cover { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; padding-top: 1.6rem; }

  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.95rem; }
  .lead { font-size: 1.02rem; }

  .slide-head { flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.3rem; }
  .header-logo-plaque { height: 3.6rem; }
  .header-wordmark { font-size: 1.2rem; }
  .header-wordmark small { font-size: 0.7rem; letter-spacing: 0.1em; }
  .header-meta { white-space: normal; }

  .mock-hero-stage { height: auto; aspect-ratio: 1376 / 768; }

  .two, .close-grid, .head-split { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
  .head-split { margin-bottom: 1.4rem; }

  .cover-logo-wrap { width: min(19rem, 100%); margin-left: 0; }
  .cover-facts { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .cover-facts div { padding: 0; border-left: 0; }

  .hero-stage { height: auto; display: grid; gap: 1rem; }
  .store-frame, .site-frame { position: relative; inset: auto; width: 100%; height: auto; }
  .store-frame img { height: auto; aspect-ratio: 16 / 11; }
  .site-frame { left: auto; }

  .mosaic { height: auto; grid-template-rows: 10.5rem 10.5rem; }
  .info-strip, .exec-footer-bar { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .info-strip div, .exec-footer-bar div { border-left: 0; }

  .cards-3 { grid-template-columns: minmax(0, 1fr); grid-template-rows: none !important; row-gap: 1.1rem; }
  .journey-card, .exec-phase-card { grid-row: auto; grid-template-rows: none; }
  h2.stacked span, h2.stacked em { white-space: normal; }

  .comparison { flex-direction: column; }
  .case-frame { width: 100%; }
  .case-viewport { width: 100%; height: auto; }
  .compare-arrow { transform: rotate(90deg); }
  .case-frame figcaption { flex-direction: column; gap: 0.2rem; }

  .partner-card { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .partner-contact { grid-template-columns: minmax(0, 1fr); }
  .partner-contact li { overflow-wrap: anywhere; }

  .request { padding: 1.5rem 1.2rem; }
  .suggestions, .picker-grid { grid-template-columns: minmax(0, 1fr); }

  #open-planner {
    display: block;
    width: 100%;
    min-height: 3rem;
    margin-bottom: 0.9rem;
    border: 0;
    border-radius: 0.8rem;
    background: var(--forest-deep);
    color: var(--cream);
    font-weight: 800;
    cursor: pointer;
  }

  .closing:not(.planner-open) #planner-fields { display: none; }

  .slide-foot { position: static; margin-top: 1.8rem; flex-wrap: wrap; gap: 0.6rem; }
  .controls { bottom: 0.75rem; }
  .controls button { padding: 0 0.6rem; letter-spacing: 0.08em; }
}

/* ---------- Print ---------- */

@media print {
  @page { size: letter landscape; margin: 0.28in; }
  html, body { background: #FFFFFF; color: #111111; height: auto; overflow: visible; }
  #deck, .deck { height: auto; overflow: visible; }
  .slide {
    display: flex !important;
    height: auto;
    min-height: 7.4in;
    padding: 0.2in;
    break-after: page;
    page-break-after: always;
    background: #FFFFFF;
    color: #111111;
  }
  .slide.cover { display: grid !important; }
  .controls, canvas, .folio, .screen-only { display: none !important; }
  .print-only { display: block; margin-top: 10pt; font-family: var(--mono); font-size: 11pt; font-weight: 700; color: #181513; }
}
