@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&family=Mona+Sans:ital,wdth,wght@0,75..125,200..900;1,75..125,200..900&family=JetBrains+Mono:wght@400;500;700&display=swap');

@font-face {
  font-family: 'Clash Display';
  src: url('../assets/fonts/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------------
   Tokens

   Type is clamp(min, viewport-relative, max). The maxes are deliberately well
   below the original 1920x1080 design sizes — that deck was built to be watched
   as full-screen video, and those sizes read as oversized on a real screen.

   Nothing scrolls and nothing splits: slides are overflow:hidden, the mobile
   layouts below restyle each slide compactly enough to fit, and a fit guard in
   deck.js scales anything that still doesn't.
   --------------------------------------------------------------------------- */
:root {
  --color-brand-primary: #2e1a47;
  --color-brand-accent-1: #bb86fc;
  --color-brand-accent-2: #03dac6;
  --color-brand-bg: #000000;
  --color-brand-text: #fff;

  --panel-bg: rgba(19, 7, 34, 0.65);
  --panel-border: rgba(187, 134, 252, 0.3);
  --panel-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);

  --pad-x: clamp(1.05rem, 4.5vw, 5rem);
  --pad-y: clamp(0.8rem, 2vw, 2.25rem);
  --gap: clamp(0.7rem, 1.4vw, 1.6rem);

  --fs-logo: clamp(1.1rem, 2.4vw, 1.9rem);
  --fs-mono: clamp(0.62rem, 1vw, 0.9rem);
  --fs-title: clamp(1.4rem, 4vw, 3rem);
  --fs-subtitle: clamp(0.88rem, 1.6vw, 1.2rem);

  --radius-card: clamp(14px, 1.2vw, 24px);

  /* Inner padding for every glass card, in one place. Each responsive tier
     retunes these two values rather than restating a padding per card type —
     the mobile tiers used to carry five slightly different pairs, which is how
     the cards drifted out of step with each other. The vertical value is the
     expensive one on a phone: height is the scarce axis, and overspending it
     makes the fit guard scale the whole slide down. */
  --card-pad-y: clamp(0.9rem, 1.5vw, 1.8rem);
  --card-pad-x: clamp(0.85rem, 1.4vw, 1.6rem);

  /* Fade strip under the header on viewports where the chrome is opaque. */
  --chrome-fade: 0rem;
  /* Extra breathing room between slide content and the progress bar. */
  --content-gap-b: 0rem;

  /* viewport-fit=cover means the page extends under the notch / Dynamic Island
     and the home indicator. In landscape the horizontal inset is the big one —
     without it, content sits under the camera housing on one side. */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --pad-l: calc(var(--pad-x) + var(--safe-l));
  --pad-r: calc(var(--pad-x) + var(--safe-r));
  --chrome-top: calc(var(--pad-y) + var(--fs-logo) * 1.7);
  --chrome-bottom: calc(var(--pad-y) * 0.75 + var(--fs-mono) * 2.6 + var(--safe-b));
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--color-brand-bg);
  color: var(--color-brand-text);
  font-family: 'Mona Sans', system-ui, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

.highlight {
  color: var(--color-brand-accent-1);
}

/* ---------------------------------------------------------------------------
   Ambient background — rendered once for the deck, not per slide.
   --------------------------------------------------------------------------- */
.deck-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.dot-grid {
  position: absolute;
  inset: -30px;
  background-image: radial-gradient(circle, rgba(187, 134, 252, 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: dot-drift 8s linear infinite;
}

@keyframes dot-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 28px 28px;
  }
}

.bg-glow-purple,
.bg-glow-teal {
  position: absolute;
  border-radius: 50%;
}

.bg-glow-purple {
  width: min(1000px, 90vw);
  height: min(1000px, 90vw);
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle, rgba(187, 134, 252, 0.22) 0%, transparent 70%);
  filter: blur(80px);
  animation: glow-breathe 9s ease-in-out infinite alternate;
}

.bg-glow-teal {
  width: min(700px, 70vw);
  height: min(700px, 70vw);
  left: 78%;
  top: 18%;
  background: radial-gradient(circle, rgba(3, 218, 198, 0.15) 0%, transparent 70%);
  filter: blur(90px);
  animation: glow-breathe 11s ease-in-out infinite alternate-reverse;
  transition: opacity 0.6s ease;
}

@keyframes glow-breathe {
  from {
    opacity: 0.75;
    scale: 0.95;
  }

  to {
    opacity: 1;
    scale: 1.08;
  }
}

/* The workflow and CTA slides had no teal glow in the source. */
body[data-slide="2"] .bg-glow-teal,
body[data-slide="5"] .bg-glow-teal {
  opacity: 0;
}

/* ---------------------------------------------------------------------------
   Chrome — fixed header/footer, kept in sync by js/deck.js.
   --------------------------------------------------------------------------- */
.deck-header,
.deck-footer {
  position: fixed;
  box-sizing: border-box;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-inline: var(--pad-l) var(--pad-r);
  pointer-events: none;
}

.deck-header {
  top: 0;
  height: var(--chrome-top);
}

.deck-footer {
  bottom: 0;
  height: var(--chrome-bottom);
  padding-bottom: var(--safe-b);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: var(--fs-logo);
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1;
}

.tech-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-brand-accent-2);
  text-align: right;
  line-height: 1.2;
}

.slide-footer-left {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.2;
}

/* ---------------------------------------------------------------------------
   Reveal layout — scaling is disabled in deck.js, so slides own their layout.
   --------------------------------------------------------------------------- */
html.reveal-full-page,
.reveal-viewport {
  background: var(--color-brand-bg);
}

.reveal:not(.ready) {
  opacity: 0;
  visibility: hidden;
}

.reveal {
  position: relative;
  z-index: 1;
  font-family: 'Mona Sans', system-ui, sans-serif;
  font-size: inherit;
  color: var(--color-brand-text);
  background: transparent;
  transition: opacity 0.2s ease;
}

.reveal.ready {
  opacity: 1;
  visibility: visible;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

/* Slides never scroll. Anything that would overflow is scaled by the fit guard
   in deck.js. */
.reveal .slides>section.present,
.reveal .slides>section.past,
.reveal .slides>section.future {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  padding: calc(var(--chrome-top) + var(--chrome-fade) + var(--pad-y) * 0.4) var(--pad-r) calc(var(--chrome-bottom) + var(--pad-y) * 0.4 + var(--content-gap-b)) var(--pad-l);
  overflow: hidden;
}

.slide-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: calc(var(--gap) * 1.5);
  /* top left, not top center: the fit guard widens this to 100/scale% before
     scaling, and an over-wide box centres on its own midpoint — which sits
     right of the container's, shoving the scaled content sideways. */
  transform-origin: top left;
  max-width: 1500px;
  margin-inline: auto;
}

/* The heading is pinned to the top of the slide on every viewport, so titles
   land in the same place as the deck is stepped through. Everything after the
   intro then centres itself in the height that is left, via auto margins rather
   than justify-content — that keeps the title fixed while still avoiding a void
   between it and the cards. On the mobile tiers the grids grow to fill instead,
   which leaves no free space for the auto margins to claim, so they collapse to
   zero on their own. */
.slide-body>.slide-intro+* {
  margin-top: auto;
}

.slide-body>.slide-intro~*:last-child {
  margin-bottom: auto;
}

/* The grid shrinks if space is tight but never grows, so the leftover height
   pools below the composition rather than between the title and the cards. */
.stats-grid,
.steps-grid,
.pricing-grid {
  flex: 0 1 auto;
  min-height: 0;
  align-items: stretch;
}

.reveal .slides section.slide-title-scene .slide-body {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  margin: 0;
  text-transform: none;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
}

.reveal p {
  margin: 0;
}

.reveal a {
  color: inherit;
}

/* reveal's own UI, tinted to the brand and lifted clear of the footer */
.reveal .controls {
  color: var(--color-brand-accent-1);
  bottom: calc(var(--chrome-bottom) + 4px);
  right: 8px;
}

/* Anchored to the footer's top edge, not the screen edge — on a phone the last
   few pixels sit under the home indicator or the browser's own bar. */
/* Read-only: reveal wires the bar up for click-to-seek, which is easy to hit by
   accident on a phone. It only reports progress here. */
