/* ==========================================================================
   LockIt Waitlist — Premium Ember Design System
   ========================================================================== */

:root {
  --bg: #060606;
  --ink: #f4f2ec;
  --ink-dim: #8a898f;
  --ink-faint: #454448;
  --accent: #fe4801;
  --accent-end: #fe6801;
  --accent-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-end) 100%);
  --accent-glow: rgba(254, 72, 1, 0.35);
  --accent-glow-soft: rgba(254, 72, 1, 0.12);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --nav-height: 5rem;
  --content-max: 44rem;
  --side-padding: clamp(1.5rem, 5vw, 3.5rem);

  /* Backdrop glow — updated by JS per beat */
  --glow-x: 50%;
  --glow-y: 35%;
  --glow-size: 70vw;
  --glow-opacity: 0.14;
  --glow-blur: 0px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
}

@media (max-width: 768px) {
  html {
    /* Mandatory + always-stop = one section per gesture on mobile */
    scroll-snap-type: y mandatory;
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip avoids breaking CSS scroll-snap (hidden can) */
  overflow-x: clip;
}

::selection {
  background: rgba(254, 72, 1, 0.35);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

em {
  font-style: italic;
}

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

/* ==========================================================================
   Cinematic Backdrop
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop__glow {
  position: absolute;
  width: min(var(--glow-size), 900px);
  height: min(var(--glow-size), 900px);
  left: var(--glow-x);
  top: var(--glow-y);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(254, 72, 1, var(--glow-opacity)) 0%,
    rgba(254, 72, 1, calc(var(--glow-opacity) * 0.4)) 35%,
    transparent 70%
  );
  filter: blur(var(--glow-blur));
  transition:
    left 1.2s var(--ease-out-expo),
    top 1.2s var(--ease-out-expo),
    width 1.2s var(--ease-out-expo),
    height 1.2s var(--ease-out-expo),
    opacity 1.2s ease;
  will-change: left, top;
}

.backdrop__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    transparent 30%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.backdrop__grain {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
  animation: grain-shift 8s steps(10) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-2%, -3%); }
  20% { transform: translate(3%, 1%); }
  30% { transform: translate(-1%, 2%); }
  40% { transform: translate(2%, -2%); }
  50% { transform: translate(-3%, 1%); }
  60% { transform: translate(1%, 3%); }
  70% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 2%); }
  90% { transform: translate(-1%, -2%); }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop__grain {
    animation: none;
  }

  .backdrop__glow {
    transition: none;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 var(--side-padding);
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
  mix-blend-mode: difference;
}

.nav__wordmark {
  display: inline-flex;
  align-items: center;
}

.nav__logo {
  display: block;
  height: clamp(0.9375rem, 2vw, 1.125rem);
  width: auto;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}

.nav__link:hover {
  /* Dim via color — opacity under mix-blend-mode:difference flickers */
  color: #9a9890;
}

.nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ==========================================================================
   Progress Indicator
   ========================================================================== */

.progress {
  position: fixed;
  right: clamp(1.25rem, 3vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}

.progress__counter {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  display: flex;
  align-items: baseline;
  gap: 0.15em;
}

#progress-current {
  color: var(--ink-dim);
  transition: color 0.3s ease;
}

.progress__divider {
  opacity: 0.4;
}

.progress__ticks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.progress__tick {
  width: 12px;
  height: 1px;
  background: var(--ink-faint);
  padding: 6px 0;
  background-clip: content-box;
  transition:
    width 0.4s var(--ease-out-expo),
    background 0.3s ease;
}

.progress__tick--active {
  width: 24px;
  background: var(--accent);
}

.progress__tick:hover:not(.progress__tick--active) {
  background: var(--ink-dim);
}

.progress__tick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.progress--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.progress:not(.progress--hidden) {
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

html.is-final-beat .progress {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


/* ==========================================================================
   Main & Beats
   ========================================================================== */

.main {
  position: relative;
  z-index: 1;
}

.beat {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: safe center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  padding: calc(var(--nav-height) + 2rem) var(--side-padding) 4rem;
}

/* Last beat — CTA centered, footer stacked below (never side-by-side) */
.beat--6 {
  scroll-snap-align: none;
}

.beat--6 .beat__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: var(--content-max);
}

.beat--6 .beat__cta {
  width: 100%;
  text-align: center;
}

.beat--6 .footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: 3rem;
}

/* Hero — full-bleed background */
.beat--0 {
  background-color: var(--bg);
  isolation: isolate;
}

.beat--0::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
}

.beat--0::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(6, 6, 6, 0.55) 0%,
      rgba(6, 6, 6, 0.2) 42%,
      rgba(6, 6, 6, 0.4) 72%,
      rgba(6, 6, 6, 0.75) 100%
    );
}

