/* Mariscos Costa Alegre x Brandcore — deck stylesheet.
   One design system, authored on a 1640 x 920 stage where 1rem = 10 stage px.
   On desktop the root font-size scales the stage to fit the viewport, so every
   slide keeps the same composition; small screens get a stacked, scrolling layout.
   Palette is drawn from the client logo (Pacific blues, sun gold, chile red) and
   every text pairing below is AAA (7:1) on the surface it actually sits on. */

@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-wght-normal.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* light surfaces */
  --crema: #F8F3E9;
  --paper: #FFFDF8;
  --sand: #F1E9D8;
  /* dark surfaces */
  --abyss: #071A24;
  --deep: #0B2533;
  /* text on light: ink 15:1, ink-2 8.2:1+, brick 7.4:1+ */
  --ink: #0B1F29;
  --ink-2: #2E4652;
  --brick: #8C2114;
  /* text on dark: crema 14:1+, foam 10.9:1+, sun 8.6:1+, coral 7.7:1+ */
  --foam: #C9D9DF;
  --sun: #F2B544;
  --coral: #FF9C7F;
  /* decorative only (logo red / logo blue), never small text */
  --chile: #D8352A;
  --pacific: #2F67A8;
  --rule-light: rgba(11, 31, 41, 0.12);
  --rule-dark: rgba(242, 181, 68, 0.26);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 10px; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--abyss);
  color: var(--crema);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input { font: inherit; }

h1, h2, h3, p { margin: 0; }

img { max-width: none; }

.ui-icon, .date-icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

/* ---------- Stage ---------- */

#deck {
  position: relative;
  width: 164rem;
  height: 92rem;
  margin: 0 auto;
  overflow: hidden;
}

@media screen and (min-width: 1100px) and (min-height: 640px) {
  html {
    --u: min(calc(min(96vw, 1640px) / 1640), calc(min(91vh, 920px) / 920));
    font-size: calc(var(--u) * 10);
  }
  html, body { height: 100%; overflow: hidden; }
  body {
    display: grid;
    place-items: center;
    background: radial-gradient(120% 90% at 50% 30%, #13242E 0%, #060B10 72%);
  }
  #deck {
    border-radius: 1.8rem;
    box-shadow: 0 3.6rem 10rem rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(255, 255, 255, 0.09);
  }
}

.slide {
  position: relative;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  padding: 4.4rem 7.2rem 0;
  background: var(--abyss);
  color: var(--crema);
}

.slide.active {
  display: flex;
  flex-direction: column;
}

.slide.light { background: var(--crema); color: var(--ink); }
.slide.dark { background: var(--abyss); color: var(--crema); }

.slide.light::before,
.slide.dark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.slide.light::before {
  background: radial-gradient(55% 45% at 100% 0%, rgba(242, 181, 68, 0.11), transparent 72%);
}
.slide.dark::before {
  background:
    radial-gradient(65% 55% at 8% 0%, rgba(22, 86, 106, 0.42), transparent 72%),
    radial-gradient(45% 45% at 100% 100%, rgba(242, 181, 68, 0.06), transparent 70%);
}

/* ---------- Masthead: logo plaque + wordmark on every slide ---------- */

.masthead {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3.2rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule-light);
}
.dark .masthead { border-bottom-color: var(--rule-dark); }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  min-width: 0;
}

