/* ==========================================================================
   Thunder-Rode × Vypple — proposal deck
   Palette (60/30/10): warm paper base · navy ink #14213D ·
   interactive navy #233A63 (highlight) · oxblood #7A1E1E (secondary, ≤10%)
   Progressive slide show: without JS the slides stack as a normal document;
   with JS the deck takes over (one slide at a time, arrows to advance).
   Mobile-first throughout.
   ========================================================================== */

:root {
  --paper: #FAF7F2;
  --white: #FFFFFF;
  --ink: #14213D;          /* deep navy-black */
  --navy: #233A63;         /* highlight: CTAs, links, stats */
  --red: #7A1E1E;          /* secondary: eyebrows, rules */
  --ink-60: rgba(20, 33, 61, 0.68);

  --font-display: "Special Gothic Expanded One", "Oswald", "Barlow Condensed", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-script: "Yellowtail", cursive;

  --container: 1120px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --deck-ui-h: 74px; /* room reserved for the arrow bar on small screens */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }

img, video { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); width: 100%; }
.container--narrow { max-width: 780px; }

/* ---------- type ---------- */
.eyebrow {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
.eyebrow--red { color: var(--red); }
.eyebrow--light { color: rgba(255, 255, 255, 0.85); }

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.8vw, 3.25rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
}

.serif-italic { font-family: var(--font-serif); font-style: italic; }
.title-days { color: var(--red); } /* phase day ranges, red h2 lettering */
.lede { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); color: var(--ink-60); max-width: 52ch; margin-bottom: 1.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--navy);
  padding: 0.9em 1.8em;
  font-size: 0.9375rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn--big { font-size: 1.0625rem; padding: 1em 2.2em; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-solid {
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(20, 33, 61, 0.08);
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  padding: 0.9rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1rem; letter-spacing: 0.04em;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.nav.is-solid .nav__brand { color: var(--ink); }
.nav__x { color: var(--red); }
.nav__links { display: none; gap: 1.5rem; }
.nav__links a {
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
}
.nav.is-solid .nav__links a { color: var(--ink); }
.nav__links a:hover { color: var(--red); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__phone { display: none; font-weight: 600; font-size: 0.9375rem; text-decoration: none; color: var(--white); }
.nav.is-solid .nav__phone { color: var(--navy); }
.btn--nav {
  padding: 0.55em 1.1em; font-size: 0.8125rem;
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn--nav:hover { background: var(--ink); border-color: var(--ink); }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__phone { display: inline; }
}
@media (max-width: 600px) {
  .nav__inner { padding: 0.75rem 1rem; gap: 0.5rem; }
  .nav__brand { font-size: 0.75rem; letter-spacing: 0.01em; }
  .btn--nav { font-size: 0.7rem; padding: 0.45em 0.7em; white-space: nowrap; }
  .hero__eyebrow { letter-spacing: 0.14em; font-size: 0.75rem; }
}

/* ---------- deck ---------- */
/* No-JS default: slides stack as a document. JS adds .js and the deck takes over. */
.slide { position: relative; }
/* padding-block only: the inline padding belongs to .container (a shorthand
   here would zero it and pin content to the screen edges on mobile) */
.slide__inner { padding-block: 6rem 4rem; }

.js .deck { position: fixed; inset: 0; overflow: hidden; }
.js .slide {
  position: absolute; inset: 0;
  display: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
}
.js .slide:nth-of-type(even) { background: var(--paper); }
.js .slide.is-active { display: block; }
.js .slide__inner {
  min-height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 5.5rem;
  padding-bottom: calc(var(--deck-ui-h) + 1.5rem);
}

/* deck controls */
.deck-ui {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  z-index: 110;
  display: none;
  align-items: center; gap: 1rem;
  background: rgba(250, 247, 242, 0.95);
  border: 1px solid rgba(20, 33, 61, 0.12);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  box-shadow: 0 6px 24px rgba(20, 33, 61, 0.14);
}
.js .deck-ui { display: flex; }
.deck-ui__btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: var(--navy); color: var(--white);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.deck-ui__btn:hover { background: var(--ink); }
.deck-ui__btn:disabled { opacity: 0.35; cursor: default; }
.deck-ui__btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.deck-ui__count {
  font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em;
  color: var(--ink); min-width: 4.5ch; text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .deck-ui { left: auto; right: 2rem; transform: none; }
}

.deck-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 101;
  background: transparent; pointer-events: none;
  display: none;
}
.js .deck-progress { display: block; }
.deck-progress span {
  display: block; height: 100%; width: 0;
  background: var(--red);
  transition: width 0.35s ease;
}

/* ---------- hero slide ---------- */
.slide--hero { background: var(--ink); }
.js .slide--hero { background: var(--ink); }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.05); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,33,61,0.55) 0%, rgba(20,33,61,0.25) 40%, rgba(20,33,61,0.78) 100%),
    linear-gradient(90deg, rgba(20,33,61,0.55) 0%, rgba(20,33,61,0.05) 65%);
}
.hero__content {
  position: relative; z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  color: var(--white);
  justify-content: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 0.8rem + 4.4vw, 4.75rem);
  line-height: 1.04;
  text-transform: uppercase;
  max-width: 18ch;
}
.hero__line { display: block; }
.hero__line--second { margin-top: clamp(1rem, 3vh, 2rem); } /* the requested white space */
.hero__script {
  font-family: var(--font-script);
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  color: #E8C9A0;
  transform: rotate(-2deg);
  margin: 0.75rem 0 1.25rem 0.25rem;
}
.hero__sub { max-width: 52ch; font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem); color: rgba(255,255,255,0.88); margin-bottom: 2rem; }

