/* ============================================================
   FLYTE — "DEPARTURES"
   A departure day compressed into one scroll: dusk → night →
   dawn → day → golden hour → red-eye night → sunrise.
   Tokens lifted 1:1 from the iOS/Android design system.
   ============================================================ */

:root {
  /* CLEAR SKY — the canonical palette (see palette.md).
     Trust-first azure fields, one isolated signal-orange CTA. */
  --canvas: #F5F8FA;
  --canvas2: #DDE9F4;
  --bp-canvas: #DDE9F4;
  --paper: #F5F8FA;
  --card: #FFFFFF;
  --ink: #0B1120;
  --ink-82: rgba(11, 17, 32, .82);
  /* --ink-65/-70 exist because --ink-55 measures 4.18:1 on white and 3.95:1 on
     the footer canvas — under the 4.5:1 minimum. Use these for anything that
     has to be read; --ink-55 and --ink-32 remain correct for decorative rules,
     placeholder-weight hints, and text on dark grounds. */
  --ink-70: rgba(11, 17, 32, .70);
  --ink-65: rgba(11, 17, 32, .65);
  --ink-55: rgba(11, 17, 32, .55);
  --ink-32: rgba(11, 17, 32, .32);
  --ink-8: rgba(11, 17, 32, .08);
  --hair: rgba(11, 17, 32, .10);
  --coral: #2456E0; /* accent slot: azure */
  --coral-deep: #1A3FA8;
  --coral-peach: #A9BEEF;
  --cta: #F4573A; /* signal orange — waitlist actions only */
  --cta-glow: 244, 87, 58;
  --cta-text: #fff;
  --accent: #2456E0;
  --gold: #F0B429;
  --gold-deep: #96690D;
  --gold-rgb: 240, 180, 41;
  --em-on-arrival: #F0B429;
  --mint: #39C26E;
  --pass-red: #E54D4D;
  --paper-85: rgba(245, 248, 250, .85);
  --paper-60: rgba(245, 248, 250, .6);
  --paper-40: rgba(245, 248, 250, .4);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif; /* wordmark only */
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(.2, .6, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: #0A1120; /* ink night — under the sky layers */
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--coral); color: #fff; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); }

/* ============ THE SKY ============ */

/* The sky is one continuous color field — JS lerps it with scroll.
   Six acts: ink night → cream dawn → paper day → gold → ink → coral. */
.sky { position: fixed; inset: 0; z-index: -1; background: #0A1120; }

/* stars — JS fades them with sky luminance */
.stars {
  position: absolute; inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.8px 1.8px at 44% 12%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 61% 30%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.3px 1.3px at 73% 9%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 85% 36%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1.6px 1.6px at 92% 15%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 7% 55%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 52% 48%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 36% 66%, rgba(255,255,255,.45), transparent 60%);
}

.grain {
  position: absolute; inset: -50%;
  opacity: .05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-4%,3%); }
  40% { transform: translate(3%,-5%); } 60% { transform: translate(-5%,-2%); }
  80% { transform: translate(4%,4%); }
}

/* Zones are transparent — the fixed sky shows through. */
.zone { position: relative; }

/* ============ SHARED ATOMS ============ */

.sec-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  color: var(--ink-55);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.sec-label.light { color: var(--paper-40); }

.statement {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -.03em;
  max-width: 900px;
}
.statement em { font-style: normal; color: var(--coral); }
.statement.light { color: var(--paper); }
.statement.light em { color: var(--coral); }

.statement-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-55);
  max-width: 600px;
  margin-top: 24px;
}
.statement-sub.light { color: var(--paper-60); }

