/* Northstar landing — flow v1
   Design intent: fewer boxes, more air. Structure is carried by whitespace,
   hairlines, curves and scroll motion instead of a repeated card recipe. */

:root {
  color-scheme: light;

  /* ink + neutrals — one cool gray family */
  --ink: #14212f;
  --ink-soft: #43596e;
  --muted: #74879a;
  --muted-light: #9aaaba;

  /* single accent */
  --accent: #3d9ad6;
  --accent-deep: #1f6f9f;
  --accent-wash: #e9f4fc;

  --line: rgba(76, 132, 170, 0.16);
  --line-soft: rgba(76, 132, 170, 0.09);
  --page: #f6fafc;

  /* tinted shadows — one light source, from above */
  --lift-sm: 0 8px 24px -12px rgba(30, 78, 110, 0.28);
  --lift-md: 0 24px 56px -28px rgba(30, 78, 110, 0.42);
  --lift-lg: 0 60px 120px -50px rgba(30, 78, 110, 0.55);

  --shell: min(1280px, calc(100vw - 56px));
  --shell-wide: min(1440px, calc(100vw - 40px));

  --display: "Bricolage Grotesque", sans-serif;
  --editorial: "Instrument Serif", serif;
  --body: "Plus Jakarta Sans", sans-serif;
  --mono: "DM Mono", monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.3, 0.5, 1);

  --z-ambient: -1;
  --z-base: 1;
  --z-raised: 10;
  --z-header: 50;
  --z-skip: 100;
}

[data-feature="build-plan"][hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--body);
  background: linear-gradient(180deg, #fbfdfe 0%, #f4f9fc 45%, #f7fbfd 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.042em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── ambient background: drifting light, no hard edges ─────────────── */

.ambient {
  position: fixed;
  z-index: var(--z-ambient);
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-a {
  top: -14vh;
  left: -8vw;
  width: 52vw;
  height: 52vw;
  background: radial-gradient(circle, rgba(140, 199, 255, 0.42), transparent 68%);
}

.orb-b {
  top: 26vh;
  right: -14vw;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(186, 226, 255, 0.5), transparent 66%);
}

.orb-c {
  bottom: -18vh;
  left: 22vw;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(206, 234, 250, 0.44), transparent 70%);
}

/* fine grain so the flat areas do not read as plastic */
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.22'/%3E%3C/svg%3E");
}

.skip-link {
  position: fixed;
  z-index: var(--z-skip);
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── header ────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  z-index: var(--z-header);
  top: 16px;
  display: flex;
  width: min(900px, calc(100vw - 40px));
  min-height: 52px;
  margin: 12px auto 0;
  padding: 5px 8px 5px 11px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 17px;
  background: rgba(252, 254, 255, 0.6);
  box-shadow: var(--lift-sm);
  backdrop-filter: blur(20px) saturate(140%);
  transition: background 260ms var(--ease-out), box-shadow 260ms var(--ease-out),
    width 320ms var(--ease-out), min-height 320ms var(--ease-out);
}

