:root {
  color-scheme: dark;
  --ink: #121c28;
  --ink-soft: #182430;
  --panel: rgba(22, 34, 44, .9);
  --panel-strong: #1c2c38;
  --line: rgba(140, 200, 194, .22);
  --line-bright: rgba(105, 226, 221, .46);
  --text: #f7fbf9;
  --muted: #b4c4c0;
  --route: #69e2dd;
  --route-deep: #2a9a98;
  --proof: #ffca6f;
  --good: #67e69d;
  --danger: #ff887f;
  --max: 1280px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease: cubic-bezier(.22, .82, .2, 1);
  --space-section: clamp(3.2rem, 7vw, 6.5rem);
  --page-inset: clamp(16px, 4vw, 24px);
  /* Display ink can hang below the em box - line-height + per-line padding must clear it */
  --descender-room: 0.28em;
  --descender-tight: 0.2em;
  --descender-rhythm: 0;
  --lh-display: 1.42;
  --lh-heading: 1.32;
  --lh-ui: 1.25;
  --scroll-progress: 0;
  --scroll-velocity: 0;
  --world-fog: #121c28;
  --world-fog-rgb: 18, 28, 40;
  --world-wash-a: rgba(105, 226, 221, .18);
  --world-wash-b: rgba(255, 202, 111, .08);
  --world-wash-c: rgba(42, 154, 152, .1);
  --world-veil-top: .32;
  --world-veil-mid: .22;
  --world-accent: #69e2dd;
}

html[data-chapter="destination"] {
  --world-wash-a: rgba(105, 226, 221, .18);
  --world-wash-b: rgba(255, 202, 111, .08);
  --world-veil-top: .38;
  --world-veil-mid: .26;
}
html[data-chapter="intent"] {
  --world-fog: #0e1a24;
  --world-fog-rgb: 14, 26, 36;
  --world-wash-a: rgba(154, 245, 222, .18);
  --world-wash-b: rgba(105, 226, 221, .08);
  --world-wash-c: rgba(122, 215, 255, .08);
  --world-accent: #9af5de;
}
html[data-chapter="context"] {
  --world-fog: #0e1a26;
  --world-fog-rgb: 14, 26, 38;
  --world-wash-a: rgba(122, 215, 255, .16);
  --world-wash-b: rgba(105, 226, 221, .08);
  --world-accent: #7ad7ff;
}
html[data-chapter="plan"] {
  --world-fog: #101820;
  --world-fog-rgb: 16, 24, 32;
  --world-wash-a: rgba(105, 226, 221, .12);
  --world-wash-b: rgba(255, 202, 111, .08);
}
html[data-chapter="permission"] {
  --world-fog: #1a160e;
  --world-fog-rgb: 26, 22, 14;
  --world-wash-a: rgba(255, 202, 111, .2);
  --world-wash-b: rgba(255, 159, 100, .1);
  --world-wash-c: rgba(255, 202, 111, .06);
  --world-accent: #ffca6f;
  --world-veil-top: .4;
}
html[data-chapter="action"] {
  --world-fog: #0e1c18;
  --world-fog-rgb: 14, 28, 24;
  --world-wash-a: rgba(103, 230, 157, .14);
  --world-wash-b: rgba(105, 226, 221, .08);
  --world-accent: #67e69d;
}
html[data-chapter="adapt"] {
  --world-fog: #1c1212;
  --world-fog-rgb: 28, 18, 18;
  --world-wash-a: rgba(255, 136, 127, .18);
  --world-wash-b: rgba(255, 202, 111, .08);
  --world-accent: #ff887f;
}
html[data-chapter="verify"] {
  --world-fog: #141c12;
  --world-fog-rgb: 20, 28, 18;
  --world-wash-a: rgba(255, 202, 111, .18);
  --world-wash-b: rgba(103, 230, 157, .1);
  --world-accent: #ffca6f;
  --world-veil-top: .34;
}
html[data-chapter="product"] {
  --world-fog: #10161e;
  --world-fog-rgb: 16, 22, 30;
  --world-wash-a: rgba(105, 226, 221, .12);
  --world-wash-b: rgba(255, 202, 111, .07);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--world-fog);
  transition: background .9s var(--ease);
}
body {
  width: 100%;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--world-fog);
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background .9s var(--ease);
}
h1, h2, h3 { font-family: "Manrope", ui-sans-serif, sans-serif; font-weight: 750; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 78% -8%, var(--world-wash-a), transparent 55%),
    radial-gradient(ellipse 50% 40% at -5% 40%, var(--world-wash-b), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, var(--world-wash-c), transparent 45%),
    var(--world-fog);
  transition: background .9s var(--ease);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--proof); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  transform: translateY(-160%);
  border-radius: 10px; padding: .75rem 1rem;
  background: var(--text); color: var(--ink); font-weight: 800;
}
.skip-link:focus { transform: none; }

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1.5rem; min-height: 76px;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: max(var(--page-inset), env(safe-area-inset-left));
  padding-right: max(var(--page-inset), env(safe-area-inset-right));
  border-bottom: 1px solid transparent;
  background: rgba(4, 8, 12, .55);
  backdrop-filter: blur(20px) saturate(1.2);
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(4, 8, 12, .92);
}
.brand { position: relative; display: inline-flex; align-items: center; gap: .85rem; min-width: 0; text-decoration: none; }
.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(105, 226, 221, .22), transparent 55%),
    linear-gradient(145deg, rgba(18, 36, 48, .95), rgba(8, 16, 24, .98));
  border: 1px solid rgba(105, 226, 221, .28);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(105, 226, 221, .32), transparent 68%);
  opacity: .6;
  animation: brand-mark-glow 4.2s ease-in-out infinite;
  pointer-events: none;
}
.brand-mark img {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 14px rgba(105, 226, 221, .34));
}
.brand-word {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.brand strong { font-size: 1.12rem; letter-spacing: -.03em; }
.brand small {
  margin-top: .28rem; color: var(--muted);
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
}
.site-header nav { display: flex; justify-content: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.site-header nav a, footer nav a {
  color: var(--muted); font-size: .84rem; font-weight: 700;
  text-decoration: none; transition: color .2s;
}
.site-header nav a:hover, footer nav a:hover { color: var(--text); }
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  justify-self: end;
}
.header-signin {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .95rem;
  color: var(--text);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 750;
  border-radius: 999px;
  border: 1px solid rgba(140, 200, 194, .22);
  background: rgba(255, 255, 255, .03);
  transition: color .2s, background .2s, border-color .2s;
}
.header-signin:hover {
  color: var(--text);
  background: rgba(105, 226, 221, .1);
  border-color: rgba(105, 226, 221, .38);
}
.header-action {
  min-height: 44px; display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line-bright); border-radius: 999px;
  padding: .65rem 1.05rem; color: var(--text); text-decoration: none;
  font-size: .84rem; font-weight: 800;
  background: rgba(105, 226, 221, .08);
  transition: background .2s, border-color .2s;
}
.header-action:hover { background: rgba(105, 226, 221, .14); }