.beat__content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  width: 100%;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .beat:not(.visible) .beat__content {
    opacity: 0.35;
    transition: opacity 0.6s ease;
  }

  .beat.visible .beat__content {
    opacity: 1;
    transition: opacity 0.8s ease 0.1s;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.5625rem, 1.2vw, 0.6875rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}

.headline--hero {
  font-size: clamp(2rem, 6.2vw, 4.5rem);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.headline--hero .headline__line {
  display: block;
  white-space: nowrap;
}

.headline--mechanism {
  font-size: clamp(1.625rem, 4.5vw, 3rem);
}

.headline .accent,
.accent {
  color: var(--ink);
  font-style: normal;
}

.accent--weight {
  font-weight: 600;
}

.subhead {
  font-size: clamp(0.875rem, 1.8vw, 1.0625rem);
  font-weight: 400;
  color: var(--ink-dim);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.caption {
  font-family: var(--font-mono);
  font-size: clamp(0.5625rem, 1.2vw, 0.625rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2rem;
}

.arrow {
  color: var(--ink-faint);
  font-family: var(--font-body);
  font-style: normal;
  margin: 0 0.2em;
  font-weight: 300;
}

/* ==========================================================================
   Problem section (beat 1)
   ========================================================================== */

.beat__content--problem {
  max-width: min(58rem, 100%);
  text-align: left;
}

.beat--1 .eyebrow {
  margin-bottom: 1.25rem;
}

.headline--problem {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  margin-bottom: 1.25rem;
}

.headline--problem .headline__line {
  display: block;
}

.problem__lede {
  font-size: clamp(0.9375rem, 1.8vw, 1.125rem);
  color: var(--ink-dim);
  max-width: 28rem;
  line-height: 1.55;
  margin-bottom: 2.75rem;
}

.stat-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(244, 242, 236, 0.08);
  border-radius: 1.25rem;
  background: rgba(244, 242, 236, 0.03);
  overflow: hidden;
}

.stat-panel__item {
  padding: 1.75rem 1.5rem 1.875rem;
}

.stat-panel__item + .stat-panel__item {
  border-left: 1px solid rgba(244, 242, 236, 0.08);
}

.stat-panel__value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.stat-panel__value--accent {
  color: var(--accent);
}

.stat-panel__label {
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  color: var(--ink-dim);
  line-height: 1.45;
  max-width: 14rem;
}

.problem__source {
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1vw, 0.5625rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.5rem;
}

/* ==========================================================================
   Word-by-word Reveal
   ========================================================================== */

.reveal-headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.reveal-headline .word-inner {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-headline .word-inner {
    opacity: 0;
    transform: translateY(110%);
    filter: blur(4px);
    transition:
      opacity 0.7s var(--ease-out-expo),
      transform 0.7s var(--ease-out-expo),
      filter 0.7s var(--ease-out-expo);
    transition-delay: calc(var(--word-index, 0) * 0.06s);
  }

  .beat.visible .reveal-headline .word-inner {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  /* Sequence beat — longer pauses between phrases */
  .reveal-headline--sequence .word-inner {
    transition-delay: calc(var(--word-index, 0) * 0.12s + var(--phrase-delay, 0s));
  }

  .reveal-item {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.8s var(--ease-out-expo),
      transform 0.8s var(--ease-out-expo);
    transition-delay: calc(var(--item-delay, 0.4s));
  }

  .beat.visible .reveal-item {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-headline .word-inner,
  .reveal-item {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Staggered secondary reveals per beat */
.beat--0 .eyebrow { --item-delay: 0.3s; }
.beat--0 .subhead { --item-delay: 0.55s; }
.beat--0 .waitlist { --item-delay: 0.7s; }
.beat--0 .scroll-cue { --item-delay: 0.95s; }
.beat--1 .eyebrow { --item-delay: 0.25s; }
.beat--1 .problem__lede { --item-delay: 0.45s; }
.beat--1 .stat-panel { --item-delay: 0.6s; }
.beat--1 .problem__source { --item-delay: 0.75s; }
.beat--6 .eyebrow { --item-delay: 0.3s; }
.beat--6 .waitlist { --item-delay: 0.55s; }

/* ==========================================================================
   Scroll Cue
   ========================================================================== */

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin-top: 4rem;
}

.beat--0 .scroll-cue {
  margin-top: 2.5rem;
}

.scroll-cue__line {
  display: block;
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  transform-origin: top center;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue__line {
    animation: scroll-pulse 2.5s var(--ease-out-quart) infinite;
  }
}

@keyframes scroll-pulse {
  0%, 100% {
    transform: scaleY(1);
    opacity: 0.35;
  }
  50% {
    transform: scaleY(0.55);
    opacity: 0.9;
  }
}

.scroll-cue__label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ==========================================================================
   Waitlist Form — Glassy Pill
   ========================================================================== */

.waitlist {
  margin-top: 3rem;
}

.waitlist--hero {
  margin-top: 2.25rem;
}

.waitlist__form {
  max-width: 26rem;
  margin: 0 auto;
}

.waitlist__pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.3s ease,
    box-shadow 0.4s var(--ease-out-expo),
    background 0.3s ease;
}

.waitlist__pill:focus-within {
  border-color: rgba(254, 72, 1, 0.35);
  background: rgba(254, 72, 1, 0.04);
  box-shadow:
    0 0 0 1px rgba(254, 72, 1, 0.1),
    0 0 40px rgba(254, 72, 1, 0.12),
    inset 0 0 24px rgba(254, 72, 1, 0.04);
}

.waitlist__input {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--ink);
  background: transparent;
  border: none;
  outline: none;
}

.waitlist__input::placeholder {
  color: var(--ink-faint);
}

.waitlist__button {
  flex-shrink: 0;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent-gradient);
  border: none;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease-out-quart),
    box-shadow 0.3s ease,
    opacity 0.2s ease;
}

.waitlist__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 4px 20px rgba(254, 72, 1, 0.35),
    0 0 40px rgba(254, 72, 1, 0.15);
}