.site-header.scrolled {
  width: min(820px, calc(100vw - 40px));
  min-height: 50px;
  background: rgba(252, 254, 255, 0.86);
  box-shadow: var(--lift-md);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.wordmark-mark {
  position: relative;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  overflow: hidden;
  border-radius: 50% 50% 50% 14px;
  background: linear-gradient(150deg, #5fb2e6, var(--accent-deep));
  box-shadow: 0 8px 18px -8px rgba(31, 111, 159, 0.7);
  transition: transform 420ms var(--ease-spring), border-radius 420ms var(--ease-spring);
}

.wordmark:hover .wordmark-mark {
  border-radius: 14px 50% 50% 50%;
  transform: rotate(-8deg);
}

.wordmark-mark::before,
.wordmark-mark::after,
.wordmark-mark i::before,
.wordmark-mark i::after {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  content: "";
  background: #fff;
  box-shadow: 0 0 7px rgba(255, 255, 255, 0.75);
}

.wordmark-mark::before { top: 6px; left: 11px; }
.wordmark-mark::after { top: 11px; left: 7px; }
.wordmark-mark i::before { right: 6px; bottom: 7px; }
.wordmark-mark i::after { bottom: 4px; left: 9px; }

.desktop-nav {
  display: flex;
  gap: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 6px 9px;
  border-radius: 999px;
  transition: color 200ms var(--ease-out), background 200ms var(--ease-out);
}

.desktop-nav a:hover {
  color: var(--accent-deep);
  background: rgba(61, 154, 214, 0.09);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-status,
.mobile-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mobile-status {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 260ms var(--ease-spring), box-shadow 260ms var(--ease-out),
    background 200ms var(--ease-out);
}

.button span {
  transition: transform 300ms var(--ease-spring);
}

.button:hover span {
  transform: translate(2px, -2px);
}

.button:active {
  transform: translateY(1px) scale(0.985);
}

.button-small {
  min-height: 44px;
  padding-inline: 20px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 10px 22px -12px rgba(20, 33, 47, 0.9);
}

.button-small:hover {
  background: #1d2f42;
  box-shadow: 0 16px 30px -14px rgba(20, 33, 47, 0.95);
  transform: translateY(-2px);
}

.waitlist-header-button {
  min-height: 40px;
  padding-inline: 17px;
  color: #fff;
  font-size: 12px;
}

.button-primary {
  min-height: 58px;
  padding-inline: 30px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 40px -18px rgba(20, 33, 47, 0.85);
}

.button-primary:hover {
  background: #1d2f42;
  box-shadow: 0 26px 54px -20px rgba(20, 33, 47, 0.9);
  transform: translateY(-3px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent-wash);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 260ms var(--ease-out);
}

.menu-button[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* ── shared section furniture ──────────────────────────────────────── */

.hero,
.ticker,
.thesis,
.workflow,
.control,
.principles {
  width: var(--shell);
  margin-inline: auto;
}

.thesis { padding-top: 150px; }
.workflow { padding-top: 170px; }
.control { padding-top: 180px; }
.principles { padding-top: clamp(240px, 18vw, 300px); padding-bottom: 40px; }

.section-kicker {
  display: flex;
  margin-bottom: 34px;
  align-items: center;
  gap: 14px;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-kicker b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-deep);
  background: var(--accent-wash);
  font-size: 10px;
  font-weight: 500;
}

.section-kicker i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* asymmetric heading: statement left, support offset right and lower */
.section-head {
  display: grid;
  margin-bottom: 76px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 48px;
}

.section-head h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 700;
  line-height: 1.03;
}

.section-head-aside {
  padding-bottom: 10px;
}

.section-head-aside p {
  max-width: 42ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.eyebrow,
.eyebrow-small {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 9px 16px 9px 13px;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), var(--lift-sm);
  backdrop-filter: blur(12px);
}

.eyebrow-small {
  margin: 0;
  color: var(--accent-deep);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34b48d;
}

.status-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
  background: #34b48d;
  animation: pulse-ring 2.6s var(--ease-out) infinite;
}

@keyframes pulse-ring {
  0% { opacity: 0.5; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(3.4); }
}

.inline-link {
  display: inline-flex;
  padding: 12px 2px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: color 200ms var(--ease-out);
}

.inline-link span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-wash);
  font-size: 12px;
  transition: transform 340ms var(--ease-spring), background 200ms var(--ease-out);
}

.inline-link:hover {
  color: var(--accent-deep);
}

.inline-link:hover span {
  background: rgba(61, 154, 214, 0.22);
  transform: translateY(3px);
}

/* ── hero ──────────────────────────────────────────────────────────── */

.hero {
  padding-top: 0;
  text-align: center;
}

.hero-copy {
  position: relative;
  display: grid;
  min-height: calc(100svh - 220px);
  padding: 108px 0 138px;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  isolation: isolate;
}

.hero-copy::before {
  position: absolute;
  z-index: -1;
  width: min(920px, 82vw);
  height: min(480px, 56vh);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.96) 0 23%, transparent 63%),
    radial-gradient(circle at 26% 55%, rgba(101, 187, 236, 0.18), transparent 56%),
    radial-gradient(circle at 74% 40%, rgba(161, 211, 240, 0.15), transparent 54%);
  content: "";
  filter: blur(10px);
  transform: translateY(-3%);
}