.gpill {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(30, 30, 34, .38);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: .5px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}
.gpill.dark { background: rgba(10, 10, 10, .06); color: var(--ink-55); border-color: var(--hair); -webkit-backdrop-filter: none; backdrop-filter: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ============ NAV ============ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .5s, border-color .5s;
  border-bottom: .5px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 16, 26, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, .12);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--paper);
}
.wordmark { display: flex; align-items: baseline; gap: 10px; }
.wordmark-serif { font-family: var(--serif); font-style: italic; font-size: 26px; letter-spacing: -.01em; }
.coral-dot { color: var(--coral); }
.wordmark-mono { font-family: var(--mono); font-size: 8.5px; letter-spacing: .2em; color: var(--paper-40); }
.nav-clock {
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--coral-peach);
  border: .5px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 6px 12px;
  min-width: 118px;
  text-align: center;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper-60);
  transition: color .2s;
}
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 20px;
  transition: background .25s, color .25s, transform .15s;
}
.nav-cta:hover { background: var(--coral); color: #fff; }
.nav-cta:active { transform: scale(.97); }

/* Nav adapts to the sky's tone: paper chrome on dark acts, ink on light */
body[data-tone="light"] .nav-inner { color: var(--ink); }
body[data-tone="light"] .nav-links a { color: var(--ink-55); }
body[data-tone="light"] .nav-links a:hover { color: var(--ink); }
body[data-tone="light"] .wordmark-mono { color: var(--ink-32); }
body[data-tone="light"] .nav-cta { background: var(--ink); color: var(--paper); }
body[data-tone="light"] .nav-cta:hover { background: var(--coral); color: #fff; }
body[data-tone="light"] .nav-clock { color: var(--coral-deep); border-color: var(--hair); }
body[data-tone="light"] .nav.scrolled {
  background: rgba(245, 248, 250, .78);
  border-bottom-color: var(--hair);
}

/* ============ FLIGHT-PATH RAIL ============ */

.rail {
  position: fixed;
  top: 0; right: 26px; bottom: 0;
  width: 120px;
  z-index: 40;
  pointer-events: none;
  display: none;
}
@media (min-width: 1280px) { .rail { display: block; } }
.rail-line {
  position: absolute;
  top: 8%; bottom: 8%; right: 10px;
  width: 0;
  border-right: 1.5px dashed rgba(255, 255, 255, .35);
  transition: border-color .8s;
}
.rail-plane {
  position: absolute;
  right: 3px;
  top: 8%;
  width: 16px;
  color: var(--coral-peach);
  transform: translateY(-50%) rotate(135deg);
  transition: top .1s linear;
  filter: drop-shadow(0 0 6px rgba(232, 108, 86, .6));
}
.rail-gate {
  position: absolute;
  right: 26px;
  top: calc(8% + 84% * var(--gy));
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .18em;
  color: var(--paper-40);
  white-space: nowrap;
}
/* darken the rail over the light acts (cream, paper, gold) */
body[data-tone="light"] .rail-line { border-right-color: var(--ink-32); }
body[data-tone="light"] .rail-gate { color: var(--ink-32); }
body[data-tone="light"] .rail-plane { color: var(--coral); filter: none; }

/* ============ HERO · DUSK ============ */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.flight-arc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.plane {
  position: absolute;
  top: 0; left: 0;
  width: 24px;
  color: rgba(255, 255, 255, .8);
  filter: drop-shadow(0 2px 8px rgba(30, 39, 64, .5));
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 130px 20px 90px;
}
.hero-mono-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--paper-60);
  margin-bottom: 44px;
}

/* --- split-flap board --- */
.flap-board {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 40px;
}
.flap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(34px, 5.4vw, 74px);
  height: clamp(52px, 8.4vw, 118px);
  background: linear-gradient(180deg, #16181F 0%, #101218 48%, #0B0D12 52%, #13151C 100%);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 24px -12px rgba(0, 0, 0, .55);
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 64px);
  color: var(--paper);
  text-transform: uppercase;
  perspective: 300px;
}
.flap::after { /* the split line */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05);
}
.flap.is-space { background: transparent; box-shadow: none; width: clamp(14px, 2vw, 28px); }
.flap.is-space::after { display: none; }
.flap.is-flipping { animation: flapflip .14s ease-in-out; }
@keyframes flapflip {
  0% { transform: rotateX(0); } 50% { transform: rotateX(-72deg); } 100% { transform: rotateX(0); }
}
.flap.is-coral { color: var(--coral-peach); }

.hero-tag {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -.015em;
  color: var(--paper-85);
  max-width: 640px;
}
.hero-tag em { font-style: normal; color: var(--coral); }
.hero-sub {
  font-size: clamp(14px, 1.4vw, 16.5px);
  color: var(--paper-60);
  max-width: 520px;
  margin-top: 16px;
}
.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(12, 12, 16, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: .5px solid rgba(255, 255, 255, .28);
  color: #fff;
  transition: transform .2s var(--ease-out), background .25s, border-color .25s;
}
.badge:hover { transform: translateY(-2px); background: rgba(12, 12, 16, .68); border-color: rgba(255, 255, 255, .5); }
.badge:active { transform: scale(.97); }
.badge svg { width: 22px; height: 22px; }
.badge-text { display: flex; flex-direction: column; line-height: 1.15; }
.badge-text small { font-family: var(--mono); font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .65; }
.badge-text strong { font-size: 16.5px; font-weight: 600; }
.hero-micro {
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--paper-40);
  margin-top: 22px;
}

