/* ============================================================
   Pipeline Pilots — styles
   Design system: see DESIGN.md ("Literary journal beside a bonfire")
   ============================================================ */

:root {
  --color-parchment: #fefffc;
  --color-paper: #ffffff;
  --color-linen: #f9faf7;
  --color-ink: #171717;
  --color-graphite: #2c2c2c;
  --color-charcoal: #444141;
  --color-ash: #646464;
  --color-fog: #b4b8b4;
  --color-mist: #dee2de;
  --color-twilight: #282834;
  --color-dusk: #1f1f29;
  --color-signal: #41a1cf;
  --color-cerulean: #0081c0;

  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --shadow-pill: rgba(0, 0, 0, 0.15) 0px 2px 6px 0px;
  --shadow-card: rgba(0, 0, 0, 0.08) 0px 1px 1px 0px, rgba(0, 0, 0, 0.08) 0px 4px 5px 0px;
  --shadow-fig: rgba(0, 0, 0, 0.05) 0px 1px 8px 0px;

  --page-max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-parchment);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #d5e9f3; color: var(--color-ink); }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 0;
  color: var(--color-graphite);
  line-height: 1.1;
}

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

:focus-visible {
  outline: 2px solid var(--color-signal);
  outline-offset: 3px;
  border-radius: 2px;
}

[id] { scroll-margin-top: 110px; }

/* ---------- type scale (stepped down 2026-08-26 for readability) ---------- */
.display    { font-size: 48px; letter-spacing: -0.02em; }
.heading-lg { font-size: 41px; letter-spacing: -0.02em; }
.heading    { font-size: 34px; letter-spacing: -0.02em; }
.heading-sm { font-size: 24px; letter-spacing: -0.03em; line-height: 1.35; }
.body-lg    { font-size: 18px; line-height: 1.55; }
.body-sm    { font-size: 15px; letter-spacing: -0.01em; }
.caption    { font-size: 13px; letter-spacing: -0.01em; }
.muted      { color: var(--color-ash); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 9px 10px 9px 16px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.btn:active { transform: translateY(1px); }

.arrow-chip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 1px solid currentColor;
  transition: transform 0.25s ease;
}
.arrow-chip svg { width: 11px; height: 11px; display: block; }
.btn:hover .arrow-chip { transform: translateX(3px); }

.btn--signal { border-color: var(--color-signal); color: var(--color-signal); }
.btn--signal:hover { background: rgba(65, 161, 207, 0.06); }

.btn--outline { border-color: var(--color-twilight); color: var(--color-twilight); }
.btn--outline:hover { background: rgba(40, 40, 52, 0.04); }

.btn--fill {
  background: var(--color-dusk);
  border-color: var(--color-twilight);
  color: #ffffff;
}
.btn--fill:hover { background: #2a2a38; }
.btn--fill .arrow-chip { background: #ffffff; border-color: #ffffff; color: var(--color-dusk); }

/* glass chip — for CTAs living on frosted surfaces (the nav pill).
   No backdrop-filter of its own: the pill already blurs the sky. */
.btn--glass {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(255, 255, 255, 0.78);
  color: var(--color-graphite);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.74); }

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-charcoal);
  transition: color 0.2s ease;
}
.ghost-link:hover { color: var(--color-ink); }
.ghost-link:hover .arrow-chip { transform: translateX(3px); }

.underline-link {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.underline-link:hover { color: var(--color-signal); }

/* ============================================================
   Navigation pill
   ============================================================ */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-pill);
}

.nav-links { display: flex; align-items: center; padding-left: 6px; }

.nav-link {
  color: var(--color-graphite);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 20px;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--color-ink); background: rgba(40, 40, 52, 0.07); }

/* inside the fully-rounded pill, the chip goes fully rounded too —
   the one radius exception beyond the pill itself */
.nav .btn--glass { margin-left: 6px; border-radius: 50px; padding-left: 18px; }

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(40, 40, 52, 0.14);
  background: rgba(255, 255, 255, 0.38);
  color: var(--color-twilight);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger svg { width: 15px; height: 15px; display: block; }

.nav-drawer {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  z-index: 99;
  background: var(--color-paper);
  border: 1px solid var(--color-mist);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 8px;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav-drawer a {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-graphite);
}
.nav-drawer a:hover { background: var(--color-linen); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--color-parchment);
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-scene svg { width: 100%; height: 100%; display: block; }