.hero h1 {
  display: grid;
  max-width: 16ch;
  margin: 0 0 44px;
  font-size: clamp(52px, 6.5vw, 104px);
  font-weight: 720;
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.hero-title-line,
.hero-title-accent {
  display: block;
  opacity: 0;
  transform: translateY(34px);
  animation: hero-line-rise 900ms var(--ease-out) forwards;
}

.hero-title-line:first-child {
  animation-delay: 100ms;
}

.hero-title-accent {
  margin: 0.06em 0 0.12em;
  color: var(--accent-deep);
  font-family: var(--editorial);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.84;
  animation-delay: 180ms;
}

.hero-title-line:last-child {
  animation-delay: 260ms;
}

@keyframes hero-line-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-lede {
  max-width: 52ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  margin-top: 38px;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* animated scroll cue: the chevron falls on a loop, the ring breathes */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.scroll-cue-text {
  transition: color 200ms var(--ease-out);
}

.scroll-cue-ring {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.92), var(--lift-sm);
  transition: background 240ms var(--ease-out), transform 320ms var(--ease-spring);
}

.scroll-cue-ring::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 1px rgba(61, 154, 214, 0.45);
  animation: cue-halo 2.8s var(--ease-out) infinite;
}

.scroll-cue-ring i {
  display: block;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  border-radius: 0 0 2px 0;
  animation: cue-drop 1.9s var(--ease-out) infinite;
}

@keyframes cue-drop {
  0% { opacity: 0; transform: translateY(-7px) rotate(45deg); }
  25%, 65% { opacity: 1; }
  100% { opacity: 0; transform: translateY(7px) rotate(45deg); }
}

@keyframes cue-halo {
  0% { opacity: 0.85; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.55); }
}

.scroll-cue:hover .scroll-cue-text {
  color: var(--accent-deep);
}

.scroll-cue:hover .scroll-cue-ring {
  background: var(--accent-wash);
  transform: translateY(3px);
}

.hero-note {
  display: flex;
  margin: 42px 0 0;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-note i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* stage: the screenshot floats on light, no frame around a frame */
.stage {
  display: grid;
  margin-top: 24px;
  grid-template-columns: minmax(0, 1120px);
  align-items: start;
  justify-content: center;
  gap: 28px;
}

.stage-shot {
  position: relative;
  width: 100%;
  perspective: 1600px;
}

.stage-shot::after {
  position: absolute;
  z-index: -1;
  right: 6%;
  bottom: -8%;
  left: 6%;
  height: 55%;
  content: "";
  border-radius: 50%;
  background: rgba(93, 168, 224, 0.34);
  filter: blur(60px);
}

/* matches the 1.79 ratio of the profile and calendar captures, so the two
   most-shown screens sit in the frame with no side crop */
.screen-stack {
  position: relative;
  aspect-ratio: 1.79;
  overflow: hidden;
  border-radius: 30px;
  background: #eef7fc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), var(--lift-lg);
  /* driven by a rAF lerp in landing.js — no CSS transition, or it would lag */
  transform: perspective(1600px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg))
    translate3d(0, var(--py, 0px), 0) scale(var(--settle, 1));
  transform-style: preserve-3d;
  will-change: transform;
}

.screen-card {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 620ms var(--ease-out), transform 900ms var(--ease-out);
  pointer-events: none;
}

.screen-card.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.screen-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* rail: plain text steps, active one draws a progress line — not a tab bar */
.stage-rail {
  display: grid;
  width: min(100%, 980px);
  margin-inline: auto;
  padding-top: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rail-step {
  display: grid;
  padding: 18px 16px 20px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 300ms var(--ease-out);
}

.rail-step:hover {
  background: rgba(255, 255, 255, 0.6);
}

.rail-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(116, 135, 154, 0.1);
  font-family: var(--mono);
  font-size: 10px;
  transition: color 300ms var(--ease-out), background 300ms var(--ease-out),
    transform 420ms var(--ease-spring);
}

.rail-step.is-active .rail-index {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px -8px rgba(61, 154, 214, 0.9);
  transform: scale(1.08);
}

.rail-text {
  display: grid;
  gap: 4px;
}

.rail-text b {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 300ms var(--ease-out);
}

.rail-step.is-active .rail-text b {
  color: var(--ink);
}

.rail-text small {
  max-width: 26ch;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}

.rail-step.is-active .rail-text small {
  opacity: 1;
  transform: translateY(0);
}

.rail-track {
  display: block;
  height: 2px;
  margin-top: 14px;
  overflow: hidden;
  grid-column: 2;
  border-radius: 999px;
  background: var(--line-soft);
}

.rail-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.stage.is-running .rail-step.is-active .rail-track i {
  animation: rail-progress 5.8s linear;
}