/* ============ WAITLIST ============ */

.waitlist { margin-top: 44px; max-width: 540px; }
.waitlist-final { margin: 44px auto 0; }
.waitlist-kicker {
  font-size: 9.5px;
  letter-spacing: .26em;
  color: var(--coral-peach);
  margin-bottom: 16px;
}
.on-coral .waitlist-kicker { color: var(--coral-deep); }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist-form input {
  flex: 1;
  min-width: 220px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  background: rgba(12, 12, 16, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: .5px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  padding: 15px 22px;
  outline: none;
  transition: border-color .25s, background .25s;
}
.waitlist-form input::placeholder { color: var(--paper-40); }
.waitlist-form input:focus { border-color: rgba(255, 255, 255, .6); background: rgba(12, 12, 16, .68); }
.waitlist-form button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--cta-text);
  background: var(--cta);
  border-radius: 999px;
  padding: 15px 26px;
  white-space: nowrap;
  box-shadow: 0 12px 22px -6px rgba(var(--cta-glow), .5);
  transition: transform .15s var(--ease-out), background .25s;
}
.waitlist-form button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.waitlist-form button:active { transform: scale(.97); }
.waitlist-form button[disabled] { opacity: .55; pointer-events: none; }

/* on the arrival act: paper input, ink button */
.waitlist-form.on-coral input {
  color: var(--ink);
  background: rgba(245, 248, 250, .94);
  border-color: transparent;
}
.waitlist-form.on-coral input::placeholder { color: var(--ink-32); }
.waitlist-form.on-coral input:focus { border-color: rgba(11, 17, 32, .4); background: var(--paper); }
.waitlist-form.on-coral button { background: var(--ink); color: var(--paper); box-shadow: none; }
.waitlist-form.on-coral button:hover { background: #1B2742; }

.waitlist-count {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--paper-40);
  margin-top: 16px;
}
.waitlist-msg {
  font-size: 10.5px;
  letter-spacing: .12em;
  margin-top: 16px;
  min-height: 16px;
}
.waitlist-msg.is-error { color: #FFB4A2; }
.on-coral ~ .waitlist-msg.is-error, .waitlist-final .waitlist-msg.is-error { color: #5A1408; }

/* success state */
.waitlist-success { text-align: left; }
.waitlist-final .waitlist-success { text-align: center; }
.waitlist-success .seat {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--mint);
  margin-bottom: 14px;
}
.waitlist-final .waitlist-success .seat { color: var(--ink); }
.waitlist-success p.msg {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -.015em;
  color: var(--paper);
  max-width: 480px;
}
.waitlist-final .waitlist-success p.msg { margin: 0 auto; }
.waitlist-ref {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--paper-60);
  border: .5px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 11px 18px;
  transition: color .2s, border-color .2s;
}
.waitlist-ref:hover { color: var(--paper); border-color: rgba(255, 255, 255, .6); }
.waitlist-final .waitlist-ref { color: rgba(10, 10, 10, .65); border-color: rgba(10, 10, 10, .3); }
.waitlist-final .waitlist-ref:hover { color: var(--ink); border-color: rgba(10, 10, 10, .6); }
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .3em;
  color: var(--paper-40);
}
.scroll-cue i { width: 1px; height: 42px; background: rgba(251, 248, 242, .25); overflow: hidden; position: relative; }
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--coral);
  animation: cue 2s var(--ease-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* ============ DEPARTURES · NIGHT ============ */

.departures { max-width: 1160px; margin: 0 auto; padding: 170px 20px 150px; }

.clocks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 48px 0 26px;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--paper-60);
}
.clocks span { white-space: nowrap; font-variant-numeric: tabular-nums; }

