@property --scene-progress {
  syntax: '<number>';
  inherits: true;
  initial-value: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-canvas);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-canvas);
}

a,
button,
input {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.cinematic-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--color-surface) 42%, var(--color-primary)), transparent 64%),
    linear-gradient(145deg, color-mix(in srgb, var(--color-primary) 72%, var(--color-canvas)), var(--color-primary));
}

.cinematic-poster,
.cinematic-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  filter: none;
}

.cinematic-poster {
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transition: opacity 180ms ease;
}

.cinematic-frame {
  opacity: 0;
  transform: scale(1.012);
}

.cinematic-stage.is-frame-ready .cinematic-poster {
  opacity: 0;
}

.cinematic-stage.is-frame-ready .cinematic-frame {
  opacity: 1;
}

.cinematic-shade {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.cinematic-grain {
  position: absolute;
  inset: -50%;
  opacity: 0;
  background-image:
    radial-gradient(circle at 30% 20%, var(--color-canvas) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, var(--color-canvas) 0 1px, transparent 1px);
  background-size: 19px 19px, 23px 23px;
  transform: rotate(3deg);
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.preview-banner,
.landing-nav {
  position: fixed;
  z-index: 20;
}

.preview-banner {
  inset: 0 0 auto;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 6px 82px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-align: center;
  color: var(--color-primary-strong);
  background: color-mix(in srgb, var(--color-accent-soft) 94%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
  backdrop-filter: blur(18px);
}

.landing-nav {
  inset: 30px 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(20px, 4vw, 64px);
  pointer-events: none;
}

.nav-brand,
.nav-links {
  pointer-events: auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--color-border) 68%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-surface) 86%, transparent);
  box-shadow: 0 12px 34px rgb(from var(--color-ink) r g b / .16);
  backdrop-filter: blur(18px);
}

.nav-logo {
  display: block;
  width: auto;
  height: 30px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 21px;
  border-radius: 999px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-link-primary {
  color: var(--color-surface);
  background: var(--color-primary);
  border: 1px solid color-mix(in srgb, var(--color-surface) 22%, transparent);
  box-shadow: 0 12px 34px rgb(from var(--color-ink) r g b / .2);
}

.nav-link-primary:hover {
  transform: translateY(-2px);
  background: var(--color-primary-strong);
}

.story-track {
  position: relative;
  z-index: 2;
}

.cinematic-end-cue {
  height: 0;
  pointer-events: none;
}

.story-panel {
  position: relative;
  min-height: 112vh;
  display: flex;
  align-items: center;
  padding: 17vh clamp(22px, 6vw, 90px) 12vh;
}

.story-panel--hero {
  min-height: 125vh;
  justify-content: center;
  padding-top: 22vh;
}

.story-panel--right {
  justify-content: flex-end;
}

.story-panel--left {
  justify-content: flex-start;
}

.story-panel--center {
  justify-content: center;
}

.float-card {
  --card-presence: 0;
  position: relative;
  width: min(100%, 620px);
  opacity: 1;
  transform: translate3d(0, calc((1 - var(--card-presence)) * 18px), 0) scale(calc(.985 + var(--card-presence) * .015));
  transition: transform 100ms linear;
  will-change: transform;
}

.milestone-card,
.founder-card,
.trust-section,
.cta-section,
.hero-card {
  border: 1px solid color-mix(in srgb, var(--color-border) 76%, transparent);
  border-radius: clamp(24px, 3vw, 36px);
  background: color-mix(in srgb, var(--color-surface) 97%, transparent);
  box-shadow:
    0 24px 70px rgb(from var(--color-ink) r g b / .15),
    inset 0 1px 0 var(--color-surface);
  backdrop-filter: blur(14px) saturate(1.02);
}

.hero-card {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 62px);
  text-align: center;
}

.hero-logo {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 0 auto clamp(28px, 4vw, 46px);
}

.hero-tagline,
.section-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--color-primary);
}

.hero-tagline {
  font-size: clamp(2.55rem, 7vw, 5.9rem);
  letter-spacing: -.045em;
}

