/* ============================================================
   REDS — Real Estate Data Software
   Dramatic red-on-black landing page
   ------------------------------------------------------------
   Edit colours in :root below. Type scale lives in :root too.
   ============================================================ */

:root {
  /* Palette — red on black */
  --ink:        #0A0A0B;   /* page background, near-black */
  --ink-2:      #0E0E10;   /* dark sections */
  --surface:    #141417;   /* cards / panels */
  --surface-2:  #1B1B1F;   /* hover / raised */
  --paper:      #F5F4F0;   /* primary text on dark */
  --muted:      #D5D4DA;   /* secondary text — bright so it pops on smoke */
  --faint:      #9A9AA2;   /* tertiary text */
  --red:        #E10600;   /* the one accent */
  --red-bright: #FF2233;   /* hover / glow */
  --red-deep:   #7A0400;   /* deep red for gradients */
  --hairline:   rgba(255,255,255,0.10);
  --hairline-2: rgba(255,255,255,0.06);

  /* Type — single typeface across the whole site */
  --font:         "Helvetica Neue", Helvetica, Arial, sans-serif; /* site-wide (the logo typeface) */
  --font-ui:      "Helvetica Neue", Helvetica, Arial, sans-serif; /* buttons + form controls */
  --font-head:    var(--font);   /* headings  */
  --font-display: var(--font);   /* brand / UI */
  --font-body:    var(--font);   /* body text */
  --font-mono:    var(--font);   /* labels / numbers (tracked caps) */

  /* Layout */
  --wrap: 1240px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --section-y: clamp(8rem, 17vw, 15rem);

  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------- Reset --------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: #000;
  color: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }

/* ------------------------ Helpers ------------------------ */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.accent { color: var(--red); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--red); color: #fff; padding: .65rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }

/* --------------------- Eyebrows / labels --------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .15rem;
  line-height: 1.05;
}
/* Hero eyebrow keeps the original small, fine tracked-caps treatment */
.hero .eyebrow {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}
.section-body {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 56ch;
  margin-top: 0.3rem;
}
.kicker { color: var(--paper); opacity: 1; margin-top: 0.5rem; font-size: 1.2rem; }
.kicker em { font-family: var(--font-head); font-style: italic; font-weight: 400; }

/* --------------------------- Buttons --------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0;
  padding: .8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 rgba(225,6,0,0);
}
.btn-primary:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(225,6,0,0.6);
}
.btn-primary:active { transform: translateY(0); }

.link-arrow {
  font-family: var(--font-ui);
  color: var(--paper);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .5rem;
}
.link-arrow span { transition: transform .25s var(--ease); color: var(--red); }
.link-arrow:hover span { transform: translateX(5px); }

/* =========================== HEADER =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-2);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--hairline); }
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 72px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.brand-mark::after { content: ""; }
.brand-full {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: .35rem;
}
.nav { margin-left: auto; }
.nav-list { display: flex; gap: 1.75rem; }
.nav-list a {
  font-size: .95rem;
  color: var(--muted);
  transition: color .2s var(--ease);
  display: inline-flex; align-items: baseline; gap: .4rem;
}
.nav-list a:hover { color: var(--paper); }
.nav-num { font-family: var(--font-mono); font-size: .7rem; color: var(--red); }
.header-cta { margin-left: .5rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 0;
  width: 44px; height: 44px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--paper);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--hairline);
  padding: 1.25rem var(--pad) 2rem;
  background: var(--ink-2);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1.25rem; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .8rem 0; font-size: 1.15rem;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--hairline-2);
}
.mobile-menu .btn { width: 100%; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: clamp(5rem, 10vw, 8rem);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero-inner {
  position: relative; z-index: 3;
  width: 100%;
}
.hero-copy { max-width: min(100%, 940px); }

/* ===================== Red-smoke texture ===================== */
/* One fixed, page-wide smoke layer behind all content. Section veils
   reveal it (in view) or black it out (out of view), so the whole-page
   background transitions between smoke and black as you scroll. */
#page-smoke { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
/* Black overlay over the smoke; JS sets its opacity from scroll so the whole
   viewport crossfades black <-> smoke uniformly (no hard seam anywhere). */
