@font-face {
  font-family: "PP Mori";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("./assets/fonts/PPMori-Book.woff2") format("woff2");
}

@font-face {
  font-family: "PP Mori";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./assets/fonts/PPMori-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "PP Mori";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("./assets/fonts/PPMori-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "PP Mori";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("./assets/fonts/PPMori-ExtraBold.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f9fafb;
  --accent: #3b82f6;
  --dark: #0a0a0a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PP Mori", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

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

.container {
  width: min(1440px, 100%);
  padding-left: 120px;
  padding-right: 120px;
  margin: 0 auto;
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  height: 40px;
  width: auto;
}

.logo-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.logo-link:hover {
  opacity: 0.78;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a,
.btn {
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-links a:hover {
  opacity: 0.9;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.btn {
  position: relative;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 10px 20px;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.hero-actions .btn,
.cta .btn {
  padding: 13px 22px;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::before {
  left: 0;
}

.btn-solid {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.btn-solid::before {
  background: var(--accent);
}

.btn-solid::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}

.btn-solid:hover::after {
  left: 120%;
}

.btn-solid:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline::before {
  background: var(--accent);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Solid white base on the page wrapper so transparent sections (like
   .reveal-pin) don't reveal whatever is behind .page during the intro
   rise — without this, the gray intro shows through under the hero. */
.page {
  background: #ffffff;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: center;
  will-change: transform, opacity;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-fade {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.hero-fade-bottom {
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-fade-left {
  top: 0;
  bottom: 0;
  left: 0;
  width: 140px;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-fade-right {
  top: 0;
  bottom: 0;
  right: 0;
  width: 140px;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-shell > .nav,
.hero-shell > .hero {
  position: relative;
  z-index: 2;
}

.hero {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 400;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(1.5px);
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s ease;
  transition-delay: var(--d, 0ms);
}

.hero-title.is-visible .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-sub,
.hero .hero-actions {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero.is-visible .hero-sub {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 380ms;
}

.hero.is-visible .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 520ms;
}

.hero p {
  max-width: 480px;
  margin: 32px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 18px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.section-soft {
  background: var(--soft);
}

.why-shell {
  background: var(--soft);
  position: relative;
  z-index: 2;
  margin-top: -75vh;
}

@media (max-width: 1024px) {
  .why-shell {
    margin-top: -60vh;
  }
}

.why-scene {
  position: relative;
  z-index: 1;
  height: 480px;
  margin-left: -120px;
  margin-right: -120px;
  margin-top: -340px;
  margin-bottom: -120px;
}

.why-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--soft) 0%, rgba(249, 250, 251, 0) 100%);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
}

.section h2,
.cta h2 {
  margin: 0;
  max-width: 900px;
  font-size: 42px;
  line-height: 1.3;
  letter-spacing: -1px;
  font-weight: 500;
}

/* === Scroll-driven pinned reveal === */
.reveal-pin {
  position: relative;
  height: 250vh;
  /* Pull the section up so it overlaps the bottom of the hero. The
     section has no background, so the hero stays visible underneath —
     but sticky now activates 50vh sooner, eliminating the dead-zone
     between hero exit and the words appearing pinned at viewport center. */
  margin-top: -50vh;
  /* The section overlaps the hero's CTA — section is non-interactive,
     so let clicks pass straight through to the hero button below. */
  pointer-events: none;
}

.reveal-pin-inner {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  z-index: 1;
  /* Section overlaps the hero's bottom 50vh — without this, the sticky
     inner intercepts clicks on the hero CTA. The inner has no
     interactive children of its own. */
  pointer-events: none;
}

/* Unicorn scene that sits behind the pinned statement. Opacity is
   driven by setupRevealPinScene based on scroll progress through
   the section: 0→1 over the first 30%, full through 30–70%, 1→0
   over the last 30%. */
.reveal-pin-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform-origin: center center;
  will-change: opacity, transform;
}

.reveal-statement {
  position: relative;
  z-index: 1;
}

.reveal-statement {
  margin: 0;
  max-width: 1200px;
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.05;
  text-align: center;
  color: var(--text);
  transform-origin: center;
  will-change: transform;
}

.rs-word {
  --p: 0;
  display: inline-block;
  opacity: var(--p);
  filter: blur(calc((1 - var(--p)) * 8px));
  transform: translateY(calc((1 - var(--p)) * 18px));
  will-change: opacity, filter, transform;
}

@media (max-width: 1024px) {
  .reveal-pin {
    height: 200vh;
    margin-top: -40vh;
  }
  .reveal-statement {
    font-size: clamp(32px, 7.5vw, 48px);
    letter-spacing: -0.8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-pin {
    height: auto;
  }
  .reveal-pin-inner {
    position: static;
    height: auto;
    padding: 120px 24px;
  }
  .rs-word {
    --p: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

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

.reveal-line {
  display: block;
}

.reveal-line > .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s ease,
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

.reveal-line.is-visible > .line-inner {
  transform: translateY(0);
  opacity: 1;
}

.section-tagline {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* === Big editorial pivot === */
.pivot-big {
  margin: 140px 0 100px;
  max-width: 1100px;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -2px;
  color: var(--text);
  position: relative;
  z-index: 2;
}

.pivot-big .word {
  --p: 0;
  display: inline-block;
  opacity: calc(0.16 + var(--p) * 0.84);
  filter: blur(calc((1 - var(--p)) * 1.2px));
  transition:
    opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.4s ease;
  will-change: opacity, filter;
}

.pivot-big .pivot-resolve .word {
  color: color-mix(in srgb, var(--text) calc((1 - var(--p)) * 100%), var(--accent));
}

@media (max-width: 1024px) {
  .pivot-big {
    font-size: 36px;
    line-height: 1.22;
    letter-spacing: -0.9px;
    margin: 80px 0 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pivot-big .word {
    transition: none;
    opacity: 1;
    filter: none;
  }
  .pivot-big .pivot-resolve .word {
    color: var(--accent);
  }
}

.two-col,
.three-col {
  margin-top: 48px;
  display: grid;
  gap: 40px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

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

.two-col p,
.three-col p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.stat-num {
  font-weight: 700;
  color: var(--accent);
}

/* === Three Forces === */
.forces {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
}

.force {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.force:last-child {
  border-bottom: 0;
}

.force-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.force-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.force-name {
  margin: 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.7px;
  line-height: 1.1;
  color: var(--text);
  display: inline-block;
}

.force-pair {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.force-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 44px;
  height: 8px;
  flex-shrink: 0;
  vertical-align: middle;
  color: var(--accent);
  /* Width is driven on scroll by setupForceSlide (desktop only) — it
     stretches as the row enters the viewport center, pushing the blue
     resolution word out to align with the ASTREA column below it. */
}

.force-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(to right, rgba(107, 114, 128, 0.55), var(--accent));
  transform: translateY(-50%);
}

.force-arrow svg {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.force.is-active .force-arrow svg {
  transform: translateY(-50%) translateX(2px);
}

.force-resolution {
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.7px;
  line-height: 1.1;
  color: var(--accent);
}

.force-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.force-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.force-side-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.force-solution-side .force-side-tag {
  color: var(--accent);
}

.force-side p {
  margin: 0;
  line-height: 1.7;
  font-size: 14.5px;
}

.force-problem-side p {
  color: var(--muted);
}

.force-solution-side p {
  color: var(--text);
}

.force-side p.force-stat {
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text);
}

@media (max-width: 1024px) {
  .force {
    padding: 40px 0;
    gap: 24px;
  }
  .force-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .force-name,
  .force-resolution {
    font-size: 24px;
    letter-spacing: -0.4px;
  }
  .force-arrow {
    width: 32px;
  }
  .force-rule {
    width: 20px;
  }
}

.appchains-shell {
  background: var(--soft);
}

.appchains-scene {
  position: relative;
  height: 480px;
  margin-left: -120px;
  margin-right: -120px;
  margin-top: -120px;
  margin-bottom: -160px;
  z-index: 0;
}

.appchains-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, var(--soft) 0%, rgba(249, 250, 251, 0) 100%);
}

.appchains-shell > .eyebrow,
.appchains-shell > h2,
.appchains-shell > .appchains-cards {
  position: relative;
  z-index: 2;
}

.appchains-cards {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
}

.appchain-card {
  background: transparent;
  border: 0;
  padding: 0;
}

.appchain-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.appchain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #d1d5db;
  color: #6b7280;
}

.appchain-card h3 {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.2px;
  font-weight: 700;
}

.appchain-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.three-col h3,
.architecture h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.architecture .layer-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.2;
}

.architecture h3.layer-name {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.1;
}

.rule {
  height: 1px;
  background: var(--line);
  margin-bottom: 12px;
}

.rule.active {
  height: 2px;
  background: var(--accent);
}

.architecture > h2 {
  margin-bottom: 84px;
}

.architecture .layer-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 20px;
  align-items: start;
  padding: 36px 0;
}

.architecture .layer-row .chip {
  margin-top: 0;
}

.architecture .layer-row + .layer-row {
  border-top: 1px solid var(--line);
}

.chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.8px;
}

.bottom-wrap {
  background: #000000;
  color: #fff;
}

.cta {
  background: #000000;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: 160px;
  padding-bottom: 120px;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.cta > *:not(.cta-bg) {
  position: relative;
  z-index: 2;
}

.cta-symbol {
  display: block;
  width: 132px;
  height: 132px;
  margin: 0 auto 18px;
}

.cta h2 {
  max-width: none;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: -1.5px;
}

.cta p {
  max-width: 500px;
  margin: 20px auto 0;
  color: #6b7280;
}

.btn-light {
  margin-top: 28px;
  border-color: #fff;
  background: #fff;
  color: var(--dark);
}

.btn-light::before {
  background: var(--accent);
}

.btn-light::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: left 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
  pointer-events: none;
}

.btn-light:hover::after {
  left: 120%;
}

.btn-light:hover {
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.footer {
  background: #000000;
  padding-top: 0;
  padding-bottom: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 80px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.footer-grid h4 {
  margin: 0 0 16px;
  color: #525252;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

.footer .logo {
  margin-bottom: 18px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 10px;
  color: #9ca3af;
  font-size: 14px;
}

.footer-grid a {
  position: relative;
  width: fit-content;
  transition:
    color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}

.footer-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.footer-grid a:hover {
  color: #fff;
  transform: translateX(2px);
}

.footer-grid a:hover::after {
  transform: scaleX(1);
}

.copyright {
  border-top: 1px solid #1a1a1a;
  padding-top: 16px;
  color: #525252;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
  .why-scene {
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -120px;
  }
  .appchains-scene {
    margin-left: -24px;
    margin-right: -24px;
    margin-top: -120px;
  }
  .hero h1 {
    font-size: 38px;
    letter-spacing: -1px;
    line-height: 1.1;
  }
  .section h2 {
    font-size: 32px;
  }
  .two-col,
  .three-col,
  .appchains-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav-links a,
  .hero-title .word,
  .reveal,
  .reveal-line > .line-inner {
    transition: none !important;
  }
}

/* === Intro overlay ===
   4 phases:
   1. logo flicker (centered)
   2. logo translates up + text reveals below word-by-word
   3. .intro-content scales down + drifts up + fades while .page rises up
   4. cleanup */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f3f4f6;
  overflow: hidden;
  pointer-events: auto;
}

/* Match the body bg to the intro while the intro is showing, so the page
   reveal can scale up without a white flash at its edges. */
body.has-intro {
  background: #f3f4f6;
}

.intro.is-gone {
  display: none;
}

.intro-content {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  /* Scale-down and fade share the same easing/duration as the page rise
     so logo + text shrink, fade, and are covered all in lockstep. */
  transition:
    transform 1.4s cubic-bezier(0.78, 0.09, 0.22, 1.07),
    opacity 1.4s cubic-bezier(0.78, 0.09, 0.22, 1.07);
}

/* Logo: centered for phase 1; translates up for phase 2. */
.intro-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: auto;
  color: #8da9eb;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro.intro-show-logo .intro-symbol {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.intro.intro-show-text .intro-symbol {
  /* Logo nudges up to make room for the text below it. */
  transform: translate(-50%, calc(-50% - 90px)) scale(1);
}

.intro-star {
  transform-origin: center;
  opacity: 0;
}

/* Rich one-time flicker per star, sequential 1 → 2 → 3.
   Each star ignites with several dim/bright steps before settling at full
   brightness. Staggered starts (0.3s apart) make the cascade read as
   1, 2, 3 while still allowing the rich oscillation that the original
   animation had. */
.intro.intro-show-logo .intro-star {
  animation: intro-star-flicker 0.85s steps(1, end) forwards;
}

.intro.intro-show-logo .intro-star:nth-child(1) {
  animation-delay: 0.4s;
}
.intro.intro-show-logo .intro-star:nth-child(2) {
  animation-delay: 0.7s;
}
.intro.intro-show-logo .intro-star:nth-child(3) {
  animation-delay: 1.0s;
}

@keyframes intro-star-flicker {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  14%  { opacity: 0.25; }
  22%  { opacity: 1; }
  30%  { opacity: 0.45; }
  40%  { opacity: 1; }
  48%  { opacity: 0.7; }
  58%  { opacity: 1; }
  66%  { opacity: 0.3; }
  76%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Editorial line: positioned ~70px below center (under the logo).
   Starts invisible (opacity 0) so the raw text doesn't flash on page
   load before JS wraps it into per-word spans. The parent flips to
   opacity 1 instantly when phase 2 fires (.intro-show-text); the
   .iword children then handle the staggered word reveal. */
.intro-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 70px));
  margin: 0;
  width: calc(100% - 64px);
  max-width: 980px;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -1.6px;
  text-align: center;
  color: var(--text);
  opacity: 0;
}

.intro.intro-show-text .intro-line {
  opacity: 1;
}

.intro-line .iword {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  transition:
    opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--d, 0ms);
}

.intro.intro-show-text .intro-line .iword {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  /* Wait 500ms after the logo starts translating up before words begin
     resolving — so the layout shift settles first. Per-word stagger
     (--d) layers on top of the 500ms base delay. */
  transition-delay: calc(500ms + var(--d, 0ms));
}

/* Phase 3: intro-content shrinks to 80% AND fades to 0, on the same
   easing as the page rise — so the logo+text scale down and disappear
   in time with the page covering them. */
.intro.intro-revealing .intro-content {
  transform: scale(0.8);
  opacity: 0;
}

.intro.intro-revealing {
  pointer-events: none;
}

/* Page rise-up — paired with intro phase 3.
   The page is layered ABOVE the intro (z-index 10000 vs. intro's 9999) so
   as it rises from below it physically covers the intro logo + text before
   they finish fading. Starts at 75% scale + offscreen-low and resolves to
   full scale on arrival, with In Out Quint easing (cubic-bezier 0.86, 0,
   0.07, 1) for a strong settle. */
body.has-intro .page {
  position: relative;
  z-index: 10000;
  transform: translateY(80vh) scale(0.75);
  opacity: 0;
  transform-origin: center bottom;
  pointer-events: none;
  /* Acts as the clipping mask while the intro plays — the inner
     wrapper counter-scales beyond .page's box and gets clipped here,
     producing the depth effect. */
  overflow: hidden;
}

body.has-intro.intro-revealing .page {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
  transition:
    transform 1.4s cubic-bezier(0.9, 0, 0, 1),
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Inner wrapper compensates for the mask's 0.75 scale so the visible
   content actually appears at 200% natural size at the start. Math:
   apparent = mask × inner → 2.0 ≈ 0.75 × 2.6667, settling to 1.0 = 1.0 × 1.0.
   Pivot is the top-center since .page-inner is the full document height. */
body.has-intro .page-inner {
  display: block;
  transform: scale(2.6667);
  transform-origin: 50% 0%;
  will-change: transform;
}

body.has-intro.intro-revealing .page-inner {
  transform: scale(1);
  transition: transform 1.4s cubic-bezier(0.9, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none !important;
  }
}

/* === Notify modal === */
.notify {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.notify[hidden] {
  display: none;
}

.notify-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 14, 0.42);
  opacity: 0;
  transition: opacity 0.32s ease;
  cursor: pointer;
}

.notify.is-open .notify-backdrop {
  opacity: 1;
}

.notify-panel {
  position: relative;
  width: min(100%, 460px);
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 44px 40px 36px;
  box-shadow:
    0 24px 60px rgba(8, 10, 14, 0.18),
    0 8px 22px rgba(8, 10, 14, 0.08);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.notify.is-open .notify-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.04s;
}

.notify-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

.notify-close:hover {
  color: var(--text);
}

.notify-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.notify-eyebrow-accent {
  color: var(--accent);
}

.notify-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  font-weight: 600;
  color: var(--text);
}

.notify-sub {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 360px;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.notify-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notify-field span {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.notify-field input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.notify-field input::placeholder {
  color: rgba(10, 10, 10, 0.32);
}

.notify-field input:hover {
  border-color: rgba(10, 10, 10, 0.18);
}

.notify-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.notify-error {
  margin: -2px 0 0;
  color: #b91c1c;
  font-size: 12.5px;
  line-height: 1.4;
}

.notify-error[hidden] {
  display: none;
}

.notify-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
}

.notify-submit-label {
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.notify-submit-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  z-index: 2;
  animation: notify-spin 0.7s linear infinite;
  pointer-events: none;
}

.notify[data-state="loading"] .notify-submit-label {
  opacity: 0;
}

.notify[data-state="loading"] .notify-submit-spinner {
  opacity: 1;
}

.notify[data-state="loading"] .notify-submit {
  pointer-events: none;
}

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

.notify-stage {
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.notify-stage-success {
  display: none;
}

.notify[data-state="success"] .notify-stage-form {
  display: none;
}

.notify[data-state="success"] .notify-stage-success {
  display: block;
  animation: notify-success-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.notify-success-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 18px;
}

@keyframes notify-success-in {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .notify {
    padding: 16px;
  }
  .notify-panel {
    padding: 36px 26px 28px;
  }
  .notify-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notify-backdrop,
  .notify-panel,
  .notify-stage {
    transition: none;
  }
  .notify-submit-spinner {
    animation: none;
  }
}