.board {
  border: .5px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(10, 12, 20, .5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.board-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .6fr .8fr;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  font-family: var(--mono);
  font-size: clamp(10px, 1.1vw, 12.5px);
  letter-spacing: .14em;
  color: var(--paper-85);
  border-top: .5px solid rgba(255, 255, 255, .1);
  font-variant-numeric: tabular-nums;
  transition: background .25s;
}
.board-row:first-child { border-top: 0; }
.board-row:not(.board-head):hover { background: rgba(255, 255, 255, .05); }
.board-head {
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--paper-40);
  padding: 13px 22px;
}
.board-row .dest { color: var(--paper); font-weight: 500; }
.board-row .status { justify-self: end; padding: 5px 11px; border-radius: 4px; font-size: .92em; }
.status.st-boarding { color: var(--coral-peach); border: 1px solid var(--coral); animation: pulse 2.2s ease-in-out infinite; }
.status.st-planning { color: var(--gold); border: 1px solid rgba(223, 187, 90, .55); }
.status.st-forming { color: var(--paper-40); border: 1px solid rgba(255, 255, 255, .22); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.board-note {
  margin-top: 16px;
  font-size: 8.5px;
  letter-spacing: .24em;
  color: var(--paper-40);
  text-align: right;
}

/* ============ THE IDEA · DAWN ============ */

.manifesto { max-width: 1160px; margin: 0 auto; padding: 150px 20px 130px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 72px; }
.pillar {
  background: var(--card);
  border: .5px solid var(--hair);
  border-radius: 20px;
  padding: 30px 28px;
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.pillar:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(20, 24, 40, .3); }
.pillar small { font-size: 9.5px; letter-spacing: .2em; color: var(--coral-deep); }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; margin: 14px 0 10px; color: var(--ink); }
.pillar p { font-size: 15px; color: var(--ink-55); }
.pillars .pillar:nth-child(2) { transition-delay: .08s; }
.pillars .pillar:nth-child(3) { transition-delay: .16s; }

/* ============ THE MECHANIC · DAY ============ */