/* --- time-of-day palettes (set via data-tod on .hero; TOWER click toggles) --- */
.hero[data-tod="day"],
.sky-band[data-tod="day"] {
  --sky1: #2e95d0; --sky2: #4fa9db; --sky3: #93cbe9; --sky4: #d9ecf6;
  --sun: #ffffff; --sun-op: 0; --stars-op: 0;
  --t1: #ffffff; --t2: #f3f7f0; --t3: #c9dded; --t4: #9fc0dd; --t5: #7fa3c9;
  --f1: #eef7fc; --f2: #cfe4f3; --f3: #aac9e4;
}
.hero[data-tod="dusk"],
.sky-band[data-tod="dusk"] {
  --sky1: #111d45; --sky2: #253b74; --sky3: #5b6fae; --sky4: #e2b4cb;
  --sun: #e592c0; --sun-op: 1; --stars-op: 1;
  --t1: #faeef1; --t2: #dfd6e9; --t3: #a9a2cd; --t4: #7a7bab; --t5: #565d8f;
  --f1: #e7dcec; --f2: #bdb3d6; --f3: #948fbc;
}

/* scene element hooks */
.sc-sun { opacity: var(--sun-op); }
.sc-stars { opacity: var(--stars-op, 0); }
@keyframes star-a { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes star-b { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.star-a { animation: star-a 4.4s steps(1) infinite; }
.star-b { animation: star-b 6.2s steps(1) infinite; }
.t1 { fill: var(--t1); }
.t2 { fill: var(--t2); }
.t3 { fill: var(--t3); }
.t4 { fill: var(--t4); }
.t5 { fill: var(--t5); }
.f1 { fill: var(--f1); }
.f2 { fill: var(--f2); }
.f3 { fill: var(--f3); }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-1440px); }
}
.drift--far  { animation: drift 260s linear infinite; }
.drift--mid  { animation: drift 190s linear infinite; }
.drift--near { animation: drift 130s linear infinite; }