/* The logo was drawn for a white ground, so it always sits on warm paper. */
.logo-plaque {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 8.2rem;
  padding: 0.8rem 2rem;
  border-radius: 1.2rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(11, 31, 41, 0.1), 0 0.8rem 2rem rgba(11, 31, 41, 0.1);
}
.dark .logo-plaque {
  box-shadow: 0 0 0 1px rgba(242, 181, 68, 0.62), 0 1.2rem 2.8rem rgba(0, 0, 0, 0.42);
}
.logo-plaque img {
  display: block;
  height: 6.6rem;
  width: auto;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
}
.wordmark b {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.wordmark small {
  font-family: var(--mono);
  font-size: max(11px, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brick);
}
.dark .wordmark b { color: var(--crema); }
.dark .wordmark small { color: var(--sun); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--mono);
  font-size: max(11px, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.header-tag {
  padding: 0.85rem 1.5rem;
  border-radius: 99rem;
  background: var(--ink);
  color: var(--sun);
}
.header-note { color: var(--ink-2); }
.dark .header-tag { background: var(--sun); color: var(--abyss); }
.dark .header-note { color: var(--foam); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.012em;
}
h2 {
  font-size: 5.4rem;
  line-height: 1.06;
}
.accent { display: block; color: var(--brick); }
.dark .accent { color: var(--sun); }

.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  font-family: var(--mono);
  font-size: max(11px, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}
.eyebrow::before, .kicker::before {
  content: '';
  flex: none;
  width: 3.2rem;
  height: 2px;
  background: currentColor;
}
.dark .eyebrow, .dark .kicker { color: var(--sun); }

.lead {
  margin-top: 2rem;
  max-width: 68ch;
  font-size: max(14px, 2rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.dark .lead { color: var(--foam); }

/* Number badges: gold numerals on deep ink, on every slide. */
.num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1rem;
  background: var(--ink);
  color: var(--sun);
  font-family: var(--mono);
  font-size: max(12px, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}
.dark .num {
  background: var(--abyss);
  box-shadow: inset 0 0 0 1px rgba(242, 181, 68, 0.6);
}

/* ---------- Body + footer rail ---------- */

.slide-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3.2rem;
  padding: 2.8rem 0 2.4rem;
}

/* The right end of the rail is reserved for the slide controls. */
.rail {
  flex: 0 0 7.2rem;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding-right: 36rem;
  border-top: 1px solid var(--rule-light);
  font-family: var(--mono);
  font-size: max(10.5px, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.rail .page { color: var(--brick); }
.dark .rail { border-top-color: var(--rule-dark); color: var(--foam); }
.dark .rail .page { color: var(--sun); }

/* ---------- Controls ---------- */

.controls {
  position: fixed;
  z-index: 50;
  right: calc((100vw - 164rem) / 2 + 4.4rem);
  bottom: calc((100vh - 92rem) / 2 + 1.2rem);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem;
  border-radius: 99rem;
  background: rgba(7, 26, 36, 0.95);
  border: 1px solid rgba(242, 181, 68, 0.45);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.42);
  color: var(--crema);
}
.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  min-height: 4.4rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 99rem;
  background: transparent;
  color: var(--crema);
  font-size: max(13px, 1.9rem);
  cursor: pointer;
}
@media (pointer: coarse) {
  .controls button { min-width: 44px; min-height: 44px; }
}
.controls button:hover { background: rgba(255, 255, 255, 0.12); }
#counter {
  min-width: 5.6rem;
  text-align: center;
  font-family: var(--mono);
  font-size: max(10.5px, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}
#play {
  margin-left: 0.4rem;
  padding: 0 1.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 99rem 99rem 0;
  font-family: var(--mono);
  font-size: max(10px, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--sun);
}

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--brick); }

/* ---------- 01 Cover ---------- */

.slide.cover { padding: 0; background: var(--crema); color: var(--ink); }
.slide.cover.active { display: grid; grid-template-columns: 80rem minmax(0, 1fr); }

.cover-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 5.6rem 9.6rem 12rem 7.2rem;
}
.cover-copy .kicker { margin-bottom: 0; }
.cover > .page { display: none; }

/* Three.js swell: engraved ocean lines in the logo's blues, under the copy. */
#scene {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 18rem;
  z-index: -1;
  pointer-events: none;
}

.cover-logo {
  display: block;
  width: 42rem;
  height: auto;
  margin: 3rem 0 3.6rem -0.8rem;
  filter: none;
  opacity: 1;
}

h1 {
  font-size: 6rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 .accent { color: var(--brick); }

.cover-lead {
  margin-top: 2.4rem;
  max-width: 60ch;
  font-size: max(14px, 2rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.cover-facts {
  list-style: none;
  margin: 3.2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.cover-facts li {
  padding: 1.2rem 1.8rem 1.3rem;
  border-radius: 1.2rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule-light), 0 0.6rem 1.6rem rgba(11, 31, 41, 0.06);
}
.cover-facts span {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--mono);
  font-size: max(10.5px, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}
.cover-facts b {
  font-size: max(13px, 1.75rem);
  font-weight: 700;
  color: var(--ink);
}

.cover-stage {
  position: relative;
  min-width: 0;
  background: var(--abyss);
}
.stage-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 45%;
  filter: none;
  opacity: 1;
}
.stage-chip {
  position: absolute;
  top: 3.2rem;
  right: 3.2rem;
  z-index: 2;
  padding: 1rem 1.7rem;
  border-radius: 99rem;
  background: rgba(7, 26, 36, 0.92);
  color: var(--crema);
  font-family: var(--mono);
  font-size: max(10.5px, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.3);
}
/* The website preview straddles the seam between copy and photograph. */
.stage-site {
  position: absolute;
  z-index: 3;
  left: -8rem;
  bottom: 10.4rem;
  width: 55rem;
  margin: 0;
}
.stage-site figcaption {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0.9rem 1.5rem;
  border-radius: 99rem;
  background: var(--abyss);
  color: var(--sun);
  font-family: var(--mono);
  font-size: max(10.5px, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.3);
}
.stage-site img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  filter: none;
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.75), 0 3.2rem 6.4rem rgba(4, 14, 20, 0.5), 0 1rem 2rem rgba(4, 14, 20, 0.28);
}

