/* ==========================================================================
   PAVE — design system
   Brand tokens are fixed (PRODUCT.md). Motion follows the Emil rules:
   custom ease-out, transform/opacity only, press feedback, hover gated,
   reduced-motion keeps opacity but drops movement.
   ========================================================================== */

:root {
  /* brand (fixed) */
  --pave-accent: #e3c183;
  --pave-ochre: #b98c56;
  --pave-background: #191a20;
  --pave-panel: #292931;
  --pave-muted: #cdc4b5;
  --pave-text: #ffffff;
  --pave-font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;

  /* derived */
  --bg: var(--pave-background);
  --bg-deep: #101116;
  --panel: var(--pave-panel);
  --panel-2: #22232a;
  --ink: var(--pave-text);
  --muted: var(--pave-muted);
  --dim: #a8a298;
  --accent: var(--pave-accent);
  --ochre: var(--pave-ochre);
  --line: rgba(227, 193, 131, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --glow: rgba(227, 193, 131, 0.14);

  --font: var(--pave-font-family);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* layout */
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1352px;
  --nav-h: 68px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }
.h-xl { font-size: clamp(2.8rem, 1.2rem + 6.4vw, 6.6rem); letter-spacing: -0.04em; font-weight: 600; }
.h-lg { font-size: clamp(2.1rem, 1.2rem + 3.4vw, 4rem); }
.h-md { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.12; }
.h-sm { font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1.25; font-weight: 600; }
.lede { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.4rem); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--accent); color: var(--bg); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.22); color: var(--ink); }
.btn .arr { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #efd2a0; }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn:hover .arr { transform: translateX(3px); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 250ms ease, border-color 250ms ease, backdrop-filter 250ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(25, 26, 32, 0.78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line-soft); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0.16em; font-size: 0.95rem; }
.brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}
.nav__links a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
.nav__cta { display: none; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-soft); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; transition: transform 160ms var(--ease-out); }
.nav__toggle:active { transform: scale(0.95); }
.nav__toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 240ms var(--ease-out), opacity 160ms ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .nav__cta { display: inline-flex; --h: 40px; padding: 0 18px; font-size: 0.92rem; } }
@media (max-width: 899px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 28px; background: rgba(25, 26, 32, 0.96); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s 200ms;
  }
  .nav__links a { padding: 14px 8px; font-size: 1.25rem; border-radius: var(--r-sm); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav.is-open { background: rgba(25, 26, 32, 0.96); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--panel { background: var(--bg-deep); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); max-width: 780px; }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* page header (inner pages) */
.page-head { position: relative; padding: calc(var(--nav-h) + clamp(64px, 12vw, 160px)) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.page-head__bg { position: absolute; inset: 0; z-index: -2; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(25, 26, 32, 0.35) 0%, var(--bg) 96%), radial-gradient(70% 90% at 15% 40%, rgba(25, 26, 32, 0.75), transparent 70%); }
.page-head .h-xl { max-width: 14ch; margin-top: 20px; }
.page-head .lede { margin-top: 28px; }

/* ---------- reveal ---------- */
.page-head [data-reveal] { animation: rise 700ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- grids / cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: transform 260ms var(--ease-out), border-color 260ms ease;
}
.card p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.card .num { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.04em; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-3px); border-color: var(--line); } }
.card--link { cursor: pointer; }
.card__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card__go svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card__go svg { transform: translateX(4px); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line-soft); }
.stat { padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px); display: grid; gap: 8px; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__v { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.8rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat__v small { font-size: 0.8rem; letter-spacing: 0; color: var(--accent); margin-left: 6px; font-weight: 500; }
.stat__k { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
@media (max-width: 860px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); } }
.sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
@media (max-width: 860px) { .sticky { position: static; } }

/* ---------- lists ---------- */
.rows > li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.rows > li:last-child { border-bottom: 1px solid var(--line-soft); }
.rows .k { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.rows .v { color: var(--muted); }
.rows .v strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .rows > li { grid-template-columns: 1fr; gap: 6px; } }

.ticks li { position: relative; padding-left: 22px; color: var(--muted); }
.ticks li + li { margin-top: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 1px; background: var(--accent); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: clamp(56px, 8vw, 110px) 0 36px; background: var(--bg-deep); }
.cta-band { display: grid; gap: 28px; justify-items: start; padding-bottom: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line-soft); margin-bottom: 48px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a, .footer li { color: var(--muted); font-size: 0.97rem; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--accent); } }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; color: var(--dim); font-size: 0.85rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ==========================================================================
   HOME — title card
   ========================================================================== */