/* --- Hero --- */
.world-rail {
  position: relative;
  isolation: isolate;
}
.world-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100svh;
  max-height: 100svh;
  margin: 0;
  pointer-events: none;
  opacity: calc(0.34 + var(--scroll-progress, 0) * 0.2 + min(var(--scroll-velocity, 0) * 0.03, 0.03));
  filter:
    brightness(calc(0.88 + var(--scroll-progress, 0) * 0.1))
    saturate(calc(0.9 + var(--scroll-progress, 0) * 0.08))
    blur(calc(0.3px + (1 - var(--scroll-progress, 0)) * 0.45px));
  transition: opacity 0.15s linear, filter 0.15s linear;
}
.world-rail::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(var(--world-fog-rgb), var(--world-veil-top)) 0%,
      rgba(var(--world-fog-rgb), var(--world-veil-mid)) 28%,
      rgba(var(--world-fog-rgb), .42) 72%,
      rgba(var(--world-fog-rgb), .62) 100%
    );
  transition: background .8s var(--ease);
}
.world-vignette {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 2;
  isolation: isolate;
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  min-height: min(820px, calc(100svh - 76px));
  padding: clamp(1.6rem, 4vw, 3.2rem) 0 clamp(2.2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  overflow: visible;
}
.hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  max-width: min(640px, 100%);
  overflow: visible;
  padding: 1.2rem 1.2rem 1.4rem 0;
  text-shadow: 0 10px 36px rgba(12, 20, 28, .45);
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: -10% -14% -14% -10%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 18% 42%, rgba(3, 7, 11, .94), rgba(3, 7, 11, .72) 52%, rgba(3, 7, 11, .38) 72%, transparent 88%);
  pointer-events: none;
}
.read-surface {
  position: relative;
  z-index: 2;
  overflow: visible;
  padding: clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2.2vw, 1.5rem);
  border-radius: var(--radius-md);
  border: 1px solid rgba(120, 190, 184, .12);
  background: rgba(4, 10, 14, .92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
.hero-film {
  --film-accent: #69e2dd;
  position: relative;
  z-index: 3;
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: .85rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--film-accent) 42%, transparent);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--film-accent) 22%, transparent), transparent 48%),
    linear-gradient(160deg, rgba(9, 22, 28, .96), rgba(4, 10, 14, .94));
  box-shadow:
    0 48px 120px rgba(0, 0, 0, .5),
    0 0 48px color-mix(in srgb, var(--film-accent) 16%, transparent),
    inset 0 1px rgba(255,255,255,.06);
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
  animation: stage-in 1s .15s var(--ease) both;
  overflow-x: clip;
  overflow-y: visible;
}
.film-chrome {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: #8fa3a0;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.film-meta { color: var(--film-accent); }
.film-chrome .demo-sample-tag {
  margin: 0;
  letter-spacing: .12em;
}
.film-voice-link {
  margin: .55rem 0 0;
}
.film-voice-link button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.film-voice-link button:hover { color: var(--text); }
.sandbox-link .demo-sample-tag {
  margin-bottom: .45rem;
}
.film-viewport {
  position: relative;
  isolation: isolate;
  min-height: clamp(280px, 42vw, 360px);
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(2, 6, 9, .72);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.film-letterbox {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s var(--ease);
}
.film-letterbox span {
  position: absolute;
  left: 0;
  right: 0;
  height: clamp(10px, 3.2%, 18px);
  background: #020507;
}
.film-letterbox span:first-child { top: 0; }
.film-letterbox span:last-child { bottom: 0; }
.hero-film[data-playing="true"][data-film-engine="cinematic"] .film-letterbox,
.hero-film[data-playing="true"][data-film-engine="video"] .film-letterbox {
  opacity: 1;
}
.film-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 35%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(90deg, rgba(0,0,0,.28), transparent 18%, transparent 82%, rgba(0,0,0,.28));
  opacity: .55;
  mix-blend-mode: multiply;
}
.hero-film[data-playing="true"] .film-vignette { opacity: .85; }
.film-grain {
  position: absolute;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  animation: film-grain-shift 1.2s steps(3) infinite;
}
.hero-film[data-playing="true"] .film-grain { opacity: .22; }
@keyframes film-grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-1.5%, 1%); }
  66% { transform: translate(1%, -1.5%); }
  100% { transform: translate(0, 0); }
}
.film-viewport {
  background:
    radial-gradient(circle at 68% 28%, color-mix(in srgb, var(--film-accent, #69e2dd) 18%, transparent), transparent 28%),
    radial-gradient(circle at 28% 72%, rgba(255, 202, 111, .08), transparent 26%),
    linear-gradient(145deg, #071117 0%, #03080c 52%, #061319 100%);
}
.hero-film:not([data-film-armed="true"]) .brand-video { opacity: 0; }
.hero-film[data-film-engine="cinematic"] .brand-video { opacity: 0; }
.hero-film[data-film-engine="cinematic"] .brand-cinematic { opacity: 1; }
.brand-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #050b12;
}
.film-constellation {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: .42;
  mix-blend-mode: screen;
}
.hero-film[data-playing="true"] .film-constellation { opacity: .26; }
.hero-film[data-film-mode="story"] .brand-video { display: none; }
.hero-film[data-film-mode="story"] .film-constellation {
  opacity: .9;
  mix-blend-mode: normal;
}
.film-copy {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 1.1rem 1.1rem 1.05rem;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 9, .55) 18%, rgba(2, 6, 9, .92) 55%, rgba(2, 6, 9, .97));
}
.film-end-cta {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(8, 22, 34, .96), rgba(5, 14, 24, .98)),
    rgba(5, 12, 20, .94);
  border: 1px solid color-mix(in srgb, var(--film-accent, #69e2dd) 34%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.film-end-cta[hidden] { display: none !important; }
.film-end-kicker {
  margin: 0;
  color: var(--film-accent, #69e2dd);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.film-end-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.film-end-cta .button,
.film-end-actions .button {
  min-height: 48px;
  width: 100%;
  justify-content: center;
}
.hero-film[data-film-ended="true"] .film-actions {
  opacity: .72;
}
.film-viewport.is-morphing .film-title,
.film-viewport.is-morphing .film-line,
.film-viewport.is-morphing .film-company {
  animation: film-morph .55s var(--ease) both;
}
.film-viewport.is-beat .film-title {
  animation: film-beat .4s var(--ease) both;
}
@keyframes film-morph {
  0% { opacity: .55; transform: translateY(4px); }
  100% { opacity: 1; transform: none; }
}
@keyframes film-beat {
  0% { opacity: .7; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}
.film-glow {
  position: absolute;
  inset: -30% auto auto 40%;
  z-index: 2;
  width: 70%;
  height: 90%;
  background: radial-gradient(circle, color-mix(in srgb, var(--film-accent) 18%, transparent), transparent 70%);
  pointer-events: none;
  animation: film-pulse 6.5s ease-in-out infinite;
  opacity: .55;
}
@keyframes film-pulse {
  0%, 100% { opacity: .4; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.03); }
}
.film-company {
  position: relative;
  margin: 0 0 .55rem;
  color: var(--film-accent);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.film-kicker {
  position: relative;
  margin: 0 0 .45rem;
  color: #9bb0ab;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.film-title {
  position: relative;
  margin: 0;
  max-width: 100%;
  color: var(--text);
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 750;
  letter-spacing: -.015em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.film-line {
  position: relative;
  margin: .85rem 0 0;
  max-width: 38ch;
  color: #c5d7d2;
  font-size: .92rem;
  line-height: 1.55;
}
.film-progress {
  position: relative;
  margin-top: 1.1rem;
  height: 3px;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.film-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--film-accent), #ffca6f);
  transition: width .45s var(--ease);
}
.film-ops-scene {
  position: relative;
  width: min(46%, 280px);
  margin: .75rem .7rem .65rem auto;
  display: grid;
  gap: .55rem;
  z-index: 2;
  pointer-events: none;
}
.film-ops-card {
  padding: .7rem .8rem;
  border: 1px solid rgba(126, 226, 218, .24);
  border-radius: 12px;
  background: #071016;
  box-shadow: 0 14px 36px rgba(0,0,0,.24);
}
.film-ops-card span { display:block; color:var(--film-accent,#69e2dd); font-size:.54rem; font-weight:850; letter-spacing:.12em; }
.film-ops-card strong { display:block; margin-top:.28rem; color:#f4f8ff; font-size:.72rem; line-height:1.25; }
.film-ops-card small { display:block; margin-top:.2rem; color:#9fb0bd; font-size:.58rem; }
.film-ops-card-primary,
.film-ops-card-proof { transform: none; }
.film-type-rail {
  display: flex;
  flex-wrap: nowrap;
  gap: .4rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pan-y;
}
.film-type-rail::-webkit-scrollbar { height: 4px; }
.film-type-rail::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--film-accent) 40%, transparent);
  border-radius: 99px;
}
.film-type-picker {
  display: grid;
  gap: .45rem;
  margin-top: .2rem;
}
.film-type-label,
.sandbox-picker-label {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.film-type-kicker {
  margin: 0;
  color: var(--signal, #69e2dd);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.film-type-headline {
  margin: .4rem 0 0;
  color: #f4f8ff;
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.film-type-support {
  margin: .35rem 0 0;
  color: #c5d2e0;
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
}
.film-type-option a,
.sandbox-type-option a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: inherit;
}
.film-type-dropdown,
.sandbox-dropdown {
  position: relative;
  z-index: 6;
}
.film-type-dropdown { display: none; }
.film-type-trigger,
.sandbox-type-trigger {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--type-accent, var(--film-accent, #69e2dd)) 42%, transparent);
  background: linear-gradient(135deg, rgba(8, 20, 30, .96), rgba(5, 12, 20, .98));
  color: var(--text);
  font: inherit;
  font-size: .95rem;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.film-type-trigger:hover,
.sandbox-type-trigger:hover,
.film-type-trigger:focus-visible,
.sandbox-type-trigger:focus-visible {
  border-color: color-mix(in srgb, var(--type-accent, var(--film-accent, #69e2dd)) 72%, transparent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  outline: none;
}
.film-type-chevron {
  width: .65rem;
  height: .65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .75;
  transition: transform .28s var(--ease);
  flex: 0 0 auto;
}
.hero-film.is-type-menu-open .film-type-chevron,
.sandbox-picker.is-open .film-type-chevron {
  transform: rotate(-135deg);
}
.film-type-menu,
.sandbox-type-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: .35rem;
  list-style: none;
  border-radius: 14px;
  border: 1px solid rgba(105, 226, 221, .28);
  background: rgba(6, 14, 22, .98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .32s var(--ease), opacity .28s var(--ease), transform .28s var(--ease);
}
.film-type-menu.is-open,
.sandbox-type-menu.is-open {
  max-height: min(18rem, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  opacity: 1;
  transform: none;
}
.film-type-option,
.sandbox-type-option {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: .65rem .85rem;
  border-radius: 10px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.film-type-option:hover,
.sandbox-type-option:hover,
.film-type-option:focus-visible,
.sandbox-type-option:focus-visible {
  background: color-mix(in srgb, var(--type-accent, #69e2dd) 16%, transparent);
  outline: none;
}
.film-type-option.is-active,
.sandbox-type-option.is-active {
  background: color-mix(in srgb, var(--type-accent, #69e2dd) 22%, transparent);
  color: #f2f8f5;
}
.sandbox-picker {
  display: none;
  gap: .55rem;
  margin: 1.1rem 0 1.25rem;
}
.sandbox-picker-go {
  width: 100%;
  justify-content: center;
}
.film-type {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: 1px solid rgba(120, 190, 184, .2);
  border-radius: 999px;
  padding: .42rem .78rem;
  min-height: 40px;
  background: rgba(8, 18, 22, .72);
  color: #c9dbd6;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.film-type:hover,
.film-type:focus-visible {
  border-color: color-mix(in srgb, var(--type-accent, var(--film-accent)) 70%, transparent);
  outline: none;
}
.film-type.is-active {
  border-color: var(--type-accent, var(--film-accent));
  background: color-mix(in srgb, var(--type-accent, var(--film-accent)) 18%, rgba(8, 18, 22, .9));
  color: #f2f8f5;
}
.hero-film {
  overflow-x: clip;
  overscroll-behavior: contain;
}
.brand-cinematic {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s var(--ease);
  background: #050b12;
}
.hero-film[data-film-engine="cinematic"][data-playing="true"] .brand-cinematic,
.hero-film[data-film-engine="cinematic"][data-film-armed="true"] .brand-cinematic {
  opacity: 1;
}
.hero-film[data-film-engine="cinematic"][data-playing="true"] .brand-video,
.hero-film[data-film-engine="cinematic"][data-film-armed="true"] .brand-video {
  opacity: 0;
}
.hero-film[data-film-engine="video"][data-playing="true"] .brand-video,
.hero-film[data-film-engine="video"][data-film-armed="true"] .brand-video {
  opacity: 1;
}
.hero-film[data-film-engine="video"] .brand-cinematic {
  opacity: 0;
}
.hero-film[data-film-engine="video"] .film-constellation {
  opacity: 0;
}
.hero-film[data-film-engine="cinematic"] .film-constellation {
  opacity: 0;
}
.film-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
}
.film-actions .button { min-height: 44px; }
.voice-demo-controls[hidden] { display: none !important; }
.film-note {
  margin: 0;
  color: #6f837e;
  font-size: .72rem;
  line-height: 1.45;
}

.hero-stage {
  position: relative;
  z-index: 3;
}
.routefield {
  /* legacy absolute hero canvas rules disabled - world uses sticky .world-canvas */
}
.hero-atmosphere {
  display: none;
}
.hero-copy {
  position: relative; z-index: 2; min-width: 0;
  animation: rise-in .9s .05s var(--ease) both;
}
.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--route);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
}
.signal {
  display: inline-block; width: 7px; height: 7px; margin-right: .55rem;
  border-radius: 50%; background: var(--good);
  box-shadow: 0 0 14px var(--good);
  animation: signal-breathe 2.4s ease-in-out infinite;
}
h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  margin: 0; max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: var(--lh-display); letter-spacing: -.03em; text-wrap: balance;
  padding-inline: .03em;
  padding-block-end: var(--descender-room);
  margin-block-end: var(--descender-rhythm);
  overflow: visible;
}
h1.hero-wordmark-title,
h1.hero-wordmark {
  max-width: 100%;
  font-size: clamp(2.1rem, 5.2vw, 3.65rem);
  line-height: 1;
  letter-spacing: -.03em;
  padding-block-end: 0.08em;
  margin-block-end: 0;
}
h1 em {
  display: block; margin-top: .08em;
  color: var(--proof); font-style: normal; font-weight: 600;
}
.hero-brand {
  display: block;
  margin: 0 0 .15rem;
  max-width: 100%;
}
.hero-wordmark-title,
.hero-wordmark {
  --wm-glow: #77e5ff;
  position: relative;
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 3.65rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--text);
}
.wordmark-lockup {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.4vw, .95rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.wordmark-lockup-solo {
  display: block;
}
.wordmark-lockup-solo .wordmark-type {
  flex: none;
  width: 100%;
}
.wordmark-mark {
  flex: 0 0 auto;
  width: clamp(2.4rem, 5vw, 3rem);
  aspect-ratio: 1;
  border-radius: 14px;
  box-shadow:
    0 0 28px color-mix(in srgb, var(--wm-glow) 28%, transparent),
    0 0 10px rgba(130, 114, 255, .18);
  overflow: hidden;
}
.wordmark-mark img {
  display: block;
  width: 100%;
  height: 100%;
}
.wordmark-type {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  container-type: inline-size;
  overflow: visible;
}
.wordmark-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;
}
.wordmark-stage {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  isolation: isolate;
  overflow: visible;
}
.wordmark-route {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.22em;
  top: auto;
  width: 100%;
  height: 0.48em;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  opacity: .88;
}
.wordmark-route-line {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: .42;
}
.wordmark-letters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.85rem, 11cqi, 3.45rem);
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1;
  padding-bottom: 0.28em;
}
.wordmark-letter {
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  color: #f4fbf8;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow:
    0 0 16px rgba(119, 229, 255, .14),
    0 1px 0 rgba(0, 0, 0, .22);
  opacity: .22;
  transform: translateY(0.06em);
  filter: none;
}
.hero-wordmark.is-drawing .wordmark-route-line {
  animation: wordmark-draw 2.6s cubic-bezier(.22,.61,.24,1) forwards;
}
.hero-wordmark.is-drawing .wordmark-letter {
  animation: wordmark-letter-in .85s cubic-bezier(.16,.84,.24,1) forwards;
  animation-delay: calc(var(--i) * 0.07s + 0.28s);
}
.hero-wordmark.is-settled .wordmark-route-line {
  stroke-dashoffset: 0;
  opacity: .92;
}
.hero-wordmark.is-settled .wordmark-letter {
  opacity: 1;
  transform: none;
  filter: none;
  color: #f4fbf8;
  animation: wordmark-glow 11s ease-in-out infinite;
}
.hero-wordmark.is-settled .wordmark-end {
  animation: wordmark-treasure 4.8s ease-in-out infinite;
}
.hero-wordmark.is-settled .wordmark-origin,
.hero-wordmark.is-settled .wordmark-mid {
  opacity: .9;
}
@keyframes wordmark-draw {
  to { stroke-dashoffset: 0; opacity: .95; }
}
@keyframes wordmark-letter-in {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes wordmark-glow {
  0%, 100% { text-shadow: 0 0 12px rgba(119, 229, 255, .1), 0 1px 0 rgba(0, 0, 0, .2); }
  50% { text-shadow: 0 0 20px rgba(105, 226, 221, .22), 0 0 6px rgba(168, 148, 255, .14); }
}
@keyframes wordmark-treasure {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark .wordmark-letter {
    opacity: 1;
    transform: none;
    filter: none;
    color: var(--text);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    animation: none !important;
  }
  .hero-wordmark .wordmark-route-line {
    stroke-dashoffset: 0 !important;
    opacity: .7;
    animation: none !important;
  }
  .hero-wordmark .wordmark-end { animation: none !important; }
}

.hero-map-plate {
  --map-accent: #69e2dd;
  --map-treasure: #ffca6f;
  flex: 0 0 auto;
  width: clamp(4.6rem, 11vw, 6.4rem);
  max-width: 6.4rem;
  aspect-ratio: 1;
  border-radius: 20px;
  box-shadow:
    0 0 40px color-mix(in srgb, var(--map-accent) 22%, transparent),
    0 0 18px color-mix(in srgb, var(--map-treasure) 14%, transparent),
    inset 0 1px rgba(255,255,255,.06);
  animation: hero-map-float 5.5s ease-in-out infinite;
}
.hero-map-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-map-route {
  filter: url(#heroMapGlow);
}
.hero-map-plate.is-revealing .hero-map-route {
  animation: hero-map-draw 2.4s cubic-bezier(.35,.05,.2,1) forwards;
}
.hero-map-plate.is-revealing .hero-map-treasure-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: hero-treasure-ring 2.4s .85s ease-out forwards;
}
.hero-map-plate[data-map-state="verified"] .hero-map-treasure,
.hero-map-plate[data-map-state="verified"] .hero-map-treasure-ring {
  filter: url(#heroTreasureGlow);
}
.hero-map-plate[data-map-state="awaiting_approval"] .hero-map-mid {
  animation: hero-node-hold 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-map-plate { animation: none; }
  .hero-map-route { stroke-dashoffset: 0 !important; opacity: 1 !important; }
  .brand-mark::after { animation: none; opacity: .45; }
  .film-glow { animation: none; }
  .film-constellation { opacity: .55; }
  .film-grain { animation: none; opacity: 0 !important; }
  .film-letterbox { opacity: 0 !important; }
}
@keyframes brand-mark-glow {
  0%, 100% { opacity: .4; transform: scale(.96); }
  50% { opacity: .85; transform: scale(1.04); }
}
@keyframes hero-map-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes hero-map-draw {
  from { stroke-dashoffset: 118; opacity: .35; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes hero-treasure-ring {
  0% { transform: scale(.55); opacity: .85; }
  100% { transform: scale(1.85); opacity: 0; }
}
@keyframes hero-node-hold {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255, 202, 111, .8)); }
}
.hero-brand h1,
.hero-wordmark-title {
  margin: 0;
  max-width: none;
}
.hero-promise {
  margin: .55rem 0 0;
  max-width: 18ch;
  color: var(--proof);
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.18;
  padding-block-end: var(--descender-tight);
  text-wrap: balance;
  overflow: visible;
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .85rem; margin-top: 1.15rem;
}
.product-story {
  margin: 1.15rem 0 0;
  max-width: 100%;
}
.product-story-frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(105, 226, 221, .22);
  background:
    #071018;
  box-shadow:
    0 22px 56px rgba(0, 0, 0, .38),
    0 0 40px rgba(105, 226, 221, .08);
  aspect-ratio: 16 / 9;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.product-story-frame:focus-within,
.product-story-frame:hover {
  border-color: rgba(105, 226, 221, .42);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, .42),
    0 0 52px rgba(105, 226, 221, .14);
}
.product-story-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050b12;
}
.product-story-caption {
  margin: .65rem 0 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
.product-story-kicker {
  display: inline-block;
  margin-right: .45rem;
  color: var(--route);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.display-line {
  display: inline-block;
  max-width: 100%;
  padding-block: 0.12em 0.22em;
  line-height: inherit;
  vertical-align: baseline;
  overflow: visible;
}
.hero-kicker {
  margin: 0 0 .55rem;
  color: #c9dbd6;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.word-stamp {
  display: inline-block;
  vertical-align: baseline;
  padding: .1em .18em .16em;
  margin: 0 .06em;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-style: inherit;
  font-weight: inherit;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero.is-awake .word-stamp {
  animation: stamp-in .7s .35s var(--ease) both;
}
.scene .word-stamp {
  color: var(--route);
  border-color: var(--route);
}
.scene-permission .word-stamp,
.word-stamp-proof,
.scene-verify .word-stamp {
  color: var(--proof);
  border-color: var(--proof);
}
.scene.is-active .word-stamp {
  animation: stamp-in .65s .08s var(--ease) both;
}
@keyframes stamp-in {
  from { opacity: 0; transform: translateY(.1em) scale(.96); }
  to { opacity: 1; transform: none; }
}
.hero-lede {
  max-width: 34rem; margin: 1.2rem 0 0;
  color: #dce8e5; font-size: clamp(1rem, 1.25vw, 1.14rem); line-height: 1.62; font-weight: 600;
}
.hero-secondary-link {
  margin: .9rem 0 0;
  font-size: .9rem;
}
.hero-secondary-link a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.hero-secondary-link a:hover { color: var(--text); }
.button {
  min-height: 50px; display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem; border: 1px solid transparent; border-radius: 999px;
  padding: .8rem 1.3rem; text-decoration: none; font-weight: 800;
  transition: transform .22s var(--ease), background .22s, border-color .22s, box-shadow .22s;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  position: relative;
  overflow: hidden;
  color: #041210;
  background: linear-gradient(110deg, #9af5de, #69e2dd 48%, #ffca6f);
  box-shadow: 0 18px 48px rgba(70, 199, 191, .18), 0 0 40px rgba(105, 226, 221, .12);
}
.button-primary::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: -55%;
  height: 80%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .42), transparent 70%);
}
.button-quiet {
  border-color: var(--line); background: rgba(8, 18, 22, .55); color: var(--text);
}
.trust-line {
  display: flex; flex-wrap: wrap; gap: .7rem 1.5rem;
  margin: 1.85rem 0 0; padding: 0; list-style: none;
  color: var(--muted); font-size: .78rem; font-weight: 600;
}
.trust-compact {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .65rem;
}
.trust-compact li {
  margin: 0;
  color: #b8cbc7;
  font-size: .86rem;
  line-height: 1.55;
}
.trust-compact strong { color: #e8f3f0; }
@media (max-width: 900px) {
  .film-beats { grid-template-columns: 1fr 1fr; }
}

/* Hero stage - not a smushed card stack */
.hero-stage {
  --tilt-y: -2deg; --tilt-x: 1deg;
  position: relative; z-index: 2; min-width: 0;
  padding: 1.35rem 1.35rem 1.2rem;
  border: 1px solid rgba(105, 226, 221, .22);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(155deg, rgba(255,255,255,.04), transparent 35%),
    radial-gradient(ellipse at 90% 0%, rgba(255, 202, 111, .1), transparent 45%),
    linear-gradient(160deg, rgba(9, 22, 28, .94), rgba(4, 10, 14, .9));
  box-shadow:
    0 48px 120px rgba(0, 0, 0, .5),
    inset 0 1px rgba(255,255,255,.06);
  transform: perspective(1400px) rotateY(var(--tilt-y)) rotateX(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform .55s var(--ease), border-color .3s;
  animation: stage-in 1s .15s var(--ease) both;
}
.hero-film[data-state="awaiting_approval"] { border-color: rgba(255, 202, 111, .45); }
.hero-film[data-state="verified"] { border-color: rgba(103, 230, 157, .4); }
.hero-film[data-state="working"] { border-color: rgba(105, 226, 221, .45); }

.stage-chrome {
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .14em;
}
.mission-status { color: var(--route); }

.joey-presence {
  position: relative;
  width: 168px; aspect-ratio: 1;
  margin: 1rem auto 1.1rem;
  display: grid; place-items: center;
  transform: translateZ(36px);
}
.joey-halo {
  position: absolute; inset: -6%;
  border-radius: 50%;
  border: 1px dashed rgba(105, 226, 221, .28);
  animation: spin-slow 28s linear infinite;
}
.joey-spokes {
  position: absolute; inset: 8%;
  background:
    conic-gradient(from 0deg,
      transparent 0 18deg, rgba(105, 226, 221, .35) 18deg 20deg,
      transparent 20deg 58deg, rgba(255, 202, 111, .3) 58deg 60deg,
      transparent 60deg 98deg, rgba(105, 226, 221, .25) 98deg 100deg,
      transparent 100deg 138deg, rgba(103, 230, 157, .28) 138deg 140deg,
      transparent 140deg 178deg, rgba(105, 226, 221, .3) 178deg 180deg,
      transparent 180deg 360deg);
  border-radius: 50%;
  mask: radial-gradient(circle, transparent 42%, black 43% 62%, transparent 63%);
  animation: spin-slow 16s linear infinite reverse;
}
.joey-presence {
  position: relative;
  width: 86px;
  height: 86px;
  margin: .4rem auto 1rem;
}
.joey-ring {
  position: absolute; inset: 0;
  border: 1px dashed rgba(105,226,221,.35);
  border-radius: 50%;
  animation: joey-spin 18s linear infinite;
}
.joey-ingress {
  position: absolute; inset: 10px;
  border: 1px solid rgba(255,202,111,.28);
  border-radius: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 55%, 0 55%);
  animation: joey-spin 12s linear infinite reverse;
}
.joey-core {
  position: absolute; inset: 18px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 92% 50%, 50% 100%, 8% 50%);
  background: linear-gradient(145deg, #b8fff0, #69e2dd 40%, #2a9a98 72%, #ffca6f);
  box-shadow: 0 0 28px rgba(105,226,221,.35);
}
.joey-core i {
  position: absolute; inset: 2px;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background:
    radial-gradient(circle at 40% 32%, rgba(255,255,255,.55), transparent 28%),
    linear-gradient(145deg, #69e2dd, #2a9a98 45%, #ffca6f);
  opacity: .92;
}
.joey-core b {
  position: relative; z-index: 1;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 1.45rem; font-weight: 800; color: #041210;
  letter-spacing: -.02em;
}
.hero-stage[data-state="understanding"] .joey-core,
.hero-stage[data-state="preparing"] .joey-core,
.hero-stage[data-state="working"] .joey-core {
  animation: core-energy 1.1s ease-in-out infinite;
}
.hero-stage[data-state="verified"] .joey-core {
  box-shadow: 0 0 56px rgba(255, 202, 111, .35);
}
.hero-stage[data-state="verified"] .joey-core i {
  background:
    radial-gradient(circle at 40% 32%, rgba(255,255,255,.6), transparent 28%),
    linear-gradient(145deg, #ffca6f, #69e2dd 55%, #67e69d);
}

.intent-demo label {
  display: block; margin-bottom: .5rem;
  color: var(--muted); font-size: .7rem; font-weight: 750;
}
.intent-demo > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem;
  padding: .42rem; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(3, 8, 11, .75);
}
.intent-demo input {
  min-width: 0; border: 0; padding: .7rem .75rem;
  outline: 0; background: transparent; color: var(--text);
}
.intent-demo button,
.plan-card button {
  min-height: 42px;
  border: 1px solid var(--line-bright); border-radius: 11px;
  padding: .62rem .9rem;
  background: rgba(105, 226, 221, .1); color: var(--text);
  font-size: .76rem; font-weight: 800;
  transition: background .2s, transform .18s var(--ease), border-color .2s, box-shadow .2s;
}
.intent-demo button:hover,
.plan-card button:hover {
  background: rgba(105, 226, 221, .18);
  transform: translateY(-1px);
  border-color: rgba(105, 226, 221, .42);
  box-shadow: 0 10px 24px rgba(70, 199, 191, .12);
}

.route-rail {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .4rem; margin: 1rem 0 0; padding: 0; list-style: none;
}
.route-rail li {
  min-width: 0; display: grid; gap: .2rem; align-content: center;
  padding: .65rem .5rem;
  border: 1px solid transparent;
  border-bottom: 2px solid rgba(105, 226, 221, .12);
  color: #6d807c; text-align: center;
  transition: color .25s, border-color .25s, background .25s;
}
.route-rail span { font-size: .58rem; font-weight: 850; color: var(--route); letter-spacing: .08em; }
.route-rail strong { font-size: .72rem; font-weight: 700; color: inherit; }
.route-rail li.active {
  color: var(--text);
  border-bottom-color: var(--route);
  background: rgba(105, 226, 221, .06);
}
.route-rail li.complete {
  color: #a8c0bb;
  border-bottom-color: rgba(103, 230, 157, .45);
}
.demo-disclosure {
  margin: .9rem 0 0; color: #657570; font-size: .62rem; line-height: 1.5;
}
.demo-beat {
  margin: .35rem 0 .55rem;
  color: #d8ebe7;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
  padding-block-end: var(--descender-tight);
  overflow: visible;
}
.demo-narrative {
  position: relative;
  margin-bottom: .75rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(105,226,221,.14);
  border-radius: 14px;
  background: rgba(3, 8, 11, .62);
}
.demo-sample-tag {
  display: inline-block;
  margin-bottom: .35rem;
  padding: .18rem .45rem;
  border-radius: 999px;
  background: rgba(255,202,111,.12);
  color: #ffca6f;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .12em;
}
.demo-narrative strong {
  display: block;
  color: #eef6f3;
  font-size: .82rem;
  line-height: 1.45;
}
.demo-narrative p {
  margin: .35rem 0 0;
  color: #7f918c;
  font-size: .68rem;
  line-height: 1.45;
}
.demo-proof {
  margin-bottom: .75rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(103,230,157,.22);
  border-radius: 12px;
  background: rgba(103,230,157,.06);
}
.demo-proof > span {
  display: block;
  margin-bottom: .35rem;
  color: #67e69d;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.demo-proof ul {
  margin: 0;
  padding-left: 1rem;
  color: #b8d4c8;
  font-size: .68rem;
  line-height: 1.45;
}
.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .55rem 0 .75rem;
}
.demo-controls button {
  min-height: 36px;
  min-width: 44px;
  padding: .35rem .65rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #b8c8c2;
  font: inherit;
  font-size: .68rem;
  font-weight: 750;
  cursor: pointer;
}
.demo-controls button:hover { border-color: rgba(105,226,221,.35); color: #eef6f3; }
.voice-demo-controls { margin-top: .35rem; }
.demo-voice-tagline {
  margin: .75rem 0 0;
  color: rgba(238,246,243,.72);
  font-size: .88rem;
  line-height: 1.45;
}
.demo-controls.demo-optional,
.route-rail,
.demo-voice-tagline,
.quick-handle { display: none; }
.voice-demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}
.voice-demo-controls button {
  min-height: 40px;
  padding: .45rem .85rem;
  border: 1px solid rgba(105,226,221,.28);
  border-radius: 999px;
  background: rgba(8, 18, 22, .72);
  color: #dce8e5;
  font: inherit;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
}
.scene > p,
.scene h2,
.film-lede,
.film-copy h2,
.start-copy > p,
.section-heading > p:last-of-type {
  color: #dce8e5;
}
.scene > p,
.film-lede,
.section-heading > p:last-of-type {
  color: #b8cbc7;
  line-height: 1.58;
}
.product-film {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.film-eyebrow {
  margin: 0 0 .5rem;
  color: #67e69d;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.film-lede {
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.6;
}
.film-controls {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.film-beats {
  display: grid;
  gap: .45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.film-beats li {
  display: grid;
  gap: .15rem;
  padding: .65rem .75rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  background: rgba(3,8,11,.55);
  opacity: .55;
  transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .45s ease;
}
.film-beats li.is-active {
  opacity: 1;
  transform: none;
  border-color: rgba(105,226,221,.28);
}
.film-beats li span { color: #7f918c; font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.film-beats li strong { color: #eef6f3; font-size: .88rem; }

@media (max-width: 900px) {
  .product-film { grid-template-columns: 1fr; }
  .demo-controls { justify-content: center; }
}
@media (max-width: 430px) {
  .hero-stage { overflow: visible; padding-block-end: calc(.85rem + var(--descender-room)); }
  .demo-beat { font-size: .95rem; }
  .demo-controls button { flex: 1 1 calc(33% - .35rem); }
}

@keyframes rise-in {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-in {
  from { opacity: 0; transform: perspective(1400px) rotateY(-10deg) rotateX(6deg) translate3d(28px, 18px, -80px); }
  to { opacity: 1; transform: perspective(1400px) rotateY(var(--tilt-y)) rotateX(var(--tilt-x)); }
}
@keyframes signal-breathe {
  50% { opacity: .55; box-shadow: 0 0 8px var(--good); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes core-awaken {
  0% { transform: scale(.72); opacity: .45; filter: brightness(.65); }
  55% { transform: scale(1.08); filter: brightness(1.18); }
  100% { transform: scale(1); opacity: 1; filter: none; }
}
@keyframes gate-hold {
  0% { transform: scale(.94) translate3d(0, 14px, 0); opacity: 0; }
  20% { transform: scale(1.02); opacity: 1; }
  45%, 62% { transform: scale(1); box-shadow: 0 0 0 1px rgba(255,202,111,.35), 0 18px 48px rgba(255,202,111,.14); }
  100% { transform: scale(1); }
}
@keyframes impact-in {
  from { opacity: 0; transform: translate3d(-12px, 0, 0) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes recover-in {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes route-snap {
  0% { opacity: 0; transform: scaleX(.2); }
  70% { opacity: 1; transform: scaleX(1.08); }
  100% { transform: scaleX(1); }
}
@keyframes verify-settle {
  0% { opacity: 0; transform: translate3d(0, 16px, 0) scale(.96); }
  60% { transform: translate3d(0, -2px, 0) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes verify-pulse {
  50% { box-shadow: 0 0 0 6px rgba(255,202,111,.08), 0 0 28px rgba(255,202,111,.35); }
}
@keyframes beam-reveal {
  from { opacity: 0; transform: translate3d(-16px, 0, 0); border-left-width: 0; }
  to { opacity: 1; transform: none; border-left-width: 3px; }
}
@keyframes path-win {
  from { opacity: .35; transform: translate3d(0, 8px, 0); }
  to { opacity: 1; transform: none; }
}

.hero.is-awake .joey-core { animation: core-awaken 1.15s cubic-bezier(.2,.85,.25,1) both; }
.hero.is-awake .signal { animation: signal-breathe 2.4s ease-in-out infinite; }
.hero.is-awake .hero-copy { animation: rise-in .8s .1s var(--ease) both; }

.scene-intent.is-active .intent-beam { animation: beam-reveal .75s .12s cubic-bezier(.2,.85,.25,1) both; }
.scene-plan.is-active .path-lane.active { animation: path-win .85s .18s cubic-bezier(.2,.85,.25,1) both; }
.scene-permission.is-active .gate-frame { animation: gate-hold 3.2s cubic-bezier(.35,.05,.25,1) both; }
.scene-adapt.is-active .reroute-block { animation: impact-in .55s cubic-bezier(.2,.9,.3,1.1) both; }
.scene-adapt.is-active .reroute-arrow { animation: route-snap .6s .28s cubic-bezier(.35,1.4,.45,1) both; }
.scene-adapt.is-active .reroute-alt { animation: recover-in .7s .35s cubic-bezier(.2,.85,.25,1) both; }
.scene-verify.is-active .verify-beacon { animation: verify-settle .9s cubic-bezier(.2,.85,.25,1) both; }
.scene-verify.is-active .verify-mark { animation: verify-pulse 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html, body, body::before, .world-rail::after { transition: none; }
  .hero.is-awake .joey-core,
  .hero.is-awake .word-stamp,
  .scene.is-active .word-stamp,
  .scene-intent.is-active .intent-beam,
  .scene-plan.is-active .path-lane.active,
  .scene-permission.is-active .gate-frame,
  .scene-adapt.is-active .reroute-block,
  .scene-adapt.is-active .reroute-arrow,
  .scene-adapt.is-active .reroute-alt,
  .scene-verify.is-active .verify-beacon,
  .scene-verify.is-active .verify-mark,
  .scene.is-active::before,
  .journey-spine::after { animation: none; }
  .button:hover,
  .intent-demo button:hover,
  .plan-card button:hover { transform: none; }
}

@keyframes core-energy {
  50% { transform: scale(1.05); box-shadow: 0 0 64px rgba(105, 226, 221, .42); }
}

/* --- Journey scenes (continuous, not card stack) --- */
.journey {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.4rem) 0 var(--space-section);
  display: grid;
  gap: clamp(2.8rem, 7vw, 5.5rem);
}
.journey-spine {
  position: absolute;
  top: 0; bottom: 0; left: clamp(1.1rem, 4vw, 2.4rem);
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(105, 226, 221, .45) 8%,
    rgba(105, 226, 221, .28) 42%,
    rgba(255, 202, 111, .55) 88%,
    transparent
  );
  transform-origin: top;
  transform: scaleY(var(--spine-progress, 0.08));
  transition: transform .12s linear;
  box-shadow: 0 0 18px rgba(105, 226, 221, calc(0.12 + var(--scroll-velocity, 0) * 1.8));
}
.journey-spine::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: calc(var(--spine-progress, 0.08) * 100%);
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(240, 255, 255, .55), transparent);
  filter: blur(4px);
  opacity: calc(0.35 + min(var(--scroll-velocity, 0) * 4, 0.55));
  pointer-events: none;
}
.scene {
  position: relative;
  z-index: 2;
  padding: clamp(1.35rem, 3vw, 2rem) 0 clamp(1.35rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
  opacity: calc(0.78 + var(--scene-progress, 0) * 0.22);
  transform:
    translateY(calc(8px * (1 - var(--scene-progress, 0))))
    scale(calc(0.994 + var(--scene-progress, 0) * 0.006));
  filter: blur(calc((1 - var(--scene-progress, 0)) * 0.35px));
  transition: opacity 0.1s linear, transform 0.1s linear, filter 0.12s linear;
  overflow: visible;
}
.scene::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.1rem, 4vw, 2.4rem) - 5px);
  top: clamp(3.2rem, 6.5vw, 5.5rem);
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--route);
  background: var(--ink);
  box-shadow: 0 0 0 0 rgba(105, 226, 221, 0);
  transition: box-shadow .4s, background .4s, border-color .4s, transform .35s var(--ease);
}
.scene.is-active {
  opacity: calc(0.92 + var(--scene-progress, 1) * 0.08);
  transform:
    translateY(calc(2px * (1 - var(--scene-progress, 1))))
    scale(calc(0.998 + var(--scene-progress, 1) * 0.002));
  filter: none;
}
.scene.is-active::before {
  background: var(--route);
  box-shadow:
    0 0 26px rgba(105, 226, 221, .7),
    0 0 48px rgba(105, 226, 221, .25);
  transform: scale(1.15);
  animation: spine-node-strike 1.8s ease-in-out infinite;
}
@keyframes spine-node-strike {
  0%, 100% { box-shadow: 0 0 22px rgba(105, 226, 221, .55), 0 0 0 0 rgba(105, 226, 221, 0); }
  45% { box-shadow: 0 0 32px rgba(240, 255, 255, .85), 0 0 18px 4px rgba(105, 226, 221, .2); }
}
.scene.is-passed { opacity: .72; transform: none; }
.scene.is-passed::before {
  background: rgba(105, 226, 221, .45);
  border-color: rgba(105, 226, 221, .55);
}
.scene-verify.is-active::before,
.scene-verify.is-passed::before {
  border-color: var(--proof);
  background: var(--proof);
  box-shadow: 0 0 22px rgba(255, 202, 111, .5);
}

.scene-index {
  margin: 0 0 1rem;
  color: var(--route);
  font-size: .72rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.scene-index span { margin-right: .65rem; opacity: .7; }
.scene h2 {
  margin: 0; max-width: 16ch;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  line-height: var(--lh-heading); letter-spacing: -.03em; text-wrap: balance;
  padding-inline: .03em;
  padding-block-end: var(--descender-tight);
  margin-block-end: var(--descender-rhythm);
  overflow: visible;
}
.scene > p {
  max-width: 36rem; margin: 1.15rem 0 0;
  color: var(--muted); font-size: clamp(.95rem, 1.15vw, 1.08rem); line-height: 1.65;
}

.intent-beam {
  margin-top: 2rem; max-width: 28rem;
  padding: 1.15rem 1.3rem;
  border-left: 3px solid var(--route);
  background: linear-gradient(90deg, rgba(105, 226, 221, .08), transparent);
}
.intent-beam span {
  display: block; margin-bottom: .45rem;
  color: var(--route); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.intent-beam strong {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 700; letter-spacing: -.02em;
}

.integration-constellation,
.integration-lane {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.2rem 0 0; padding: 0; list-style: none;
  border: 1px solid var(--line);
  background: var(--line);
  overflow: hidden;
}
.integration-lane li {
  display: grid; gap: .35rem; align-content: center;
  min-height: 92px; padding: 1.15rem 1.2rem;
  background: rgba(6, 14, 18, .92);
  transition: background .3s, transform .12s linear, opacity .12s linear;
  transform: translateY(calc((1 - var(--scene-progress, 0)) * 14px));
  opacity: calc(0.5 + var(--scene-progress, 0) * 0.5);
}
.scene-context.is-active .integration-lane li {
  animation: lane-in .55s var(--ease) both;
}
.scene-context.is-active .integration-lane li:nth-child(2) { animation-delay: .05s; }
.scene-context.is-active .integration-lane li:nth-child(3) { animation-delay: .1s; }
.scene-context.is-active .integration-lane li:nth-child(4) { animation-delay: .15s; }
.scene-context.is-active .integration-lane li:nth-child(5) { animation-delay: .2s; }
.scene-context.is-active .integration-lane li:nth-child(6) { animation-delay: .25s; }
.integration-lane strong {
  font-size: .95rem; letter-spacing: -.02em;
}
.integration-lane small { color: var(--muted); font-size: .75rem; }

.path-fork {
  display: grid; gap: .55rem; margin-top: 2.2rem; max-width: 34rem;
}
.path-lane {
  padding: .9rem 1.15rem;
  border: 1px solid var(--line);
  font-size: .88rem; font-weight: 700;
  color: #6d807c;
  background: rgba(6, 14, 18, .5);
  transform: translateX(calc((1 - var(--scene-progress, 0)) * -18px));
  opacity: calc(0.45 + var(--scene-progress, 0) * 0.55);
  transition: transform .12s linear, opacity .12s linear, border-color .3s, background .3s;
}
.path-lane.active {
  color: var(--text);
  border-color: var(--line-bright);
  background: linear-gradient(90deg, rgba(105, 226, 221, .12), rgba(255, 202, 111, .06));
  box-shadow: inset 3px 0 0 var(--route);
}
.path-lane.muted { opacity: .55; }

.gate-panel { margin-top: 2.2rem; max-width: 28rem; }
.gate-frame {
  position: relative;
  overflow: hidden;
}
.gate-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,202,111,.14), transparent);
  transform: translateX(-120%);
  animation: gate-scan 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gate-scan {
  0%, 35% { transform: translateX(-120%); }
  70%, 100% { transform: translateX(120%); }
}
.gate-frame-legacy {
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(255, 202, 111, .35);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 202, 111, .1), transparent 50%),
    rgba(8, 16, 20, .9);
  box-shadow: 0 0 0 1px rgba(255, 202, 111, .08), 0 28px 70px rgba(0,0,0,.35);
}
.gate-frame > span {
  display: block; margin-bottom: .7rem;
  color: var(--proof); font-size: .66rem; font-weight: 850; letter-spacing: .14em;
}
.gate-frame strong {
  display: block;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.3;
}
.gate-actions {
  display: flex; gap: .6rem; margin-top: 1.15rem;
}
.gate-hold, .gate-go {
  flex: 1; text-align: center; padding: .65rem;
  font-size: .75rem; font-weight: 800; border-radius: 10px;
}
.gate-hold {
  border: 1px solid var(--line); color: var(--muted);
}
.gate-go {
  border: 1.5px solid var(--proof);
  color: #041210;
  background: var(--proof);
  border-radius: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.operator-orbit,
.operator-lanes {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 2.2rem;
}
.lane-hub {
  width: 108px; aspect-ratio: 1;
  display: grid; place-content: center; gap: .25rem; text-align: center;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(145deg, rgba(105, 226, 221, .2), rgba(255, 202, 111, .12));
  border: 1px solid rgba(255, 202, 111, .35);
  box-shadow: 0 0 40px rgba(105, 226, 221, .12);
}
.lane-hub strong { font-size: .85rem; letter-spacing: .08em; color: var(--proof); }
.lane-hub small { color: var(--muted); font-size: .62rem; }
.lane-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .5rem;
}
.lane-nodes span {
  min-height: 52px; display: grid; place-items: center;
  padding: .5rem;
  border: 1px solid var(--line);
  color: #a8bbb7; font-size: .72rem; font-weight: 700;
  background: rgba(6, 14, 18, .55);
  position: relative;
}
.lane-nodes span::before {
  content: "";
  position: absolute; left: -0.6rem; top: 50%;
  width: .5rem; height: 1px;
  background: rgba(105, 226, 221, .35);
}
.scene-action.is-active .lane-nodes span {
  animation: lane-in .5s var(--ease) both;
}
.scene-action.is-active .lane-nodes span:nth-child(odd) { animation-delay: .06s; }
.scene-action.is-active .lane-nodes span:nth-child(even) { animation-delay: .12s; }

.reroute {
  display: grid; gap: .7rem; margin-top: 2.2rem; max-width: 32rem;
}
.reroute-block, .reroute-alt {
  padding: .95rem 1.15rem; font-size: .88rem; font-weight: 700;
}
.reroute-block {
  border: 1px solid rgba(255, 136, 127, .35);
  color: #ffb0a8;
  background: rgba(255, 136, 127, .06);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 136, 127, .45);
}
.reroute-arrow {
  width: 2px; height: 28px; margin-left: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 136, 127, .5), var(--route));
}
.reroute-alt {
  border: 1px solid var(--line-bright);
  color: var(--text);
  background: linear-gradient(90deg, rgba(105, 226, 221, .1), transparent);
  box-shadow: inset 3px 0 0 var(--route);
}

.verify-beacon {
  display: flex; align-items: flex-start; gap: 1.1rem;
  margin-top: 2.2rem; max-width: 32rem;
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(103, 230, 157, .3);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(103, 230, 157, .12), transparent 55%),
    rgba(6, 16, 14, .85);
}
.verify-mark {
  flex: 0 0 auto;
  width: 28px; height: 28px; margin-top: .15rem;
  border-radius: 50%;
  border: 2px solid var(--good);
  background:
    linear-gradient(135deg, transparent 45%, var(--good) 45% 55%, transparent 55%),
    linear-gradient(45deg, transparent 58%, var(--good) 58% 68%, transparent 68%);
  box-shadow: 0 0 24px rgba(103, 230, 157, .35);
}
.verify-beacon strong {
  display: block; margin-bottom: .35rem;
  color: var(--good); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase;
}
.verify-beacon p {
  margin: 0; color: var(--text);
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 1.1rem; letter-spacing: -.02em; line-height: 1.35;
}

@keyframes lane-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* --- Outcomes --- */
.outcomes {
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line);
}

.sandboxes {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line);
}

.path {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  padding: clamp(1.15rem, 2.2vw, 1.8rem) 0;
  border-top: 1px solid var(--line);
}
.path-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.path-steps li {
  display: grid;
  gap: .45rem;
  align-content: start;
  min-height: 9.5rem;
  padding: 1.1rem 1rem 1.15rem;
  background: rgba(6, 14, 18, .94);
}
.path-steps span {
  color: var(--route);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.path-steps strong {
  font-size: 1.05rem;
  letter-spacing: -.01em;
}
.path-steps p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.path-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.35rem 0 0;
}
.path-cta .button {
  min-height: 46px;
}

.sandbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.sandbox-link {
  display: grid;
  gap: .55rem;
  align-content: start;
  min-height: 11.5rem;
  padding: 1.2rem 1.25rem 1.15rem;
  background: rgba(6, 14, 18, .94);
  color: inherit;
  text-decoration: none;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.sandbox-link:hover,
.sandbox-link:focus-visible {
  background: rgba(10, 24, 30, .98);
  transform: translateY(-2px);
  outline: none;
}
.sandbox-link span {
  color: var(--route);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
}
.sandbox-link strong {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: var(--lh-heading);
  padding-block-end: .08em;
}
.sandbox-link p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}
.sandbox-link em {
  margin-top: auto;
  color: #d8ebe7;
  font-style: normal;
  font-size: .82rem;
  font-weight: 700;
}
.sandbox-footnote {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}
.sandbox-footnote a {
  color: #d8ebe7;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 235, 231, .35);
}
.sandbox-footnote a:hover,
.sandbox-footnote a:focus-visible {
  color: var(--text);
  border-bottom-color: rgba(242, 248, 245, .7);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr);
  gap: .75rem 3.5rem;
  align-items: end;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.section-heading h2,
.start h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: var(--lh-heading); letter-spacing: -.025em; text-wrap: balance;
  padding-inline: .03em;
  padding-block-end: var(--descender-tight);
  overflow: visible;
}
.section-heading > p:last-child,
.start-copy > p {
  margin: 0; color: var(--muted); line-height: 1.6;
}

.outcome-strip {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem 1.5rem;
}
.outcome-strip article {
  min-width: 0;
  padding: 0 0 0 1.15rem;
  border-left: 2px solid var(--line);
}
.outcome-strip article > span,
.outcome-lead > p {
  color: var(--route); font-size: .68rem; font-weight: 850; letter-spacing: .14em;
}
.outcome-strip h3 {
  margin: .5rem 0 .45rem;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -.02em; line-height: var(--lh-heading);
  overflow: visible;
}
.outcome-strip article > p:last-child {
  margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5;
}
.outcome-lead {
  grid-row: span 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 280px;
  padding: 1.6rem 1.6rem 1.6rem 1.4rem !important;
  border-left: 3px solid var(--proof) !important;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(255, 202, 111, .1), transparent 45%),
    linear-gradient(160deg, rgba(10, 24, 28, .9), rgba(5, 12, 16, .75));
}
.outcome-lead blockquote {
  margin: 1rem 0 .8rem;
  color: #e4f0ec;
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  line-height: 1.3; letter-spacing: -.03em;
}
.outcome-lead small { color: #6d807c; font-size: .72rem; }

/* --- Assurance --- */
.assurance {
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 0 0 var(--space-section);
}
.assurance article {
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--line);
}
.assurance span { color: var(--route); font-size: .64rem; font-weight: 900; letter-spacing: .1em; }
.assurance strong { display: block; margin: .55rem 0 .4rem; font-size: 1.05rem; }
.assurance p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }

/* --- Pricing --- */
.pricing {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  padding: clamp(2.2rem, 4vw, 3.4rem) 0 clamp(1.2rem, 2.4vw, 2rem);
  border-top: 1px solid var(--line);
}
.plan-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.plan-grid-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .85rem;
}
.plan-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.plan-grid[hidden],
.plan-bigger[hidden],
[data-pricing-copy][hidden],
html[data-plans="v2"] [data-plan-set="current"] {
  display: none !important;
}
.plan-bigger {
  margin: 1rem 0 0;
}
.plan-bigger a {
  color: var(--rm-current);
  font-weight: 800;
}
.plan-request-note {
  margin: 0;
  color: var(--rm-text);
  font-size: .92rem;
}
.plan-card {
  display: grid; align-content: start; gap: 0;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(105, 226, 221, .28);
  border-radius: var(--radius-md);
  background:
    linear-gradient(165deg, rgba(255,255,255,.06), transparent 40%),
    rgba(10, 22, 28, .96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.plan-card:hover {
  border-color: rgba(105, 226, 221, .42);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .32), 0 0 28px rgba(105, 226, 221, .1);
}
.plan-card.plan-featured {
  border-color: rgba(255, 202, 111, .45);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 202, 111, .14), transparent 50%),
    rgba(10, 22, 26, .94);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28), 0 0 40px rgba(255, 202, 111, .1);
  position: relative;
  overflow: hidden;
}
.plan-card.plan-featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .05), transparent 65%);
  background-size: 220% 100%;
  animation: planFeaturedSweep 6.5s ease-in-out infinite;
}
@keyframes planFeaturedSweep {
  0%, 60%, 100% { background-position: 130% 0; }
  75% { background-position: -30% 0; }
}
.plan-card > div > p {
  margin: 0 0 .4rem;
  color: var(--route); font-size: .68rem; font-weight: 900; letter-spacing: .14em;
}
.plan-card .plan-path {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 .55rem;
  padding: .2rem .55rem;
  border: 1px solid rgba(119, 229, 255, .28);
  border-radius: 999px;
  color: #9fefff;
  background: rgba(119, 229, 255, .08);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 700;
}
.plan-card[data-checkout-path="high-touch"] .plan-path {
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .04);
}
.checkout-panel.is-visible {
  animation: rise-in .7s var(--ease) both;
}
.plan-card h3 {
  margin: 0; font-size: 1.02rem; line-height: var(--lh-heading); letter-spacing: -.02em;
  overflow: visible;
}
.price {
  display: flex; align-items: baseline; gap: .35rem; flex-wrap: wrap;
  margin: 1.15rem 0 .2rem;
}
.price strong {
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  letter-spacing: -.025em;
}
.price span, .plan-card > small { color: var(--muted); }
.plan-card ul {
  margin: .9rem 0 1.1rem; padding-left: 1.1rem;
  min-height: 0;
  color: #a8bbb7; font-size: .8rem; line-height: 1.55;
}
.plan-card button { width: 100%; margin-top: auto; }

/* --- Start / form --- */
.start {
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(400px, .9fr);
  gap: 2rem 4rem; align-items: start;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(105, 226, 221, .1), transparent 45%),
    radial-gradient(ellipse at 100% 100%, rgba(255, 202, 111, .06), transparent 40%),
    #071116;
}
.start-copy { padding-top: .4rem; }
.start-copy > p { margin-top: 1.15rem; }
.start-copy > a {
  display: inline-block; margin-top: 1.4rem;
  color: var(--proof); font-weight: 800; text-decoration: none;
}
.start-copy > a:hover { text-decoration: underline; }
.lead-form { display: grid; gap: .95rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.lead-form label {
  display: grid; gap: .4rem;
  color: #b0c2bd; font-size: .76rem; font-weight: 750;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px;
  padding: .88rem .95rem; outline: 0;
  background: rgba(3, 8, 11, .78); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: var(--route);
  box-shadow: 0 0 0 3px rgba(105, 226, 221, .12);
}
.lead-form textarea { resize: vertical; min-height: 4.5rem; }
.lead-form select { color-scheme: dark; }
.honeypot {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important;
}
.form-submit { width: 100%; border: 0; margin-top: .15rem; }
.form-status {
  min-height: 1.25rem; margin: 0;
  color: var(--danger); font-size: .8rem; line-height: 1.5;
}
.form-status.success { color: var(--good); }
.lead-form .optional { color: var(--muted); font-weight: 500; font-size: .85em; }

/* --- Footer --- */
footer {
  width: min(var(--max), calc(100% - (2 * var(--page-inset))));
  margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 1rem 2rem;
  padding: 2.2rem 0 max(2.2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer p { margin: 0; font-size: .8rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
footer > small { grid-column: 1 / -1; font-size: .66rem; }
footer > small a { color: inherit; }
.footer-close {
  grid-column: 1 / -1;
  display: grid;
  gap: .85rem;
  padding: 1.25rem 0 .35rem;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-close p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
}
.footer-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

/* --- Success page --- */
.final-cta {
  width: min(560px, calc(100% - 40px));
  margin: clamp(4rem, 12vw, 8rem) auto;
  padding: 2rem 0;
  text-align: left;
}
.final-cta .eyebrow { margin-bottom: 1rem; }
.final-cta h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: var(--lh-display);
}
.final-cta p {
  max-width: 36rem; margin: 1.2rem 0 2rem;
  color: var(--muted); line-height: 1.6;
}
.final-cta .primary {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: .75rem 1.3rem;
  border-radius: 999px;
  color: #041210; font-weight: 800; text-decoration: none;
  background: linear-gradient(110deg, #9af5de, #69e2dd 48%, #ffca6f);
}
.post-checkout { max-width: 40rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.post-checkout h1 { max-width: none; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; margin: 0.35rem 0 0.75rem; }
.post-checkout .lede { color: rgba(255,255,255,0.78); line-height: 1.55; margin: 0 0 1.5rem; }
.post-checkout .steps { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: 0.85rem; }
.post-checkout .steps li { padding: 0.95rem 1.05rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: rgba(255,255,255,0.03); }
.post-checkout .steps strong { display: block; margin-bottom: 0.25rem; }
.post-checkout .steps span { color: rgba(255,255,255,0.68); line-height: 1.45; font-size: 0.95rem; }
.post-checkout .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.post-checkout .ghost { color: rgba(255,255,255,0.8); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); padding-bottom: 1px; }
.post-checkout .meta { margin-top: 1.75rem; font-size: 0.8rem; color: rgba(255,255,255,0.45); word-break: break-all; }

/* --- Breakpoints --- */
@media (max-width: 1440px) {
  .hero { min-height: min(780px, calc(100svh - 76px)); }
}

@media (max-width: 1200px) {
  .plan-grid-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.75rem;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  }
  .hero-copy { max-width: 40rem; }
  h1 { max-width: none; }
  .hero-stage,
  .hero-film {
    width: 100%;
    transform: none;
    animation: rise-in .8s .1s var(--ease) both;
  }
  .hero-film {
    padding: 1rem;
    border-radius: 20px;
  }
  .film-viewport {
    min-height: min(320px, 58vw);
  }
  .film-title { max-width: none; font-size: clamp(1.15rem, 4.8vw, 1.55rem); }
  .film-line { max-width: none; font-size: .9rem; }
  .film-actions { display: grid; grid-template-columns: 1fr; gap: .5rem; }
  .film-actions .button { width: 100%; }
  .operator-lanes { grid-template-columns: 1fr; }
  .lane-nodes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lane-nodes span::before { display: none; }
  .section-heading { grid-template-columns: 1fr; }
  .outcome-strip { grid-template-columns: 1fr 1fr; }
  .outcome-lead { grid-column: 1 / -1; grid-row: auto; min-height: 0; }
  .start { grid-template-columns: 1fr; gap: 1.5rem; }
  .path-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right)); }
  .site-header nav { display: none; }
  .hero, .product-film, .journey, .outcomes, .path, .sandboxes, .pricing, .start, .assurance, footer {
    width: min(100% - 32px, var(--max));
  }
  .journey-spine { left: .85rem; }
  .scene { padding-left: 2.4rem; }
  .scene::before { left: calc(.85rem - 5px); }
  .integration-lane { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lane-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assurance { grid-template-columns: 1fr; gap: 1.2rem; padding-bottom: 3.5rem; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-grid-five { grid-template-columns: 1fr; }
  .sandbox-grid { grid-template-columns: 1fr 1fr; }
  .path-steps { grid-template-columns: 1fr 1fr; }
  .path-steps li { min-height: 8.25rem; }
  .path-cta { display: grid; grid-template-columns: 1fr; }
  .path-cta .button { width: 100%; }
  .plan-card.plan-featured { box-shadow: none; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  html { scroll-padding-top: 72px; }
  .site-header { min-height: 62px; gap: .5rem; padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right)); }
  .brand img { width: 34px; height: 34px; }
  .brand-mark img { width: 34px; height: 34px; }
  .brand small { display: none; }
  .header-action { font-size: .72rem; min-height: 40px; padding-inline: .75rem; }
  .hero, .product-film, .journey, .outcomes, .path, .sandboxes, .pricing, .start, .assurance, footer {
    width: calc(100% - 28px);
  }
  .hero { padding: 1.5rem 0 2rem; gap: 1.5rem; }
  h1 { font-size: clamp(2.35rem, 11vw, 3.1rem); line-height: var(--lh-display); }
  h1.hero-wordmark-title,
  h1.hero-wordmark { font-size: clamp(1.85rem, 8.5vw, 2.55rem); }
  .wordmark-mark { width: 2.35rem; border-radius: 12px; }
  .wordmark-letters { font-size: clamp(1.7rem, 14cqi, 2.45rem); }
  .hero-lede { margin-top: 1rem; font-size: .92rem; }
  .hero-actions { display: grid; gap: .55rem; margin-top: 1.35rem; }
  .button { width: 100%; min-height: 46px; }
  .trust-line { display: grid; gap: .45rem; margin-top: 1.35rem; font-size: .8rem; }
  .hero-stage { padding: 1rem; border-radius: 20px; }
  .hero-film { padding: .85rem; }
  .film-viewport { min-height: 300px; }
  .film-copy { padding: .95rem .9rem .9rem; }
  .film-chrome { font-size: .58rem; letter-spacing: .1em; }
  .film-constellation { opacity: .78; }
  .film-type { min-height: 42px; font-size: .7rem; padding: .45rem .8rem; }
  .joey-presence { width: 120px; margin: .7rem auto .85rem; }
  .joey-core { width: 56px; }
  .joey-core b { font-size: 1.15rem; }
  .intent-demo > div { grid-template-columns: 1fr; }
  .intent-demo button { width: 100%; }
  .route-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .15rem; }
  .route-rail li { padding: .5rem .2rem; }
  .route-rail strong { font-size: .58rem; }
  .scene { padding: 2rem 0 2rem 2.2rem; }
  .scene h2 { font-size: clamp(1.65rem, 7.5vw, 2.15rem); }
  .integration-lane { grid-template-columns: 1fr 1fr; }
  .integration-lane li { min-height: 76px; padding: .9rem; }
  .outcome-strip { grid-template-columns: 1fr; gap: 1.1rem; }
  .sandbox-grid { grid-template-columns: 1fr; }
  .path-steps { grid-template-columns: 1fr; }
  .path-steps li { min-height: 0; padding: 1rem 1.05rem; }
  .outcome-lead { padding: 1.15rem !important; }
  .outcome-lead blockquote { font-size: 1.15rem; }
  .start { padding: 1.15rem; margin-bottom: 2rem; }
  .field-row { grid-template-columns: 1fr; }
  .section-heading h2, .start h2 { font-size: clamp(1.6rem, 7.5vw, 2.2rem); }
}

@media (max-width: 390px) {
  .hero, .product-film, .journey, .outcomes, .path, .sandboxes, .pricing, .start, .assurance, footer {
    width: calc(100% - 24px);
  }
  .route-rail span { display: none; }
  .scene-index { font-size: .66rem; }
}

@media (max-width: 375px) {
  h1 { font-size: 2.25rem; }
  .joey-presence { width: 100px; }
  .lane-hub { width: 88px; }
}

@media (max-width: 320px) {
  .site-header { padding-inline: 10px; }
  .hero, .product-film, .journey, .outcomes, .path, .sandboxes, .pricing, .start, .assurance, footer {
    width: calc(100% - 16px);
  }
  .header-action { padding-inline: .55rem; font-size: .68rem; }
  .hero-stage { padding: .85rem; }
  .route-rail { grid-template-columns: repeat(3, 1fr); }
  /* keep full route story visible on small phones */
  .integration-lane { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-copy, .hero-stage { animation: none; transform: none; }
  .joey-halo, .joey-spokes, .signal { animation: none; }
  .routefield { opacity: .5; }
  .scene { opacity: 1; transform: none; }
  .journey-spine { transform: none; opacity: .5; }
}

@media (forced-colors: active) {
  .hero-stage, .plan-card, .start, .gate-frame, .verify-beacon {
    border: 1px solid CanvasText;
  }
  .button-primary { color: ButtonText; background: ButtonFace; border: 1px solid ButtonText; }
}


@keyframes joey-spin { to { transform: rotate(360deg); } }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.journey-progress {
  position: sticky; top: 88px; z-index: 3;
  height: 3px; margin-bottom: -3px;
  background: rgba(255,255,255,.04);
  border-radius: 99px; overflow: hidden;
}
.journey-progress span {
  display: block; height: 100%; width: calc(var(--spine-progress, 0) * 100%);
  background: linear-gradient(90deg, var(--route), var(--proof));
  transition: width .15s linear;
}

.scene {
  position: relative;
  z-index: 2;
  max-width: 720px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3vw, 2rem) 0;
  overflow: visible;
}
.scene-adapt,
.scene-verify,
.scene-product {
  min-height: 0;
}
.scene.is-active {
  opacity: calc(0.88 + var(--scene-progress, 1) * 0.12);
  transform:
    translateY(calc(4px * (1 - var(--scene-progress, 1))))
    scale(calc(0.998 + var(--scene-progress, 1) * 0.002));
}
.scene h2,
.scene > p,
.scene-index {
  text-shadow: 0 10px 36px rgba(3, 7, 11, .92), 0 2px 8px rgba(3, 7, 11, .8);
}
.scene-context .integration-constellation,
.scene-action .operator-orbit { max-width: 640px; }

.product-reveal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line-bright);
  border-bottom: 1px solid var(--line);
}
.product-reveal figure {
  margin: 0;
  padding: clamp(1.35rem, 2.4vw, 2rem) clamp(1rem, 1.8vw, 1.5rem);
  border-right: 1px solid var(--line);
  display: grid;
  gap: .85rem;
  align-content: start;
}
.product-reveal figure:last-child { border-right: 0; }
.product-reveal span {
  color: var(--route);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.product-reveal strong {
  font-family: "Manrope", ui-sans-serif, sans-serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: var(--lh-heading);
  padding-block-end: var(--descender-tight);
  text-wrap: balance;
  overflow: visible;
}

.hero-copy {
  position: relative;
  z-index: 4;
  min-width: 0;
  max-width: min(640px, 100%);
  overflow: visible;
  padding: 1.2rem 1.2rem 1.4rem 0;
  padding-bottom: 1rem;
  text-shadow: 0 12px 40px rgba(3, 7, 11, .85);
  animation: rise-in .9s var(--ease) both;
}
.hero-stage {
  position: relative;
  z-index: 2;
  background: linear-gradient(165deg, rgba(8,22,28,.92), rgba(4,12,16,.88));
  border: 1px solid rgba(105,226,221,.18);
  box-shadow:
    0 30px 80px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.start {
  position: relative;
  overflow: visible;
}
.start::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 40%;
  width: 50%; height: 70%;
  background: radial-gradient(circle, rgba(105,226,221,.08), transparent 70%);
  pointer-events: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: auto;
    padding-top: 2rem;
  }
  .hero-copy { max-width: none; }
  .hero-stage { width: 100%; justify-self: stretch; transform: none; }
  .world-canvas { opacity: .72; }
  .integration-constellation,
  .integration-lane { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scene { min-height: 0; }
  .scene-adapt,
  .scene-verify,
  .scene-product { min-height: 0; }
  .product-reveal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-reveal figure:nth-child(2n) { border-right: 0; }
  .product-reveal figure:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 430px) {
  .world-canvas { opacity: .58; }
  .hero {
    width: calc(100% - 28px);
    gap: 1.4rem;
    padding: 1.4rem 0 2.4rem;
  }
  .hero-lede { font-size: .98rem; }
  .product-film, .journey { width: calc(100% - 28px); }
  .journey { gap: 2.4rem; }
  .scene {
    max-width: none;
    min-height: 0;
    padding: 1.35rem 0 1.35rem 2.2rem;
  }
  .scene-adapt,
  .scene-verify,
  .scene-product { min-height: 0; }
  .scene h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .film-beats { grid-template-columns: 1fr; }
  .integration-constellation { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .path-fork { gap: .45rem; }
  .gate-frame { padding: 1rem; }
  .hero-stage { padding: .9rem; border-radius: 18px; }
  .route-rail { font-size: .72rem; }
  .product-reveal { grid-template-columns: 1fr; }
  .product-reveal figure {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1.15rem 0;
  }
  .product-reveal figure:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .joey-ring, .joey-ingress { animation: none; }
  .world-canvas { opacity: .45; }
}

/* --- Route navigator + return --- */
.route-nav {
  position: fixed;
  top: 50%;
  right: max(12px, env(safe-area-inset-right));
  z-index: 40;
  transform: translateY(-50%);
  width: min(168px, 22vw);
  padding: .7rem .75rem .85rem;
  border: 1px solid rgba(105, 226, 221, .16);
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(6, 16, 20, .78), rgba(4, 10, 14, .62));
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.route-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.route-nav-label {
  margin: 0 0 .55rem;
  color: var(--route);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.route-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .2rem;
}
.route-nav a {
  display: block;
  padding: .38rem .45rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.route-nav a:hover,
.route-nav a:focus-visible {
  color: var(--text);
  background: rgba(105, 226, 221, .08);
  outline: none;
}
.route-nav a[aria-current="true"] {
  color: var(--text);
  background: rgba(105, 226, 221, .14);
  box-shadow: inset 3px 0 0 var(--route);
}
.route-nav-track {
  margin-top: .65rem;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}
.route-nav-track span {
  display: block;
  height: 100%;
  width: calc(var(--route-progress, 0) * 100%);
  background: linear-gradient(90deg, var(--route), var(--proof));
  transition: width .2s linear;
}

.return-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-grid;
  place-items: center;
  gap: .12rem;
  min-width: 56px;
  min-height: 56px;
  padding: .6rem .8rem;
  border: 1px solid rgba(105, 226, 221, .28);
  border-radius: 16px;
  background: rgba(18, 30, 40, .92);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow: visible;
}
.return-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.return-top span {
  font-size: 1rem;
  line-height: 1;
}
.return-top small {
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.return-top:focus-visible {
  outline: 2px solid var(--route);
  outline-offset: 3px;
}

/* --- Quick handle chips --- */
.quick-handle {
  margin-top: 1.55rem;
  max-width: 36rem;
}
.quick-handle > p {
  margin: 0 0 .7rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 600;
}
.quick-handle [role="group"] {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.quick-handle button {
  min-height: 40px;
  padding: .45rem .85rem;
  border: 1px solid rgba(105, 226, 221, .22);
  border-radius: 999px;
  background: rgba(8, 22, 28, .55);
  color: var(--text);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.quick-handle button:hover,
.quick-handle button:focus-visible {
  border-color: rgba(105, 226, 221, .5);
  background: rgba(105, 226, 221, .1);
  outline: none;
}
.quick-handle button[aria-pressed="true"] {
  border-color: var(--route);
  background: rgba(105, 226, 221, .16);
  box-shadow: 0 0 0 1px rgba(105, 226, 221, .2);
}
.quick-handle-echo {
  margin: .75rem 0 0;
  min-height: 1.35rem;
  color: var(--route);
  font-size: .84rem;
  line-height: 1.45;
}

.smart-disclosure {
  margin-top: 1.15rem;
  max-width: 28rem;
  border-top: 1px solid var(--line);
  padding-top: .7rem;
}
.smart-disclosure summary {
  cursor: pointer;
  color: var(--route);
  font-size: .82rem;
  font-weight: 700;
  list-style: none;
}
.smart-disclosure summary::-webkit-details-marker { display: none; }
.smart-disclosure summary:focus-visible {
  outline: 2px solid var(--route);
  outline-offset: 3px;
}
.smart-disclosure p {
  margin: .55rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .route-nav {
    display: none !important;
  }

  .brand small { display: none; }
  .brand-mark {
    width: 48px;
    height: 48px;
  }


  .film-ops-scene { display: none; }
  .film-type-dropdown { display: block; }
  .film-type-rail { display: none; }
  .film-type-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(100% + 8px);
    max-height: min(46vh, 330px);
    z-index: 1000;
    background: #061016;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .72);
  }

  .sandbox-picker { display: grid; }
  .sandbox-grid { display: none; }

  .film-viewport {
    max-height: min(42vh, 340px);
  }

  .film-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }

  .film-actions .button-primary {
    grid-column: 1 / -1;
  }

  .film-end-cta {
    margin-top: 4px;
  }

  .film-end-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  main { padding-bottom: 5.75rem; }
  .route-nav {
    width: auto;
    top: auto;
    bottom: max(78px, calc(env(safe-area-inset-bottom) + 72px));
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    transform: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .75rem;
    padding: .55rem .7rem;
    border-radius: 16px;
  }
  .route-nav-label { margin: 0; }
  .route-nav ol {
    display: flex;
    flex-wrap: nowrap;
    gap: .15rem;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .route-nav ol::-webkit-scrollbar { display: none; }
  .route-nav a {
    white-space: nowrap;
    padding: .42rem .55rem;
    font-size: .68rem;
  }
  .route-nav-track { display: none; }
}

@media (max-width: 430px) {
  .route-nav {
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px));
    padding: .45rem .5rem;
  }
  .route-nav-label { display: none; }
  .route-nav a { font-size: .64rem; padding: .4rem .48rem; }
  .return-top {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-width: 44px;
    min-height: 44px;
  }
  .return-top small { display: none; }
  .quick-handle button { min-height: 38px; font-size: .74rem; }
}

/* Vibrant map + clear offer. Scoped below the hero. Does not style .hero, .product-story, or .hero-film. */
.gradient-title {
  background-image: var(--rm-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.path .section-heading {
  margin-bottom: .55rem;
  gap: .35rem 1.4rem;
}
.path .section-heading h2 {
  font-size: clamp(1.5rem, 2.15vw, 2rem);
}
.path-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: .55rem 0 0;
  padding: 0;
  list-style: none;
  border: 0;
  background: transparent;
}
.path-map::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 6%;
  right: 6%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rm-current), var(--rm-accent-end));
  box-shadow: 0 0 12px var(--rm-glow);
}
.path-map li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: .28rem;
  min-height: 0;
  padding: 0 .15rem .2rem;
  border: 0;
  background: transparent;
  text-align: center;
}
.path-node {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rm-raised);
  border: 1px solid var(--rm-ahead);
  opacity: var(--rm-ahead-opacity);
}
.path-map li[data-stage="current"] .path-node {
  background: var(--rm-current);
  border-color: var(--rm-current);
  opacity: 1;
  box-shadow: 0 0 18px var(--rm-glow);
}
.path-map li[data-stage="current"] .path-node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--rm-current);
  box-shadow: 0 0 16px var(--rm-glow);
  animation: pathBeacon 2.4s ease-out infinite;
}
.path-map strong { color: var(--rm-text); font-size: .84rem; line-height: 1.2; }
.path-map p { color: var(--rm-muted); font-size: .74rem; line-height: 1.28; }
.path-cta { margin: .65rem 0 0; }
.path-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: .15rem 0 0;
  padding: 0;
  list-style: none;
}
.path-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rm-text);
  font-size: .82rem;
  font-weight: 700;
}
.path-legend li::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.path-legend li[data-tone="done"]::before { background: var(--rm-done); }
.path-legend li[data-tone="current"]::before { background: var(--rm-current); box-shadow: 0 0 8px var(--rm-glow); }
.path-legend li[data-tone="needs"]::before { background: var(--rm-needs); }
.path-legend li[data-tone="blocked"]::before { background: var(--rm-blocked); }
.path-legend li[data-tone="ahead"]::before { background: var(--rm-ahead); opacity: var(--rm-ahead-opacity); }