#scene-veil { position: fixed; inset: 0; z-index: -1; background: #000; opacity: 1; pointer-events: none; }
[data-smoke] { position: relative; }
[data-smoke] > .smoke,
[data-smoke] > .fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
[data-smoke] > .smoke { z-index: 0; }
[data-smoke] > .fx { z-index: 1; }
/* Even legibility scrim over the smoke so text/tables stay readable */
[data-smoke]::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.22));
}

/* Breathing space (pure black) between the logo slide and the hero */
.breath { height: 35vh; }
@media (prefers-reduced-motion: reduce) { .breath { height: 0; } }

/* ============== Intro: REDS logo reveal (scroll-scrubbed) ============== */
/* Tall scroll container; the stage pins while you scrub the reveal, then
   releases so the page continues into the hero. Pure black, no smoke. */
#reds-intro {
  position: relative;
  min-height: 340vh;          /* reveal (~180vh) + a short hold (~60vh) before release */
}
.reds-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px; padding: 48px;
  overflow: hidden;
}
.reds-logo {
  display: flex; flex-direction: column; align-items: center; gap: 34px;
}
.reds-logo svg { display: block; width: min(74vw, 560px); height: auto; overflow: visible; }
.reds-letter { fill: #FFFFFF; }
.reds-tagline {
  opacity: 0; will-change: opacity;
  font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 500;
  font-size: clamp(11px, 1.4vw, 14px); letter-spacing: 0.34em;
  text-transform: uppercase; color: #8A8A8A; white-space: nowrap;
}
.reds-tagline span { color: #E5202B; }
@keyframes reds-blink { 0% { opacity: 1; } 50% { opacity: 0; } }

/* "Scroll to begin" cue — JS fades it out as soon as you scrub */
.reds-cue {
  position: absolute; bottom: 38px; left: 0; right: 0;
  text-align: center;
  font-family: 'Helvetica Neue', Arial, sans-serif; font-weight: 500;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #6A6A6A; will-change: opacity;
}

/* Reduced motion: collapse to one screen, show the finished logo, scroll freely */
@media (prefers-reduced-motion: reduce) {
  #reds-intro { min-height: 100vh; }
  .reds-stage { position: relative; }
  .reds-cue { display: none; }
}
.hero-heading {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: .5rem 0 1.5rem;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: 42ch;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* =========================== STAT BAND =========================== */
.stats { background: transparent; position: relative; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--hairline-2);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-fig {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: .9rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================ SECTIONS ============================ */
.section { padding-block: var(--section-y); position: relative; overflow: hidden; }
.section > .wrap { position: relative; z-index: 1; }

/* Seamless: no hard borders or background steps between sections —
   the page is one continuous black, with smoke and veils doing the work. */
.section-alt, .section-dark { background: transparent; }

.slide { position: relative; }

/* Oversized editorial index number watermark per numbered section */
.section[data-index]::before {
  content: attr(data-index);
  position: absolute; top: clamp(1rem, 3vw, 2.5rem); right: var(--pad);
  font-family: var(--font-head); font-weight: 900; line-height: 0.8;
  font-size: clamp(7rem, 22vw, 20rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(225, 6, 0, 0.16);
  z-index: 0; pointer-events: none; user-select: none;
}

.section-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.16; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  will-change: transform;
}

/* ---------------------- Scroll progress bar ---------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
  z-index: 100; transition: width .1s linear;
}

/* Card base */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--hairline); background: var(--surface-2); }
.card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.2; margin-bottom: .55rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* --------------------------- The gap --------------------------- */
.gap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.gap-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ------------------------- How it works ------------------------- */
.how-head { max-width: 60ch; margin-bottom: clamp(0.3rem, 0.8vw, 0.6rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-top: 2px solid var(--red);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.step-num { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; color: var(--red); }
.step-when { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.step h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; line-height: 1.2; margin-bottom: .65rem; }
.step p { color: var(--muted); }

/* ------------------------- What it does ------------------------- */
.what-head { max-width: 55ch; margin-bottom: clamp(0.3rem, 0.8vw, 0.6rem); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.cap { position: relative; padding-top: 2.75rem; }
.cap-num {
  position: absolute; top: 1.25rem; left: 1.5rem;
  font-family: var(--font-mono); font-size: .8rem; color: var(--red);
  letter-spacing: .1em;
}

/* --------------------------- Why now --------------------------- */
.why-head { max-width: 60ch; margin-bottom: clamp(0.3rem, 0.8vw, 0.6rem); }
.why-beats { display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 4.5rem); }
.why-beat {
  display: grid; grid-template-columns: clamp(110px, 16vw, 230px) 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.why-figure {
  font-family: var(--font-head); font-weight: 900; line-height: 0.8;
  font-size: clamp(5rem, 13vw, 12rem);
  color: transparent; -webkit-text-stroke: 2px var(--red);
  text-align: center;
}
.why-text h3 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.01em;
  line-height: 1.15; margin-bottom: .85rem;
}
.why-text p { color: var(--muted); font-size: 1.15rem; max-width: 50ch; }

/* ------------------------- Where it sits ------------------------- */
.where-head { max-width: 55ch; margin-bottom: clamp(0.3rem, 0.8vw, 0.6rem); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.compare {
  width: 100%; border-collapse: collapse; min-width: 640px;
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-radius: var(--radius); overflow: hidden;
}
.compare th, .compare td {
  text-align: left; padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--hairline-2);
  font-size: 1.12rem; color: var(--muted);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint); font-weight: 500;
  background: var(--ink-2);
}
.compare tbody th[scope="row"] {
  font-family: var(--font-head); font-weight: 700; color: var(--paper);
  font-size: 1.2rem;
}
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .col-reds {
  color: var(--paper);
  background: linear-gradient(180deg, rgba(225,6,0,0.14), rgba(225,6,0,0.05));
  border-left: 1px solid rgba(225,6,0,0.4);
  border-right: 1px solid rgba(225,6,0,0.4);
  font-weight: 500;
}
.compare thead .col-reds {
  color: var(--red); font-weight: 700; font-size: .95rem;
}

/* --------------------------- Pricing --------------------------- */
.pricing-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.pricing-copy .btn { margin-top: 2rem; }
.pricing-points {
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.pricing-points li {
  position: relative; padding-left: 1.75rem;
  color: var(--paper); font-size: 1.05rem;
}
.pricing-points li::before {
  content: "→"; position: absolute; left: 0; color: var(--red); font-weight: 700;
}

/* --------------------------- Final CTA --------------------------- */
.book-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.book::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 80% 50%, rgba(225,6,0,0.18), transparent 60%);
  z-index: 0;
}
.lead-form {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 600; color: var(--muted);
}
.field input {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--hairline); border-radius: 9px;
  padding: .85rem 1rem;
  font-family: var(--font-ui); font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.18);
}
.field input:user-invalid { border-color: var(--red-bright); }
.lead-form .btn { margin-top: .25rem; }
.form-status { font-family: var(--font-ui); font-size: .95rem; min-height: 1.2em; color: var(--muted); }
.form-status.success { color: #4ade80; }
.form-status.error { color: var(--red-bright); }

/* ===================== Statement pane ===================== */
.statement { text-align: center; }
.statement-line {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 4rem); line-height: 1.12;
  letter-spacing: -0.015em; max-width: 22ch; margin-inline: auto;
}