.reveal .progress {
  pointer-events: none;
  height: 3px;
  bottom: var(--chrome-bottom);
  color: var(--color-brand-accent-2);
  background: rgba(255, 255, 255, 0.12);
  z-index: 30;
}

/* ---------------------------------------------------------------------------
   Shared slide pieces
   --------------------------------------------------------------------------- */
/* Flex column, not a plain block: the child headings' top margins would
   otherwise collapse through, so the measured height understates the real one
   and the fit guard sees a phantom overflow. */
.slide-intro {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}

.slide-title {
  font-size: var(--fs-title);
  margin-top: 0.1em !important;
  text-wrap: balance;
}

.slide-subtitle {
  font-size: var(--fs-subtitle);
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0.4em !important;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Glass card base, shared by stat/step/plan/contact panels. The hero area sets
   its own, much roomier padding — it is a full-width panel, not a card. */
.stat-card,
.step-card,
.plan-card,
.action-panel,
.contact-card {
  padding: var(--card-pad-y) var(--card-pad-x);
}

.stat-card,
.step-card,
.plan-card,
.action-panel,
.contact-card,
.hero-area {
  border-radius: var(--radius-card);
  border: 1.5px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--panel-shadow);
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
   1 — Title
   --------------------------------------------------------------------------- */
.hero-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  width: 100%;
  background: rgba(12, 12, 12, 0.55);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(18px, 1.6vw, 32px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: clamp(1.5rem, 3vw, 3.25rem) clamp(1.15rem, 3.4vw, 4rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-title {
  font-size: clamp(1.8rem, 5.6vw, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-title .highlight,
.slide-cta .slide-title .highlight {
  background: linear-gradient(90deg, var(--color-brand-accent-1), var(--color-brand-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 0.7em !important;
  max-width: 46ch;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------
   1b — Title scenes (before / after)

   Line art in the same language as the step icons: no fills, round caps, one
   colour per group via `currentColor` so a group class tints everything under
   it. The chase loops while slide 1 is present; the desk scene is a fragment,
   so its signature and seal only play once it is actually on screen.
   --------------------------------------------------------------------------- */
.hero-scenes {
  width: 100%;
  max-width: 1000px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 1.8vw, 2rem);
  align-items: end;
  flex: 0 1 auto;
  min-height: 0;
}

.scene {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

/* height:auto keeps the ratio; max-height letterboxes it inside the column
   rather than distorting, so a short viewport shrinks the drawing instead of
   pushing the hero off the slide. */
.scene svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: clamp(90px, 20vh, 210px);
  /* Clipped, not visible: the two panels sit side by side with a small gap, and
     a drawing that bleeds past its own frame runs into its neighbour. */
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
}

.scene svg path,
.scene svg line,
.scene svg circle,
.scene svg rect,
.scene svg polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene .accent {
  color: var(--color-brand-accent-2);
}

.scene .alt {
  color: var(--color-brand-accent-1);
}

.scene .faint {
  color: rgba(255, 255, 255, 0.16);
}

/* Callouts naming the figures. Thinner leader lines than the drawing itself,
   so the annotation layer reads as annotation. */
.scene text {
  fill: currentColor;
  stroke: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.scene .tag path {
  stroke-width: 1.8;
  opacity: 0.7;
}

.scene .tag-dot {
  fill: currentColor;
  stroke: none;
}

.scene-cap {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.5rem, 0.85vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.scene-relax .scene-cap {
  color: var(--color-brand-accent-2);
}

/* --- chase ---------------------------------------------------------------- */

/* Everything moves except the runner: he bobs on the spot while the ground
   scrolls under him and the prospects slide out of frame — the point of the
   scene is that the running never closes the gap. */
.reveal .slides>section.present .scene-chase.visible .dashes {
  stroke-dasharray: 12 10;
  animation: ground-scroll 0.7s linear infinite;
}

.reveal .slides>section.present .scene-chase.visible .runner {
  animation: run-bob 0.56s ease-in-out infinite;
}

.scene-chase .limb {
  transform-box: view-box;
}

.scene-chase .leg {
  transform-origin: 52px 104px;
}

.scene-chase .arm {
  transform-origin: 70px 68px;
}

.reveal .slides>section.present .scene-chase.visible .leg-a,
.reveal .slides>section.present .scene-chase.visible .arm-b {
  animation: limb-swing-a 0.56s ease-in-out infinite;
}

.reveal .slides>section.present .scene-chase.visible .leg-b,
.reveal .slides>section.present .scene-chase.visible .arm-a {
  animation: limb-swing-b 0.56s ease-in-out infinite;
}

.scene-chase .speed line {
  opacity: 0;
}

.reveal .slides>section.present .scene-chase.visible .speed line {
  animation: speed-line 0.56s linear infinite;
}

.reveal .slides>section.present .scene-chase.visible .s2 {
  animation-delay: 0.18s;
}

.reveal .slides>section.present .scene-chase.visible .s3 {
  animation-delay: 0.34s;
}

.scene-chase .sweat path {
  opacity: 0;
}

.reveal .slides>section.present .scene-chase.visible .sweat path {
  animation: sweat-fly 1.12s ease-out infinite;
}

.reveal .slides>section.present .scene-chase.visible .w2 {
  animation-delay: 0.56s;
}

.reveal .slides>section.present .scene-chase.visible .flee {
  animation: flee 3.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.reveal .slides>section.present .scene-chase.visible .f2 {
  animation-delay: 0.5s;
}

.reveal .slides>section.present .scene-chase.visible .f3 {
  animation-delay: 1s;
}

@keyframes ground-scroll {
  to {
    stroke-dashoffset: -22;
  }
}

@keyframes run-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes limb-swing-a {

  0%,
  100% {
    transform: rotate(16deg);
  }

  50% {
    transform: rotate(-16deg);
  }
}

@keyframes limb-swing-b {

  0%,
  100% {
    transform: rotate(-16deg);
  }

  50% {
    transform: rotate(16deg);
  }
}

@keyframes speed-line {
  0% {
    opacity: 0;
    transform: translateX(12px);
  }

  35% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateX(-14px);
  }
}

@keyframes sweat-fly {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }

  20% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(9px, -10px);
  }
}

@keyframes flee {
  0% {
    opacity: 0;
    transform: translateX(-10px);
  }

  12%,
  60% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(34px);
  }
}

/* --- desk ----------------------------------------------------------------- */

/* Timed off the fragment: the pen travels, the signature draws under it, and
   the seal lands once the last stroke is down. */
.scene-relax .signature {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.scene-relax .signing {
  transform: translate(-9px, 3px);
}

.scene-relax .seal {
  opacity: 0;
  transform-box: view-box;
  transform-origin: 236px 62px;
}

.scene-relax .steam path {
  opacity: 0;
}

.reveal .scene-relax.visible .signature {
  animation: sign-draw 1.5s ease-in-out 0.5s forwards;
}

.reveal .scene-relax.visible .signing {
  animation: pen-travel 1.5s ease-in-out 0.5s forwards;
}

.reveal .scene-relax.visible .seal {
  animation: seal-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 2.05s forwards;
}

.reveal .scene-relax.visible .boss {
  animation: lean-back 3.6s ease-in-out 2.2s infinite;
}

.reveal .scene-relax.visible .steam path {
  animation: steam 2.6s ease-out infinite;
}

.reveal .scene-relax.visible .st2 {
  animation-delay: 1.1s;
}

@keyframes sign-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pen-travel {
  to {
    transform: translate(0, 0);
  }
}

@keyframes seal-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }

  65% {
    opacity: 1;
    transform: scale(1.12);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lean-back {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-1.5px, 1.5px);
  }
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }

  30% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translateY(-13px);
  }
}

/* ---------------------------------------------------------------------------
   2 — Problem
   --------------------------------------------------------------------------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: stretch;
  min-height: 0;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-accent-1), var(--color-brand-accent-2));
  opacity: 0.9;
}

.stat-number {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-brand-accent-1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 0.12em;
}

.stat-sublabel {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.65rem, 1vw, 0.95rem);
  font-weight: 700;
  color: var(--color-brand-accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45em;
}

.stat-desc {
  font-size: clamp(0.85rem, 1.3vw, 1.1rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
}

/* ---------------------------------------------------------------------------
   3 — Workflow
   --------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  align-items: stretch;
  min-height: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  /* Anchor for the connector segment below. */
  position: relative;
}

/* The four steps are a pipeline, not four unrelated boxes. Each card draws the
   segment that reaches toward the next one, so the line arrives with the card
   rather than sitting there waiting for it — one segment per grid gap, which
   keeps it out from under the translucent panels. The last card leads nowhere. */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  width: var(--gap);
  height: 2px;
  margin-top: -1px;
  background: linear-gradient(90deg, var(--color-brand-accent-2), var(--color-brand-accent-1));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
  pointer-events: none;
}

.reveal .step-card.visible:not(:last-child)::after {
  transform: scaleX(1);
}

/* Badge and icon share one line, so the icon costs no vertical room — slides
   never scroll and this one is already the tightest of the five. */
.step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5em;
}