/* ---------- 02 Foundation ---------- */

.foundation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62rem;
  align-items: center;
  gap: 7.2rem;
}

.pillars, .notes {
  list-style: none;
  margin: 2.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}
.pillars li, .notes li {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
  padding: 1.5rem 2rem;
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule-light);
}
.pillars h3, .notes h3 {
  margin-bottom: 0.3rem;
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--ink);
}
.pillars p, .notes p {
  font-size: max(13px, 1.65rem);
  line-height: 1.5;
  color: var(--ink-2);
}

a.source {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2.2rem;
  padding: 0.9rem 1.6rem;
  border-radius: 99rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule-light);
  color: var(--ink);
  font-family: var(--mono);
  font-size: max(11px, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
a.source .ui-icon { color: var(--brick); }
a.source:hover { box-shadow: 0 0 0 1px var(--brick); }

.place-card {
  margin: 0;
  overflow: hidden;
  border-radius: 1.8rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule-light), 0 2.4rem 5rem rgba(11, 31, 41, 0.14);
}
.place-photo { height: 25rem; overflow: hidden; }
.place-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  filter: none;
  opacity: 1;
}
.place-list {
  list-style: none;
  margin: 0;
  padding: 0.8rem 2.6rem;
}
.place-list li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule-light);
}
.place-list li:last-child { border-bottom: 0; }
.place-list .ui-icon { width: 2.4rem; height: 2.4rem; color: var(--brick); }
.place-list b {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ink);
}
.place-list span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--mono);
  font-size: max(11px, 1.3rem);
  color: var(--ink-2);
}
.place-list a, .place-list em {
  font-family: var(--mono);
  font-size: max(11px, 1.3rem);
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  color: var(--brick);
}
.place-foot {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.4rem 2.6rem;
  background: var(--ink);
  color: var(--crema);
  font-family: var(--mono);
  font-size: max(10.5px, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.place-foot span:last-child { color: var(--sun); }

/* ---------- 03 Guest journey ---------- */

.journey-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: end;
  gap: 6.4rem;
}
.journey-head .lead { margin-top: 0; }

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr auto;
  column-gap: 2.4rem;
}
/* Subgrid rows align tags, titles, copy and the build note across all cards. */
.journey-card {
  position: relative;
  overflow: hidden;
  grid-row: span 4;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 1.4rem;
  padding: 3.4rem 3.2rem 3rem;
  border-radius: 1.6rem;
  background: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(242, 181, 68, 0.22), 0 2rem 4rem rgba(0, 0, 0, 0.3);
}
.journey-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.4rem;
  background: linear-gradient(90deg, var(--sun), var(--chile));
}
.card-top {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.card-top .step {
  font-family: var(--mono);
  font-size: max(11px, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crema);
}
.card-top .pill {
  margin-left: auto;
  padding: 0.6rem 1.2rem;
  border-radius: 99rem;
  box-shadow: inset 0 0 0 1px rgba(242, 181, 68, 0.7);
  font-family: var(--mono);
  font-size: max(10.5px, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sun);
  white-space: nowrap;
}
.journey-card h3 {
  margin-top: 1rem;
  font-size: 2.8rem;
  line-height: 1.18;
  color: var(--crema);
}
.journey-card p {
  font-size: max(13px, 1.85rem);
  line-height: 1.55;
  color: var(--foam);
}
.journey-card .build {
  align-self: end;
  padding: 1.4rem 1.6rem;
  border-radius: 1rem;
  background: var(--abyss);
  box-shadow: inset 0.3rem 0 0 var(--coral);
  font-size: max(13px, 1.65rem);
  line-height: 1.45;
  color: var(--crema);
}
.journey-card .build strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: max(10.5px, 1.15rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---------- 04 Website ---------- */

.concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82rem;
  align-items: center;
  gap: 6.4rem;
}

.browser {
  margin: 0;
  overflow: hidden;
  border-radius: 1.6rem;
  background: var(--abyss);
  box-shadow: 0 0 0 1px rgba(11, 31, 41, 0.2), 0 3.2rem 6.4rem rgba(11, 31, 41, 0.24);
}
.browser-chrome, .case-bar {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  height: 4.6rem;
  padding: 0 1.8rem;
  background: var(--deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.dots { flex: none; display: inline-flex; gap: 0.7rem; }
.dots i { width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #FF5F57; }
.dots i:nth-child(2) { background: #FEBC2E; }
.dots i:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 44rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.8rem;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--mono);
  font-size: max(11px, 1.3rem);
  white-space: nowrap;
  overflow: hidden;
}
.browser-url .ui-icon { color: var(--sun); }
.browser-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: max(10.5px, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sun);
}
/* The mockup carries its own browser bar; the image box is offset so that bar
   sits above the viewport and only the website itself shows. */
.browser-viewport {
  position: relative;
  width: 100%;
  height: clamp(300px, 42vh, 440px);
  overflow: hidden;
  background: #0A2230;
}
.browser-viewport img {
  position: absolute;
  left: 0;
  top: -9.4017%;
  width: 100%;
  height: 109.4017%;
  display: block;
  object-fit: cover;
  object-position: 50% 100%;
  filter: none;
  opacity: 1;
}

/* ---------- 05 Proof: before & after ---------- */

.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: end;
  gap: 6.4rem;
}
.proof-head .lead { margin-top: 0; }

.comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4rem;
}
.case-frame {
  flex: none;
  width: calc(clamp(280px, 38vh, 400px) * 1.6);
  margin: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 2.4rem 5rem rgba(0, 0, 0, 0.42);
}
.case-frame.after { box-shadow: 0 0 0 2px var(--sun), 0 2.4rem 5rem rgba(0, 0, 0, 0.42); }
.case-label {
  padding: 0.5rem 1.1rem;
  border-radius: 0.6rem;
  background: var(--abyss);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  color: var(--crema);
  font-family: var(--mono);
  font-size: max(11px, 1.3rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.after .case-label { background: var(--sun); box-shadow: none; color: var(--abyss); }
.case-note {
  margin-left: auto;
  font-family: var(--mono);
  font-size: max(11px, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--foam);
}
.case-viewport {
  position: relative;
  width: 100%;
  height: clamp(280px, 38vh, 400px);
  overflow: hidden;
  background: #FFFFFF;
}
.case-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.035);
  transform-origin: center top;
  filter: none;
  opacity: 1;
}
.case-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--abyss);
  font-size: 2.6rem;
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, 0.35);
}
.case-arrow svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 06 Launch roadmap ---------- */