@keyframes prop-a { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes prop-b { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.prop-a { animation: prop-a 0.16s steps(1) infinite; }
.prop-b { animation: prop-b 0.16s steps(1) infinite; }

@keyframes flag-wave {
  0%    { transform: translateY(0); }
  12.5% { transform: translateY(calc(var(--amp, 2) * -0.71px)); }
  25%   { transform: translateY(calc(var(--amp, 2) * -1px)); }
  37.5% { transform: translateY(calc(var(--amp, 2) * -0.71px)); }
  50%   { transform: translateY(0); }
  62.5% { transform: translateY(calc(var(--amp, 2) * 0.71px)); }
  75%   { transform: translateY(calc(var(--amp, 2) * 1px)); }
  87.5% { transform: translateY(calc(var(--amp, 2) * 0.71px)); }
  100%  { transform: translateY(0); }
}
.flag-slice { animation: flag-wave 1.6s linear infinite; }

@keyframes fly-main {
  from { transform: translate(-400px, 342px) scale(1.18); }
  to   { transform: translate(1780px, 272px) scale(1.18); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.sc-plane--main { animation: fly-main 105s linear infinite; animation-delay: -42s; }
.sc-bob { animation: bob 6s ease-in-out infinite; }
.sc-bob--slow { animation: bob 8.5s ease-in-out infinite; }

/* hero foreground UI */
.hero-clock {
  position: absolute;
  top: 30px;
  right: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  padding: 4px 2px;
}
.sun-toggle { display: inline-flex; align-items: center; }
.sun-toggle svg { width: 16px; height: 16px; display: block; }
.hero[data-tod="day"] .icon-sunset { display: none; }
.hero[data-tod="dusk"] .icon-sun { display: none; }
.hero-clock:hover .sun-toggle { transform: scale(1.12); }
.sun-toggle { transition: transform 0.2s ease; }

/* frosted glass card, per the GIC hero overlay — the sky reads through it */
.hero-card {
  position: absolute;
  left: 44px;
  bottom: 44px;
  width: 724px;
  max-width: calc(100% - 48px);
  border-radius: 24px;
  padding: 44px;
  background: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.hero-card h1 {
  color: var(--color-graphite);
  font-size: 50px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-card p {
  color: var(--color-charcoal);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 26px;
}
.hero-card .ghost-link { color: var(--color-graphite); font-size: 16px; }

/* ============================================================
   Sections
   ============================================================ */
.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 120px 32px 0;
}

.section--white {
  max-width: none;
  background: var(--color-paper);
  border-top: 1px solid var(--color-mist);
  border-bottom: 1px solid var(--color-mist);
}
/* closing the page: the footer supplies the only hairline into its white band */
.section--white .section-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px 32px;
}

/* sky band — the closing CTA section wears the hero's sky */
.section--sky {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky1), var(--sky2) 38%, var(--sky3) 72%, var(--sky4) 100%);
}
.section--sky::before {           /* parchment mist in from the fit section */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 210px;
  background: linear-gradient(180deg, var(--color-parchment), rgba(254, 255, 252, 0));
  pointer-events: none;
  z-index: 1;
}
.section--sky::after {            /* white mist out into the footer */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 165px;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
  pointer-events: none;
  z-index: 1;
}
.section--sky .section-inner {
  position: relative;
  z-index: 2;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 155px 32px 140px;
}
.msky { position: absolute; inset: 0; z-index: 0; }
.mcloud { position: absolute; display: block; }
.mcloud--1 { top: 52px; left: 4%; }
.mcloud--2 { top: 96px; right: 5%; }
.mcloud--3 { bottom: 16%; left: -24px; }
.mcloud--4 { bottom: -14px; right: -30px; }
.sky-band[data-tod="dusk"] .market-glass { background: rgba(255, 255, 255, 0.58); }
.sky-band[data-tod="dusk"] .market-panel { background: rgba(255, 255, 255, 0.55); }

/* the glass card — hero-card material by day; milkier at dusk so the
   dark text keeps reading (nav-pill precedent: opacity tracks the backdrop) */
.market-glass {
  background: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  backdrop-filter: blur(20px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  padding: 60px 52px;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

/* vision — pixel plane left (forms pixel-by-pixel), statements right */
.vision { position: relative; padding-bottom: 40px; }
.vision-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}
.vision-art svg { width: 100%; height: auto; display: block; }
.vision-copy .statement { margin-bottom: 44px; }
.vision-copy .statement:last-child { margin-bottom: 0; }
.vision-copy .heading-lg { font-size: 34px; }
.vision-copy .heading { font-size: 27px; }

/* running engine: two alternating frames + rising exhaust puffs */
@keyframes eng-a { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes eng-b { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.eng-a { animation: eng-a 0.6s steps(1) infinite; }
.eng-b { animation: eng-b 0.6s steps(1) infinite; }
@keyframes eng-puff {
  0% { opacity: 0; transform: translateY(8px); }
  25% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-14px); }
}
.eng-puff { animation: eng-puff 2.4s linear infinite; }
@keyframes eng-fire {
  0%, 14% { opacity: 1; }
  28%, 100% { opacity: 0; }
}
.eng-fire { animation: eng-fire 1.5s linear infinite; }
.eng-disc { opacity: 0.16; }
@keyframes eng-blade {
  0%, 24% { opacity: 0.75; }
  25%, 100% { opacity: 0; }
}
.eng-blade { animation: eng-blade 0.36s steps(1) infinite; }

/* pixel-assembly: rects pop in one by one when .formed lands (delays inlined per rect) */
.px-assemble rect { opacity: 0; }
.px-assemble.formed rect {
  animation-name: px-pop;
  animation-duration: 0.01s;
  animation-timing-function: steps(1);
  animation-fill-mode: forwards;
}
@keyframes px-pop { to { opacity: 1; } }

/* instruments */
.instr-lead { max-width: 860px; margin-bottom: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.chip {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-charcoal);
  background: var(--color-paper);
  border: 1px solid var(--color-mist);
  border-radius: 8px;
  padding: 9px 14px;
  box-shadow: var(--shadow-fig);
}
.instr-coda { max-width: 700px; margin-bottom: 90px; }
.instr-coda em { font-style: italic; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.split-copy h3 { margin-bottom: 16px; }
.split-copy p { color: var(--color-ash); font-size: 16px; max-width: 460px; margin-bottom: 14px; }
.fig-caption {
  font-size: 13px;
  color: var(--color-ash);
  margin-top: 22px;
}
.fig-caption .fig-no { font-weight: 600; color: var(--color-charcoal); }

.fig-card {
  background: var(--color-paper);
  border: 1px solid var(--color-mist);
  border-radius: 16px;
  box-shadow: var(--shadow-fig);
  padding: 24px;
}
.fig-card svg { width: 100%; height: auto; display: block; }

/* see your market */
.market-inner h2 { max-width: 720px; margin: 0 auto 22px; }
.market-sub {
  color: var(--color-ash);
  font-size: 17px;
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 40px;
}
.market-form { display: flex; gap: 14px; max-width: 620px; margin: 0 auto; }
.market-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--color-charcoal);
  background: var(--color-linen);
  border: none;
  border-bottom: 1px solid var(--color-charcoal);
  border-radius: 0;
  padding: 12px 14px;
}
.market-input::placeholder { color: var(--color-fog); }
.market-input:focus { outline: none; border-bottom-color: var(--color-signal); }

.market-panel {
  margin-top: 44px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  padding: 36px 40px;
}
.market-panel.open { animation: panel-in 0.5s ease both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
}
.market-for { font-size: 16px; color: var(--color-charcoal); margin-bottom: 10px; }
.market-for strong { color: var(--color-ink); font-weight: 600; }
.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}
.market-stat { border-top: 1px solid rgba(255, 255, 255, 0.7); padding: 20px 0 28px; }
.market-stat .label { font-size: 15px; color: var(--color-ash); margin-bottom: 12px; }
.market-stat .value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-feature-settings: "liga" 0;
  font-size: 47px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-signal);
}
.market-note { font-size: 16px; color: var(--color-charcoal); margin: 6px 0 10px; }
.market-fine { font-size: 13px; color: var(--color-ash); max-width: 640px; margin: 0 auto 28px; }