.swipe-section { max-width: 1160px; margin: 0 auto; padding: 140px 20px; }
.demo-grid {
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.deck-wrap { display: flex; flex-direction: column; align-items: center; }
.deck { position: relative; width: min(340px, 84vw); height: 470px; }
.tcard {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px -24px rgba(10, 10, 10, .35), 0 2px 6px rgba(10, 10, 10, .08);
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.tcard:active { cursor: grabbing; }
.tcard.ghost { pointer-events: none; }
.tcard-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* flat poster tones — sand, ink-navy, clay */
.grad-warm { background: #C9A77D; }
.grad-teal { background: #26304E; }
.grad-rose { background: #C4745F; }
.tcard-scrim {
  position: absolute;
  inset: 30% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, .78));
}
.tcard-top { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: flex-end; }
.match-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: #fff;
  background: rgba(12, 12, 16, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: .5px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: 7px 12px;
}
.match-pill b { color: var(--gold); font-weight: 600; }
.tcard-info { position: absolute; left: 20px; right: 20px; bottom: 20px; }
.tcard-name { font-family: var(--display); font-weight: 500; font-size: 38px; letter-spacing: -.02em; color: #fff; line-height: 1.05; }
.tcard-name span { font-weight: 400; opacity: .85; }
.tcard-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stamp {
  position: absolute;
  top: 30px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .14em;
  padding: 9px 16px;
  border: 3px solid currentColor;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
}
.stamp-connect { left: 18px; color: var(--mint); transform: rotate(-13deg); opacity: var(--connect-o, 0); }
.stamp-pass { right: 18px; color: var(--pass-red); transform: rotate(13deg); opacity: var(--pass-o, 0); }

.deck-actions { display: flex; align-items: center; gap: 22px; margin-top: 28px; }
.round-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  border-radius: 50%;
  background: var(--card);
  border: .5px solid var(--hair);
  box-shadow: 0 10px 24px -12px rgba(10, 10, 10, .25);
  transition: transform .15s var(--ease-out), box-shadow .2s;
}
.round-btn svg { width: 22px; height: 22px; flex: none; }
.round-btn.btn-pass { color: var(--pass-red); }
.round-btn.like {
  width: 66px;
  height: 66px;
  min-width: 66px;
  min-height: 66px;
  background: var(--coral);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 12px 22px -6px rgba(232, 108, 86, .5);
}
.round-btn.like svg { width: 26px; height: 26px; }
.round-btn:hover { transform: translateY(-2px); }
.round-btn:active { transform: scale(.93); }
.deck-keys { margin-top: 18px; font-size: 9px; letter-spacing: .22em; color: var(--ink-32); }
.deal-again {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: .22em;
  color: var(--ink-55);
  padding: 8px 4px;
  transition: color .2s;
}
.deal-again:hover { color: var(--coral); }

.compat-panel {
  background: var(--card);
  border: .5px solid var(--hair);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 24px 50px -30px rgba(10, 10, 10, .15);
}
.compat-kicker { font-size: 9.5px; letter-spacing: .24em; color: var(--coral); }
.compat-name { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 36px; margin: 10px 0 24px; }
.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 30px;
  align-items: center;
  gap: 14px;
  margin: 13px 0;
}
.bar-row span { font-size: 9.5px; letter-spacing: .14em; color: var(--ink-55); }
.bar-row b { font-size: 12px; font-weight: 500; text-align: right; }
.bar { height: 6px; background: var(--ink-8); border-radius: 999px; overflow: hidden; }
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  border-radius: 999px;
  transition: width .9s var(--ease-out);
}
.compat-overall {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: .5px solid var(--hair);
  margin-top: 24px;
  padding-top: 20px;
}
.compat-overall span { font-size: 9.5px; letter-spacing: .2em; color: var(--ink-55); }
.compat-overall strong { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; font-size: 44px; color: var(--coral); line-height: 1; }
.compat-note { font-size: 13.5px; color: var(--ink-55); margin-top: 18px; }

/* ============ FLIGHT PLAN · DAY ============ */

.how { max-width: 1160px; margin: 0 auto; padding: 60px 20px 140px; }
.tix {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: .5px solid var(--hair);
  border-radius: 10px;
  box-shadow: 0 24px 50px -30px rgba(10, 10, 10, .2);
  position: relative;
}
.tix::before, .tix::after { /* die-cut notches */
  content: "";
  position: absolute;
  top: 50%;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--canvas);
  border: .5px solid var(--hair);
  transform: translateY(-50%);
  z-index: 2;
}
.tix::before { left: -12.5px; }
.tix::after { right: -12.5px; }
.tix-seg { padding: 36px 30px; position: relative; transition: background .3s; }
.tix-seg:hover { background: #fff; }
.tix-seg + .tix-seg { border-left: 1.5px dashed var(--ink-32); }
.tix-seg small { font-size: 10px; letter-spacing: .24em; color: var(--coral-deep); }
.tix-seg h3 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -.02em; margin: 16px 0 12px; }
.tix-seg p { font-size: 15px; color: var(--ink-55); }

/* ============ MANIFEST · DAY ============ */

.features { max-width: 1160px; margin: 0 auto; padding: 40px 20px 130px; }
.manifest { margin-top: 56px; border-top: .5px solid var(--hair); }
.mrow {
  display: grid;
  grid-template-columns: 90px 1fr 1.2fr;
  gap: 24px;
  align-items: baseline;
  padding: 26px 18px;
  border-bottom: .5px solid var(--hair);
  transition: background .25s, color .25s;
  cursor: default;
}
.mcode { font-size: 11px; letter-spacing: .2em; color: var(--coral-deep); transition: color .25s; }
.mrow h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(22px, 2.6vw, 30px); }
.mrow p { font-size: 14.5px; color: var(--ink-55); transition: color .25s; }
.mrow:hover { background: var(--ink); color: var(--paper); }
.mrow:hover .mcode { color: var(--coral); }
.mrow:hover p { color: var(--paper-60); }

.safety {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--ink-55);
}
.safety b { color: var(--ink); font-weight: 600; }

/* ============ FLYTE PASS · GOLDEN HOUR ============ */

.pass { padding: 160px 20px; }
.pass-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(20, 16, 10, .65);
  position: relative;
  overflow: hidden;
}
.pass-card::before { /* foil sheen */
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(105deg, transparent 42%, rgba(var(--gold-rgb), .22) 50%, transparent 58%);
  animation: sheen 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes sheen { 0%, 55% { transform: translateX(-45%); } 90%, 100% { transform: translateX(45%); } }
.pass-inner {
  border-radius: 28px;
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 64px);
  text-align: center;
  position: relative;
}
.pass-kicker { font-size: 10.5px; letter-spacing: .3em; color: var(--gold); margin-bottom: 22px; }
.pass-inner h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; color: var(--paper); }
.pass-inner h2 em { font-style: normal; color: var(--gold); }
.pass-inner p { font-size: 16px; color: var(--paper-60); max-width: 520px; margin: 20px auto 0; }
.pass-inner small { display: block; font-size: 9.5px; letter-spacing: .24em; color: var(--paper-40); margin-top: 30px; }