@keyframes rail-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ── ticker: replaces the boxed outcome strip ───────────────────────── */

.ticker {
  margin-top: 96px;
}

.ticker-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-window {
  overflow: hidden;
  padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 38s linear infinite;
  will-change: transform;
}

.ticker-window:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  to { transform: translateX(-50%); }
}

.ticker-set {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
}

.ticker-set b {
  font-family: var(--display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 620;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.ticker-set b:nth-child(4n + 1) {
  color: var(--accent-deep);
}

.ticker-set i {
  display: block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(61, 154, 214, 0.32);
}

/* ── thesis / the shift ────────────────────────────────────────────── */

.focus-line {
  display: flex;
  margin-top: 18px !important;
  align-items: center;
  gap: 10px;
  color: var(--accent-deep) !important;
  font-family: var(--mono);
  font-size: 12px !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.focus-line span {
  font-size: 17px;
}

/* One panel, two states. The switch flips the same three lines between the
   old way and the Northstar way — the surface itself warms up on the change. */
.swap {
  width: min(1020px, 100%);
  margin-inline: auto;
}

.swap-switch {
  position: relative;
  display: grid;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 5px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), var(--lift-sm);
  backdrop-filter: blur(14px);
}

.swap-thumb {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--muted);
  box-shadow: 0 10px 22px -12px rgba(20, 33, 47, 0.7);
  transition: transform 520ms var(--ease-spring), background 420ms var(--ease-out);
}

.swap[data-state="after"] .swap-thumb {
  background: var(--accent-deep);
  transform: translateX(100%);
}

.swap-switch button {
  position: relative;
  z-index: var(--z-base);
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: color 300ms var(--ease-out);
}

.swap-switch button[aria-selected="true"] {
  color: #fff;
}

/* One card in two states: shape and depth never change, only the tint does. */
.swap-panel {
  display: grid;
  padding: clamp(32px, 3.6vw, 52px) clamp(28px, 3.6vw, 56px) clamp(36px, 4vw, 58px);
  border-radius: 34px;
  background:
    radial-gradient(110% 120% at 88% 4%, rgba(140, 199, 255, 0), transparent 62%),
    rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.88), var(--lift-md);
  transition: background 650ms var(--ease-out);
}

.swap[data-state="after"] .swap-panel {
  background:
    radial-gradient(110% 120% at 88% 4%, rgba(140, 199, 255, 0.32), transparent 62%),
    rgba(255, 255, 255, 0.76);
}

/* both states share one grid cell, so the panel never jumps height */
.swap-state {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 4vw, 64px);
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
  transition: opacity 460ms var(--ease-out), transform 560ms var(--ease-out),
    filter 460ms var(--ease-out);
  pointer-events: none;
}

.swap-state.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}

.swap-state h3 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 680;
  line-height: 1.08;
}

.swap-state[data-swap-state="before"] h3 {
  color: var(--ink-soft);
}

.swap-state ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 4px;
  list-style: none;
}

.swap-state li {
  display: flex;
  padding: 15px 0;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line-soft);
  font-size: 16px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms var(--ease-out) calc(var(--i) * 90ms + 150ms),
    transform 600ms var(--ease-out) calc(var(--i) * 90ms + 150ms);
}

.swap-state li:first-child {
  border-top: 0;
}

.swap-state.is-active li {
  opacity: 1;
  transform: translateY(0);
}