/* free market teardown — the section's CTA */
.teardown {
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding-top: 34px;
}
.teardown-head { color: var(--color-graphite); margin-bottom: 16px; }
.teardown-copy {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-ash);
  max-width: 640px;
  margin: 0 auto 28px;
}
.teardown-copy strong { color: var(--color-ink); font-weight: 600; }
.teardown-form { display: flex; gap: 14px; max-width: 560px; margin: 0 auto; }
.teardown-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  color: var(--color-charcoal);
  background: var(--color-paper);
  border: none;
  border-bottom: 1px solid var(--color-charcoal);
  border-radius: 0;
  padding: 12px 14px;
}
.teardown-input::placeholder { color: var(--color-fog); }
.teardown-input:focus { outline: none; border-bottom-color: var(--color-signal); }
.teardown-done {
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-charcoal);
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 0;
}
.teardown-fine { font-size: 13px; color: var(--color-ash); margin-top: 18px; }

/* choose your airspeed — sends/day slider, volume → what it takes */
.airspeed-head { max-width: 780px; margin-bottom: 26px; }
.airspeed-head p { color: var(--color-ash); font-size: 16px; max-width: 560px; margin-top: 14px; }

.airspeed-card {
  background: var(--color-paper);
  border: 1px solid var(--color-mist);
  border-radius: 16px;
  box-shadow: var(--shadow-fig);
  padding: 36px 40px 30px;
  margin-bottom: 20px;
}
.airspeed-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.airspeed-big .label { font-size: 15px; color: var(--color-ash); margin-bottom: 10px; }
.airspeed-big .value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-feature-settings: "liga" 0;
  font-size: 47px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-signal);
}
.airspeed-big .value small { font-size: 22px; color: var(--color-fog); letter-spacing: -0.01em; }
.airspeed-big--right { text-align: right; }

.airspeed-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  background: transparent;
  cursor: pointer;
}
.airspeed-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--color-mist);
  border-radius: 1px;
}
.airspeed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 1.5px solid var(--color-signal);
  box-shadow: var(--shadow-fig);
  margin-top: -10px;
}
.airspeed-slider::-moz-range-track {
  height: 2px;
  background: var(--color-mist);
  border-radius: 1px;
}
.airspeed-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-paper);
  border: 1.5px solid var(--color-signal);
  box-shadow: var(--shadow-fig);
}
.airspeed-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-ash);
  margin-top: 6px;
}

.airspeed-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 44px;
  margin-top: 28px;
}
.airspeed-stats .calc-stat { border-top: 1px solid var(--color-mist); padding: 18px 0 4px; }
.calc-stat .label { font-size: 15px; color: var(--color-ash); margin-bottom: 10px; }
.calc-stat .value {
  font-family: var(--font-serif);
  font-weight: 400;
  font-feature-settings: "liga" 0;
  font-size: 33px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-signal);
}
.airspeed-fine { font-size: 13px; color: var(--color-ash); max-width: 680px; }

@media (max-width: 700px) {
  .airspeed-card { padding: 24px 22px 22px; }
  .airspeed-big .value { font-size: 36px; }
  .airspeed-big--right { text-align: left; }
  .airspeed-stats { grid-template-columns: 1fr; gap: 0; }
}

