/* Self-hosted web fonts (SIL Open Font License, see /fonts/OFL-*.txt). They're preloaded in the page
   <head>, and `font-display: optional` means the browser never swaps fonts after the page is shown,
   so text can't change size on load. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url("/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: optional;
  src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/fonts/public-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url("/fonts/public-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallback faces sized to match the web fonts' metrics (measured from the font files), so text
   doesn't reflow and shift the layout when the web fonts finish loading. */
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  font-weight: 300 500;
  size-adjust: 105.72%;
  ascent-override: 89.86%;
  descent-override: 21.28%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold");
  font-weight: 600 700;
  size-adjust: 99.74%;
  ascent-override: 95.25%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  size-adjust: 95.3%;
  ascent-override: 77.13%;
  descent-override: 27.81%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT"), local("Liberation Mono");
  size-adjust: 99.98%;
  ascent-override: 102.02%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* ---------- Theme ----------
   Light and dark palettes follow the visitor's system setting (prefers-color-scheme).
   Colors used with transparency are stored as "R G B" triplets: rgb(var(--bg-rgb) / 0.8). */
:root {
  --bg: #f5f7fb;
  --bg-rgb: 245 247 251;
  --surface-rgb: 255 255 255; /* cards and panels */
  --fg-rgb: 12 20 38; /* thin borders/overlays drawn in the text color */
  --ink: #0b1220;
  --ink-2: #3b475c;
  --ink-3: #5f6b80;
  --line: rgba(20, 40, 80, 0.12);
  --line-2: rgba(20, 40, 80, 0.2);
  --panel: rgb(var(--surface-rgb) / 0.8);
  /* Single accent: #2563eb for fills/marks; a text-safe shade of the same blue for small text. */
  --accent: #2563eb;
  --accent-hover: #1d4fd8;
  --accent-ink: #1d4ed8;
  --shadow: rgba(15, 25, 50, 0.18);
  --ok: #047857;
  --err: #b91c1c;
  --cat-vfr: 4 120 87;
  --cat-mvfr: 29 78 216;
  --cat-ifr: 185 28 28;
  --cat-lifr: 162 28 175;
  --radius: 18px;
  --sans: "Public Sans", "Public Sans Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Newsreader", "Newsreader Fallback", Georgia, serif; /* headings */
  --mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  color-scheme: light;
}
/* Dark palette: used when the system is dark, unless forced light with ?theme=light (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08090f;
    --bg-rgb: 8 9 15;
    --surface-rgb: 12 14 22;
    --fg-rgb: 255 255 255;
    --ink: #e8eef8;
    --ink-2: #a9b6c9;
    --ink-3: #6c7a90;
    --line: rgba(150, 185, 235, 0.12);
    --line-2: rgba(150, 185, 235, 0.22);
    --panel: rgb(var(--surface-rgb) / 0.62);
    --accent-hover: #3b74f0;
    --accent-ink: #7ea6ff;
    --shadow: rgba(0, 0, 0, 0.8);
    --ok: #4cf0a0;
    --err: #ff8a8a;
    --cat-vfr: 76 240 160;
    --cat-mvfr: 106 168 255;
    --cat-ifr: 255 107 107;
    --cat-lifr: 226 123 255;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08090f;
  --bg-rgb: 8 9 15;
  --surface-rgb: 12 14 22;
  --fg-rgb: 255 255 255;
  --ink: #e8eef8;
  --ink-2: #a9b6c9;
  --ink-3: #6c7a90;
  --line: rgba(150, 185, 235, 0.12);
  --line-2: rgba(150, 185, 235, 0.22);
  --panel: rgb(var(--surface-rgb) / 0.62);
  --accent-hover: #3b74f0;
  --accent-ink: #7ea6ff;
  --shadow: rgba(0, 0, 0, 0.8);
  --ok: #4cf0a0;
  --err: #ff8a8a;
  --cat-vfr: 76 240 160;
  --cat-mvfr: 106 168 255;
  --cat-ifr: 255 107 107;
  --cat-lifr: 226 123 255;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
/* Smooth scrolling is applied per-click in main.js, so reload scroll restoration stays instant.
   Scrollbar: thin, transparent track, translucent thumb in the theme's text color. */