.hero-question {
  max-width: 610px;
  margin: 24px auto 0;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-accent-strong);
  text-wrap: balance;
}

.hero-sub {
  max-width: 580px;
  margin: 18px auto 34px;
  /* S32 F-556 (Dan, Staging UAT Walk 1, 2026-09-06): the lighter v2
     background made body copy read smaller, and on a phone "it's quite
     small there." Headers are untouched by this finding -- only body
     copy sizes up. This is a desktop-modest bump (the clamp ceiling);
     the meaningful mobile increase lives in the
     @media (max-width: 760px) block below, listed explicitly rather
     than left to this clamp's vw term, which barely moves at phone
     widths. */
  font-size: clamp(1.08rem, 1.8vw, 1.26rem);
  color: var(--color-ink-muted);
}

.hero-cta,
.cta-btn-primary,
.cta-btn-secondary,
.email-capture-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.hero-cta,
.cta-btn-primary {
  color: var(--color-surface);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  box-shadow: 0 15px 35px rgb(from var(--color-primary) r g b / .22);
}

.hero-cta:hover,
.cta-btn-primary:hover,
.email-capture-submit:hover {
  transform: translateY(-2px);
  background: var(--color-primary-strong);
}

.milestone-card,
.founder-card,
.trust-section,
.cta-section {
  padding: clamp(28px, 4vw, 48px);
}

.section-heading {
  font-size: clamp(2rem, 4.6vw, 3.65rem);
  letter-spacing: -.03em;
}

.section-subheading,
.founder-summary,
.cta-sub {
  margin: 16px 0 30px;
  /* S32 F-556: previously unset (inherited the plain 16px body default
     on every viewport) -- the plainest instance of "body copy reads
     smaller against the lighter v2 background." Desktop-modest bump
     here; the mobile override lives in the @media (max-width: 760px)
     block below. */
  font-size: 1.08rem;
  color: var(--color-ink-muted);
}

.how-steps {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}

.how-step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--color-surface);
  background: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
}

.how-step-title,
.ring-band-name,
.trust-title {
  margin: 0;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
}

.how-step-desc,
.ring-band-desc,
.ring-band-examples,
.trust-text {
  margin: 5px 0 0;
  color: var(--color-ink-muted);
  /* S32 F-556: .88rem read small even before the v2 background --
     desktop-modest bump here; @media (max-width: 760px) below carries
     the meaningful mobile one. */
  font-size: .95rem;
  line-height: 1.55;
}

.rings-visual {
  display: grid;
  gap: 10px;
}

.ring-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--color-accent) 26%, var(--color-border));
  background: color-mix(in srgb, var(--color-accent-soft) 58%, var(--color-surface));
}

.ring-band-middle {
  width: 90%;
  margin-left: auto;
}

.ring-band-inner {
  width: 80%;
  margin-left: auto;
}

.ring-dot {
  color: var(--color-accent-strong);
  font-size: 1.15rem;
  line-height: 1.3;
}

.founder-section {
  position: relative;
}

.founder-section.is-expanded .founder-panel {
  min-height: auto;
  align-items: flex-start;
  padding-top: 12vh;
  padding-bottom: 12vh;
}

.founder-panel {
  min-height: 114vh;
}

.founder-card {
  width: min(100%, 680px);
  scroll-margin-top: 108px;
}

.founder-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.founder-section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.founder-section-header:hover .founder-heading {
  color: var(--color-primary-strong);
}

.founder-chevron {
  width: 18px;
  height: 18px;
  border-right: 2px solid var(--color-accent-strong);
  border-bottom: 2px solid var(--color-accent-strong);
  transform: rotate(45deg) translate(-3px, 3px);
  transition: transform 200ms ease;
}

.founder-section-header[data-collapsed="false"] .founder-chevron {
  transform: rotate(225deg) translate(-3px, 3px);
}

.founder-summary {
  margin-bottom: 0;
  padding-bottom: 22px;
  font-style: italic;
}