.swap-state li::before {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  content: "×";
  color: var(--muted);
  background: rgba(116, 135, 154, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.swap-state[data-swap-state="before"] li {
  color: var(--muted);
}

.swap-state[data-swap-state="after"] li {
  color: var(--ink);
  font-weight: 600;
}

.swap-state[data-swap-state="after"] li::before {
  content: "✓";
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 16px -8px rgba(61, 154, 214, 0.9);
  font-size: 11px;
}

/* ── workflow: alternating rows on a drawn spine ────────────────────── */

.flow {
  position: relative;
  display: grid;
  gap: clamp(160px, 14vw, 220px);
}

.flow-spine {
  position: absolute;
  z-index: 0;
  top: 40px;
  left: 50%;
  width: min(58%, 640px);
  height: calc(100% - 80px);
  color: var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}

.flow-spine-live {
  color: var(--accent);
  opacity: 0.85;
}

.flow-step {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
}

.flow-step.is-reversed {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.flow-step.is-reversed .flow-copy {
  order: 2;
}

.flow-step.is-reversed .flow-shot {
  order: 1;
}

.flow-index {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.flow-index span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 26px -12px rgba(61, 154, 214, 0.95);
  font-size: 11px;
}

.flow-copy h3 {
  max-width: 13ch;
  margin: 0 0 16px;
  font-size: clamp(30px, 3.3vw, 50px);
  font-weight: 700;
  line-height: 1.04;
}

.flow-copy > p:last-child {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.74;
}

.flow-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #eef7fc;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), var(--lift-lg);
  transform: translate3d(0, var(--py, 0px), 0);
  transition: box-shadow 700ms var(--ease-out);
}

.flow-shot::after {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(190deg, rgba(255, 255, 255, 0.28), transparent 42%);
  pointer-events: none;
}

/* Natural ratio and no base zoom — the product UI is never cropped.
   (A forced 1.62 box plus scale(1.02) was cutting the edges off every shot.) */
.flow-shot img {
  width: 100%;
  height: auto;
  transition: transform 900ms var(--ease-out);
}

.flow-shot:hover img {
  transform: scale(1.03);
}

/* images bleed past the text column so the grid never reads as a box row */
.flow-step:not(.is-reversed) .flow-shot {
  margin-right: clamp(-64px, -3.5vw, 0px);
}

.flow-step.is-reversed .flow-shot {
  margin-left: clamp(-64px, -3.5vw, 0px);
}

/* ── control ───────────────────────────────────────────────────────── */

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.control-copy h2 {
  max-width: 14ch;
  margin: 0 0 20px;
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 700;
  line-height: 1.03;
}

.control-copy > p {
  max-width: 44ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.control-rail {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-mode {
  position: relative;
  display: grid;
  padding: 26px 8px 26px 34px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line-soft);
  transition: padding-left 340ms var(--ease-out);
}

.control-mode:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.control-mode:hover {
  padding-left: 44px;
}

/* the rail line the dots sit on */
.control-mode::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 1px;
  content: "";
  background: var(--line-soft);
}

.control-mode:first-child::before { top: 50%; }
.control-mode:last-child::before { bottom: 50%; }

.mode-dot {
  position: relative;
  z-index: var(--z-base);
  display: block;
  width: 11px;
  height: 11px;
  margin-left: -28px;
  border-radius: 50%;
  background: #34b48d;
  box-shadow: 0 0 0 5px rgba(52, 180, 141, 0.14);
}

.mode-dot::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
  background: inherit;
  animation: pulse-ring 3s var(--ease-out) infinite;
}

.mode-amber .mode-dot {
  background: #dd9a33;
  box-shadow: 0 0 0 5px rgba(221, 154, 51, 0.14);
}

.mode-amber .mode-dot::after { animation-delay: 0.5s; }

.mode-gray .mode-dot {
  background: #7e8d9c;
  box-shadow: 0 0 0 5px rgba(126, 141, 156, 0.14);
}

.mode-gray .mode-dot::after { animation-delay: 1s; }

.mode-text {
  display: grid;
  gap: 6px;
}

.mode-text small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mode-text b {
  font-size: 16px;
  font-weight: 650;
}

.mode-count {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

/* ── principles: editorial rows, not three cards ────────────────────── */

.principles .section-head {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  margin-bottom: 40px;
}

.principle-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principle-list li {
  position: relative;
  display: grid;
  padding: 44px 0;
  grid-template-columns: 80px minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: baseline;
  gap: 32px;
  border-top: 1px solid var(--line-soft);
  transition: padding-left 420ms var(--ease-out);
}

.principle-list li:last-child {
  border-bottom: 1px solid var(--line-soft);
}

.principle-list li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  width: 3px;
  content: "";
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.3);
  transform-origin: center;
  transition: opacity 380ms var(--ease-out), transform 420ms var(--ease-out);
}

.principle-list li:hover {
  padding-left: 18px;
}

.principle-list li:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.principle-index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.principle-list h3 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 660;
}

.principle-list p {
  max-width: 46ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
}

/* ── closing: full-bleed arc, image bleeding out of the curve ───────── */