/* ---------- cards ---------- */
.cards {
  list-style: none;
  display: grid; grid-template-columns: 1fr; gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: 0 1px 0 rgba(20, 33, 61, 0.06);
  padding: 1.75rem 1.5rem;
}
.js .slide:nth-of-type(even) .card { background: var(--white); }
.js .slide:nth-of-type(odd) .card { background: var(--paper); }
.card__title {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; font-size: 1.125rem; letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.card p { color: var(--ink-60); font-size: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards--loose { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 900px; }
}

/* ---------- gap + stats ---------- */
.gap__text {
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  max-width: 58ch;
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  margin: 1rem 0 3rem;
}
.gap__text strong { color: var(--red); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2x2 always: the numerals need air */
  gap: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  max-width: 900px;
}
.stat {
  border-top: 2px solid rgba(20, 33, 61, 0.14);
  padding-top: 1.25rem;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.5rem);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-60); margin-top: 0.6rem;
}
/* short viewports: tighten vertical rhythm so slides need less internal scroll */
@media (max-height: 820px) {
  .slide__inner { padding-top: 4.75rem; }
  .step { padding: 0.9rem 0; }
  .section__title { margin-bottom: 1rem; }
}

/* ---------- steps (phase 1) ---------- */
.steps { list-style: none; margin-top: 1.5rem; max-width: 780px; }
.step {
  display: flex; gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.12);
}
.step:last-child { border-bottom: none; }
.step__num {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 2px solid var(--red); border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.125rem; color: var(--red);
}
.step__name {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; font-size: 1.1875rem; letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.step__when {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; color: var(--navy); vertical-align: middle; margin-left: 0.5rem;
}
.step p { color: var(--ink-60); font-size: 1rem; }

/* ---------- the math ---------- */
.math__panels {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  margin: 1.5rem 0 1.75rem;
  max-width: 900px;
}
@media (min-width: 800px) { .math__panels { grid-template-columns: 1fr 1fr; } }
.math__panel {
  background: var(--white);
  border-top: 3px solid var(--navy);
  box-shadow: 0 1px 0 rgba(20, 33, 61, 0.06);
  padding: 1.75rem 1.5rem;
}
.js .slide:nth-of-type(even) .math__panel { background: var(--white); }
.js .slide:nth-of-type(odd) .math__panel { background: var(--paper); }
.math__lens {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; font-size: 1.125rem; letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.math__rows { display: flex; flex-direction: column; }
.math__row {
  display: flex; align-items: baseline; gap: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.1);
}
.math__row dt {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  color: var(--navy);
  min-width: 5.5ch;
  font-variant-numeric: tabular-nums;
}
.math__row dd { color: var(--ink-60); font-size: 0.9375rem; }
.math__row--total {
  border-bottom: none; padding-top: 1rem;
  flex-direction: column; align-items: flex-start; gap: 0.2rem;
}
.math__row--total dt { color: var(--red); font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.math__row--total dd { color: var(--ink); font-weight: 600; }
.math__note { color: var(--ink-60); max-width: 58ch; }

/* ---------- initial engagement outline (phase 1, steps 1-2) ---------- */
.engagement {
  position: relative;
  border: 2px solid var(--navy);
  padding: 1.75rem 1.5rem 0.5rem;
  margin: 1.5rem 0 0.5rem;
  list-style: none;
}
.engagement__label {
  position: absolute; top: 0; left: 1.25rem;
  transform: translateY(-50%);
  background: var(--navy); color: var(--white);
  font-weight: 600; font-size: 0.6875rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.35em 0.9em;
}
.js .slide:nth-of-type(even) .engagement { background: var(--white); }
.steps--nested { margin-top: 0; max-width: none; }

/* ---------- statement ---------- */
.statement { max-width: 62ch; }
.statement p { margin-bottom: 1.25rem; }
.statement p strong { color: var(--navy); }
.statement p:nth-child(2) {
  border-left: 3px solid var(--red);
  padding-left: 1.5rem;
  font-family: var(--font-serif); font-style: italic;
}

/* ---------- deal ---------- */
.deal__anchor { color: var(--ink-60); font-size: 1.125rem; margin-bottom: 2rem; }
.deal__offer { margin: 0 0 2rem; }
.deal__big {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.375rem, 0.9rem + 2.3vw, 2.5rem);
  line-height: 1.15;
}
.deal__figure { color: var(--navy); font-size: 1.5em; }
.deal__figure--pct { color: var(--red); }
.deal__plus { margin: 0 0.35em; color: var(--ink-60); }
.deal__table { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; }
.deal__table th, .deal__table td {
  text-align: left; padding: 0.9rem 0.5rem 0.9rem 0;
  border-bottom: 1px solid rgba(20, 33, 61, 0.12);
  vertical-align: top;
}
.deal__table th {
  font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--red);
  width: 34%; white-space: nowrap;
}
.deal__own { font-size: 1.125rem; }
.deal__why { max-width: 62ch; margin-bottom: 1.5rem; }
.deal__why strong { color: var(--navy); }
.deal__needs {
  border: 2px solid var(--navy);
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 0 0 1.5rem;
  max-width: 62ch;
}
.deal__needs-title {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; font-size: 1rem; letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.deal__needs ul { list-style: none; }
.deal__needs li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  color: var(--ink-60); font-size: 1rem;
}
.deal__needs li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 8px; height: 8px; background: var(--red);
}
.deal__needs strong { color: var(--ink); }
.deal__pay { margin-top: 2rem; }
.deal__pay-note { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--ink-60); }