.founder-body {
  padding-top: 26px;
  border-top: 1px solid var(--color-border);
  /* S32 F-556: the Story's own body text -- desktop-modest bump on the
     clamp ceiling; the @media (max-width: 760px) override below carries
     the meaningful mobile increase Dan's phone reading called for.
     .founder-aside/.founder-signoff scale along with this (they size
     themselves in `em`, relative to this rule), so nothing else in the
     Story needs its own rule. */
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--color-ink);
}

.founder-body p {
  margin: 0 0 17px;
}

.founder-aside {
  padding-left: 20px;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.05em;
  font-style: italic;
  color: var(--color-primary);
}

.founder-signoff {
  margin-top: 28px !important;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-accent-strong);
}

.trust-section {
  width: min(1100px, 100%);
}

.trust-heading {
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.trust-card {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}

.trust-icon {
  margin-bottom: 14px;
  color: var(--color-accent);
  font-size: 1.45rem;
}

.cta-section {
  width: min(680px, 100%);
  text-align: center;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-btn-secondary {
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-primary);
}

.cta-btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--color-surface);
  background: var(--color-primary);
}

.email-capture {
  display: none;
  max-width: 430px;
  margin: 18px auto 0;
}

.email-capture.visible {
  display: block;
}

.email-capture-form {
  display: flex;
  gap: 8px;
}

.email-capture-input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 12px 16px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.email-capture-submit {
  cursor: pointer;
  color: var(--color-surface);
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.email-capture-success {
  display: none;
  margin-top: 12px;
  color: var(--color-primary);
  font-size: .88rem;
}

.story-panel--final {
  min-height: 108vh;
  padding-bottom: 18vh;
}

.landing-footer {
  position: relative;
  z-index: 3;
  padding: 34px 24px 40px;
  color: var(--color-canvas);
  background: var(--color-ink);
  border-top: 1px solid color-mix(in srgb, var(--color-border) 28%, transparent);
  text-align: center;
  font-size: .8rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
}

.landing-footer a {
  color: var(--color-canvas);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--color-accent-soft);
}

.scroll-progress {
  position: fixed;
  z-index: 30;
  inset: auto 0 0;
  height: 3px;
  background: color-mix(in srgb, var(--color-primary-strong) 70%, transparent);
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 14px var(--color-accent);
}

@media (max-width: 760px) {
  .preview-banner {
    padding-inline: 70px;
    font-size: .66rem;
  }

  .landing-nav {
    padding: 12px 16px;
  }

  .nav-brand {
    min-height: 42px;
    padding: 7px 10px;
  }

  .nav-logo {
    height: 24px;
  }

  .nav-link {
    min-height: 42px;
    padding: 8px 16px;
  }

  .story-panel {
    min-height: 112vh;
    align-items: flex-end;
    padding: 19vh 16px 9vh;
  }

  .story-panel--hero {
    align-items: center;
  }

  .float-card {
    width: 100%;
  }

  .hero-card,
  .milestone-card,
  .founder-card,
  .trust-section,
  .cta-section {
    border-radius: 24px;
  }

  .hero-card {
    padding: 28px 22px 32px;
  }

  .hero-logo {
    max-width: 300px;
  }

  .ring-band-middle,
  .ring-band-inner {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .email-capture-form {
    flex-direction: column;
  }

  /* S32 F-556 (Dan, Staging UAT Walk 1, 2026-09-06): "on a phone it's
     quite small there." The meaningful mobile bump for body copy --
     listed explicitly per selector rather than left to each rule's
     clamp() vw term, which is nearly inert at these widths. Headers
     (.hero-tagline, .section-heading, .founder-heading, .how-step-title,
     .ring-band-name, .trust-title) are untouched, per Dan: they're fine. */
  .hero-sub,
  .section-subheading,
  .founder-summary,
  .cta-sub {
    font-size: 1.15rem;
  }

  .founder-body {
    font-size: 1.12rem;
  }

  .how-step-desc,
  .ring-band-desc,
  .ring-band-examples,
  .trust-text {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .float-card,
  .hero-cta,
  .cta-btn-primary,
  .cta-btn-secondary,
  .nav-link {
    transition: none;
  }
}