.closing {
  position: relative;
  margin-top: 96px;
  padding: clamp(76px, 8vw, 124px) 0 clamp(56px, 6vw, 88px);
  overflow: hidden;
  border-radius: clamp(60px, 14vw, 200px) clamp(60px, 14vw, 200px) 0 0;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(255, 255, 255, 0.9), transparent 58%),
    radial-gradient(70% 90% at 78% 22%, rgba(140, 199, 255, 0.36), transparent 62%),
    linear-gradient(180deg, #eaf4fb 0%, #f4fafd 62%, #f7fbfd 100%);
  text-align: center;
}

.closing::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
}

.closing-inner {
  display: grid;
  width: var(--shell);
  margin-inline: auto;
  justify-items: center;
}

.closing-inner .eyebrow {
  justify-self: center;
}

.closing h2 {
  margin: 0 0 22px;
  font-size: clamp(44px, 5.6vw, 86px);
  font-weight: 720;
  line-height: 0.99;
}

.closing h2 em {
  color: var(--accent-deep);
  font-style: normal;
}

/* the CTA is feature-flagged, so its spacing lives on the button, not the lede */
.closing-lede {
  max-width: 38ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.72;
}

.closing .button-primary {
  flex: 0 0 auto;
  min-height: 56px;
  white-space: nowrap;
}

.waitlist-form {
  position: relative;
  width: min(660px, 100%);
  margin-top: 38px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.94), var(--lift-md);
  text-align: left;
  backdrop-filter: blur(16px) saturate(130%);
}

.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.waitlist-field {
  display: grid;
  gap: 10px;
}

.waitlist-field > label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.waitlist-input-row {
  display: flex;
  gap: 10px;
}

.waitlist-input-row input {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(76, 132, 170, 0.24);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(251, 253, 254, 0.94);
  font: 500 15px/1 var(--body);
  outline: 0;
  box-shadow: inset 0 1px 2px rgba(30, 78, 110, 0.05);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
    background 200ms var(--ease-out);
}

.waitlist-input-row input::placeholder {
  color: #6d8194;
}

.waitlist-input-row input:hover {
  border-color: rgba(31, 111, 159, 0.42);
  background: #fbfdfe;
}

.waitlist-input-row input:focus {
  border-color: var(--accent-deep);
  background: #fbfdfe;
  box-shadow: 0 0 0 4px rgba(61, 154, 214, 0.16);
}

.waitlist-input-row input:user-invalid {
  border-color: #b44949;
  box-shadow: 0 0 0 4px rgba(180, 73, 73, 0.12);
}

.waitlist-input-row .button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.waitlist-help,
.waitlist-error {
  margin: 0;
  padding-left: 4px;
  font-size: 12px;
  line-height: 1.5;
}

.waitlist-help {
  color: #5f7387;
}

.waitlist-error {
  color: #9f3434;
  font-weight: 650;
}

.waitlist-error[hidden],
.waitlist-success[hidden] {
  display: none;
}

.waitlist-success {
  display: grid;
  width: min(660px, 100%);
  margin-top: 38px;
  padding: 24px 28px;
  gap: 5px;
  border-radius: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.94), var(--lift-md);
  text-align: left;
}

.waitlist-success strong {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.025em;
}

.waitlist-success span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ── footer ────────────────────────────────────────────────────────── */

.site-footer {
  display: flex;
  width: var(--shell);
  min-height: 96px;
  margin-inline: auto;
  padding: 24px 0 30px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #f4fafd 0%, #eaf3f9 100%);
}

.site-footer small {
  color: var(--muted-light);
  font-size: 12px;
}

.site-footer small a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 180ms var(--ease-out), text-decoration-color 180ms var(--ease-out);
}

