/* Advantek Benefit Administrators: a clearer path forward
   One palette, taken from the Advantek mark: its black lettering (ink), its
   teal swoosh (#009078) and the white paper it was drawn for. Paper slides and
   evergreen slides alternate; every text colour below clears 7:1 on the
   surface it sits on. Brand teal #009078 is used for rules and marks only,
   never for text. */

@font-face { font-family: 'Inter'; src: url('assets/fonts/a699af1dea30b799318e.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/e45972c7e9f24dc39084.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/87e867b52640b3b397a9.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('assets/fonts/6f49e1b28bce7339f484.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('assets/fonts/053f3583e4a034f1d1b1.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('assets/fonts/8ebc3d71038a4b1e5df3.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --brand: #009078;          /* Advantek swoosh: rules, dots, borders */
  --brand-deep: #005C48;     /* filled badges on paper (white text 8.0:1) */
  --paper: #F4F6F1;
  --paper-card: #FFFFFF;
  --paper-tint: #E6EFEA;
  --ink: #0F1E1A;            /* 15.8:1 on paper */
  --ink-2: #33443F;          /* 9.5:1 on paper */
  --teal-ink: #00513F;       /* 8.6:1 on paper, labels and emphasis */
  --line-light: rgba(15, 30, 26, 0.12);
  --night: #082620;
  --night-2: #0D3329;
  --night-card: #103A30;
  --white: #FFFFFF;
  --mist: #D3E2DD;           /* 9.4:1 on the lightest night surface */
  --mint: #9FE3CF;           /* 8.6:1 on the lightest night surface */
  --line-dark: rgba(255, 255, 255, 0.16);
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #E9EEEA;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, a { font: inherit; }
img { display: block; max-width: 100%; }

p, li, dd, blockquote, figcaption span { text-wrap: pretty; }

.nowrap { white-space: nowrap; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

/* ---------- Deck and slide frame ---------- */

.deck { position: relative; width: 100%; overflow: hidden; }

.slide {
  position: relative;
  display: none;
  flex-direction: column;
  gap: 1.5cqw;
  overflow: hidden;
}

.slide.active { display: flex; }

.slide.light { background: var(--paper); color: var(--ink); }

.slide.dark {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(0, 144, 120, 0.22) 0%, rgba(0, 144, 120, 0) 55%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--white);
}

/* ---------- Slide header: the Advantek mark on its own paper tile ---------- */

.slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  padding-bottom: 1.2cqw;
  border-bottom: 1px solid var(--line-light);
  flex: none;
}

.dark .slide-head { border-bottom-color: var(--line-dark); }

.brand { display: flex; align-items: center; gap: 1.3cqw; min-width: 0; }

.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5.4cqw;
  padding: 0 1.2cqw;
  border-radius: 0.85cqw;
  background: var(--paper-card);
  border: 1px solid rgba(0, 144, 120, 0.28);
  box-shadow: 0 0.15cqw 0.6cqw rgba(8, 38, 32, 0.1);
  flex: none;
}

.dark .brand-tile {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0.4cqw 1.4cqw rgba(0, 0, 0, 0.35);
}

.brand-tile img,
.cover-logo img,
.glance-logo img {
  width: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.brand-tile img { height: 4.1cqw; }

.brand-name {
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
  padding-left: 1.3cqw;
  border-left: 2px solid var(--brand);
  line-height: 1.15;
}

.brand-name b {
  font-size: clamp(14px, 1.1cqw, 19px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand-name small {
  font-size: clamp(12px, 0.85cqw, 15px);
  font-weight: 500;
  color: var(--ink-2);
}

.dark .brand-name b { color: var(--white); }
.dark .brand-name small { color: var(--mist); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75cqw;
  font-size: clamp(12px, 0.85cqw, 15px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.section-tag b {
  display: inline-grid;
  place-items: center;
  min-width: 2.3cqw;
  height: 2.3cqw;
  border-radius: 50%;
  border: 1.5px solid var(--brand);
  font-size: clamp(11px, 0.78cqw, 14px);
  letter-spacing: 0.04em;
  color: var(--teal-ink);
}

.dark .section-tag { color: var(--mist); }
.dark .section-tag b { color: var(--mint); border-color: var(--mint); }

.page {
  position: absolute;
  right: 3.2cqw;
  bottom: 1.5cqw;
  font-size: clamp(11px, 0.75cqw, 13px);
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ink-2);
}

.dark .page { color: var(--mist); }

/* ---------- Type ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6cqw;
  margin-bottom: 0.9cqw;
  font-size: clamp(12px, 0.82cqw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.kicker::before {
  content: '';
  width: 1.9cqw;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.dark .kicker { color: var(--mint); }
.dark .kicker::before { background: var(--mint); }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 4.1cqw, 72px); line-height: 1.04; }
h2 { font-size: clamp(28px, 2.7cqw, 48px); line-height: 1.08; }

h1 em, h2 em { font-style: normal; color: var(--teal-ink); }

.dark h1, .dark h2 { color: var(--white); }
.dark h1 em, .dark h2 em { color: var(--mint); }

h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lead {
  margin-top: 1.1cqw;
  max-width: 60ch;
  font-size: clamp(15px, 1.12cqw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}

.dark .lead { color: var(--mist); }

.source {
  font-size: clamp(12px, 0.8cqw, 14px);
  font-weight: 600;
  color: var(--teal-ink);
  text-decoration: underline;
  text-decoration-color: rgba(0, 144, 120, 0.5);
  text-underline-offset: 3px;
}

.dark .source { color: var(--mint); }

/* Numbered rows (slides 2 and 4) */
.numbered { display: grid; gap: 0.85cqw; margin-top: 1.7cqw; }

.numbered li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1cqw;
  align-items: start;
  padding: 1.1cqw 1.3cqw;
  border-radius: 0.9cqw;
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  box-shadow: 0 0.1cqw 0.4cqw rgba(8, 38, 32, 0.05);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 2.5cqw;
  height: 2.5cqw;
  border-radius: 50%;
  background: var(--brand-deep);
  color: var(--white);
  font-size: clamp(12px, 0.82cqw, 15px);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.dark .num { background: var(--mint); color: #062019; }

.numbered h3 { font-size: clamp(16px, 1.18cqw, 21px); color: var(--ink); margin: 0.2cqw 0 0.3cqw; }
.numbered p { font-size: clamp(14px, 0.98cqw, 17px); line-height: 1.5; color: var(--ink-2); }

/* ---------- Slide 1: cover ---------- */

.slide.cover { display: none; padding: 0; gap: 0; }

.slide.cover.active {
  display: grid;
  grid-template-columns: 46fr 54fr;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3cqw 2.6cqw 3cqw 4.2cqw;
}

.cover-logo {
  align-self: flex-start;
  margin-bottom: 2.6cqw;
  padding-bottom: 2.2cqw;
  border-bottom: 2px solid var(--brand);
}

.cover-logo img { height: 8.6cqw; }

.cover h1 { max-width: 13ch; }

.cover .lead { max-width: 44ch; }

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5cqw;
  margin-top: 2cqw;
}

.fact-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  padding: 0.55cqw 0.85cqw;
  border-radius: 999px;
  background: var(--paper-card);
  border: 1px solid rgba(0, 144, 120, 0.32);
  font-size: clamp(13px, 0.88cqw, 16px);
  font-weight: 600;
  color: var(--ink);
}

.fact-row .ui-icon { color: var(--teal-ink); }

.byline {
  margin-top: 2.2cqw;
  font-size: clamp(12px, 0.82cqw, 15px);
  font-weight: 500;
  color: var(--ink-2);
}

.cover-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4cqw;
  padding: 3cqw 3cqw 3.4cqw;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(90% 70% at 60% 45%, rgba(0, 144, 120, 0.3) 0%, rgba(0, 144, 120, 0) 70%),
    linear-gradient(165deg, #0A2D25 0%, #06201A 100%);
}

#scene, .ribbon-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#scene { z-index: 0; }

.ribbon-fallback { z-index: 0; display: none; }
.ribbon-fallback path { fill: none; stroke-linecap: round; }
.ribbon-fallback path:nth-child(1) { stroke: #009078; stroke-width: 14; }
.ribbon-fallback path:nth-child(2) { stroke: #3DAA90; stroke-width: 10; }
.ribbon-fallback path:nth-child(3) { stroke: #8ED2C0; stroke-width: 7; }

#scene[data-webgl="unavailable"] { display: none; }
#scene[data-webgl="unavailable"] + .ribbon-fallback { display: block; }

.stage-kicker {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: clamp(12px, 0.82cqw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}

/* Browser chrome shared by every framed screenshot */
.chrome {
  display: flex;
  align-items: center;
  gap: 1cqw;
  height: 2.3cqw;
  min-height: 30px;
  padding: 0 1cqw;
  background: #EEF2EF;
  border-bottom: 1px solid #D5DED9;
  color: #33443F;
}

.dots { display: inline-flex; gap: 0.4cqw; }
.dots i { width: 0.65cqw; height: 0.65cqw; min-width: 9px; min-height: 9px; border-radius: 50%; background: #E0645A; }
.dots i:nth-child(2) { background: #E8B33F; }
.dots i:nth-child(3) { background: #4DB57A; }

.url {
  display: inline-flex;
  align-items: center;
  gap: 0.45cqw;
  flex: 1;
  max-width: 26cqw;
  height: 1.5cqw;
  min-height: 21px;
  margin: 0 auto;
  padding: 0 0.8cqw;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid #D5DED9;
  font-size: clamp(11px, 0.76cqw, 14px);
  font-weight: 500;
  color: #33443F;
}

.url .ui-icon { color: var(--teal-ink); }

.chrome-tag {
  font-size: clamp(11px, 0.72cqw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.hero-browser {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 1cqw;
  overflow: hidden;
  background: #0B1B18;
  box-shadow: 0 2.4cqw 5cqw rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hero-browser .shot {
  width: 100%;
  height: auto;
  aspect-ratio: 1118 / 651;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

.stage-audiences {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8cqw;
  width: 100%;
}

.stage-audiences li {
  display: flex;
  flex-direction: column;
  gap: 0.25cqw;
  padding: 0.85cqw 1cqw;
  border-radius: 0.7cqw;
  background: #082A22;
  border: 1px solid rgba(159, 227, 207, 0.32);
  border-top: 3px solid var(--brand);
}

.stage-audiences b { font-size: clamp(13px, 0.95cqw, 17px); font-weight: 700; color: var(--white); }
.stage-audiences span { font-size: clamp(12px, 0.8cqw, 14px); color: var(--mist); }

.slide-brandcore {
  position: absolute;
  z-index: 1;
  left: 3.2cqw;
  bottom: 1.5cqw;
  width: auto;
  height: 1.3cqw;
  min-height: 16px;
}

.cover .page { color: var(--mist); }

/* ---------- Slides 2-7: shared padding ---------- */

.slide:not(.cover) { padding: 2.2cqw 3.2cqw 3.4cqw; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.4cqw;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.copy { display: flex; flex-direction: column; min-width: 0; }

.intro-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.4cqw;
  align-items: end;
  margin-top: auto;
}

.intro-row .lead { margin-top: 0; }

/* ---------- Slide 2: foundation ---------- */

.glance {
  display: flex;
  flex-direction: column;
  gap: 1.3cqw;
  padding: 1.6cqw;
  border-radius: 1.2cqw;
  color: var(--white);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(0, 144, 120, 0.28) 0%, rgba(0, 144, 120, 0) 60%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  box-shadow: 0 1.6cqw 3.6cqw rgba(8, 38, 32, 0.28);
}

.glance-logo {
  display: flex;
  justify-content: center;
  padding: 1.6cqw 2cqw;
  border-radius: 0.9cqw;
  background: var(--paper-card);
}

.glance-logo img { height: 7.4cqw; }

.glance dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8cqw; }

.glance dl > div {
  padding: 1cqw 1.1cqw;
  border-radius: 0.7cqw;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
}

.glance dt {
  display: flex;
  align-items: center;
  gap: 0.45cqw;
  margin-bottom: 0.35cqw;
  font-size: clamp(11px, 0.76cqw, 14px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.glance dd {
  font-size: clamp(14px, 0.98cqw, 17px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.glance dd small {
  display: block;
  margin-top: 0.15cqw;
  font-size: clamp(12px, 0.84cqw, 15px);
  font-weight: 500;
  color: var(--mist);
}

.glance dl > .wide { grid-column: 1 / -1; }

.glance .source { align-self: flex-start; color: var(--mint); }

/* ---------- Slide 3: three audiences ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  column-gap: 1.6cqw;
  margin-top: 1cqw;
}

.audience-card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  gap: 1cqw;
  padding: 2cqw 2cqw 1.8cqw;
  border-radius: 1.1cqw;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-dark);
  border-top: 3px solid var(--mint);
  box-shadow: 0 1.2cqw 2.6cqw rgba(0, 0, 0, 0.25);
}

.audience-top { display: flex; align-items: center; justify-content: space-between; }

.badge-icon {
  width: 3cqw;
  height: 3cqw;
  padding: 0.65cqw;
  border-radius: 0.7cqw;
  background: rgba(159, 227, 207, 0.14);
  color: var(--mint);
  stroke-width: 1.6;
}

.audience-card h3 { font-size: clamp(19px, 1.65cqw, 29px); color: var(--white); }
.audience-card p { font-size: clamp(15px, 1.14cqw, 20px); line-height: 1.55; color: var(--mist); }

.destination {
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
  margin-top: auto;
  padding-top: 0.9cqw;
  border-top: 1px solid var(--line-dark);
}

.destination span {
  font-size: clamp(11px, 0.74cqw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.destination b { font-size: clamp(15px, 1.08cqw, 19px); color: var(--white); }

.slide-note {
  margin-bottom: auto;
  font-size: clamp(13px, 0.88cqw, 16px);
  font-weight: 500;
  color: var(--mist);
}

/* ---------- Slide 4: website showcase ---------- */

.split.showcase { grid-template-columns: minmax(0, 0.9fr) auto; }

.numbered.compact { gap: 0.7cqw; margin-top: 1.5cqw; }
.numbered.compact li { padding: 0.95cqw 1.2cqw; }

.browser {
  display: flex;
  flex-direction: column;
  justify-self: end;
  max-width: 100%;
  border-radius: 1cqw;
  overflow: hidden;
  background: #0B1B18;
  box-shadow: 0 2cqw 4.4cqw rgba(8, 38, 32, 0.32), 0 0 0 1px rgba(8, 38, 32, 0.14);
}

.showcase-browser .viewport {
  height: clamp(300px, 42vh, 440px);
  aspect-ratio: 1118 / 651;
  max-width: 100%;
  overflow: hidden;
}

.showcase-browser .viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

/* ---------- Slide 5: before and after ---------- */

.comparison {
  display: flex;
  justify-content: center;
  gap: 2.4cqw;
  margin-bottom: auto;
}

.case {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 1cqw;
  overflow: hidden;
  background: var(--night-card);
  box-shadow: 0 1.6cqw 3.6cqw rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.case .url { max-width: 16cqw; }

.case-tag {
  padding: 0.2cqw 0.7cqw;
  border-radius: 999px;
  font-size: clamp(11px, 0.72cqw, 13px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-tag.before { background: #E1E6E3; color: #33443F; }
.case-tag.after { background: var(--brand-deep); color: var(--white); }

.case-viewport {
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  max-width: 100%;
  overflow: hidden;
  background: #FFFFFF;
}

.case-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  filter: none;
}

/* The after capture ends in a blank white band at 88.6% of its height;
   a 2.5% scale from the top keeps it out of the 16:10 frame. */
.case-viewport.after img { transform: scale(1.025); transform-origin: 50% 0; }

.case figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.2cqw;
  padding: 0.9cqw 1.2cqw 1cqw;
  border-top: 1px solid var(--line-dark);
}

.case figcaption b { font-size: clamp(14px, 1cqw, 18px); color: var(--white); }
.case figcaption span { font-size: clamp(13px, 0.9cqw, 16px); line-height: 1.45; color: var(--mist); }

/* ---------- Slide 6: launch plan ---------- */

.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  column-gap: 1.4cqw;
  margin-top: 0.6cqw;
}

.phase {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  gap: 0.8cqw;
  padding: 1.5cqw 1.6cqw;
  border-radius: 1.1cqw;
  background: var(--paper-card);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--brand);
  box-shadow: 0 0.8cqw 2cqw rgba(8, 38, 32, 0.07);
}

.phase.featured {
  color: var(--white);
  border: 0;
  border-top: 3px solid var(--mint);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(0, 144, 120, 0.3) 0%, rgba(0, 144, 120, 0) 60%),
    linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  box-shadow: 0 1.4cqw 3cqw rgba(8, 38, 32, 0.3);
}

.phase-top { display: flex; align-items: center; justify-content: space-between; gap: 0.8cqw; }

.phase-num {
  font-size: clamp(12px, 0.82cqw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.phase-days {
  padding: 0.3cqw 0.8cqw;
  border-radius: 999px;
  background: var(--paper-tint);
  font-size: clamp(12px, 0.82cqw, 15px);
  font-weight: 700;
  color: var(--teal-ink);
}

.phase h3 { font-size: clamp(18px, 1.4cqw, 25px); color: var(--ink); }
.phase > p { font-size: clamp(14px, 1cqw, 18px); line-height: 1.5; color: var(--ink-2); }

.phase ul {
  display: grid;
  gap: 0.55cqw;
  margin-top: auto;
  padding-top: 0.9cqw;
  border-top: 1px solid var(--line-light);
}

.phase li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6cqw;
  align-items: start;
  font-size: clamp(13px, 0.92cqw, 16px);
  line-height: 1.45;
  color: var(--ink);
}

.phase li .ui-icon { margin-top: 0.15em; color: var(--teal-ink); stroke-width: 2.4; }

.phase.featured .phase-num,
.phase.featured li .ui-icon { color: var(--mint); }
.phase.featured .phase-days { background: rgba(159, 227, 207, 0.16); color: var(--mint); }
.phase.featured h3,
.phase.featured li { color: var(--white); }
.phase.featured > p { color: var(--mist); }
.phase.featured ul { border-top-color: var(--line-dark); }

.phase-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4cqw;
  margin-bottom: auto;
  padding: 1cqw 1.6cqw;
  border-radius: 0.9cqw;
  background: var(--paper-tint);
}

.phase-summary span { display: flex; flex-direction: column; gap: 0.15cqw; }

.phase-summary small {
  font-size: clamp(11px, 0.74cqw, 13px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.phase-summary b { font-size: clamp(14px, 1cqw, 18px); color: var(--ink); }

/* ---------- Slide 7: partner sign-off ---------- */

.close-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3cqw;
  align-items: center;
  flex: 1;
  min-height: 0;
}

.partner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6cqw 1.7cqw;
  align-items: center;
  margin-top: 1.8cqw;
  padding: 1.6cqw;
  border-radius: 1.2cqw;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
}

.portrait {
  width: clamp(112px, 8.2cqw, 140px);
  height: clamp(112px, 8.2cqw, 140px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--mint);
  box-shadow: 0 0.8cqw 2cqw rgba(0, 0, 0, 0.35);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 1;
  filter: none;
}

.partner-body { display: flex; flex-direction: column; gap: 0.25cqw; min-width: 0; }

.partner-name {
  font-family: var(--serif);
  font-size: clamp(24px, 1.9cqw, 34px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
}

.partner-role {
  font-size: clamp(12px, 0.85cqw, 15px);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.partner blockquote {
  margin-top: 0.6cqw;
  font-size: clamp(14px, 1cqw, 18px);
  line-height: 1.55;
  color: var(--mist);
}

.contact-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6cqw;
  margin-top: 0.6cqw;
  padding-top: 1.1cqw;
  border-top: 1px solid var(--line-dark);
}

.contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  min-height: 40px;
  padding: 0.5cqw 1cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: clamp(13px, 0.92cqw, 16px);
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.contact-row a:hover { background: rgba(159, 227, 207, 0.16); }
.contact-row .ui-icon { color: var(--mint); }

.request {
  display: flex;
  flex-direction: column;
  gap: 0.8cqw;
  padding: 1.8cqw;
  border-radius: 1.2cqw;
  background: var(--paper);
  color: var(--ink);
  border-top: 4px solid var(--brand);
  box-shadow: 0 1.8cqw 4cqw rgba(0, 0, 0, 0.4);
}

.request-kicker {
  font-size: clamp(12px, 0.82cqw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-ink);
}

.request h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 1.9cqw, 34px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
}

.request > p { font-size: clamp(14px, 0.98cqw, 17px); line-height: 1.5; color: var(--ink-2); }

.screen-request { display: flex; flex-direction: column; gap: 0.8cqw; }

.suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6cqw; }

.suggestions button {
  min-height: 44px;
  padding: 0.6cqw 0.8cqw;
  border-radius: 0.6cqw;
  background: var(--paper-card);
  border: 1.5px solid rgba(0, 81, 63, 0.35);
  color: var(--ink);
  font-size: clamp(13px, 0.92cqw, 16px);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.suggestions button:hover,
.suggestions button[aria-pressed="true"] {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--white);
}

.picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6cqw; }

.picker-col { display: flex; flex-direction: column; gap: 0.3cqw; }

.request label {
  font-size: clamp(12px, 0.8cqw, 14px);
  font-weight: 600;
  color: var(--ink-2);
}

.date-control { position: relative; display: flex; align-items: center; }

.request input::-webkit-calendar-picker-indicator { display: none; }

.request input {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 44px 0 12px;
  border-radius: 0.6cqw;
  background: var(--paper-card);
  border: 1.5px solid rgba(15, 30, 26, 0.22);
  color: var(--ink);
  font-size: clamp(14px, 0.92cqw, 16px);
}

.date-control button {
  position: absolute;
  right: 5px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--paper-tint);
  color: var(--teal-ink);
  font-size: 18px;
  cursor: pointer;
}

#picker-help { font-size: clamp(12px, 0.84cqw, 15px); color: var(--teal-ink); }

#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6cqw;
  min-height: 48px;
  margin-top: 0.2cqw;
  padding: 0.8cqw 1.2cqw;
  border-radius: 0.6cqw;
  background: var(--brand-deep);
  color: var(--white);
  font-size: clamp(14px, 1cqw, 18px);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.6cqw 1.4cqw rgba(0, 92, 72, 0.3);
  transition: background 0.16s ease, transform 0.16s ease;
}

#contact:hover { background: #00664F; transform: translateY(-1px); }

.request-note { font-size: clamp(12px, 0.82cqw, 14px); line-height: 1.45; color: var(--ink-2); }

.print-contact { display: none; }


/* ---------- Presentation controls ---------- */

.controls {
  position: fixed;
  left: 50%;
  bottom: 1.4vh;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 38, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 28px rgba(8, 38, 32, 0.3);
  color: var(--white);
}

.controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
}

.controls button:hover { background: rgba(255, 255, 255, 0.12); }

#counter {
  min-width: 46px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

#play {
  padding: 0 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 999px 999px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mint);
  white-space: nowrap;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.dark a:focus-visible, .controls button:focus-visible { outline-color: var(--mint); }

/* ---------- Desktop: one framed 16:9 stage, sized by the deck itself ---------- */

@media screen and (min-width: 701px) {
  html, body { height: 100%; overflow: hidden; }

  body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6vh;
    background: radial-gradient(120% 90% at 50% 0%, #F4F7F3 0%, #DCE5E0 100%);
  }

  .deck {
    width: min(96vw, calc(88vh * 16 / 9), 1640px);
    aspect-ratio: 16 / 9;
    container-type: size;
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 28px 70px rgba(8, 38, 32, 0.22), 0 0 0 1px rgba(8, 38, 32, 0.1);
  }

  .slide { height: 100%; }
}

/* Short laptop windows (a 1366x768 screen leaves a ~650px viewport): the
   deck keeps its proportions, so tighten spacing and let type sit at its
   readable floor instead of pushing content past the slide edge. */
@container (max-height: 640px) {
  .slide:not(.cover) { padding: 1.7cqw 3cqw 2.8cqw; gap: 1.1cqw; }
  .slide-head { padding-bottom: 0.9cqw; }

  h1 { font-size: clamp(30px, 4.1cqw, 72px); }
  h2 { font-size: clamp(22px, 2.7cqw, 48px); }
  .lead { font-size: 13.5px; line-height: 1.5; margin-top: 0.8cqw; }
  .kicker { margin-bottom: 0.6cqw; }

  .numbered { gap: 0.6cqw; margin-top: 1.2cqw; }
  .numbered li, .numbered.compact li { padding: 0.75cqw 1cqw; }
  .numbered h3 { font-size: 14.5px; }
  .numbered p, .phase > p, .audience-card p, .glance dd, .case figcaption span,
  .partner blockquote, .request > p { font-size: 13px; line-height: 1.45; }
  .phase h3, .audience-card h3 { font-size: 16px; }
  .phase li, .destination b, .phase-summary b { font-size: 12.5px; }
  .phase, .audience-card { padding: 1.3cqw 1.4cqw; gap: 0.6cqw; }
  .phase-summary { display: none; }
  .slide-note { font-size: 12px; }

  .cover-copy { padding: 2.4cqw 2.4cqw 2.4cqw 3.6cqw; }
  .cover-logo { margin-bottom: 1.8cqw; padding-bottom: 1.6cqw; }
  .cover-logo img { height: 7.6cqw; }
  .fact-row li { font-size: 12px; }
  .fact-row { margin-top: 1.4cqw; }
  .byline { margin-top: 1.4cqw; font-size: 12px; }
  .stage-audiences span { display: none; }

  .showcase-browser .viewport { height: min(300px, 50cqh); }
  .case-viewport { height: min(280px, 42cqh); }
  .case figcaption { padding: 0.7cqw 1cqw; }

  .partner { margin-top: 1.2cqw; padding: 1.2cqw; }
  .portrait { width: 112px; height: 112px; }
  .request { padding: 1.4cqw; gap: 0.6cqw; }
}

/* ---------- Mobile: slides stack into a readable column ---------- */

@media screen and (max-width: 700px) {
  html, body { overflow-x: hidden; }

  .deck { min-height: 100svh; }

  .slide:not(.cover) { padding: 18px 18px 96px; gap: 18px; }

  .slide.active { min-height: 100svh; }

  .slide.cover.active { display: flex; flex-direction: column; }

  .cover-copy { padding: 28px 20px 24px; }
  .cover-logo { margin-bottom: 22px; padding-bottom: 18px; }
  .cover-logo img { height: auto; width: min(300px, 80vw); }
  .cover-stage { padding: 22px 16px 96px; gap: 14px; }
  .stage-audiences { grid-template-columns: 1fr; }
  .slide-brandcore { left: 18px; bottom: 74px; height: 16px; }

  .slide-head { flex-wrap: wrap; gap: 10px; padding-bottom: 12px; }
  .brand { gap: 12px; }
  .brand-tile { height: 58px; padding: 0 12px; border-radius: 10px; }
  .brand-tile img { height: 42px; }
  .brand-name { padding-left: 12px; }
  .section-tag { gap: 8px; }
  .section-tag b { min-width: 30px; height: 30px; }

  h2 br { display: none; }
  .chrome-tag { display: none; }
  .kicker { margin-bottom: 10px; }
  .kicker::before { width: 22px; }
  .lead { margin-top: 12px; }

  .split, .split.showcase, .intro-row, .close-grid,
  .audience-grid, .phase-grid, .phase-summary, .glance dl { grid-template-columns: 1fr; gap: 14px; }

  .comparison { flex-direction: column; gap: 18px; }

  .numbered { gap: 10px; margin-top: 16px; }
  .numbered li { gap: 12px; padding: 14px; border-radius: 12px; }
  .num { width: 32px; height: 32px; }

  .glance { gap: 14px; padding: 16px; border-radius: 14px; }
  .glance-logo { padding: 18px; border-radius: 10px; }
  .glance-logo img { height: auto; width: min(280px, 70vw); }
  .glance dl > div { padding: 12px; border-radius: 10px; }

  .audience-card, .phase { gap: 10px; padding: 18px; border-radius: 14px; }
  .badge-icon { width: 38px; height: 38px; padding: 8px; border-radius: 10px; }

  .browser, .case, .hero-browser { border-radius: 12px; }
  .chrome { gap: 10px; padding: 0 10px; }
  .dots { gap: 5px; }
  .url { max-width: none; padding: 0 10px; gap: 6px; }
  .showcase-browser .viewport, .case-viewport { height: auto; width: 100%; }
  .case figcaption { padding: 12px 14px; gap: 4px; }

  .phase-summary { padding: 14px; gap: 10px; border-radius: 12px; }

  .partner { grid-template-columns: 1fr; justify-items: start; gap: 12px; padding: 18px; border-radius: 14px; margin-top: 18px; }
  .contact-row { gap: 8px; padding-top: 12px; }
  .contact-row a { gap: 8px; padding: 8px 14px; }

  .request { gap: 12px; padding: 20px; border-radius: 14px; }
  .suggestions, .picker-grid { gap: 8px; }
  .picker-grid { grid-template-columns: 1fr; }
  .suggestions button, .request input { border-radius: 8px; }
  #contact { gap: 8px; padding: 12px 16px; border-radius: 8px; }

  .page { right: 18px; bottom: 74px; }
}

/* ---------- Print: every slide on its own landscape page ---------- */

@media print {
  @page { size: 11in 6.1875in; margin: 0; }

  html, body { background: #FFFFFF; }

  .deck {
    width: 11in;
    container-type: inline-size;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  /* Each printed page is its own 16:9 container, so the short-deck rules apply. */
  .slide, .slide.active, .slide.cover {
    display: flex;
    container-type: size;
    height: 6.1875in;
    break-after: page;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .slide.cover, .slide.cover.active { display: grid; grid-template-columns: 46fr 54fr; }

  .slide:last-child { break-after: auto; }

  .controls, #scene, .screen-request, .page { display: none; }

  .ribbon-fallback { display: block; }

  .print-contact {
    display: block;
    font-size: 11pt;
    font-weight: 700;
    color: var(--ink);
  }
}

/* === Brandcore Official Co-Branding & Sign-off Lockups === */
.cover-collab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 13px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: fit-content;
  max-width: 100%;
}
.cover-collab--light {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.14);
}
.brandcore-badge-logo {
  height: 18px;
  width: auto;
  display: block;
  object-fit: contain;
}
.cover-collab-sep {
  font-size: 12px;
  opacity: 0.55;
  line-height: 1;
}
.cover-collab-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.88;
}
.partner-brand-signoff {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  width: 100%;
}
.partner-brand-signoff--light {
  border-top-color: rgba(15, 23, 42, 0.14);
}
.signoff-brandcore-logo {
  height: 22px;
  width: auto;
  display: block;
  object-fit: contain;
}
.signoff-brandcore-meta {
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 0.02em;
}