.execution-slide .slide-body { gap: 2.8rem; }

.exec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
  align-items: end;
  gap: 5.6rem;
}
.exec-head h2 { font-size: 4.8rem; }
.exec-head .lead { margin-top: 0; font-size: max(14px, 1.8rem); }

.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  column-gap: 2.4rem;
}
/* Subgrid rows keep every title and checklist aligned across the three phases. */
.phase {
  grid-row: span 3;
  display: grid;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 2.6rem 2.8rem 2.8rem;
  border-radius: 1.6rem;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--rule-light), 0 1.6rem 3.6rem rgba(11, 31, 41, 0.08);
}
.phase.featured {
  background: var(--ink);
  color: var(--crema);
  box-shadow: 0 0 0 2px var(--sun), 0 2.4rem 4.8rem rgba(11, 31, 41, 0.24);
}
.phase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.phase.featured .num { background: var(--sun); color: var(--ink); }
.duration {
  padding: 0.7rem 1.3rem;
  border-radius: 99rem;
  box-shadow: inset 0 0 0 1px currentColor;
  font-family: var(--mono);
  font-size: max(10.5px, 1.25rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--brick);
}
.phase.featured .duration { color: var(--sun); }
.phase h3 {
  margin: 1.8rem 0 1.6rem;
  font-size: 2.35rem;
  line-height: 1.18;
  color: var(--ink);
}
.phase.featured h3 { color: var(--crema); }
.phase ul {
  list-style: none;
  margin: 0;
  padding: 1.6rem 0 0;
  display: grid;
  gap: 1.1rem;
  border-top: 1px solid var(--rule-light);
}
.phase.featured ul { border-top-color: rgba(242, 181, 68, 0.3); }
.phase li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 1.1rem;
  font-size: max(13px, 1.6rem);
  line-height: 1.45;
  color: var(--ink-2);
}
.phase.featured li { color: var(--foam); }
.phase li .ui-icon {
  width: 2rem;
  height: 2rem;
  margin-top: 0.1rem;
  stroke-width: 2.4;
  color: var(--brick);
}
.phase.featured li .ui-icon { color: var(--sun); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
}
.stat-strip div {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.2rem 2.4rem;
  border-left: 3px solid var(--brick);
}
.stat-strip b {
  font-family: var(--serif);
  font-size: 4.4rem;
  font-weight: 650;
  line-height: 1;
  color: var(--brick);
}
.stat-strip span {
  font-size: max(13px, 1.65rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- 07 Partner sign-off ---------- */

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 60rem;
  align-items: center;
  gap: 6.4rem;
}

.partner-card {
  display: grid;
  grid-template-columns: max(112px, 13.6rem) minmax(0, 1fr);
  align-items: center;
  gap: 2.8rem;
  margin-top: 3rem;
  padding: 2.8rem 3.2rem;
  border-radius: 1.8rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2.4rem 5rem rgba(0, 0, 0, 0.38);
}
.partner-avatar-wrap {
  width: max(112px, 13.6rem);
  height: max(112px, 13.6rem);
  border-radius: 50%;
  box-shadow: 0 0 0 0.4rem var(--sun), 0 1.2rem 2.8rem rgba(11, 31, 41, 0.3);
}
.partner-avatar-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  filter: none;
  opacity: 1;
}
.partner-kicker {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--mono);
  font-size: max(10.5px, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brick);
}
.partner-name {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 650;
  line-height: 1.05;
  color: var(--ink);
}
.partner-role {
  margin-top: 0.5rem;
  font-size: max(13px, 1.6rem);
  font-weight: 600;
  color: var(--ink-2);
}
.partner-quote {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: max(14px, 1.85rem);
  line-height: 1.45;
  color: var(--ink);
}
.partner-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.partner-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: max(36px, 4.2rem);
  padding: 0 1.6rem;
  border-radius: 99rem;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--mono);
  font-size: max(11px, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.partner-contact .ui-icon { color: var(--brick); }

.request {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  padding: 3.8rem 3.6rem 3.2rem;
  border-radius: 1.8rem;
  background: var(--deep);
  box-shadow: inset 0 0 0 1px rgba(242, 181, 68, 0.3), 0 2.4rem 5rem rgba(0, 0, 0, 0.38);
}
.request::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.5rem;
  background: linear-gradient(90deg, var(--sun), var(--chile));
}
.request h3 {
  font-size: 4.6rem;
  line-height: 1.05;
  color: var(--crema);
}
.request > p {
  font-size: max(14px, 1.8rem);
  line-height: 1.5;
  color: var(--foam);
}
#choose-time { display: none; }
#time-details, .screen-request {
  display: grid;
  gap: 1.6rem;
}
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.suggestions button {
  min-height: max(44px, 5rem);
  padding: 0 1.4rem;
  border: 0;
  border-radius: 1rem;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(242, 181, 68, 0.6);
  color: var(--crema);
  font-family: var(--mono);
  font-size: max(11px, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.suggestions button:hover { background: var(--sun); color: var(--abyss); }
.picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.picker-col { display: grid; gap: 0.7rem; }
.request label {
  font-family: var(--mono);
  font-size: max(10.5px, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--foam);
}
.date-control {
  position: relative;
  display: flex;
  align-items: center;
}
.request input {
  width: 100%;
  height: max(44px, 5rem);
  margin: 0;
  padding: 0 5rem 0 1.4rem;
  border: 0;
  border-radius: 1rem;
  background: var(--abyss);
  box-shadow: inset 0 0 0 1px rgba(242, 181, 68, 0.4);
  color: var(--crema);
  color-scheme: dark;
  font-family: var(--mono);
  font-size: max(12px, 1.45rem);
}
.request input::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.date-control button {
  position: absolute;
  right: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(34px, 3.8rem);
  height: max(34px, 3.8rem);
  border: 0;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--sun);
  font-size: max(16px, 2rem);
  cursor: pointer;
}
#picker-help {
  font-family: var(--mono);
  font-size: max(11px, 1.25rem);
  color: var(--sun);
}
a#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: max(48px, 5.8rem);
  border-radius: 1.2rem;
  background: var(--sun);
  color: var(--abyss);
  font-family: var(--mono);
  font-size: max(12px, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}