/* ===================== Dino Run banner ===================== */
.dino-banner { padding-block: clamp(2.5rem, 6vw, 5rem); }
.dino-inner { position: relative; max-width: 1180px; margin-inline: auto; }
.dino-frame {
  position: relative; width: 100%;
  aspect-ratio: 1280 / 408;   /* crops the empty ground band below the dino */
  background: linear-gradient(180deg, #0E0E10 0%, #0A0A0B 100%);
  border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(225,6,0,0.08), 0 40px 90px -40px rgba(225,6,0,0.35);
  overflow: hidden;
}
.dino-frame canvas {
  /* keep the canvas's true 1280:460 ratio, anchored to the top, so the
     surplus ground at the bottom is cropped by the frame's overflow. */
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  image-rendering: pixelated;
}
.dino-copy {
  position: absolute; top: 0; left: 0; z-index: 2;
  padding: clamp(34px, 4vw, 56px);
}
.dino-head {
  font-family: var(--font); font-weight: 900; letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.08; color: var(--paper);
}
.dino-sub {
  font-size: clamp(.95rem, 1.6vw, 1.125rem); color: var(--muted);
  margin-top: 14px; max-width: 600px;
}
/* On narrow screens the banner is a short strip, so the copy can't overlay it
   without overflowing — stack the copy above the animation instead. */
@media (max-width: 760px) {
  .dino-copy { position: static; padding: 0 0 1.1rem; }
  .dino-head { font-size: clamp(1.5rem, 6vw, 2rem); }
  .dino-sub { margin-top: 8px; }
}

/* ============================ FOOTER ============================ */
.site-footer { border-top: 1px solid var(--hairline); background: var(--ink-2); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-inner {
  display: grid; grid-template-columns: 1.3fr 2fr; gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer-brand .brand-mark { font-size: 1.6rem; }
.footer-brand .brand-full { display: block; margin-top: .4rem; }
.footer-mission { color: var(--muted); margin-top: 1rem; max-width: 30ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { color: var(--muted); font-size: .98rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--red); }
.footer-base {
  border-top: 1px solid var(--hairline-2); padding-block: 1.5rem;
}
.footer-base p { font-family: var(--font-mono); font-size: .75rem; color: var(--faint); letter-spacing: .05em; }

/* ========================= MOTION =========================
   All motion is progressive enhancement: without JS (no .js on
   <html>) or with reduced-motion, everything is fully visible.
   ----------------------------------------------------------- */

/* Masked line-rise — used for the hero headline. The outer .mask
   clips; the inner .mask-i rises up from behind it. */
.mask { display: block; overflow: hidden; padding-bottom: 0.08em; }
.mask-i { display: block; }

/* --- Hero: orchestrated reveal on load (html.loaded) --- */
.js .hero-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(120ms + var(--i, 0) * 90ms);
}
.js .hero-heading .mask-i {     /* headline lines rise from the mask, no fade */
  opacity: 1;
  transform: translateY(120%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(120ms + var(--i, 0) * 90ms);
}

html.loaded .hero-anim { opacity: 1; transform: none; }
html.loaded .hero-heading .mask-i { transform: none; }   /* outrank the initial mask offset */

/* --- Scroll reveal for everything else --- */
.js .reveal {
  opacity: 0;
  transform: translateY(70px) scale(0.95);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);   /* stagger set per-element by main.js */
}
.js .reveal.in { opacity: 1; transform: none; }

/* Heading wipe: clip-path reveals top-to-bottom while it rises */
.js .reveal.is-mask {
  transform: translateY(0.35em);
  clip-path: inset(0 0 105% 0);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease),
              clip-path 1.05s var(--ease);
}
.js .reveal.is-mask.in { clip-path: inset(0 0 -10% 0); }

/* Inner text unfolds in sequence after its card/step/capability/beat reveals,
   so each block's heading lands before its supporting line (no info dump). */
.js .card.reveal h3, .js .card.reveal p,
.js .step.reveal h3, .js .step.reveal p,
.js .cap.reveal h3,  .js .cap.reveal p,
.js .why-beat.reveal h3, .js .why-beat.reveal p {
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.js .card.reveal.in h3, .js .step.reveal.in h3,
.js .cap.reveal.in h3,  .js .why-beat.reveal.in h3 { opacity: 1; transform: none; transition-delay: 0.14s; }
.js .card.reveal.in p,  .js .step.reveal.in p,
.js .cap.reveal.in p,   .js .why-beat.reveal.in p  { opacity: 1; transform: none; transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-anim,
  .js .hero-heading .mask-i,
  .js .reveal,
  .js .card.reveal h3, .js .card.reveal p,
  .js .step.reveal h3, .js .step.reveal p,
  .js .cap.reveal h3,  .js .cap.reveal p,
  .js .why-beat.reveal h3, .js .why-beat.reveal p {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-top: 1px solid var(--hairline-2); padding-left: clamp(1rem,2vw,2rem); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .gap-grid, .pricing-inner, .book-inner, .footer-inner { grid-template-columns: 1fr; }
  .steps, .cap-grid { grid-template-columns: 1fr 1fr; }
  .why-beat { grid-template-columns: 1fr; }
  .why-beat:nth-child(even) .why-media { order: 0; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; padding-left: 0 !important; }
  .stat:nth-child(1) { border-top: 0; }
  .gap-cards, .steps, .cap-grid { grid-template-columns: 1fr; }
  .hero-actions { gap: 1rem; }
}