.hero { position: relative; height: 100svh; min-height: 640px; display: grid; align-items: end; overflow: hidden; isolation: isolate; background: radial-gradient(120% 80% at 50% 110%, #2a2733 0%, var(--bg) 55%, var(--bg-deep) 100%); }
.hero canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, transparent 62%, var(--bg-deep) 100%), radial-gradient(90% 70% at 50% 45%, transparent 55%, rgba(16, 17, 22, 0.55) 100%); }

.worlds { position: absolute; inset: 0; z-index: 0; }
.world {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  will-change: transform;
}
.world__in { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  opacity: 0; transform: scale(0.92); filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 120px -30px rgba(0, 0, 0, 0.8);
}
.world__in img { width: 112%; height: 112%; margin: -6%; max-width: none; object-fit: cover; }
.world__in::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, transparent 38%, rgba(8, 8, 12, 0.62) 100%); }
.is-ready .world__in { opacity: var(--o, 1); transform: none; filter: none; transition: opacity 1100ms var(--ease-out), transform 1400ms var(--ease-out), filter 1100ms var(--ease-out); transition-delay: calc(0.15s + var(--i) * 140ms); }
.world__tag { display: none; position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); opacity: 0; white-space: nowrap; transition: opacity 800ms ease 1.6s; }
.is-ready .world__tag { opacity: 0.8; }

.world--venus   { --x: 6%;  --y: 34%; --s: clamp(180px, 25vw, 380px); --halo: rgba(226, 150, 60, 0.35); }
.world--mars    { --x: 33%;  --y: 24%; --s: clamp(70px, 9vw, 130px);  --halo: rgba(200, 110, 60, 0.35); --o: 0.95; }
.world--jupiter { --x: 90%;  --y: 58%; --s: clamp(230px, 34vw, 520px); --halo: rgba(220, 160, 110, 0.3); }
.world--neptune { --x: 68%;  --y: 20%; --s: clamp(80px, 10vw, 150px); --halo: rgba(80, 130, 230, 0.4); --o: 0.95; }
@media (max-width: 720px) {
  .world--venus { --x: 6%; --y: 62%; }
  .world--jupiter { --x: 98%; --y: 44%; }
  .world--mars { --x: 22%; --y: 18%; }
  .world--neptune { --x: 80%; --y: 14%; }
  .world__tag { display: none; }
}

.hero__stage { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + 16px); padding-bottom: clamp(24px, 3.5vw, 48px); display: grid; gap: clamp(16px, 2.4vw, 32px); }
.hero__center { display: grid; justify-items: center; align-content: end; gap: 0; min-height: min(38svh, 480px); position: relative; }
.title { display: flex; font-size: min(clamp(4.5rem, 1rem + 22vw, 22rem), 30svh); font-weight: 700; letter-spacing: -0.045em; line-height: 0.82; color: var(--ink); margin: 0; user-select: none; }
.title .ch { display: block; overflow: hidden; padding: 0.04em 0.012em 0.08em; margin: -0.04em -0.012em -0.08em; }
.title .ch > span { display: block; transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: calc(0.45s + var(--i) * 70ms); }
.is-ready .title .ch > span { transform: none; }

.aerobot { position: relative; width: clamp(96px, 12vw, 176px); margin-bottom: clamp(-26px, -1.6vw, -8px); z-index: 2; will-change: transform; }
.aerobot__in { opacity: 0; transform: translateY(60px); transition: opacity 900ms var(--ease-out) 1.1s, transform 1600ms var(--ease-out) 1.1s; }
.is-ready .aerobot__in { opacity: 1; transform: none; }
.aerobot svg { width: 100%; height: auto; overflow: visible; }
.aerobot .bob { animation: bob 7s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.aerobot .bal { transform-box: fill-box; transform-origin: 50% 50%; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.62); } 50% { transform: scale(0.95); } }