/* ---------- proof ---------- */
.pull { margin: 2rem 0; padding-left: 1.75rem; border-left: 3px solid var(--navy); }
.pull p { font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.4; }
.pull__sig { font-family: var(--font-script); font-size: 1.5rem; font-style: normal; color: var(--red); display: block; margin-top: 0.75rem; }
.proof__links { font-weight: 600; }
.proof__dot { margin: 0 0.6rem; color: var(--ink-60); }

/* ---------- faq ---------- */
.faq__list { margin-top: 1rem; }
.faq__item { border-bottom: 1px solid rgba(20, 33, 61, 0.14); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.75rem; color: var(--red);
  transition: transform 0.25s ease;
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 0 1.4rem; max-width: 62ch; color: var(--ink-60); }
.faq__item summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ---------- cta slide ---------- */
.slide--cta { background: var(--ink); color: var(--white); }
.js .slide--cta { background: var(--ink); }
.cta__inner { text-align: center; align-items: center; }
.route-end { display: block; width: 14px; height: 14px; border-radius: 50%; background: #E8C9A0; margin: 0 auto 2rem; }
.cta__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3.4vw, 4rem);
  text-transform: uppercase; line-height: 1.05;
  margin-bottom: 1rem;
}
.cta__sub { color: rgba(255,255,255,0.75); max-width: 46ch; margin: 0 auto 2.25rem; }
.slide--cta .btn--primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.slide--cta .btn--primary:hover { background: #E8C9A0; border-color: #E8C9A0; color: var(--ink); }
.cta__or { margin-top: 1.25rem; color: rgba(255,255,255,0.75); }
.cta__tel { color: var(--white); font-weight: 600; white-space: nowrap; }
.cta__footer { margin-top: 3rem; font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.cta__footer a { color: rgba(255,255,255,0.7); }

/* ---------- animation defaults ---------- */
/* JS sets [data-animate] to its start state on slide entry; without JS everything is visible. */
@media (prefers-reduced-motion: reduce) {
  .deck-progress span { transition: none; }
}