html {
  scroll-padding-top: 90px;
  scrollbar-width: thin;
  scrollbar-color: rgb(var(--fg-rgb) / 0.22) transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: -0.01em; font-weight: 500; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.dim { color: var(--ink-3); }
/* Highlighted words in headings: solid accent blue. */
.grad { color: var(--accent-ink); }

/* ---------- Background layers ---------- */
#sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;
  transition: opacity 0.2s linear;
}
.sky-shade {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / 0.92) 0%, rgb(var(--bg-rgb) / 0.55) 38%, rgb(var(--bg-rgb) / 0) 62%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / 0.6) 0%, rgb(var(--bg-rgb) / 0) 18%, rgb(var(--bg-rgb) / 0) 75%, rgb(var(--bg-rgb) / 0.9) 100%);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 960px) {
  .sky-shade {
    background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.75) 0%, rgb(var(--bg-rgb) / 0.35) 45%, rgb(var(--bg-rgb) / 0.85) 100%);
  }
}

/* Phones: the map becomes a banner at the top of the page, and text sits on solid dark below it. */
@media (max-width: 759px) {
  #sky, .sky-shade { position: absolute; top: 0; left: 0; width: 100%; height: 42svh; }
  body.inner #sky, body.inner .sky-shade { height: 28svh; }
  html body .sky-shade, html body.inner .sky-shade {
    background: linear-gradient(180deg, rgb(var(--bg-rgb) / 0.55) 0%, rgb(var(--bg-rgb) / 0) 22%, rgb(var(--bg-rgb) / 0) 72%, var(--bg) 100%);
  }
  body .hero { min-height: 0; align-items: flex-start; padding-top: calc(42svh + 8px); padding-bottom: 72px; }
  body .page-hero { padding-top: calc(28svh + 8px); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgb(var(--bg-rgb) / 0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand b { font-weight: 500; color: var(--ink-2); }
.brand-mark { width: 28px; height: 28px; color: var(--accent-ink); filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.45)); }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links > a:not(.btn), .nav-trigger {
  text-decoration: none;
  font: 400 14px/1 var(--sans);
  color: var(--ink-2);
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-links > a:not(.btn):hover, .nav-trigger:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-trigger span { font-size: 10px; opacity: 0.6; margin-left: 2px; }
.nav-group { position: relative; }
.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  min-width: 340px;
  padding: 8px;
  display: grid;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgb(var(--surface-rgb) / 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px -20px var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}
.nav-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
}
.nav-menu a strong { font-weight: 500; }
.nav-menu a span { font: 500 11px/1.6 var(--mono); color: var(--ink-3); white-space: nowrap; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: rgba(37, 99, 235, 0.07); }
.nav-menu-cta { display: none !important; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: 4px;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: rgb(var(--surface-rgb) / 0.6);
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.25s, background 0.2s;
    content: "";
    position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav.menu-open .nav-toggle span { background: transparent; }
  .nav.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: rgb(var(--bg-rgb) / 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; }
  .nav.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-links > a:not(.btn), .nav-trigger { font-size: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
  .nav-trigger { display: flex; justify-content: space-between; }
  .nav-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 12px;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-menu::before { display: none; }
  .nav-group.open .nav-menu { display: grid; }
  .nav-group:hover .nav-menu:not(.nav-group.open .nav-menu) { display: none; }
  .nav-menu-cta { display: inline-flex !important; margin-top: 28px; flex: none; }
}
@media (max-width: 480px) {
  .nav .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .brand b { display: none; }
}
body.menu-lock { overflow: hidden; }
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }
main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
  --h: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 16px;
  border-radius: 6px;
  font: 500 14px/1 var(--sans);
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink); background: transparent; border-color: rgb(var(--fg-rgb) / 0.18); }
.btn-ghost:hover { border-color: rgb(var(--fg-rgb) / 0.36); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 110px;
}
.hero-inner { max-width: 820px; }
.nw { white-space: nowrap; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgb(var(--surface-rgb) / 0.5);
  backdrop-filter: blur(8px);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.6);
  animation: ping 2s infinite;
  flex: none;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); }
}
.hero h1 {
  margin-top: 0;
  font-size: clamp(42px, 5.8vw, 88px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}
.hero h1 .grad { display: inline-block; padding-bottom: 0.08em; }
.lede {
  margin-top: 26px;
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-2);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Weather card */
.wx {
  margin-top: 40px;
  max-width: 520px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: var(--mono);
}
.wx-head { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.wx-label { color: var(--ink-3); }
.wx-station { color: var(--accent-ink); font-weight: 700; }
.wx-cat {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--ink-3);
  border: 1px solid var(--line-2);
}
.wx-cat[data-cat="VFR"] { color: rgb(var(--cat-vfr)); border-color: rgb(var(--cat-vfr) / 0.4); background: rgb(var(--cat-vfr) / 0.08); }
.wx-cat[data-cat="MVFR"] { color: rgb(var(--cat-mvfr)); border-color: rgb(var(--cat-mvfr) / 0.4); background: rgb(var(--cat-mvfr) / 0.08); }
.wx-cat[data-cat="IFR"] { color: rgb(var(--cat-ifr)); border-color: rgb(var(--cat-ifr) / 0.4); background: rgb(var(--cat-ifr) / 0.08); }
.wx-cat[data-cat="LIFR"] { color: rgb(var(--cat-lifr)); border-color: rgb(var(--cat-lifr) / 0.4); background: rgb(var(--cat-lifr) / 0.08); }
.wx-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 0; }
.wx-grid div { min-width: 0; }
.wx-grid dt { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.wx-grid dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-raw {
  min-height: calc(2 * 1.5em + 10px); /* room for a two-line METAR so the card doesn't grow when it loads */
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-3);
  word-break: break-word;
}
@media (max-width: 560px) {
  .wx-grid { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) var(--gutter) 0; max-width: 1320px; margin: 0 auto; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.kicker {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.section h2 { font-size: clamp(34px, 5vw, 64px); }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--ink-2); font-size: 18px; }