.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.hero__copy { display: grid; gap: 16px; max-width: 540px; }
.hero__copy .tag { font-size: clamp(1.6rem, 1rem + 1.9vw, 2.6rem); font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
.hero__copy p:not(.tag) { color: var(--muted); max-width: 46ch; font-size: 1rem; }
.hero__copy::before { content: ""; position: absolute; inset: -48px -72px -36px -72px; z-index: -1; background: radial-gradient(closest-side, rgba(16, 17, 22, 0.92) 55%, transparent); pointer-events: none; }
.hero__copy { position: relative; isolation: isolate; }
.hero__copy, .hero__scroll { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease-out) 1.5s, transform 800ms var(--ease-out) 1.5s; }
.is-ready .hero__copy, .is-ready .hero__scroll { opacity: 1; transform: none; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { display: grid; justify-items: end; gap: 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__scroll .line { width: 1px; height: 64px; background: linear-gradient(var(--accent), transparent); transform-origin: top; animation: cue 2.4s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 720px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__center { min-height: 50svh; }
}

/* ==========================================================================
   HOME — altitude journey (scroll-linked)
   ========================================================================== */
.journey { position: relative; height: 640vh; background: #0b0c12; }
.journey__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -3; }
.sky__ground { position: absolute; inset: 0; background: linear-gradient(180deg, #243a5c 0%, #5d86b8 45%, #c9d8e6 100%); opacity: var(--sky-ground, 1); }
.sky__space { position: absolute; inset: 0; background: linear-gradient(180deg, #05060a 0%, #0b1022 50%, #17284a 100%); opacity: var(--sky-space, 0); }
.sky__photo { position: absolute; inset: -4%; opacity: var(--sky-photo, 0); will-change: transform, opacity; }
.sky__photo img { width: 100%; height: 100%; object-fit: cover; }
.sky__tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 14, 0.92) 0%, rgba(8, 9, 14, 0.6) 38%, rgba(8, 9, 14, 0.1) 70%); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--stars, 0); }
.clouds { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: var(--clouds, 1); }
.cloud { position: absolute; left: var(--cx); top: calc(var(--cy) + var(--cloud-shift, 0px)); width: var(--cw); height: calc(var(--cw) * 0.28); border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); filter: blur(10px); will-change: transform; }

.journey__grid { height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 4vw, 64px); align-items: center; padding-top: var(--nav-h); }
.journey__copy { position: relative; min-height: 340px; }
.jstep { position: absolute; left: 0; right: 0; top: 50%; display: grid; gap: 16px; opacity: 0; transform: translateY(calc(-50% + 18px)); pointer-events: none; transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.jstep.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.jstep .ph { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; gap: 10px; align-items: center; }
.jstep .ph b { font-weight: 500; color: var(--muted); }
.jstep h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); letter-spacing: -0.035em; }
.jstep p { color: #dbd5c9; max-width: 42ch; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }

.journey__scene { position: relative; align-self: stretch; display: grid; place-items: end center; min-height: 0; padding-bottom: 7svh; }
.scene { width: 100%; max-height: 66svh; overflow: visible; }
.scene .ln { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.scene .ln-soft { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.scene .body { fill: #1b1c23; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.scene .env { fill: rgba(240, 232, 214, 0.09); stroke: #efe4cb; stroke-width: 2; vector-effect: non-scaling-stroke; }
.scene .balloonet { fill: rgba(227, 193, 131, 0.28); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.scene text { font-family: var(--mono); font-size: 11px; fill: #ece5d6; letter-spacing: 0.08em; paint-order: stroke; stroke: rgba(8, 9, 14, 0.75); stroke-width: 3px; stroke-linejoin: round; }
.scene .lbl { opacity: var(--lbl, 1); }

.hud { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 20px); z-index: 4; display: grid; gap: 14px; min-width: 190px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(14, 15, 21, 0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-soft); }
.hud__row { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.hud__k { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.hud__v { font-size: 1.05rem; color: var(--ink); }
.hud__v em { font-style: normal; font-size: 0.7em; color: var(--accent); margin-left: 4px; }
.hud__rule { height: 1px; background: var(--line-soft); }
.hud__test { display: grid; gap: 14px; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 420ms var(--ease-out), opacity 300ms var(--ease-out); }
.hud.is-test .hud__test { max-height: 160px; opacity: 1; }

.ruler { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; z-index: 4; display: none; pointer-events: none; }
.ruler__track { position: absolute; left: calc(var(--gutter) / 2); top: calc(var(--nav-h) + 28px); bottom: 28px; width: 1px; background: var(--line); }
.ruler__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.ruler__dot { position: absolute; left: -4px; top: calc(var(--p, 0) * 100%); width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(227, 193, 131, 0.18); }
@media (min-width: 1100px) { .ruler { display: block; } }

@media (max-width: 860px) {
  .journey { height: 560vh; }
  .journey__grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 50%) minmax(0, 50%); align-items: stretch; padding-top: calc(var(--nav-h) + 84px); }
  .journey__scene { order: -1; }
  .scene { max-height: 100%; }
  .journey__scene { padding-bottom: 2svh; }
  .journey__copy { min-height: 0; }
  .sky__tint { background: linear-gradient(0deg, rgba(8, 9, 14, 0.9) 0%, rgba(8, 9, 14, 0.4) 55%, transparent 100%); }
  .hud { top: auto; bottom: auto; position: absolute; right: var(--gutter); left: var(--gutter); top: calc(var(--nav-h) + 6px); grid-template-columns: repeat(3, auto); justify-content: space-between; min-width: 0; padding: 10px 14px; gap: 10px 18px; }
  .hud__row { flex-direction: column; gap: 2px; }
  .hud__rule, .hud__test { display: none; }
  .hud__v { font-size: 0.92rem; }
  .jstep { top: 0; transform: translateY(18px); }
  .jstep.is-on { transform: none; }
  .jstep h2 { font-size: 2.1rem; }
  .jstep p { font-size: 0.97rem; }
}

/* ==========================================================================
   Planet cards / mission
   ========================================================================== */
.planet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.planet { position: relative; display: grid; gap: 18px; justify-items: center; text-align: center; }
.planet__disc { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05); transition: transform 500ms var(--ease-out); }
.planet__disc img { width: 112%; height: 112%; margin: -6%; max-width: none; object-fit: cover; }
.planet__disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, transparent 38%, rgba(8, 8, 12, 0.55) 100%); }
@media (hover: hover) and (pointer: fine) { .planet:hover .planet__disc { transform: scale(1.03) rotate(-3deg); } }
.planet h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.planet p { color: var(--muted); font-size: 0.92rem; max-width: 24ch; }
@media (max-width: 860px) { .planet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; } }

.compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.compare > div { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--line-soft); background: var(--panel-2); }
.compare > div:first-child { border-left: 0; }
.compare > .is-pave { background: linear-gradient(180deg, rgba(227, 193, 131, 0.13), rgba(227, 193, 131, 0.03)); }
.compare h3 { font-size: 1.3rem; }
.compare p { color: var(--muted); font-size: 0.97rem; }
.compare p strong { color: var(--ink); font-weight: 600; }
.compare .is-pave h3 { color: var(--accent); }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare > div { border-left: 0; border-top: 1px solid var(--line-soft); } .compare > div:first-child { border-top: 0; } }