/* ============ THE APP · RED-EYE ============ */

.showcase { padding: 160px 20px 170px; }
.showcase .sec-label, .showcase .statement, .showcase .statement-sub { max-width: 1160px; margin-left: auto; margin-right: auto; }
.phones {
  max-width: 1160px;
  margin: 80px auto 0;
  display: flex;
  justify-content: center;
  gap: clamp(32px, 6vw, 80px);
  flex-wrap: wrap;
}
.phone-wrap { display: flex; flex-direction: column; align-items: center; }
.phone {
  position: relative;
  width: 280px;
  height: 590px;
  background: #101013;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    0 0 0 1px rgba(255, 255, 255, .05),
    0 40px 90px -30px rgba(0, 0, 0, .85),
    0 0 80px -30px rgba(232, 108, 86, .25);
}
.phone.android { border-radius: 30px; }
.island {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 25px;
  background: #000;
  border-radius: 999px;
  z-index: 3;
}
.punch {
  position: absolute;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  background: #000;
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, .25);
  z-index: 3;
}
.screen {
  width: 100%; height: 100%;
  background: var(--canvas);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone.android .screen { border-radius: 21px; }
.statusbar {
  display: flex;
  justify-content: space-between;
  padding: 16px 22px 4px;
  font-size: 10px;
  font-weight: 600;
}
.statusbar-icons { letter-spacing: 2px; font-size: 7px; }
.mini-card {
  position: relative;
  margin: 14px 14px 0;
  flex: 1;
  border-radius: 22px;
  overflow: hidden;
  background: #C9A77D;
}
.mini-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-card::before {
  content: "";
  position: absolute;
  inset: 45% 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 10, .55));
  z-index: 1;
}
.mini-pills {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  z-index: 2;
}
.mini-id {
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 2;
}
.mini-id h4 { font-family: var(--display); font-weight: 500; font-size: 30px; color: #fff; letter-spacing: -.02em; }
.mini-compat {
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  padding: 6px 10px;
}
.mini-actions { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px 0 20px; }
.ma {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: .5px solid var(--hair);
  box-shadow: 0 6px 14px -8px rgba(10, 10, 10, .3);
  font-size: 14px;
}
.ma-pass { color: var(--pass-red); }
.ma-like { width: 44px; height: 44px; background: var(--coral); color: #fff; border-color: transparent; box-shadow: 0 8px 16px -6px rgba(232, 108, 86, .55); }
.ma-star { color: var(--accent); }

.chat-head {
  padding: 52px 16px 12px;
  border-bottom: .5px solid var(--hair);
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
}
.chat-head strong { font-size: 16px; font-weight: 600; }
.chat-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  overflow: hidden;
}
.bubble { max-width: 80%; padding: 9px 13px; font-size: 12.5px; line-height: 1.4; border-radius: 16px; }
.bubble.in { align-self: flex-start; background: var(--canvas2); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--coral); color: #fff; border-bottom-right-radius: 5px; }
.read-receipt { align-self: flex-end; font-size: 7.5px; letter-spacing: .12em; color: var(--ink-32); }
.chat-input {
  margin: 10px 12px 14px;
  background: var(--canvas2);
  border-radius: 999px;
  padding: 11px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-32);
}
.chat-input b { color: var(--coral); font-size: 13px; }
.phone-wrap figcaption { margin-top: 20px; text-align: center; font-size: 13px; color: var(--paper-40); }
.phone-wrap figcaption small {
  display: block;
  font-size: 9.5px;
  letter-spacing: .26em;
  color: var(--coral-peach);
  margin-bottom: 6px;
}

/* ============ ARRIVAL · SUNRISE ============ */