/* Glow panels: a soft spotlight follows the cursor (set by main.js). */
.glow {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  overflow: hidden;
  isolation: isolate;
}
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, -500px) var(--my, -500px), rgba(37, 99, 235, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.glow:hover::before { opacity: 1; }
.glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--mx, -500px) var(--my, -500px), rgba(37, 99, 235, 0.55), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.glow:hover::after { opacity: 1; }

/* Program cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.card { padding: 26px; display: flex; flex-direction: column; min-height: 280px; transition: transform 0.3s; }
.card:hover { transform: translateY(-4px); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.tag {
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--accent-ink);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.card h3 { margin-top: 26px; font-size: 26px; }
.card p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.card-foot {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
}
.price { font: 600 18px/1 var(--mono); }
.tour-sights { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.tour-sights li { position: relative; padding-left: 16px; }
.tour-sights li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card-foot a { font-size: 14px; color: var(--accent-ink); text-decoration: none; font-weight: 600; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  border-top: 2px dashed rgba(37, 99, 235, 0.35);
}
.timeline li { position: relative; padding-top: 54px; }
.timeline li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border: 2px solid var(--accent);
  background: var(--bg);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.5);
}
.timeline li:last-child::before { background: var(--accent); }
.wp { font: 600 11px/1 var(--mono); color: var(--accent-ink); letter-spacing: 0.1em; }
.timeline h3 { margin-top: 10px; font-size: 22px; }
.timeline p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; padding-left: 36px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 2px dashed rgba(37, 99, 235, 0.35); }
  .timeline li { padding-top: 0; }
  .timeline li::before { left: -36px; top: 4px; }
}

/* Fleet */
.fleet { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.plane { padding: 28px; }
.plane-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); color: var(--accent-ink); letter-spacing: 0.05em; text-transform: uppercase; }
.tail {
  margin-top: 26px;
  font: 700 clamp(56px, 8vw, 96px)/0.9 var(--mono);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.plane h3 { margin-top: 12px; font-size: 22px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.01em; }
.plane-art {
  position: absolute;
  right: -20px;
  top: 30px;
  width: 260px;
  max-width: 55%;
  fill: none;
  stroke: rgba(37, 99, 235, 0.35);
  stroke-width: 1;
  transform: rotate(35deg);
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), stroke 0.3s;
}
.plane:hover .plane-art { transform: rotate(35deg) translate(8px, -14px); stroke: rgba(37, 99, 235, 0.7); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 34px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.specs dt, .base-stats dt { font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.specs dd, .base-stats dd { margin: 8px 0 0; font: 600 16px/1.2 var(--mono); }
@media (max-width: 480px) { .specs { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }

/* Home base */
.base { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.base h2 { font-size: clamp(32px, 4.4vw, 56px); }
.base h2 .mono { font-size: 0.7em; letter-spacing: -0.02em; }
.base p:not(.kicker) { margin-top: 18px; color: var(--ink-2); max-width: 600px; }
.base-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.base-stats div { padding: 18px; background: rgb(var(--bg-rgb) / 0.6); }
.base-stats dd { color: var(--accent-ink); }
@media (max-width: 860px) { .base { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
.contact h2 { font-size: clamp(32px, 4.4vw, 56px); }
.contact-copy > p:not(.kicker) { margin-top: 18px; color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; font-size: 15px; }
.contact-list .mono { display: inline-block; width: 64px; font-size: 11px; letter-spacing: 0.1em; }
.form { display: grid; gap: 16px; align-content: start; }
.form label { display: grid; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  background: rgb(var(--bg-rgb) / 0.6);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-transform: none;
  letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgba(37, 99, 235, 0.6); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; margin-top: 6px; }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { min-height: 1.5em; font: 500 13px/1.5 var(--mono); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.footer {
  margin-top: clamp(80px, 12vw, 150px);
  padding: 56px var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgb(var(--bg-rgb) / 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 14px;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; max-width: 1320px; margin: 0 auto; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--ink-2); text-decoration: none; }
.foot-col a:hover { color: var(--ink); }
.foot-col .kicker { margin-bottom: 16px; }
.foot-brand address { margin-top: 18px; font-style: normal; color: var(--ink-3); line-height: 1.8; }
.foot-col .social { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink-2);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.social a:hover { color: var(--ink); border-color: var(--accent); background: rgba(37, 99, 235, 0.15); }
.social svg { width: 17px; height: 17px; }
.foot-base { max-width: 1320px; margin: 44px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; }
.footer .brand-mark { width: 22px; height: 22px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
body.inner .sky-shade {
  background:
    linear-gradient(90deg, rgb(var(--bg-rgb) / 0.94) 0%, rgb(var(--bg-rgb) / 0.7) 45%, rgb(var(--bg-rgb) / 0.35) 100%),
    linear-gradient(180deg, rgb(var(--bg-rgb) / 0.3) 0%, rgb(var(--bg-rgb) / 0.75) 60%, rgb(var(--bg-rgb) / 0.92) 100%);
}
.page-hero { padding: calc(140px + env(safe-area-inset-top, 0px)) var(--gutter) 40px; max-width: 1320px; margin: 0 auto; }
.page-hero-tall { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.page-hero h1 { margin-top: 14px; font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.015em; line-height: 1.02; max-width: 900px; }
.page-hero .lede { max-width: 680px; }
.page-hero .lede a { color: var(--accent-ink); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; font: 500 12px/1 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 760px;
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.facts div { padding: 16px 18px; background: rgb(var(--surface-rgb) / 0.78); backdrop-filter: blur(10px); }
.facts dt, .side-facts dt { font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { margin: 8px 0 0; font: 600 18px/1.2 var(--mono); color: var(--accent-ink); }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.section-tight { padding-top: 40px; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.sidebar { position: sticky; top: 96px; }
@media (max-width: 960px) { .page-body { grid-template-columns: 1fr; } .sidebar { position: static; } }
.side-card { padding: 24px; display: grid; gap: 18px; }
.side-card .kicker { margin: 0; }
.side-facts { margin: 0; display: grid; gap: 0; }
.side-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.side-facts dd { margin: 0; font: 600 13px/1.4 var(--mono); text-align: right; }
.side-note { font-size: 13px; color: var(--ink-3); line-height: 1.6; }
.side-card .btn { width: 100%; }
.side-phone { font-size: 14px; text-align: center; }
.side-phone a { color: var(--ink); text-decoration: none; font-weight: 600; }

/* Long-form content */
.prose { max-width: 740px; color: var(--ink-2); font-size: 17px; line-height: 1.75; }
.prose-narrow { margin: 0 auto 0 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: clamp(26px, 3vw, 34px); color: var(--ink); }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a, .section-head a, .base a, .plain-links a, .faq-a a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, 0.35); text-underline-offset: 3px; }
.prose a:hover, .section-head a:hover, .base a:hover, .faq-a a:hover { text-decoration-color: var(--accent-ink); }
.prose table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--accent-ink); transition: transform 0.25s; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.plain-links { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }

/* Link cards & chips */
.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.link-card { position: relative; display: grid; gap: 8px; padding: 22px 48px 22px 22px; text-decoration: none; transition: transform 0.3s; }
.link-card:hover { transform: translateY(-3px); }
.link-card .mono { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.link-card strong { font-family: var(--display); font-size: 21px; font-weight: 500; letter-spacing: -0.005em; }
.link-card span:not(.mono):not(.card-go) { color: var(--ink-2); font-size: 15px; }
.link-card .card-go { position: absolute; right: 22px; top: 22px; color: var(--accent-ink); }
a.card { text-decoration: none; }
.card-go { color: var(--accent-ink); font-weight: 600; transition: transform 0.2s; }
.card:hover .card-go, .link-card:hover .card-go { transform: translateX(4px); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font: 500 13px/1 var(--mono); color: var(--ink-2); background: rgb(var(--surface-rgb) / 0.6); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 28px; background: rgb(var(--surface-rgb) / 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.feature-n { font-size: 12px; color: var(--accent-ink); }
.feature h3 { margin-top: 14px; font-size: 21px; }
.feature p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* CTA band */
.cta-band { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.2fr auto; gap: 32px; align-items: end; }
.cta-band h2 { font-size: clamp(30px, 4vw, 52px); }
.cta-band p:not(.kicker) { margin-top: 14px; color: var(--ink-2); max-width: 560px; }
.cta-band .cta-row { margin: 0; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

.plane-rate { margin-top: 10px; font: 600 15px/1 var(--mono); color: var(--accent-ink); }
.plane-rate .mono { font-size: 10px; letter-spacing: 0.12em; margin-right: 6px; }
.plane-blurb { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 420px; }
.optional { text-transform: none; letter-spacing: 0; opacity: 0.7; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
}

/* New-school note under the hero buttons */
.launch-note { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.launch-note strong { color: var(--accent-ink); font-weight: 600; }

/* Instructors */
.instructors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.instructor { padding: 28px; display: grid; gap: 14px; }
.prose .instructor { margin: 20px 0; }
.instructor-head { display: flex; align-items: center; gap: 16px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 500 24px/1 var(--display);
  letter-spacing: 0.02em;
}
.instructor h3 { font-size: 24px; margin: 0; color: var(--ink); }
.instructor-title { margin: 4px 0 0; font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.instructor p { margin: 0; color: var(--ink-2); }
.instructor .instructor-teaches { font-size: 14px; color: var(--ink); }
.instructor-teaches .mono { font-size: 10px; letter-spacing: 0.12em; margin-right: 6px; }
.chips-sm { gap: 6px; }
.chips-sm li { padding: 6px 10px; font-size: 11px; }
.cta-band p + p { margin-top: 12px; }

html:hover { scrollbar-color: rgb(var(--fg-rgb) / 0.32) transparent; }
/* Older WebKit/Blink browsers without scrollbar-color support */
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgb(var(--fg-rgb) / 0.22);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--accent); }