.step-head .step-number {
  margin-bottom: 0;
}

.step-icon {
  width: clamp(24px, 2.2vw, 38px);
  height: clamp(24px, 2.2vw, 38px);
  flex: 0 0 auto;
  overflow: visible;
}

/* pathLength="1" on every stroked shape normalises the dash maths, so the
   draw-on animation is pure CSS — no per-path getTotalLength() in JS. */
.step-icon path,
.step-icon polyline,
.step-icon line,
.step-icon rect,
.step-icon circle {
  fill: none;
  stroke: var(--color-brand-accent-2);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s ease-out;
}

.step-icon .dot {
  fill: var(--color-brand-accent-2);
  stroke: none;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* :nth-child outranks the element selectors above, so these delays survive the
   `transition` shorthand there. */
.step-icon>*:nth-child(1) { transition-delay: 0.25s; }
.step-icon>*:nth-child(2) { transition-delay: 0.33s; }
.step-icon>*:nth-child(3) { transition-delay: 0.41s; }
.step-icon>*:nth-child(4) { transition-delay: 0.49s; }
.step-icon>*:nth-child(5) { transition-delay: 0.57s; }
.step-icon>*:nth-child(6) { transition-delay: 0.65s; }
.step-icon>*:nth-child(7) { transition-delay: 0.73s; }

.reveal .step-card.visible .step-icon path,
.reveal .step-card.visible .step-icon polyline,
.reveal .step-card.visible .step-icon line,
.reveal .step-card.visible .step-icon rect,
.reveal .step-card.visible .step-icon circle {
  stroke-dashoffset: 0;
}

.reveal .step-card.visible .step-icon .dot {
  opacity: 1;
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 1.8vw, 1.7rem);
  font-weight: 700;
  color: var(--color-brand-accent-2);
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  display: inline-block;
  padding: 0.1em 0.42em;
  background: rgba(3, 218, 198, 0.15);
  border: 1.5px solid rgba(3, 218, 198, 0.4);
  border-radius: 10px;
  width: fit-content;
  line-height: 1.2;
}

.step-title {
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  line-height: 1.25;
  margin-bottom: 0.35em !important;
}