.waitlist__button:active:not(:disabled) {
  transform: translateY(0);
}

.waitlist__button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.waitlist__button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .waitlist__pill {
    flex-direction: column;
    border-radius: 1.25rem;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .waitlist__input {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  .waitlist__button {
    width: 100%;
    padding: 1rem 1.75rem;
  }
}

/* Success state crossfade */
.waitlist__confirmation {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--ink-dim);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.6;
  animation: fade-up 0.6s var(--ease-out-expo) forwards;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.waitlist__confirmation strong {
  color: var(--ink);
  font-weight: 500;
}

.waitlist__counter {
  font-family: var(--font-mono);
  font-size: clamp(0.5625rem, 1.2vw, 0.625rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.75rem;
}

#counter-value {
  color: var(--ink-dim);
  transition: color 0.3s ease;
}

#counter-value.is-ticking {
  color: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.footer__wordmark {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.footer__logo {
  display: block;
  height: 0.75rem;
  width: auto;
  opacity: 0.85;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ==========================================================================
   Responsive — mobile & narrow viewports
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --nav-height: 4rem;
    /* ticks 44px + counter + gaps + padding (excludes safe-area; added separately) */
    --progress-mobile-height: 6.5rem;
  }

  .nav {
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    padding:
      env(safe-area-inset-top, 0px)
      max(var(--side-padding), env(safe-area-inset-right, 0px))
      0
      max(var(--side-padding), env(safe-area-inset-left, 0px));
    background: rgba(6, 6, 6, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 1.5rem;
    background: linear-gradient(
      to bottom,
      rgba(6, 6, 6, 0.92) 0%,
      transparent 100%
    );
    pointer-events: none;
  }

  .nav a {
    /* Solid bar behind links — difference blend fights the mask */
    mix-blend-mode: normal;
  }

  .nav__link:active {
    color: #9a9890;
  }

  .progress {
    top: auto;
    right: auto;
    left: 0;
    bottom: 0;
    transform: none;
    flex-direction: column-reverse;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding:
      1.5rem
      max(var(--side-padding), env(safe-area-inset-right, 0px))
      calc(0.75rem + env(safe-area-inset-bottom, 0px))
      max(var(--side-padding), env(safe-area-inset-left, 0px));
    background: linear-gradient(
      to top,
      rgba(6, 6, 6, 0.98) 0%,
      rgba(6, 6, 6, 0.94) 40%,
      rgba(6, 6, 6, 0.72) 70%,
      transparent 100%
    );
    pointer-events: none;
  }

  .progress__ticks {
    flex-direction: row;
    align-items: center;
    gap: 0.125rem;
  }

  .progress__tick {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-clip: border-box;
  }

  .progress__tick--active {
    width: 44px;
    background: none;
  }

  .progress__tick::after {
    content: "";
    display: block;
    width: 12px;
    height: 1px;
    background: var(--ink-faint);
    transition:
      width 0.4s var(--ease-out-expo),
      background 0.3s ease;
  }

  .progress__tick--active::after {
    width: 24px;
    background: var(--accent);
  }

  .progress__tick:hover:not(.progress__tick--active)::after {
    background: var(--ink-dim);
  }

  .backdrop__glow {
    width: min(var(--glow-size), 600px);
    height: min(var(--glow-size), 600px);
  }

  .beat {
    /* dvh tracks mobile browser chrome so the next section never peeks through */
    height: 100dvh;
    min-height: 100svh;
    max-height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    align-items: center;
    overflow: hidden;
    padding:
      calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 1rem)
      max(var(--side-padding), env(safe-area-inset-right, 0px))
      calc(var(--progress-mobile-height) + env(safe-area-inset-bottom, 0px) + 1rem)
      max(var(--side-padding), env(safe-area-inset-left, 0px));
  }

  .beat--6 {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding-bottom: calc(var(--progress-mobile-height) + env(safe-area-inset-bottom, 0px) + 0.5rem);
    transition: padding-bottom 0.35s ease;
  }

  html.is-final-beat .beat--6 {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .beat--6 .beat__content {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    align-self: stretch;
    width: 100%;
    max-width: var(--content-max);
    min-height: 0;
    max-height: none;
    height: 100%;
  }

  .beat--6 .beat__cta {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
  }

  .beat--6 .footer {
    width: 100%;
    margin-top: 1.25rem;
    padding-bottom: 0.25rem;
  }

  .footer__wordmark {
    margin-bottom: 0.5rem;
  }

  .footer__tagline {
    font-size: 0.5rem;
    letter-spacing: 0.14em;
    max-width: 16rem;
    margin-inline: auto;
    line-height: 1.4;
  }

  .beat__content {
    max-height: 100%;
  }

  .eyebrow {
    margin-bottom: 1.5rem;
  }

  .headline--hero {
    font-size: clamp(1.5rem, 6.8vw, 2.35rem);
    margin-bottom: 1.25rem;
  }

  .headline {
    font-size: clamp(1.625rem, 6.5vw, 2.25rem);
  }

  .headline--mechanism {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    font-size: clamp(1.375rem, 5.5vw, 1.875rem);
    line-height: 1.2;
  }

  .headline--mechanism .arrow {
    display: block;
    margin: 0;
    transform: rotate(90deg);
    font-size: 0.85em;
    line-height: 1;
  }

  .subhead {
    font-size: clamp(0.875rem, 3.8vw, 1rem);
  }

  .scroll-cue {
    margin-top: 2.5rem;
  }

  .beat--0 .scroll-cue {
    margin-top: 1.75rem;
  }

  .waitlist {
    margin-top: 2rem;
  }

  .waitlist--hero {
    margin-top: 1.75rem;
  }

  .beat--1 .eyebrow {
    margin-bottom: 0.75rem;
  }

  .headline--problem {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  .problem__lede {
    margin-bottom: 1.25rem;
  }

  .stat-panel {
    grid-template-columns: 1fr;
    border-radius: 1rem;
  }

  .stat-panel__item {
    padding: 1rem 1.15rem;
  }

  .stat-panel__value {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
    margin-bottom: 0.35rem;
  }

  .stat-panel__item + .stat-panel__item {
    border-left: none;
    border-top: 1px solid rgba(244, 242, 236, 0.08);
  }

  .stat-panel__label {
    max-width: none;
    font-size: 0.8125rem;
  }

  .problem__source {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .reveal-headline .word-inner {
    filter: none;
  }

  .beat.visible .reveal-headline .word-inner {
    filter: none;
  }
}

@media (max-width: 480px) {
  .headline--hero {
    font-size: clamp(1.375rem, 6.4vw, 1.85rem);
  }

  .headline {
    font-size: clamp(1.5rem, 6.8vw, 1.875rem);
  }

  .headline--mechanism {
    font-size: clamp(1.25rem, 5.8vw, 1.625rem);
    gap: 0.25rem;
  }

  .waitlist__input {
    font-size: 16px;
    text-align: center;
    padding: 0.875rem 1rem;
  }

  .waitlist__button {
    min-height: 44px;
    padding: 1rem 1.75rem;
  }
}

@media (max-width: 360px) {
  .headline--hero {
    font-size: 1.3125rem;
  }

  .headline {
    font-size: 1.5rem;
  }

  .headline--mechanism {
    font-size: 1.25rem;
  }
}

@media (max-height: 700px) {
  .scroll-cue {
    margin-top: 1.5rem;
    gap: 0.5rem;
  }

  .scroll-cue__line {
    height: 2rem;
  }

  .beat--0 .eyebrow {
    margin-bottom: 1rem;
  }

  .headline--hero {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) and (max-height: 760px) {
  .beat--0 .eyebrow {
    margin-bottom: 0.75rem;
  }

  .headline--hero {
    margin-bottom: 0.75rem;
  }

  .waitlist--hero {
    margin-top: 1.25rem;
  }

  .beat--0 .scroll-cue {
    margin-top: 1.25rem;
  }

  .scroll-cue__line {
    height: 1.5rem;
  }

  .stat-panel__item {
    padding: 0.75rem 1rem;
  }

  .problem__lede {
    margin-bottom: 1rem;
  }
}