a#contact:hover { background: #F7C766; transform: translateY(-1px); }
.request small {
  font-size: max(12px, 1.35rem);
  line-height: 1.45;
  color: var(--foam);
}
.print-contact { display: none; }

/* ---------- Stacked layout: phones, tablets, short windows ---------- */

@media screen and (max-width: 1099px), screen and (max-height: 639px) {
  html { font-size: 10px; }
  body { overflow-x: hidden; }
  #deck { width: 100%; height: auto; overflow: hidden; }
  .slide {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding: 2.4rem 2rem 0;
  }
  .masthead { flex-wrap: wrap; gap: 1.4rem 2rem; }
  .brand-lockup { gap: 1.4rem; }
  .logo-plaque { height: 6.4rem; padding: 0.7rem 1.4rem; }
  .logo-plaque img { height: 5rem; }
  .wordmark b { font-size: 1.9rem; letter-spacing: 0.04em; }
  .wordmark small { font-size: 11px; letter-spacing: 0.14em; }
  .header-meta { flex-wrap: wrap; white-space: normal; gap: 1rem; font-size: 11px; }
  h1 { font-size: 4.4rem; }
  h2 { font-size: 3.4rem; }
  .exec-head h2 { font-size: 3.2rem; }
  .lead, .cover-lead { font-size: 1.65rem; max-width: none; }
  .slide-body { padding: 2.4rem 0 3.2rem; gap: 2.4rem; }
  .foundation-grid, .concept-grid, .close-grid, .proof-head, .exec-head,
  .journey-grid, .roadmap, .stat-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .rail {
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    padding: 1.6rem 0 10rem;
    font-size: 10.5px;
  }

  .controls {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
  }
  .controls button { min-width: 44px; min-height: 44px; font-size: 16px; }

  .slide.cover.active { display: flex; flex-direction: column; }
  .cover-copy { padding: 3.2rem 2rem 9rem; }
  #scene { height: 10rem; }
  .cover-logo { width: min(32rem, 82%); margin: 2.4rem 0 2.8rem -0.4rem; }
  .cover-facts b { font-size: 1.5rem; }
  .cover-stage { min-height: 56rem; padding-bottom: 10rem; }
  .stage-chip { top: 1.6rem; right: 1.6rem; max-width: calc(100% - 3.2rem); }
  .stage-site { left: 2rem; right: 2rem; bottom: 11rem; width: auto; }

  .place-list { padding: 0.6rem 1.6rem; }
  .place-list li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .place-list a, .place-list em { grid-column: 2; }
  .place-foot { flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.6rem; }

  .card-top { flex-wrap: wrap; }
  .browser-chrome { gap: 1rem; padding: 0 1.2rem; }
  .browser-tag { display: none; }
  .browser-viewport { height: auto; aspect-ratio: 1376 / 702; }

  .comparison { flex-direction: column; }
  .case-frame { width: 100%; }
  .case-viewport { height: auto; aspect-ratio: 16 / 10; }
  .case-arrow { transform: rotate(90deg); }
  .case-note { white-space: normal; text-align: right; }

  .partner-card { grid-template-columns: minmax(0, 1fr); padding: 2.4rem; }
  .partner-avatar-wrap { width: 112px; height: 112px; }
  .request { padding: 3.2rem 2rem 2.4rem; }
  .request h3 { font-size: 3.4rem; }
  .picker-grid { grid-template-columns: minmax(0, 1fr); }
}

@media screen and (max-width: 420px) {
  .suggestions { grid-template-columns: minmax(0, 1fr); }
  .stage-chip { display: none; }
  .cover-facts li { width: 100%; }
}

/* ---------- Print: one 16:9 page per slide ---------- */

@media print {
  @page { size: 11in 6.1875in; margin: 0; }
  html { font-size: 6.4px; }
  html, body { height: auto; overflow: visible; background: #FFFFFF; }
  body { display: block; }
  #deck { width: 164rem; height: auto; overflow: visible; border-radius: 0; box-shadow: none; }
  .slide, .slide.active {
    display: flex !important;
    height: 92rem;
    break-after: page;
    page-break-after: always;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .slide.cover, .slide.cover.active { display: grid !important; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .controls, #scene, .screen-request, #choose-time { display: none !important; }
  .print-contact {
    display: block;
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--crema);
  }
  .browser-viewport { height: 44rem; }
  .case-frame { width: 60rem; }
  .case-viewport { height: 37.5rem; }
}