.step-desc {
  font-size: clamp(0.82rem, 1.25vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

/* ---------------------------------------------------------------------------
   5 — Pricing
   --------------------------------------------------------------------------- */
.slide-pricing .slide-title {
  font-size: clamp(1.35rem, 3.7vw, 2.75rem);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.5vw, 1.75rem);
  align-items: stretch;
  min-height: 0;
  /* clearance for the featured card's scale(1.03) and its overhanging badge */
  padding-block: clamp(0.7rem, 1vw, 1.1rem);
}

.plan-card {
  border-color: rgba(187, 134, 252, 0.22);
  background: rgba(19, 7, 34, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.plan-card.featured {
  border: 2px solid var(--color-brand-accent-1);
  background: rgba(35, 15, 60, 0.68);
  box-shadow: 0 20px 50px rgba(187, 134, 252, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  scale: 1.03;
  z-index: 3;
}

.badge-recommended {
  position: absolute;
  top: -0.85em;
  right: clamp(0.8rem, 1.2vw, 1.4rem);
  background: linear-gradient(90deg, var(--color-brand-accent-1), var(--color-brand-accent-2));
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.55rem, 0.72vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45em 1.1em;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
  white-space: nowrap;
}

.plan-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: clamp(0.55rem, 0.9vw, 1rem);
  margin-bottom: clamp(0.55rem, 0.9vw, 1rem);
}

.plan-name {
  font-size: clamp(1.1rem, 1.8vw, 1.7rem);
}

.plan-price {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  color: var(--color-brand-accent-1);
  margin-top: 0.1em;
  line-height: 1.1;
}

.plan-price span {
  font-family: 'Mona Sans', sans-serif;
  font-size: clamp(0.7rem, 1vw, 0.95rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.4rem, 0.6vw, 0.7rem);
}

.plan-features li {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.plan-features li .check {
  color: var(--color-brand-accent-2);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  flex: 0 0 auto;
}

.highlight-feature {
  font-weight: 600;
  color: #ffffff;
}

/* ---------------------------------------------------------------------------
   6 — CTA
   --------------------------------------------------------------------------- */
.slide-cta .slide-title {
  font-size: clamp(1.35rem, 3.6vw, 2.75rem);
}

.slide-cta .slide-subtitle {
  font-size: clamp(0.88rem, 1.5vw, 1.15rem);
}

.main-split-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  /* Content-sized row, centred — stretching the contact card to full height
     just opens a gap between the avatar and the contact rows. minmax(0,auto)
     keeps it shrinkable if the viewport is tight. */
  grid-template-rows: minmax(0, auto);
  gap: clamp(1rem, 1.8vw, 2.25rem);
  align-items: center;
  flex: 0 1 auto;
  min-height: 0;
}

.action-panel {
  border-color: rgba(187, 134, 252, 0.38);
  background: rgba(19, 7, 34, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* The one card that carries a single paragraph and a button, so it reads
     better with more air than the dense ones — scaled off the shared tokens so
     it stays in proportion at every tier. */
  padding: calc(var(--card-pad-y) * 1.15) calc(var(--card-pad-x) * 1.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(0.7rem, 1vw, 1.2rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  align-self: center;
  min-height: 0;
}

.action-note {
  font-size: clamp(0.8rem, 1.15vw, 0.98rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52ch;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1vw, 1.1rem);
  text-decoration: none;
  background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: clamp(12px, 0.85vw, 16px);
  padding: clamp(0.75rem, 1.1vw, 1.25rem) clamp(1rem, 1.9vw, 2.25rem);
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  font-weight: 700;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
  text-wrap: balance;
  position: relative;
}

/* Looping attention pulse. It rides on a pseudo-element rather than the button
   so the button's own transform and box-shadow stay free for :hover — a CSS
   animation would otherwise outrank the hover declarations. */
.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--color-brand-accent-1);
  animation: cta-ring 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes cta-ring {
  0% {
    opacity: 0.75;
    transform: scale(1);
  }

  65%,
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

.cta-button .arrow {
  animation: cta-nudge 2.4s ease-in-out infinite;
}

@keyframes cta-nudge {

  0%,
  60%,
  100% {
    transform: translateX(0);
  }

  75% {
    transform: translateX(5px);
  }
}

/* Hand the button back to its hover state cleanly. */
.cta-button:hover::before,
.cta-button:focus-visible::before {
  animation: none;
  opacity: 0;
}

.cta-button:hover .arrow,
.cta-button:focus-visible .arrow {
  animation: none;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.55);
  background: linear-gradient(135deg, #8b5cf6 0%, #0891b2 100%);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-button .arrow {
  font-size: 1.03em;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
  transform: translateX(8px);
}

.contact-card {
  border-color: rgba(187, 134, 252, 0.32);
  background: rgba(19, 7, 34, 0.62);
  border-radius: clamp(16px, 1.4vw, 28px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  min-width: 0;
  min-height: 0;
}

.card-top-tag {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(0.9rem, 1.8vw, 1.45rem);
  color: var(--color-brand-accent-1);
  align-self: flex-start;
  line-height: 1.2;
}

.contact-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  /* anchor for the WhatsApp button in this block's bottom corner. border-box
     so the mobile padding-right stays inside the card instead of widening it. */
  position: relative;
  box-sizing: border-box;
}

.avatar {
  width: clamp(96px, 11vw, 200px);
  height: clamp(96px, 11vw, 200px);
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--color-brand-accent-1);
  margin-bottom: 0.5em;
  box-shadow: 0 16px 50px rgba(187, 134, 252, 0.45);
}

.contact-name {
  font-size: clamp(1.1rem, 1.9vw, 1.75rem);
}

.contact-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.58rem, 0.75vw, 0.8rem);
  font-weight: 700;
  color: var(--color-brand-accent-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3em;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.55vw, 0.65rem);
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: clamp(0.6rem, 0.9vw, 1rem);
  margin-top: auto;
  text-align: left;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.contact-item .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.55rem, 0.72vw, 0.75rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}

.contact-item .val {
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 600;
  color: #ffffff !important;
  text-decoration: none;
  text-align: right;
  word-break: break-word;
}

.contact-item a.val:hover,
.contact-item a.val:focus-visible {
  color: var(--color-brand-accent-2) !important;
}

/* Brand-green disc in the profile block's bottom corner, right above the phone
   row. `.reveal a` sets position:relative and outranks a lone class selector,
   so this has to be at least as specific to pin it. */
.reveal .wa-button {
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 3.6vw, 60px);
  height: clamp(44px, 3.6vw, 60px);
  box-sizing: border-box;
  border-radius: 50%;
  background: #25d366;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}

.wa-button:hover,
.wa-button:focus-visible {
  background: #1eb757;
  transform: translateY(-2px) scale(1.04);
}

.wa-icon {
  display: block;
  width: 62%;
  height: 62%;
  flex: 0 0 auto;
  /* the mark's tail weights it toward the lower left, so dead-centre reads as
     off-centre — nudge it back optically */
  transform: translate(2%, -2%);
}

.wa-icon path {
  fill: #ffffff;
}

/* ---------------------------------------------------------------------------
   4 — Assembly line (block kept last: its selectors are self-contained, and
   moving it would reshuffle the cascade for no gain)

   One looping cycle, built from three periods that share a common beat rather
   than from one long timeline:

     belt    continuous, 126 user units / second
     leads   8s, six copies at 0 / -1.333 / -2.667 / -4 / -5.333 / -6.667s
     robot   4s, delayed 1.9s
     eye     1.333s, delayed 1.27s

   Every lead halts at x=130 for 0.4s to be scanned, then carries on. Leads on
   even offsets are qualified, so one reaches the pick point at x=222 every 4s —
   exactly the robot's period. The hand and the card meet because the numbers
   agree, not because anything is synchronised at runtime:

     lead   travels -30 → 130 over 0-15.9%    (1.27s at 126 u/s)
            halts under the beam  15.9-20.9%  (0.4s)
            travels 130 → 222     20.9-30%
            waits, then vanishes into the hand at 31-33%
     robot  reaches for the belt  0-15%       (abs 1.9 → 2.5s)
            grips                 15-22%      (abs 2.5 → 2.78s)
            brings it to the chest 22-40%
            hands over            40-45%
            places it in the tray 45-65%
            returns               65-90%

   The robot never moves. Its shoulders are at (284,78) and (336,78) with a
   48-unit upper arm and a 44-unit forearm, so the hand reaches 92 units at
   full stretch — which is what fixes the belt at x=222 and the tray rim at
   x=412. Each pose below is the two-link solution for one hand position:

     hand target      arm       upper    fore     sum
     belt  (222,124)  left       22.1     66.0     88.1
     chest (312,116)  left       18.7   -118.5    -99.8
     chest (312,116)  right     -24.1    121.7     97.6
     tray  (412,112)  right     -41.9    -50.4    -92.3

   The card a hand carries is drawn inside that hand, so it follows the
   two-link path for nothing. `.held` then spins it back by exactly the sum
   above to keep it level — which is why its keyframes must share the arms'
   times and every timing function here must stay linear. Easing any one
   segment tilts the card and breaks the hand-off.

   The `transform` attributes in the markup are the frozen pose used for print
   and reduced motion; the keyframes below override them.
   --------------------------------------------------------------------------- */
.line-scene {
  margin: 0;
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
}

.line-scene svg {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  max-height: clamp(150px, 46vh, 460px);
  /* The rejected leads fall past the bottom edge — clip them there. */
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
}

.line-scene svg path,
.line-scene svg line,
.line-scene svg circle,
.line-scene svg rect,
.line-scene svg polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-scene .accent {
  color: var(--color-brand-accent-2);
}

.line-scene .alt {
  color: var(--color-brand-accent-1);
}

.line-scene .faint {
  color: rgba(255, 255, 255, 0.22);
}

.line-scene text {
  fill: currentColor;
  stroke: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Already banked, so they read as settled rather than in play. */
.line-scene .tray-stack {
  color: var(--color-brand-accent-2);
  opacity: 0.35;
}

/* --- belt ----------------------------------------------------------------- */

/* 24 units of dash pattern at 126 u/s. */
.line-scene .belt-dash {
  stroke-dasharray: 14 10;
}

.reveal .slides>section.present .line-scene.visible .belt-dash {
  animation: belt-scroll 0.19s linear infinite;
}

@keyframes belt-scroll {
  to {
    stroke-dashoffset: -24;
  }
}

/* One turn per circumference at belt speed: 2πr / 126. */
.line-scene .roller {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.reveal .slides>section.present .line-scene.visible .roller-end {
  animation: roller-spin 0.648s linear infinite;
}

.reveal .slides>section.present .line-scene.visible .roller-mid {
  animation: roller-spin 0.349s linear infinite;
}

@keyframes roller-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- the scan ------------------------------------------------------------- */

/* A lead halts under the beam every 1.333s, which is why the eye runs on its
   own short period rather than the robot's 4s one. The 1.27s delay is the
   phase: it puts the bright part of the cycle over the 0.4s the card is
   standing still. */
.line-scene svg .eye-beam {
  fill: currentColor;
  fill-opacity: 0.1;
  stroke-opacity: 0.45;
  stroke-width: 1.6;
  opacity: 0;
}

.line-scene svg .eye-ray {
  stroke-width: 1.4;
  opacity: 0;
}

.reveal .slides>section.present .line-scene.visible .eye-beam,
.reveal .slides>section.present .line-scene.visible .eye-ray {
  animation: eye-scan 1.333s linear infinite;
  animation-delay: 1.27s;
  animation-fill-mode: backwards;
}

.reveal .slides>section.present .line-scene.visible .bot-pupil {
  animation: eye-flare 1.333s linear infinite;
  animation-delay: 1.27s;
  animation-fill-mode: backwards;
}

.reveal .slides>section.present .line-scene.visible .bot-bulb {
  animation: bulb-blink 1.333s linear infinite;
  animation-delay: 1.27s;
  animation-fill-mode: backwards;
}

@keyframes eye-scan {

  0%,
  4% {
    opacity: 0;
  }

  10%,
  24% {
    opacity: 1;
  }

  30%,
  100% {
    opacity: 0;
  }
}

/* The pupil narrows and brightens for the length of the read. */
@keyframes eye-flare {

  0%,
  4% {
    opacity: 0.5;
    r: 3.5;
  }

  10%,
  24% {
    opacity: 1;
    r: 2;
  }

  30%,
  100% {
    opacity: 0.5;
    r: 3.5;
  }
}

@keyframes bulb-blink {

  0%,
  6% {
    opacity: 0.25;
  }

  12%,
  26% {
    opacity: 1;
  }

  32%,
  100% {
    opacity: 0.25;
  }
}

/* --- leads ---------------------------------------------------------------- */

.line-scene .lead-mark {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
}

.line-scene .mark-ok {
  color: var(--color-brand-accent-2);
}

.line-scene .mark-no {
  color: var(--color-brand-accent-1);
}

/* Per-lead phase. Card, verdict and travel all read the same offset, so a lead
   is one object even though it is animated as three. */
.line-scene .lead-a {
  --phase: 0s;
}

.line-scene .lead-b {
  --phase: -1.333s;
}

.line-scene .lead-c {
  --phase: -2.667s;
}

.line-scene .lead-d {
  --phase: -4s;
}

.line-scene .lead-e {
  --phase: -5.333s;
}

.line-scene .lead-f {
  --phase: -6.667s;
}

.reveal .slides>section.present .line-scene.visible .lead,
.reveal .slides>section.present .line-scene.visible .lead-card,
.reveal .slides>section.present .line-scene.visible .lead-mark {
  animation-duration: 8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--phase);
}

.reveal .slides>section.present .line-scene.visible .lead-a,
.reveal .slides>section.present .line-scene.visible .lead-d {
  animation-name: lead-picked;
}

.reveal .slides>section.present .line-scene.visible .lead-b,
.reveal .slides>section.present .line-scene.visible .lead-c,
.reveal .slides>section.present .line-scene.visible .lead-e,
.reveal .slides>section.present .line-scene.visible .lead-f {
  animation-name: lead-dropped;
}

.reveal .slides>section.present .line-scene.visible .mark-ok {
  animation-name: lead-verdict-ok;
}

.reveal .slides>section.present .line-scene.visible .mark-no {
  animation-name: lead-verdict-no;
}

.reveal .slides>section.present .line-scene.visible .lead-a .lead-card,
.reveal .slides>section.present .line-scene.visible .lead-d .lead-card {
  animation-name: lead-tint-ok;
}

.reveal .slides>section.present .line-scene.visible .lead-b .lead-card,
.reveal .slides>section.present .line-scene.visible .lead-c .lead-card,
.reveal .slides>section.present .line-scene.visible .lead-e .lead-card,
.reveal .slides>section.present .line-scene.visible .lead-f .lead-card {
  animation-name: lead-tint-no;
}

/* Qualified: halts to be read, then waits at x=222 to be picked up. It does not
   travel with the hand — it fades out as the copy inside the hand fades in, at
   the same place, so the swap is invisible. */
@keyframes lead-picked {
  0% {
    transform: translate(-30px, 152px);
    opacity: 0;
  }

  3% {
    opacity: 1;
  }

  15.9%,
  20.9% {
    transform: translate(130px, 152px);
    opacity: 1;
  }

  30%,
  31% {
    transform: translate(222px, 152px);
    opacity: 1;
  }

  33%,
  100% {
    transform: translate(222px, 152px);
    opacity: 0;
  }
}

/* Rejected: same halt, same read, but nothing comes for it — it runs off the
   end of the belt at x=250 and drops into the hopper. */
@keyframes lead-dropped {
  0% {
    transform: translate(-30px, 152px);
    opacity: 0;
  }

  3% {
    opacity: 1;
  }

  15.9%,
  20.9% {
    transform: translate(130px, 152px);
    opacity: 1;
  }

  32.8% {
    transform: translate(250px, 152px);
    opacity: 1;
  }

  44% {
    transform: translate(254px, 196px);
    opacity: 0;
  }

  100% {
    transform: translate(254px, 196px);
    opacity: 0;
  }
}

/* The verdict lands as the read finishes, at 20.9%.

   A badge rides 46 units above its card, and the hand comes down onto the card
   at x=222 — so a tick still on screen at the pick point would sit under the
   forearm. The tick has said its piece by then and clears out just before the
   hand arrives; the cross has nothing to collide with and stays until its card
   drops off the end. */
@keyframes lead-verdict-ok {

  0%,
  20.9% {
    opacity: 0;
    transform: scale(0.4);
  }

  24%,
  27% {
    opacity: 1;
    transform: scale(1);
  }

  29.5%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes lead-verdict-no {

  0%,
  20.9% {
    opacity: 0;
    transform: scale(0.4);
  }

  24%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lead-tint-ok {

  0%,
  20.9% {
    color: rgba(255, 255, 255, 0.72);
  }

  24%,
  100% {
    color: var(--color-brand-accent-2);
  }
}

@keyframes lead-tint-no {

  0%,
  20.9% {
    color: rgba(255, 255, 255, 0.72);
  }

  24%,
  100% {
    color: rgba(255, 255, 255, 0.32);
  }
}

/* --- robot ---------------------------------------------------------------- */

.line-scene svg .bot-pupil {
  fill: currentColor;
  stroke: none;
}

.line-scene svg .bot-bulb {
  fill: currentColor;
  stroke: none;
}

/* Each joint rotates about its own drawn position. `view-box` makes the
   transform-origin below a plain viewBox coordinate — which is the whole
   reason the viewBox has to start at 0 0. */
.line-scene .arm,
.line-scene .fore,
.line-scene .held {
  transform-box: view-box;
}

.line-scene .arm-l {
  transform-origin: 284px 78px;
}

.line-scene .fore-l {
  transform-origin: 284px 126px;
}

.line-scene .held-l {
  transform-origin: 284px 170px;
}

.line-scene .arm-r {
  transform-origin: 336px 78px;
}

.line-scene .fore-r {
  transform-origin: 336px 126px;
}

.line-scene .held-r {
  transform-origin: 336px 170px;
}

.line-scene .held-card {
  opacity: 0;
}

.line-scene .drop-card {
  opacity: 0;
}

/* The 1.9s delay is the phase offset, not a lead-in — `backwards` holds the 0%
   pose (both arms at rest) through it. */
.reveal .slides>section.present .line-scene.visible .arm,
.reveal .slides>section.present .line-scene.visible .fore,
.reveal .slides>section.present .line-scene.visible .held,
.reveal .slides>section.present .line-scene.visible .held-card,
.reveal .slides>section.present .line-scene.visible .drop-card {
  animation-duration: 4s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: 1.9s;
  animation-fill-mode: backwards;
}

.reveal .slides>section.present .line-scene.visible .arm-l {
  animation-name: arm-l;
}

.reveal .slides>section.present .line-scene.visible .fore-l {
  animation-name: fore-l;
}

.reveal .slides>section.present .line-scene.visible .held-l {
  animation-name: held-l;
}

.reveal .slides>section.present .line-scene.visible .held-l .held-card {
  animation-name: held-card-l;
}

.reveal .slides>section.present .line-scene.visible .arm-r {
  animation-name: arm-r;
}

.reveal .slides>section.present .line-scene.visible .fore-r {
  animation-name: fore-r;
}

.reveal .slides>section.present .line-scene.visible .held-r {
  animation-name: held-r;
}

.reveal .slides>section.present .line-scene.visible .held-r .held-card {
  animation-name: held-card-r;
}

.reveal .slides>section.present .line-scene.visible .drop-card {
  animation-name: drop-card;
}

/* rest → belt → hold → chest → hold → rest */
@keyframes arm-l {
  0% {
    transform: rotate(4deg);
  }

  15%,
  22% {
    transform: rotate(22.1deg);
  }

  40%,
  45% {
    transform: rotate(18.7deg);
  }

  62%,
  100% {
    transform: rotate(4deg);
  }
}

@keyframes fore-l {
  0% {
    transform: rotate(6deg);
  }

  15%,
  22% {
    transform: rotate(66deg);
  }

  40%,
  45% {
    transform: rotate(-118.5deg);
  }

  62%,
  100% {
    transform: rotate(6deg);
  }
}

/* -(arm-l + fore-l) at every stop, so the card stays level. */
@keyframes held-l {

  0%,
  22% {
    transform: rotate(-88.1deg);
  }

  40%,
  100% {
    transform: rotate(99.8deg);
  }
}

/* Fades in as the belt copy fades out at the pick point, and out again as the
   right hand's copy fades in at the chest. */
@keyframes held-card-l {

  0%,
  15.5% {
    opacity: 0;
  }

  17%,
  40% {
    opacity: 1;
  }

  41.5%,
  100% {
    opacity: 0;
  }
}

/* rest → chest → hold → tray → hold → rest */
@keyframes arm-r {

  0%,
  20% {
    transform: rotate(-4deg);
  }

  40%,
  45% {
    transform: rotate(-24.1deg);
  }

  65%,
  70% {
    transform: rotate(-41.9deg);
  }

  90%,
  100% {
    transform: rotate(-4deg);
  }
}

@keyframes fore-r {

  0%,
  20% {
    transform: rotate(-6deg);
  }

  40%,
  45% {
    transform: rotate(121.7deg);
  }

  65%,
  70% {
    transform: rotate(-50.4deg);
  }

  90%,
  100% {
    transform: rotate(-6deg);
  }
}

/* -(arm-r + fore-r) at every stop the card is visible for. */
@keyframes held-r {

  0%,
  45% {
    transform: rotate(-97.6deg);
  }

  65%,
  100% {
    transform: rotate(92.3deg);
  }
}

@keyframes held-card-r {

  0%,
  40% {
    opacity: 0;
  }

  41.5%,
  65% {
    opacity: 1;
  }

  66.5%,
  100% {
    opacity: 0;
  }
}

/* Takes over from the right hand at the release and drops the last 64 units
   into the tray, where it settles onto the pile already drawn there. */
@keyframes drop-card {

  0%,
  65% {
    transform: translate(412px, 140px);
    opacity: 0;
  }

  66.5% {
    transform: translate(412px, 140px);
    opacity: 1;
  }

  76%,
  94% {
    transform: translate(412px, 204px);
    opacity: 1;
  }

  100% {
    transform: translate(412px, 204px);
    opacity: 0;
  }
}

/* --- legend --------------------------------------------------------------- */

.line-legend {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.legend-item {
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(255, 255, 255, 0.22);
}

.legend-item.alt {
  border-left-color: var(--color-brand-accent-1);
}

.legend-item.accent {
  border-left-color: var(--color-brand-accent-2);
}

.legend-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.legend-item.alt .legend-key {
  color: var(--color-brand-accent-1);
}

.legend-item.accent .legend-key {
  color: var(--color-brand-accent-2);
}

.legend-txt {
  font-size: clamp(0.78rem, 1.35vw, 1rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: pretty;
}

/* ---------------------------------------------------------------------------
   Fragments — the GSAP entrance stagger, rebuilt as CSS.
   --------------------------------------------------------------------------- */
.reveal .fragment.rise {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal .fragment.rise.visible {
  opacity: 1;
  transform: none;
}

/* While the fit guard measures, fragments must sit at their final position —
   otherwise their entry offset reads as content overflow. */
body.is-measuring .reveal .fragment.rise {
  transform: none !important;
  transition: none !important;
}

/* The label, heading and subtitle are not fragments — they arrive with the
   slide. They still animate, driven by .present rather than by a step, so the
   deck has 12 steps instead of 26. */
@keyframes intro-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.reveal.ready .slides>section.present .slide-intro>*,
.reveal.ready .slides>section.present .hero-area>* {
  animation: intro-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.reveal .slides>section.present .slide-intro>*:nth-child(2),
.reveal .slides>section.present .hero-area>*:nth-child(2) {
  animation-delay: 0.08s;
}

.reveal .slides>section.present .slide-intro>*:nth-child(3),
.reveal .slides>section.present .hero-area>*:nth-child(3) {
  animation-delay: 0.16s;
}

/* While the fit guard measures, neutralize transform offset so it doesn't
   inflate scrollHeight, without cancelling or restarting running animations. */
body.is-measuring .reveal .slide-intro>*,
body.is-measuring .reveal .hero-area>* {
  transform: none !important;
}

/* The featured plan rests at scale(1.03); don't let the fragment reset it. */
.reveal .plan-card.featured.rise {
  transform: translateY(20px);
}

.reveal .plan-card.featured.rise.visible {
  transform: none;
}

/* ---------------------------------------------------------------------------
   Responsive

   Below 900px every card switches to a compact horizontal layout (number
   beside caption, price beside name, avatar beside name) so the full set of
   cards still fits one slide — the deck is the same 6 slides everywhere.
   --------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Two columns: cards 2 and 4 end their row, so their segment would point off
     the edge of the grid. */
  .step-card:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 900px) {

  :root {
    --chrome-fade: 1rem;
    --gap: 0.5rem;
    --content-gap-b: 1rem;
    /* Horizontal room is cheap here — the cards are full width, so text was
       running much closer to the border than it does on desktop. Vertical is
       spent sparingly: every extra rem is multiplied by up to four stacked
       cards, and the slide has to stay inside one screen. */
    --card-pad-y: 0.8rem;
    --card-pad-x: 1.05rem;
  }

  /* One column, and each card switches to a compact horizontal layout so the
     whole set still fits on a single slide. */
  .stats-grid,
  .steps-grid,
  .pricing-grid,
  .main-split-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .steps-grid,
  .pricing-grid {
    flex: 1 1 auto;
    align-content: stretch;
    gap: 0.5rem;
  }

  /* Content-sized rows here too. Stretching the rows to fill the slide dumps
     all the slack inside the contact card — between the avatar block and the
     contact rows, which margin-top:auto pins to the bottom. */
  .main-split-grid {
    flex: 0 1 auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.55rem;
  }

  /* Contact card above the CTA panel, matching the order they animate in and
     leaving the button in the thumb zone. */
  .contact-card {
    order: -1;
  }

  .plan-card.featured {
    scale: 1;
  }

  /* Large blur radii are the main GPU cost on mobile. */
  .bg-glow-purple {
    filter: blur(48px);
  }

  .bg-glow-teal {
    filter: blur(52px);
  }

  /* --- intro ------------------------------------------------------------- */
  .slide-title,
  .slide-pricing .slide-title,
  .slide-cta .slide-title {
    font-size: clamp(1.3rem, 6vw, 1.9rem);
  }

  .slide-subtitle,
  .slide-cta .slide-subtitle {
    font-size: clamp(0.8rem, 3.4vw, 1rem);
  }

  /* Stacked on a phone: side by side, each scene is barely 150px wide and the
     figures turn into scribbles. Full width one above the other, with a
     tighter height cap so both still fit under the hero. */
  .hero-scenes {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .scene svg {
    max-height: clamp(62px, 11.5vh, 108px);
  }

  /* The drawing scales with its box, so strokes thin out on a phone. */
  .scene svg path,
  .scene svg line,
  .scene svg circle,
  .scene svg rect,
  .scene svg polyline {
    stroke-width: 3.2;
  }

  .scene-cap {
    font-size: clamp(0.48rem, 2.1vw, 0.6rem);
    letter-spacing: 0.1em;
  }

  /* --- assembly line ------------------------------------------------------ */

  /* The drawing is 520 units wide and renders at roughly 0.7x on a phone, so
     strokes and the mono labels both need a bump to survive. */
  .line-scene svg {
    max-height: clamp(120px, 26vh, 230px);
  }

  .line-scene svg path,
  .line-scene svg line,
  .line-scene svg circle,
  .line-scene svg rect,
  .line-scene svg polyline {
    stroke-width: 3.6;
  }

  .line-scene text {
    font-size: 15px;
  }

  /* Three columns of prose in a phone's width is four words per line. The
     drawing is 2:1 and width-bound here, so it cannot use the height the
     stacked legend gives back — spend it on the legend instead. */
  .line-legend {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .legend-item {
    padding-left: 0.7rem;
  }

  .legend-txt {
    font-size: clamp(0.82rem, 3.5vw, 1rem);
  }

  /* --- stat cards: the number sits beside its caption ---------------------- */
  .slide-problem .slide-body {
    gap: clamp(0.35rem, 1.2vh, 0.65rem);
  }

  .slide-problem .slide-title {
    font-size: clamp(1.2rem, 5.2vw, 1.65rem);
    line-height: 1.15;
  }

  .slide-problem .slide-subtitle {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    line-height: 1.3;
  }

  .slide-problem .stats-grid {
    flex: 0 0 auto;
    min-height: min-content;
    gap: 0.45rem;
  }

  .stat-card {
    display: grid;
    grid-template-columns: minmax(78px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0 0.85rem;
    padding: 0.55rem 0.9rem;
    min-height: min-content;
  }

  .stat-card > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .stat-number {
    font-size: clamp(1.8rem, 8.5vw, 2.5rem);
    line-height: 1;
    margin-bottom: 0.08rem;
  }

  .stat-sublabel {
    font-size: clamp(0.54rem, 2.2vw, 0.7rem);
    line-height: 1.25;
    letter-spacing: 0.05em;
    white-space: normal;
    margin-bottom: 0;
  }

  .stat-desc {
    font-size: clamp(0.78rem, 3.2vw, 0.92rem);
    line-height: 1.35;
    margin: 0;
  }

  /* --- step cards: number badge inline with the title --------------------- */
  .step-card {
    gap: 0.3rem;
  }

  .step-card>div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  /* The icon rides in the badge row, so it costs no extra height on a card
     that is one line tall. */
  .step-icon {
    width: clamp(19px, 5.2vw, 28px);
    height: clamp(19px, 5.2vw, 28px);
  }

  .step-head {
    gap: 0.45rem;
  }

  .step-head {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  /* Single column, so the connector turns and drops into the gap below. */
  .step-card:not(:last-child)::after {
    display: block;
    top: 100%;
    left: 50%;
    width: 2px;
    height: var(--gap);
    margin-top: 0;
    margin-left: -1px;
    background: linear-gradient(180deg, var(--color-brand-accent-2), var(--color-brand-accent-1));
    transform: scaleY(0);
    transform-origin: top center;
  }

  .reveal .step-card.visible:not(:last-child)::after {
    transform: scaleY(1);
  }

  .step-number {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .step-title {
    font-size: clamp(0.95rem, 4.1vw, 1.25rem);
    margin-bottom: 0 !important;
  }

  .step-desc {
    font-size: clamp(0.8rem, 3.4vw, 1rem);
  }

  /* --- plan cards: name and price share a line ---------------------------- */
  .plan-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    padding-bottom: 0.45rem;
    margin-bottom: 0.45rem;
  }

  .plan-name {
    font-size: clamp(1rem, 4.4vw, 1.35rem);
  }

  .plan-price {
    font-size: clamp(1.15rem, 5.2vw, 1.6rem);
    margin-top: 0;
  }

  .plan-price span {
    font-size: clamp(0.6rem, 2.6vw, 0.75rem);
  }

  .plan-features {
    gap: 0.22rem;
  }

  .plan-features li {
    font-size: clamp(0.75rem, 3.2vw, 0.95rem);
    line-height: 1.3;
  }

  .badge-recommended {
    font-size: clamp(0.5rem, 2.2vw, 0.62rem);
    padding: 0.3em 0.8em;
    top: -0.7em;
  }

  /* --- CTA ---------------------------------------------------------------- */
  .action-panel {
    align-self: center;
    gap: 0.55rem;
  }

  .action-note {
    font-size: clamp(0.78rem, 3.3vw, 0.95rem);
  }

  .cta-button {
    font-size: clamp(0.9rem, 4vw, 1.15rem);
    padding: 0.65rem 1rem;
    max-width: 300px;
  }

  .contact-card {
    gap: 0.45rem;
    align-items: stretch;
    text-align: left;
  }

  .card-top-tag {
    font-size: clamp(0.85rem, 3.6vw, 1.1rem);
  }

  /* Avatar beside the name rather than above it — stacking costs ~90px. */
  .contact-profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: center;
    flex: 0 0 auto;
    text-align: left;
    /* the button sits in the corner here too — keep the role line clear of it */
    padding-right: 3.4rem;
  }

  .avatar {
    grid-row: 1 / span 2;
    width: clamp(56px, 17vw, 84px);
    height: clamp(56px, 17vw, 84px);
    margin-bottom: 0;
    border-width: 3px;
  }

  .contact-name {
    grid-column: 2;
    align-self: end;
    font-size: clamp(1rem, 4.6vw, 1.4rem);
  }

  .contact-role {
    grid-column: 2;
    align-self: start;
    font-size: clamp(0.55rem, 2.4vw, 0.7rem);
    margin-top: 0.15em;
  }

  .contact-details {
    gap: 0.25rem;
    /* a little air on both sides of the rule — auto collapses to 0 now that
       the card is content-sized */
    margin-top: 0.6rem;
    padding-top: 0.65rem;
  }

  .contact-item .label {
    font-size: clamp(0.55rem, 2.3vw, 0.68rem);
  }

  .contact-item .val {
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  }

  /* Clash Display's tight tracking and narrow spaces get cramped at small
     sizes — relax them so headings stay readable on a phone. */
  .reveal h1,
  .reveal h2,
  .reveal h3 {
    letter-spacing: 0;
    word-spacing: 0.06em;
  }

  /* Content passes under the chrome, so it needs an opaque backdrop. */
  .deck-header {
    background: #000;
  }

  .deck-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: var(--chrome-fade);
    background: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0));
    pointer-events: none;
  }

  .deck-footer {
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 1rem;
  }

  .dot-grid {
    background-size: 20px 20px;
  }

  /* Label and value stay on one line here — stacking them costs a line per row
     and the contact card has no height to spare. */
  .contact-item {
    gap: 0.5rem;
  }

  .reveal .controls {
    scale: 0.85;
  }

  .reveal .progress {
    height: 4px;
  }
}

/* Short landscape: height is the binding constraint, so size type off vh. */
@media (max-height: 620px) and (orientation: landscape) {
  :root {
    --pad-y: 0.35rem;
    --gap: 0.5rem;
    --chrome-fade: 0.5rem;
    --fs-logo: clamp(0.9rem, 3.6vh, 1.4rem);
    --fs-mono: clamp(0.58rem, 1.9vh, 0.8rem);
    --fs-title: clamp(1.1rem, 4.4vh, 1.9rem);
    --fs-subtitle: clamp(0.78rem, 2.5vh, 0.95rem);
    /* Columns are back at this tier, so the cards are narrow — vertical padding
       stays tight because height is the binding constraint. */
    --card-pad-y: 0.7rem;
    --card-pad-x: 1rem;
  }

  .hero-area {
    padding: 0.8rem 1.4rem;
  }

  .hero-title {
    font-size: clamp(1.3rem, 6.6vh, 2.4rem);
  }

  .hero-subtitle {
    font-size: clamp(0.82rem, 2.7vh, 1.05rem);
  }

  .scene svg {
    max-height: clamp(56px, 15vh, 100px);
  }

  /* The drawing is 2:1, so on a short landscape slide it is height-bound —
     give it every vh the title and legend do not need. */
  .line-scene svg {
    max-height: clamp(90px, 46vh, 280px);
  }

  .legend-txt {
    font-size: clamp(0.72rem, 2.2vh, 0.9rem);
  }

  /* The drawing is the slide here, so the heading gives its height back rather
     than keeping the larger narrow-viewport size. */
  .slide-pricing .slide-title,
  .slide-cta .slide-title,
  .slide-line .slide-title {
    font-size: var(--fs-title);
  }

  .slide-cta .slide-subtitle {
    font-size: var(--fs-subtitle);
  }

  .stat-number {
    font-size: clamp(1.6rem, 6.5vh, 2.6rem);
  }

  .stat-sublabel,
  .contact-item .label,
  .contact-role {
    font-size: clamp(0.56rem, 1.9vh, 0.75rem);
  }

  .stat-desc,
  .step-desc,
  .plan-features li,
  .action-note,
  .contact-item .val {
    font-size: clamp(0.75rem, 2.3vh, 0.92rem);
  }

  .step-number,
  .plan-name,
  .contact-name {
    font-size: clamp(0.9rem, 3.2vh, 1.4rem);
  }

  .step-title {
    font-size: clamp(0.88rem, 2.9vh, 1.25rem);
  }

  .plan-price {
    font-size: clamp(1.1rem, 3.8vh, 1.7rem);
  }

  .card-top-tag {
    font-size: clamp(0.8rem, 2.9vh, 1.25rem);
  }

  .cta-button {
    font-size: clamp(0.85rem, 2.9vh, 1.15rem);
    padding: 0.55rem 1.2rem;
    max-width: 300px;
  }

  .avatar {
    width: clamp(64px, 20vh, 120px);
    height: clamp(64px, 20vh, 120px);
  }

}

/* A landscape phone is ~700-900px wide, so keep the columns rather than
   stacking them into one narrow strip. */
@media (max-height: 620px) and (orientation: landscape) and (min-width: 680px) {

  .stats-grid,
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-split-grid {
    grid-template-columns: 1.35fr 0.85fr;
    grid-template-rows: minmax(0, auto);
  }

  .contact-card {
    order: 0;
  }

  /* Height is the scarce axis here, so the scenes go back side by side. */
  .hero-scenes {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  /* Same reason: three short columns cost one text line, stacking costs three. */
  .line-legend {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
  }

  /* Columns are back, so undo the narrow-viewport horizontal card layouts —
     they'd be cramped inside a third of the width. */
  .stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .step-card>div {
    display: block;
  }

  .step-head {
    margin-bottom: 0.4em;
  }

  /* Four columns are back, so the connector goes horizontal again — including
     on the even cards the two-column tier had hidden. */
  .step-card:not(:last-child)::after {
    display: block;
    top: 50%;
    left: 100%;
    width: var(--gap);
    height: 2px;
    margin-top: -1px;
    margin-left: 0;
    background: linear-gradient(90deg, var(--color-brand-accent-2), var(--color-brand-accent-1));
    transform: scaleX(0);
    transform-origin: left center;
  }

  .reveal .step-card.visible:not(:last-child)::after {
    transform: scaleX(1);
  }

  .plan-header {
    display: block;
  }

  .contact-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  /* The mobile grid puts align-self on these to sit them beside the avatar; in
     a flex column that aligns on the cross axis and shoves them sideways. */
  .contact-name,
  .contact-role {
    align-self: center;
  }

  .avatar {
    margin-bottom: 0.4em;
  }

  .contact-card {
    align-items: center;
  }

  .contact-item {
    flex-direction: row;
    align-items: center;
  }

  .contact-item .val {
    text-align: right;
  }
}

/* A phone in landscape with Safari's toolbar leaves only ~300-330px of height,
   and the notch eats ~118px of width. Without this tier the fit guard has to
   shrink slides 3-5 to ~0.8, which is what makes it look cramped. Claw back
   the fixed overheads instead. */
@media (max-height: 430px) and (orientation: landscape) {
  :root {
    --chrome-fade: 0.25rem;
    --content-gap-b: 0.3rem;
    --gap: 0.4rem;
    --card-pad-y: 0.5rem;
    --card-pad-x: 0.85rem;
  }

  /* Supporting line — the heading carries the slide on its own at this size. */
  .slide-subtitle {
    display: none;
  }

  .plan-features {
    gap: 0.15rem;
  }

  .plan-features li {
    line-height: 1.25;
  }

  .plan-header {
    padding-bottom: 0.35rem;
    margin-bottom: 0.35rem;
  }

  .step-head {
    margin-bottom: 0.25em;
  }

  .step-title {
    margin-bottom: 0.2em !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .dot-grid,
  .bg-glow-purple,
  .bg-glow-teal {
    animation: none;
  }

  .reveal .fragment.rise {
    transition: opacity 0.15s linear;
    transform: none;
  }

  /* Must match the specificity of the .present rule that sets the animation. */
  .reveal .slides>section.present .slide-intro>*,
  .reveal .slides>section.present .hero-area>* {
    animation: none !important;
  }

  .reveal .fragment.rise.visible {
    transform: none;
  }

  .cta-button {
    transition: none;
  }

  .cta-button::before,
  .cta-button .arrow {
    animation: none;
  }

  .cta-button::before {
    opacity: 0;
  }

  /* `transform: none` is the connector's full length — scaleX/Y(0) is what
     collapsed it. */
  .step-card::after {
    transform: none !important;
    transition: none !important;
  }

  .step-icon path,
  .step-icon polyline,
  .step-icon line,
  .step-icon rect,
  .step-icon circle {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .step-icon .dot {
    opacity: 1 !important;
  }

  /* Both scenes rest in their end state: the runner mid-stride, the contract
     signed and sealed. */
  .scene * {
    animation: none !important;
  }

  .scene-chase .speed line {
    opacity: 0.85;
  }

  .scene-chase .dashes {
    stroke-dasharray: 12 10;
  }

  .scene-relax .signature {
    stroke-dashoffset: 0;
  }

  .scene-relax .signing {
    transform: none;
  }

  .scene-relax .seal {
    opacity: 1;
  }

  .scene-relax .steam path {
    opacity: 0.6;
  }

  /* The assembly line rests on the frame the markup already draws: the robot
     mid-pick with a card in its left hand, one lead held under the beam, one
     scanned and approaching, one in the hopper. Only the parts that animate in
     from nothing need restoring — the beam, the two verdicts that have already
     been read, and the card in the hand. */
  .line-scene * {
    animation: none !important;
  }

  .line-scene .lead-f .lead-mark {
    opacity: 1;
  }

  .line-scene .lead-f .lead-card {
    color: rgba(255, 255, 255, 0.32);
  }

  .line-scene .held-l .held-card {
    opacity: 1;
  }

  .line-scene svg .eye-beam,
  .line-scene svg .eye-ray {
    opacity: 1;
  }
}

/* ---------------------------------------------------------------------------
   Print / PDF export (?print-pdf)
   --------------------------------------------------------------------------- */

/* reveal's print stylesheet forces `display: block !important` on slides and
   drops their padding, so the flex layout has to be restored here. */
html.reveal-print .reveal .slides section {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  height: 100% !important;
  padding: calc(var(--chrome-top) + var(--chrome-fade) + var(--pad-y) * 0.4) var(--pad-r) calc(var(--chrome-bottom) + var(--pad-y) * 0.4 + var(--content-gap-b)) var(--pad-l) !important;
  box-sizing: border-box;
  overflow: hidden !important;
}

/* Per-slide chrome clones (see buildPrintChrome in deck.js) replace the single
   fixed header/footer, which would otherwise repeat slide 1's counter. */
html.reveal-print .deck-header:not(.print-chrome),
html.reveal-print .deck-footer:not(.print-chrome) {
  display: none;
}

html.reveal-print .print-chrome {
  position: absolute;
}

html.reveal-print .print-chrome.deck-header {
  top: 0;
}

html.reveal-print .print-chrome.deck-footer {
  bottom: 0;
}

/* The assembly line already freezes here — no slide is `.present` under
   ?print-pdf, so none of its keyframes apply. Only the pieces that animate in
   from opacity 0 need restoring, to match the pose the markup draws. Repeated
   under @media print below, which the on-screen preview does not match. */
html.reveal-print .line-scene .lead-f .lead-mark {
  opacity: 1;
}

html.reveal-print .line-scene .lead-f .lead-card {
  color: rgba(255, 255, 255, 0.32);
}

html.reveal-print .line-scene .held-l .held-card {
  opacity: 1;
}

html.reveal-print .line-scene svg .eye-beam,
html.reveal-print .line-scene svg .eye-ray {
  opacity: 1;
}

@media print {

  /* position:fixed repeats on every printed page, which is what we want for
     the logo/counter chrome. */
  .dot-grid,
  .bg-glow-purple,
  .bg-glow-teal {
    animation: none;
  }

  .reveal .fragment.rise,
  .reveal .fragment.rise.visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal .slide-intro>*,
  .reveal .hero-area>* {
    animation: none !important;
  }

  .cta-button::before,
  .cta-button .arrow {
    animation: none !important;
  }

  .cta-button::before {
    opacity: 0;
  }

  /* Every fragment is forced visible on a printed page; the connector and the
     icons have to match. */
  .step-card::after {
    transform: none !important;
    transition: none !important;
  }

  .step-icon path,
  .step-icon polyline,
  .step-icon line,
  .step-icon rect,
  .step-icon circle {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }

  .step-icon .dot {
    opacity: 1 !important;
  }

  /* Same end state as reduced motion — a printed page has no timeline. */
  .scene * {
    animation: none !important;
  }

  .scene-chase .speed line {
    opacity: 0.85;
  }

  .scene-chase .dashes {
    stroke-dasharray: 12 10;
  }

  .scene-relax .signature {
    stroke-dashoffset: 0 !important;
  }

  .scene-relax .signing {
    transform: none !important;
  }

  .scene-relax .seal {
    opacity: 1 !important;
  }

  .scene-relax .steam path {
    opacity: 0.6;
  }

  /* Same frozen frame as reduced motion — a printed page has no timeline. */
  .line-scene * {
    animation: none !important;
  }

  .line-scene .lead-f .lead-mark {
    opacity: 1 !important;
  }

  .line-scene .lead-f .lead-card {
    color: rgba(255, 255, 255, 0.32);
  }

  .line-scene .held-l .held-card {
    opacity: 1 !important;
  }

  .line-scene svg .eye-beam,
  .line-scene svg .eye-ray {
    opacity: 1 !important;
  }
}