.site-footer small a:hover,
.site-footer small a:focus-visible {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ── scroll reveal ─────────────────────────────────────────────────── */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 800ms var(--ease-out) calc(var(--d, 0) * 90ms),
    transform 900ms var(--ease-out) calc(var(--d, 0) * 90ms),
    filter 800ms var(--ease-out) calc(var(--d, 0) * 90ms);
  filter: blur(6px);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* parallax elements own their transform, so they reveal on opacity + blur only */
.reveal-ready [data-reveal][data-parallax],
.reveal-ready [data-reveal][data-parallax].is-visible {
  transform: translate3d(0, var(--py, 0px), 0);
}

/* ── responsive ────────────────────────────────────────────────────── */

@media (max-width: 1180px) {
  :root {
    --shell: min(100% - 40px, 1000px);
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .stage-rail {
    display: grid;
    padding-top: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .rail-step {
    padding: 14px;
  }

  .rail-text small {
    display: none;
  }

  .flow-spine {
    display: none;
  }

  .flow-step,
  .flow-step.is-reversed {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .flow-step.is-reversed .flow-copy { order: 1; }
  .flow-step.is-reversed .flow-shot { order: 2; }

  .flow-step .flow-shot,
  .flow-step.is-reversed .flow-shot {
    margin-inline: 0;
  }

  .control-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .principle-list li {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px 22px;
  }

  .principle-list p {
    grid-column: 2;
  }
}

@media (max-width: 780px) {
  :root {
    --shell: calc(100% - 28px);
    --shell-wide: calc(100vw - 20px);
  }

  .site-header {
    top: 10px;
    min-height: 50px;
    margin-top: 10px;
    padding: 5px 6px 5px 10px;
    border-radius: 16px;
  }

  .site-header.scrolled {
    width: calc(100vw - 20px);
  }

  .desktop-nav {
    display: none;
  }

  .nav-status {
    display: none;
  }

  .waitlist-header-button {
    display: none;
  }

  .menu-button {
    display: block;
    width: 38px;
    height: 38px;
  }

  .mobile-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    padding: 12px;
    gap: 4px;
    border-radius: 26px;
    background: rgba(252, 254, 255, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), var(--lift-md);
    backdrop-filter: blur(22px);
  }

  .mobile-nav.open {
    display: grid;
    animation: nav-drop 320ms var(--ease-out);
  }

  @keyframes nav-drop {
    from { opacity: 0; transform: translateY(-8px); }
  }

  .mobile-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
  }

  .mobile-nav a:hover {
    background: var(--accent-wash);
  }

  .mobile-status {
    display: inline-flex;
    padding: 10px 14px 8px;
  }

  .hero {
    padding-top: 0;
  }

  .hero-copy {
    min-height: calc(100svh - 180px);
    padding: 78px 0 96px;
  }

  .hero h1 {
    max-width: 12ch;
    margin-bottom: 28px;
    font-size: clamp(40px, 12vw, 62px);
  }

  .hero-copy::before {
    width: 110vw;
    height: 54vh;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-note {
    margin-top: 30px;
    flex-wrap: wrap;
  }

  .stage {
    margin-top: 46px;
  }

  .screen-stack {
    aspect-ratio: 1.42;
    border-radius: 22px;
  }

  .screen-card img {
    object-position: top left;
  }

  .stage-rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail-step {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .rail-track {
    margin-top: 10px;
  }

  .ticker {
    margin-top: 66px;
  }

  .thesis { padding-top: 96px; }
  .workflow { padding-top: 104px; }
  .control { padding-top: 104px; }
  .principles { padding-top: 156px; }

  .section-head {
    margin-bottom: 44px;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .section-head h2,
  .principles .section-head {
    max-width: none;
  }

  .principles .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head-aside {
    padding-bottom: 0;
  }

  .swap-switch {
    width: 100%;
    margin-bottom: 26px;
  }

  .swap-switch button {
    padding: 0 10px;
    font-size: 13px;
  }

  .swap-panel {
    border-radius: 26px;
  }

  .swap-state {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .swap-state h3 {
    max-width: none;
  }

  .flow {
    gap: 104px;
  }

  .flow-copy h3,
  .section-head h2,
  .control-copy h2 {
    max-width: none;
  }

  .flow-shot {
    border-radius: 24px;
  }

  .control-mode {
    padding: 22px 4px 22px 30px;
  }

  .principle-list li {
    padding: 30px 0;
  }

  .closing {
    margin-top: 100px;
    border-radius: 44px 44px 0 0;
  }

  .waitlist-form {
    padding: 18px;
    border-radius: 24px;
  }

  .waitlist-input-row {
    display: grid;
  }

  .waitlist-input-row .button {
    width: 100%;
  }

  .site-footer {
    min-height: 84px;
    padding: 20px 0 24px;
  }
}

@media (max-width: 480px) {
  .wordmark {
    font-size: 17px;
  }

  .button-small span {
    display: none;
  }

  .hero-note {
    display: none;
  }

  .ticker-set b {
    font-size: 26px;
  }

  .principle-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .principle-list p {
    grid-column: 1;
  }

  .principle-index {
    display: block;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-title-line,
  .hero-title-accent {
    opacity: 1;
    transform: none;
  }

  .ticker-track {
    animation: none;
  }
}