.offer-assurance {
  margin: 1.25rem 0 0;
  color: var(--rm-text);
  font-size: 1.05rem;
  font-weight: 750;
}
.offer-faq {
  margin-top: .75rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
}
.offer-faq .section-heading {
  margin-bottom: .2rem;
  gap: .2rem 1.2rem;
}
.offer-faq .section-heading h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.7rem);
}
.offer-faq .eyebrow { color: var(--rm-night); }
.founder-promise {
  margin: 0;
  color: var(--rm-text);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
}
.faq-list {
  display: grid;
  gap: 8px;
  margin: .55rem 0 0;
}
.faq-list details {
  padding: 4px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 229, 216, .18);
  background: var(--rm-card);
}
.faq-list summary {
  color: var(--rm-text);
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.faq-list summary:focus-visible {
  outline: 2px solid var(--rm-current);
  outline-offset: 3px;
}
.faq-list details p {
  margin: .45rem 0 0;
  color: var(--rm-muted);
  font-size: .95rem;
  line-height: 1.5;
}
.faq-list a { color: var(--rm-current); }

@media (max-width: 900px) {
  .path-map { grid-template-columns: 1fr; gap: 8px; padding-left: 0; }
  .path-map::before {
    top: 8px;
    bottom: 8px;
    left: 14px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, var(--rm-current), var(--rm-accent-end));
  }
  .path-map li {
    grid-template-columns: 32px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
    padding: 0;
    gap: .15rem .55rem;
  }
  .path-map p { grid-column: 2; }
}

@media (max-width: 768px) {
  .plan-grid-three {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .path-map li[data-stage="current"] .path-node::after { animation: none; }
}

@keyframes pathBeacon {
  0% { transform: scale(.92); opacity: .95; }
  80% { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