.objective { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--line-soft); }
.objective:last-child { border-bottom: 1px solid var(--line-soft); }
.objective .n { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); padding-top: 4px; }
.objective h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 8px; }
.objective p { color: var(--muted); }

.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.75); background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); }

/* ==========================================================================
   Technology — explorer
   ========================================================================== */
.lab { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(16px, 2.4vw, 32px); }
.lab__view { position: relative; background: radial-gradient(90% 80% at 60% 30%, #23242d 0%, #17181e 70%); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(12px, 2vw, 28px); overflow: hidden; touch-action: pan-y; }
.lab__view svg { width: 100%; height: auto; overflow: visible; }
.lab__panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); display: grid; gap: 26px; align-content: start; }
.slider { display: grid; gap: 14px; }
.slider__top { display: flex; justify-content: space-between; align-items: baseline; }
.slider label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.slider output { font-family: var(--mono); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.slider output em { font-style: normal; font-size: 0.6em; color: var(--accent); margin-left: 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: grab; touch-action: pan-y; margin: 0; }
input[type="range"]:active { cursor: grabbing; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), rgba(255, 255, 255, 0.14) var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); transition: box-shadow 200ms var(--ease-out), transform 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 0; }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(0.94); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(255, 255, 255, 0.14); }
.readouts { display: grid; gap: 0; }
.readouts > div { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line-soft); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.readouts dt { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.readouts dd { margin: 0; font-size: 1.02rem; }
.readouts dd em { font-style: normal; font-size: 0.72em; color: var(--accent); margin-left: 4px; }
.lab__hint { font-size: 0.86rem; color: var(--dim); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-soft); background: transparent; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: transform 160ms var(--ease-out), border-color 200ms, background-color 200ms; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: rgba(227, 193, 131, 0.14); border-color: var(--accent); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--accent); } }
@media (max-width: 900px) { .lab { grid-template-columns: 1fr; } }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 18px 16px 18px 0; border-top: 1px solid var(--line-soft); vertical-align: top; }
.table th { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border-top: 0; padding-bottom: 12px; }
.table td:first-child { color: var(--ink); font-weight: 600; width: 28%; }
.table td { color: var(--muted); font-size: 0.97rem; }
.table td.mono { color: var(--accent); font-size: 0.86rem; white-space: nowrap; }
@media (min-width: 701px) { .table th:nth-child(2), .table td:nth-child(2) { padding-right: clamp(40px, 6vw, 88px); } }
.table tr:last-child td { border-bottom: 1px solid var(--line-soft); }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table tr { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
  .table td { padding: 0; border: 0 !important; width: auto !important; }
}