/* who we work with — long-form fit manifesto */
.fit { padding-bottom: 40px; }
.fit h2 { max-width: 760px; margin-bottom: 40px; }
.fit-flow { max-width: 660px; }
.fit-flow p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-feature-settings: "liga" 0;
  font-size: 21px;
  letter-spacing: -0.02em;
  line-height: 1.55;
  color: var(--color-charcoal);
  margin-bottom: 30px;
}
.fit-flow em { font-style: italic; color: var(--color-graphite); }
.fit-ctas {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-paper);
  border-top: 1px solid var(--color-mist);
  padding: 96px 32px 40px;
}
.footer-inner { max-width: var(--page-max); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.footer-about { font-size: 15px; color: var(--color-ash); max-width: 300px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: 15px; color: var(--color-charcoal); width: fit-content; }
.footer-nav a:hover { color: var(--color-signal); }

.newsletter-label { font-size: 15px; font-weight: 500; color: var(--color-graphite); margin-bottom: 14px; }
.newsletter-form { display: flex; gap: 10px; align-items: stretch; }
.newsletter-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-charcoal);
  background: var(--color-linen);
  border: none;
  border-bottom: 1px solid var(--color-charcoal);
  border-radius: 0;
  padding: 12px 12px 11px;
}
.newsletter-input::placeholder { color: var(--color-fog); }
.newsletter-input:focus { outline: none; border-bottom-color: var(--color-signal); }
.newsletter-btn {
  flex: none;
  width: 42px;
  border: 1px solid var(--color-twilight);
  background: var(--color-dusk);
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.newsletter-btn svg { width: 14px; height: 14px; }
.newsletter-btn:hover { background: #2a2a38; }
.newsletter-done { font-size: 15px; color: var(--color-charcoal); padding: 12px 0; }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--color-mist);
  padding-top: 26px;
  font-size: 13px;
  color: var(--color-ash);
  flex-wrap: wrap;
}
.footer-base-links { display: flex; gap: 22px; }
.footer-base-links a:hover { color: var(--color-signal); }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  background: var(--color-paper);
  border: 1px solid var(--color-mist);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--color-charcoal);
  max-width: 440px;
}
.cookie-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.cookie-actions .divider { color: var(--color-fog); }
.cookie-btn {
  border: none;
  background: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-charcoal);
  cursor: pointer;
  padding: 2px;
}
.cookie-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.cookie.hidden { display: none; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .display { font-size: 40px; }
  .heading-lg { font-size: 36px; }
  .heading { font-size: 30px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vision-grid { grid-template-columns: 1fr; gap: 40px; }
  .vision-art { max-width: 440px; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

@media (max-width: 700px) {
  .hero-clock { display: none; }

  .display { font-size: 33px; }
  .heading-lg { font-size: 29px; }
  .heading { font-size: 26px; }
  .heading-sm { font-size: 21px; }

  .section { padding: 84px 22px 0; }
  .section--white .section-inner { padding: 84px 22px; }
  .section--sky .section-inner { padding: 105px 22px 92px; }
  .market-glass { padding: 36px 24px; }
  .mcloud--1, .mcloud--3 { display: none; }

  .hero-card { left: 20px; bottom: 140px; padding: 28px; width: auto; right: 20px; }
  .hero-card h1 { font-size: 34px; }
  .hero-card p { font-size: 16px; }

  .fit { padding-bottom: 30px; }
  .fit-flow p { font-size: 18px; }

  .market-form { flex-direction: column; }
  .market-panel { padding: 24px 22px; }
  .market-grid { grid-template-columns: 1fr; gap: 0; }
  .market-stat .value { font-size: 36px; }
  .teardown { padding-top: 26px; }
  .teardown-form { flex-direction: column; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .cookie { left: 22px; max-width: none; flex-wrap: wrap; gap: 10px; }
  .vision-copy .heading-lg { font-size: 27px; }
  .vision-copy .heading { font-size: 23px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sc-plane--main { animation: none; transform: translate(430px, 314px) scale(1.18); }
  .sc-bob, .sc-bob--slow { animation: none; }
  .drift--far, .drift--mid, .drift--near { animation: none; }
  .prop-a { animation: none; opacity: 1; }
  .prop-b { animation: none; opacity: 0; }
  .flag-slice { animation: none; }
  .star-a, .star-b { animation: none; }
  .eng-a { animation: none; opacity: 1; }
  .eng-b { animation: none; opacity: 0; }
  .eng-puff { animation: none; opacity: 0.35; transform: none; }
  .eng-fire { animation: none; opacity: 0; }
  .eng-blade { animation: none; opacity: 0; }
  .eng-blade:first-of-type { opacity: 0.75; }
  .px-assemble rect { opacity: 1; animation: none !important; }
  .market-panel.open { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .arrow-chip, .nav-drawer { transition: none; }
}