.final { padding: 180px 20px 170px; text-align: center; overflow: hidden; }
.final-content { position: relative; z-index: 2; }
.final .sec-label { margin-bottom: 30px; color: rgba(251, 248, 242, .75); }
.flap-final { justify-content: center; margin-bottom: 44px; }
.final-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.03;
  letter-spacing: -.03em;
  color: var(--paper);
  max-width: 900px;
  margin: 0 auto;
}
.final-title em { font-style: normal; color: var(--em-on-arrival); }
.final-sub { font-size: clamp(15px, 1.6vw, 18px); color: rgba(251, 248, 242, .88); margin-top: 22px; }
.final .badges { justify-content: center; }
.final .hero-micro { color: rgba(251, 248, 242, .72); }

/* ============ FOOTER ============ */

.footer {
  background: var(--bp-canvas);
  border-top: .5px solid var(--hair);
  padding: 72px 20px 36px;
  position: relative;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .wordmark-serif { font-size: 34px; color: var(--ink); }
.footer-brand p { font-size: 14px; color: var(--ink-55); margin-top: 10px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-65);
  transition: color .2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-base {
  max-width: 1160px;
  margin: 48px auto 0;
  padding-top: 22px;
  border-top: .5px solid var(--hair);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 9px;
  letter-spacing: .2em;
  /* Includes the Companies Act trading disclosure — a statutory notice that
     has to be legible, so it does not sit at --ink-32 (2.05:1). */
  color: var(--ink-65);
}

/* ============ PALETTE-DARK (Velvet Rope: dark dawn/day acts) ============ */

body.palette-dark .sec-label { color: var(--paper-40); }
body.palette-dark .statement { color: var(--paper); }
body.palette-dark .statement-sub { color: var(--paper-60); }
body.palette-dark .deck-keys { color: var(--paper-40); }
body.palette-dark .deal-again { color: var(--paper-60); }
body.palette-dark .deal-again:hover { color: var(--coral); }
body.palette-dark .manifest { border-top-color: rgba(255, 255, 255, .16); }
body.palette-dark .mrow { border-bottom-color: rgba(255, 255, 255, .16); }
body.palette-dark .mrow h3 { color: var(--paper); }
body.palette-dark .mrow p { color: var(--paper-60); }
body.palette-dark .mrow .mcode { color: var(--coral-peach); }
body.palette-dark .mrow:hover { background: var(--paper); color: var(--ink); }
body.palette-dark .mrow:hover h3 { color: var(--ink); }
body.palette-dark .mrow:hover p { color: var(--ink-55); }
body.palette-dark .mrow:hover .mcode { color: var(--coral-deep); }
body.palette-dark .safety { color: var(--paper-60); }
body.palette-dark .safety b { color: var(--paper); }
body.palette-dark .pillar { box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .6); }
body.palette-dark .compat-panel { box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .7); }
body.palette-dark .tix { box-shadow: 0 30px 60px -32px rgba(0, 0, 0, .7); }
body.palette-dark .tix::before, body.palette-dark .tix::after { background: #232327; border-color: rgba(255, 255, 255, .14); }

/* ============ RESPONSIVE ============ */

@media (max-width: 960px) {
  .demo-grid { grid-template-columns: 1fr; gap: 56px; }
  .pillars { grid-template-columns: 1fr; }
  .tix { grid-template-columns: 1fr; }
  .tix-seg + .tix-seg { border-left: 0; border-top: 1.5px dashed var(--ink-32); }
  .tix::before, .tix::after { display: none; }
  .mrow { grid-template-columns: 64px 1fr; }
  .mrow p { grid-column: 2; }
  .hero-coords { display: none; }
  .board-row { grid-template-columns: 1.3fr 1fr .6fr .9fr; padding: 13px 14px; }
}

@media (max-width: 640px) {
  .nav-links, .nav-clock { display: none; }
  .nav-inner { gap: 16px; }
  .nav-cta { margin-left: auto; }
  .board-row { grid-template-columns: 1.2fr .9fr .9fr; }
  .board-row span:nth-child(3) { display: none; }
  .board-head span:nth-child(3) { display: none; }
  .hero-content { padding-top: 110px; }
  .departures, .manifesto, .swipe-section, .how, .features, .showcase { padding-top: 110px; padding-bottom: 100px; }
  .pass, .final { padding: 120px 20px; }
  .phone { width: min(280px, 82vw); height: min(590px, 168vw); }
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .plane, .grain, .scroll-cue i::after { animation: none; }
  .plane { display: none; }
  .status.st-boarding { animation: none; }
  .pass-card::before { animation: none; display: none; }
  .bar i { transition: none; }
  * { transition-duration: .01ms !important; }
}