.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(227, 193, 131, 0.12); color: var(--accent); }
.status--open { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* ==========================================================================
   Flight — timeline + profile
   ========================================================================== */
.profile-bar { display: grid; grid-template-columns: 1.5fr 1fr 0.5fr; gap: 6px; }
.profile-bar > div { padding: 18px 20px 20px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line-soft); display: grid; gap: 4px; position: relative; overflow: hidden; }
.profile-bar .t { font-family: var(--mono); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.profile-bar .t small { font-size: 0.8rem; color: var(--accent); margin-left: 4px; }
.profile-bar .k { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 640px) { .profile-bar { grid-template-columns: 1fr; } }

.timeline { position: relative; display: grid; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0; padding: 22px 0; }
.tl__t { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); letter-spacing: 0.02em; padding-right: 28px; text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl__b { position: relative; padding-left: 36px; display: grid; gap: 8px; }
.tl__b::before { content: ""; position: absolute; left: -5px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); transition: background-color 300ms ease, box-shadow 300ms ease; }
.tl__b::before { background: var(--accent); }
.tl h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.tl p { color: var(--muted); max-width: 62ch; }
.tl--float h3 { color: var(--accent); }
@media (max-width: 640px) {
  .timeline::before { left: 5px; }
  .tl { grid-template-columns: 1fr; padding-left: 0; }
  .tl__t { text-align: left; padding: 0 0 6px 36px; }
  .tl__b { padding-left: 36px; }
  .tl__b::before { left: 0; top: -22px; }
}

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.facts > div { background: var(--panel-2); padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 6px; align-content: start; }
.facts .v { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.facts .v small { font-size: 0.8rem; color: var(--accent); margin-left: 6px; letter-spacing: 0; }
.facts .k { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ==========================================================================
   Team
   ========================================================================== */
.area { display: grid; gap: 14px; }
.area__h { display: flex; align-items: center; gap: 12px; }
.area__ic { display: inline-flex; color: var(--accent); }
.area__ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: ph; }
.phase { padding: 28px 0 0; border-top: 1px solid var(--accent); display: grid; gap: 14px; align-content: start; }
.phase h3 { font-size: 1.4rem; }
@media (max-width: 860px) { .phases { grid-template-columns: 1fr; } }

.contact { background: radial-gradient(80% 140% at 85% 0%, rgba(227, 193, 131, 0.16), transparent 60%), var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 80px); display: grid; gap: 28px; justify-items: start; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-head [data-reveal] { animation-name: fade; }
  @keyframes fade { from { opacity: 0; } }
  .world__in, .title .ch > span, .aerobot__in, .hero__copy, .hero__scroll { transform: none !important; filter: none !important; }
  .aerobot .bob, .aerobot .bal, .hero__scroll .line { animation: none; }
  .aerobot .bal { transform: scale(0.8); }
  .jstep { transform: translateY(-50%); }
  .jstep.is-on { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) { .jstep, .jstep.is-on { transform: none; } }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 160ms var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 260ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- misc additions ---------- */
.stack { display: block; }
.page-head__bg--planet { overflow: hidden; }
.page-head__bg--planet > div { position: absolute; right: -6%; top: 50%; width: min(78vw, 860px); aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; overflow: hidden; opacity: 0.85; }
.page-head__bg--planet img { width: 112%; height: 112%; margin: -6%; max-width: none; opacity: 1; object-fit: cover; }
.page-head__bg--planet > div::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, transparent 38%, rgba(8, 8, 12, 0.6) 100%); }
.footer .btn--solid, .footer .btn--solid:hover { color: var(--bg); }
.phase p strong { color: var(--ink); font-weight: 600; }
