/* =====================================================================
   Flight Calendar — website, Design V2 ("night flight").
   Editorial aviation × premium software. No framework, no remote fonts.
   ===================================================================== */
:root {
  color-scheme: dark;
  --ink: #04060d;
  --night: #070b17;
  --night-2: #0b1122;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f3f5f9;
  --muted: #9ba5b8;
  --dim: #677289;
  --sky: #7cc8ff;
  --violet: #a68cff;
  --beacon: #ffb547;
  --mint: #6ee7b7;
  --brand: linear-gradient(100deg, #8fd6ff 0%, #9aaaff 50%, #c19bff 100%);
  --paper: #f1ece1;
  --paper-2: #e7dfcf;
  --paper-ink: #172033;
  --paper-muted: #5b6274;
  --paper-line: rgba(23, 32, 51, .13);
  --ink-red: #b9473a;
  --ink-blue: #2c58a6;
  --ink-green: #2b7356;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --pad: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.2, .75, .2, 1);
  --shadow-window: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 60px 140px -40px rgba(0, 0, 0, .9), 0 40px 80px -50px rgba(60, 120, 255, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: hidden; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { overflow-x: hidden; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #9fd4ff; color: #04102a; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.shell { width: min(1360px, 100% - 2 * var(--pad)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 12px; padding: 10px 16px; border-radius: 8px; background: #fff; color: #061127; font-weight: 700; text-decoration: none; transform: translateY(-200%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* ---------- Type system ---------- */
.display { margin: 0; font-family: var(--display); font-size: clamp(2.7rem, 6.4vw, 6.6rem); font-weight: 720; line-height: .94; letter-spacing: -.048em; text-wrap: balance; }
.display em, .hero h1 em, .manifesto-text em, .footer-line em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em;
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
}
.chapter { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; }
.chapter span { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); letter-spacing: .08em; }
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; color: #c8d3e6; font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.label-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--beacon); box-shadow: 0 0 0 4px rgba(255, 181, 71, .14), 0 0 14px var(--beacon); animation: beacon 2.4s ease-in-out infinite; }
.concept-note { margin: 18px 0 0; color: var(--dim); font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 10px; font-weight: 650; font-size: .98rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
.btn-solid { background: #f3f6fb; color: #050a18; box-shadow: 0 1px 0 #fff inset, 0 18px 40px -16px rgba(130, 180, 255, .55); }
.btn-solid:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 1px 0 #fff inset, 0 24px 50px -16px rgba(130, 180, 255, .7); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; padding: 12px 2px; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.link-arrow:hover { border-color: var(--sky); }

/* ---------- Flight-path progress + top bar ---------- */
.flightpath { position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; }
.flightpath-line { position: absolute; inset: 0; background: linear-gradient(90deg, var(--sky), var(--violet)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.flightpath-plane { position: absolute; top: -8px; left: calc(var(--p, 0) * 100%); margin-left: -8px; color: #dfe9ff; font-size: 13px; line-height: 1; transform: rotate(0deg); filter: drop-shadow(0 0 6px rgba(124, 200, 255, .9)); opacity: 0; transition: opacity .3s; }
.flightpath.is-on .flightpath-plane { opacity: 1; }

.topbar { position: fixed; z-index: 110; top: 0; left: 0; right: 0; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.topbar.is-solid { background: rgba(4, 6, 13, .78); border-color: var(--line); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.topbar-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; width: min(1440px, 100% - 2 * var(--pad)); height: 70px; margin-inline: auto; }
.mark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.mark img { width: 34px; height: 34px; filter: drop-shadow(0 6px 14px rgba(40, 120, 255, .4)); }
.mark-word { font-family: var(--display); font-size: 1.06rem; font-weight: 700; letter-spacing: -.02em; }
.mark-word em { font-family: var(--serif); font-style: italic; font-weight: 400; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.waypoints { justify-self: center; }
.waypoints ol { display: flex; gap: 2px; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .025); }
.waypoints a { display: flex; align-items: baseline; gap: 7px; padding: 7px 14px; border-radius: 999px; color: var(--muted); font-size: .86rem; font-weight: 560; text-decoration: none; transition: color .25s, background .25s; }
.waypoints a span { font-family: var(--mono); font-size: .66rem; color: var(--dim); }
.waypoints a:hover, .waypoints a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, .07); }
.waypoints a[aria-current="true"] span { color: var(--sky); }
.ticket {
  display: inline-flex; align-items: stretch; height: 42px; border-radius: 8px; overflow: hidden; text-decoration: none; color: #050a18; font-size: .88rem; font-weight: 680;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 5px, #000 5.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 5px, #000 5.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 5px, #000 5.5px) right / 51% 100% no-repeat;
  transition: transform .3s var(--ease);
}
.ticket-label { display: flex; align-items: center; padding: 0 16px 0 18px; background: #f3f6fb; }
.ticket-stub { display: flex; align-items: center; padding: 0 14px; background: #dfe8fb; border-left: 1.5px dashed rgba(5, 10, 24, .35); transition: background .3s; }
.ticket:hover { transform: translateY(-1px); }
.ticket:hover .ticket-stub { background: #c8d9ff; }
.menu-btn { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(255, 255, 255, .04); cursor: pointer; font-size: .86rem; font-weight: 600; }
.menu-btn-icon { display: grid; gap: 5px; width: 16px; }
.menu-btn-icon i { display: block; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.menu-sheet { position: fixed; inset: 70px 0 auto; height: calc(100svh - 70px); padding: 24px var(--pad) calc(30px + env(safe-area-inset-bottom)); background: rgba(4, 6, 13, .97); border-top: 1px solid var(--line); overflow-y: auto; }
.menu-sheet[hidden] { display: none; }
.menu-sheet ol { margin: 0 0 30px; padding: 0; list-style: none; }
.menu-sheet li { border-bottom: 1px solid var(--line); }
.menu-sheet a:not(.btn) { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
.menu-sheet a span { font-family: var(--mono); font-size: .78rem; color: var(--sky); letter-spacing: .1em; }
.menu-sheet .btn { width: 100%; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: max(720px, 100svh); padding: 150px 0 120px; overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -2; background: radial-gradient(90% 70% at 70% 30%, #0e1a3a 0%, #070c1d 50%, var(--ink) 100%); }
.hero-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 12% 22%, rgba(255, 255, 255, .7), transparent), radial-gradient(1px 1px at 28% 8%, rgba(255, 255, 255, .5), transparent), radial-gradient(1.5px 1.5px at 46% 18%, rgba(220, 230, 255, .8), transparent), radial-gradient(1px 1px at 63% 6%, rgba(255, 255, 255, .5), transparent), radial-gradient(1px 1px at 82% 14%, rgba(255, 255, 255, .6), transparent), radial-gradient(1px 1px at 92% 34%, rgba(255, 255, 255, .4), transparent), radial-gradient(1px 1px at 8% 48%, rgba(255, 255, 255, .4), transparent), radial-gradient(1px 1px at 38% 40%, rgba(255, 255, 255, .35), transparent); opacity: .8; }
.hero-horizon { position: absolute; left: 50%; top: 74%; width: 260vw; height: 260vw; margin-left: -130vw; border-radius: 50%; background: radial-gradient(closest-side, #091530 0%, #060b1b 70%, #050914 100%); box-shadow: 0 -1px 0 rgba(180, 215, 255, .55), 0 -20px 80px rgba(90, 150, 255, .35), 0 -80px 200px rgba(120, 90, 255, .2); }
.hero-glow { position: absolute; left: 30%; right: -10%; top: 58%; height: 30%; background: radial-gradient(50% 50% at 60% 60%, rgba(124, 200, 255, .22), transparent 70%); filter: blur(30px); }
.hero-routes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-route { fill: none; stroke-linecap: round; }
.hero-route-main { stroke: url(#heroRoute); stroke-width: 2; stroke-dasharray: 3 10; animation: dash 40s linear infinite; }
.hero-route-faint { stroke: rgba(150, 190, 255, .16); stroke-width: 1; stroke-dasharray: 2 12; }
.hero-route-dot { fill: #fff; filter: drop-shadow(0 0 10px #9fd4ff); animation: beacon 2.4s ease-in-out infinite; }
.hero-copy { position: relative; z-index: 3; width: min(1360px, 100% - 2 * var(--pad)); margin-inline: auto; }
.hero h1 { margin: 0; max-width: 9.5ch; font-family: var(--display); font-size: clamp(3.3rem, 8.4vw, 9.4rem); font-weight: 760; line-height: .9; letter-spacing: -.055em; }
.h1-line { display: block; }
.hero h1 em { display: block; margin-top: .04em; font-size: 1.04em; }
.hero-lede { max-width: 33rem; margin: 34px 0 0; color: #b9c3d6; font-size: clamp(1.02rem, 1.25vw, 1.16rem); line-height: 1.68; }
.hero-lede strong { color: #fff; font-weight: 650; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 38px; }
.hero-stage { position: absolute; z-index: 1; right: -15vw; top: 150px; width: 66vw; perspective: 2400px; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .8s var(--ease); }
.hero-window { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(180, 210, 255, .2); box-shadow: var(--shadow-window); transform: rotateY(-21deg) rotateX(7deg) rotateZ(1.5deg); transform-origin: 0 50%; container-type: inline-size; -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 18%); mask-image: linear-gradient(100deg, transparent 0%, #000 18%); }
.hero-island { position: absolute; left: 18%; top: -38px; z-index: 2; transform: rotate(-1.5deg); animation: drift 8s ease-in-out infinite; }
.hero-concept { position: absolute; right: var(--pad); bottom: 74px; z-index: 3; margin: 0; }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; overflow: hidden; border-top: 1px solid var(--line); background: rgba(4, 6, 13, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ticker-track { display: flex; flex: 0 0 auto; gap: 0; margin: 0; padding: 0; list-style: none; animation: ticker 48s linear infinite; }
.ticker-track li { display: flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; color: var(--muted); font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ticker-track li::after { content: "✦"; color: var(--dim); font-size: .7rem; }

/* ---------- MANIFESTO + BOARD ---------- */
.manifesto { padding: clamp(110px, 16vw, 220px) 0 clamp(90px, 10vw, 140px); }
.manifesto-text { max-width: 22ch; margin: 0; font-family: var(--display); font-size: clamp(2rem, 4.7vw, 4.6rem); font-weight: 640; line-height: 1.06; letter-spacing: -.035em; }
.manifesto-text .w { color: rgba(243, 245, 249, .2); transition: color .5s var(--ease); }
.manifesto-text .w.on, .no-js .manifesto-text .w { color: var(--text); }
.manifesto-text em.w.on, .manifesto-text em .w.on { color: transparent; }
.board { margin-top: clamp(70px, 9vw, 120px); border-radius: 14px; border: 1px solid #1c2232; background: linear-gradient(180deg, #0b0d13, #07080c); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.board-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 22px; border-bottom: 1px solid #1c2232; color: #8a91a1; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.board-head b { color: #ffd480; font-weight: 600; }
.board-scroll { overflow-x: auto; }
.board-table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-family: var(--mono); }
.board-table th { padding: 14px 22px 8px; color: #5f6677; font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.board-table td { padding: 9px 22px; border-top: 1px solid #141824; color: #f1ead6; font-size: clamp(.86rem, 1.15vw, 1.05rem); letter-spacing: .08em; white-space: nowrap; }
.board-table td .ch { display: inline-block; min-width: .78em; margin-right: 2px; padding: 2px 1px; border-radius: 2px; background: linear-gradient(180deg, #171a22 0 49%, #0f1117 51% 100%); text-align: center; }
.board-table .st.done { color: #7ff0c2; }
.board-table .st.plan { color: #ffc56b; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(60px, 8vw, 110px) 0 0; border-top: 1px solid var(--line); }
.specs div { padding: 28px 24px 0 0; }
.specs div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.specs dt { color: var(--dim); font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.specs dd { margin: 14px 0 0; font-family: var(--display); font-size: clamp(3.2rem, 7vw, 6.4rem); font-weight: 250; line-height: .9; letter-spacing: -.05em; }
.specs dd small { display: block; margin-top: 12px; color: var(--muted); font-family: var(--font); font-size: .9rem; font-weight: 500; letter-spacing: 0; }

/* ---------- 01 CALENDAR STAGE ---------- */
.cal { position: relative; padding: clamp(80px, 9vw, 130px) 0 clamp(90px, 10vw, 150px); background: radial-gradient(60% 50% at 50% 70%, rgba(60, 100, 230, .14), transparent 70%); }
.cal-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px 80px; align-items: end; }
.cal-head .chapter { grid-column: 1 / -1; margin-bottom: 0; }
.cal-lede, .journey-lede, .paper-lede, .beta-lede { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.cal-stage { position: relative; width: min(1480px, 100% - 2 * var(--pad)); margin: clamp(60px, 7vw, 100px) auto 0; }
.cal-window { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(180, 210, 255, .16); box-shadow: var(--shadow-window); container-type: inline-size; }
.loupe { position: absolute; z-index: 2; display: flex; align-items: center; gap: 18px; margin: 0; }
.loupe-lens { flex: 0 0 auto; display: grid; place-items: center; width: clamp(150px, 15vw, 220px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 1px solid rgba(200, 225, 255, .4); background: radial-gradient(circle at 40% 30%, #13204a, #070d20 70%); box-shadow: 0 0 0 8px rgba(124, 200, 255, .07), 0 30px 70px -20px rgba(0, 0, 0, .9); container-type: inline-size; }
.loupe figcaption { max-width: 230px; padding: 14px 16px; border-left: 2px solid var(--sky); background: rgba(4, 6, 13, .82); color: var(--muted); font-size: .88rem; line-height: 1.5; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.loupe figcaption b { display: block; margin-bottom: 4px; color: var(--text); font-size: .98rem; }
.loupe-a { top: -70px; right: 4%; }
.loupe-b { left: -3%; top: 34%; flex-direction: row; }
.loupe-c { right: -2%; bottom: -60px; flex-direction: row-reverse; }
.loupe-c figcaption { border-left: 0; border-right: 2px solid var(--violet); text-align: right; }

/* ---------- 02 JOURNEY ---------- */
.journey { position: relative; padding: clamp(90px, 10vw, 150px) 0 clamp(60px, 8vw, 120px); border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--ink), #060a16 40%, var(--ink)); }
.journey-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px 80px; align-items: end; }
.journey-head .chapter { grid-column: 1 / -1; margin-bottom: 0; }
.journey-body { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(30px, 5vw, 80px); margin-top: clamp(50px, 6vw, 90px); }
.journey-stage { position: sticky; top: 96px; grid-column: 2; grid-row: 1; height: min(78vh, 760px); display: grid; align-items: center; }
.j-panel { grid-area: 1 / 1; container-type: inline-size; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.985); transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s .6s; }
.j-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.journey-dots { position: absolute; left: 50%; bottom: 0; display: flex; gap: 8px; transform: translateX(-50%); }
.journey-dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: background .4s, width .4s var(--ease); }
.journey-dots i.on { width: 40px; background: var(--sky); }
.journey-steps { grid-column: 1; grid-row: 1; margin: 0; padding: 0; list-style: none; }
.j-step { display: flex; flex-direction: column; justify-content: center; min-height: 72vh; padding: 40px 0; border-left: 1px solid var(--line); padding-left: clamp(22px, 3vw, 40px); opacity: .32; transition: opacity .5s var(--ease); }
.j-step.is-active, .no-js .j-step { opacity: 1; }
.j-step.is-active { border-left-color: var(--sky); }
.j-n { font-family: var(--mono); font-size: .8rem; color: var(--sky); letter-spacing: .12em; }
.j-tag { margin: 8px 0 14px; color: var(--muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.j-step h3 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.j-step p:last-child { margin: 0; max-width: 30rem; color: var(--muted); }

/* ---------- 03 PILOT (paper) ---------- */
.paper { position: relative; padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 10vw, 150px); color: var(--paper-ink); background:
  radial-gradient(circle at 50% 22px, var(--ink) 7px, transparent 7.5px) 0 0 / 64px 44px repeat-x,
  repeating-linear-gradient(180deg, transparent 0 35px, var(--paper-line) 35px 36px),
  linear-gradient(180deg, var(--paper), var(--paper-2)); }
.paper::selection, .paper *::selection { background: #2c58a6; color: #fff; }
.paper .chapter { color: var(--paper-muted); }
.paper .chapter span { border-color: rgba(23, 32, 51, .3); color: var(--paper-ink); }
.paper .display em { background: none; color: var(--ink-blue); -webkit-text-fill-color: currentColor; }
.paper-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 40px 80px; align-items: end; }
.paper-head .chapter { grid-column: 1 / -1; margin-bottom: 0; }
.paper-lede { color: var(--paper-muted); }
.climb-wrap { margin: clamp(50px, 6vw, 90px) 0 0; padding: 30px 0 0; border-top: 2px solid var(--paper-ink); }
.climb { width: 100%; height: auto; overflow: visible; }
.climb .cc-grid { stroke: var(--paper-line); stroke-dasharray: 2 4; }
.climb .cc-axis { fill: var(--paper-muted); font: 500 12px var(--mono); letter-spacing: .1em; text-anchor: middle; }
.climb .cc-path { fill: none; stroke: rgba(23, 32, 51, .12); stroke-width: 10; stroke-linejoin: round; }
.climb .cc-path-draw { fill: none; stroke: var(--paper-ink); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .climb .cc-path-draw { stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
.js .climb-wrap.is-visible .cc-path-draw { stroke-dashoffset: 0; }
.climb .cc-rank { fill: var(--paper-ink); font: 700 17px var(--display); letter-spacing: -.01em; }
.climb .cc-lvl { fill: var(--paper-muted); font: 500 11px var(--mono); letter-spacing: .12em; }
.climb .cc-me circle { fill: var(--ink-red); stroke: var(--paper); stroke-width: 3; }
.climb .cc-me text { fill: var(--ink-red); font: 600 13px var(--mono); letter-spacing: .04em; }
.climb-wrap figcaption { margin-top: 14px; color: var(--paper-muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; }
.ledger { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(30px, 5vw, 80px); margin-top: clamp(60px, 7vw, 100px); }
.ledger-label { margin: 0 0 18px; color: var(--paper-muted); font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.ledger-stats dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--paper-ink); }
.ledger-stats dl div { padding: 22px 0 26px; border-bottom: 1px solid var(--paper-line); }
.ledger-stats dl div:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--paper-line); }
.ledger-stats dl div:nth-child(even) { padding-left: 24px; }
.ledger-stats dt { color: var(--paper-muted); font-size: .9rem; }
.ledger-stats dd { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.ledger-exp { align-self: start; padding: 26px 26px 22px; border: 1.5px solid var(--paper-ink); background: rgba(255, 255, 255, .35); }
.ledger-exp h3 { margin: 0 0 14px; font-family: var(--display); font-size: 1.25rem; letter-spacing: -.01em; }
.ledger-exp table { width: 100%; border-collapse: collapse; }
.ledger-exp th, .ledger-exp td { padding: 10px 0; border-bottom: 1px dashed rgba(23, 32, 51, .25); text-align: left; font-size: .95rem; font-weight: 500; }
.ledger-exp td { text-align: right; font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.ledger-exp td small { display: block; color: var(--paper-muted); font-size: .72rem; font-weight: 500; }
.ledger-exp p { margin: 14px 0 0; color: var(--paper-muted); font-size: .86rem; }
.atlas-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: center; margin-top: clamp(70px, 8vw, 120px); }
.atlas-copy h3, .cadence h3 { margin: 0 0 8px; font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.03em; }
.atlas-copy p, .cadence p { margin: 0; max-width: 30rem; color: var(--paper-muted); }
.stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; margin-top: 34px; }
.stamp { position: relative; display: grid; place-items: center; align-content: center; aspect-ratio: 1; padding: 8px; color: var(--c); border: 2.5px solid var(--c); text-align: center; line-height: 1.05; opacity: .86; mix-blend-mode: multiply; }
.stamp::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--c); border-radius: inherit; opacity: .6; }
.stamp--circle { border-radius: 50%; }
.stamp--rect { border-radius: 10px; aspect-ratio: 1.15; }
.stamp small { font-family: var(--mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; }
.stamp b { margin: 3px 0; font-family: var(--mono); font-size: clamp(1rem, 1.6vw, 1.35rem); letter-spacing: .06em; }
.stamp em { font-family: var(--serif); font-size: .82rem; }
.stamp i { margin-top: 4px; font-family: var(--mono); font-size: .56rem; font-style: normal; letter-spacing: .1em; }
.ink-a { --c: var(--ink-red); } .ink-b { --c: var(--ink-blue); } .ink-c { --c: var(--ink-green); } .ink-d { --c: #8a5a1c; }
.stamp.r0 { transform: rotate(-9deg); } .stamp.r1 { transform: rotate(6deg); } .stamp.r2 { transform: rotate(-3deg); }
.stamp.r3 { transform: rotate(8deg); } .stamp.r4 { transform: rotate(-6deg); } .stamp.r5 { transform: rotate(4deg); }
.atlas { margin: 0; text-align: center; }
.atlas-globe { width: min(100%, 520px); height: auto; margin-inline: auto; }
.atlas-globe > circle:nth-of-type(1) { fill: rgba(23, 32, 51, .05); }
.atlas-globe > circle:nth-of-type(2) { fill: #ece5d6; stroke: var(--paper-ink); stroke-width: 1.5; }
.atlas-globe > circle:nth-of-type(n+3) { fill: var(--paper-ink); }
.atlas-globe ellipse { stroke: rgba(23, 32, 51, .2); }
.atlas-globe .land { fill: rgba(23, 32, 51, .36); stroke: rgba(23, 32, 51, .18); stroke-width: 1.2; }
.atlas-globe .land-back { opacity: .78; }
.atlas-globe .route-arc { stroke: var(--ink-red); stroke-width: 2.8; stroke-linecap: round; filter: none; }
.atlas-globe .route-arc--soft { opacity: .48; stroke-width: 2.2; }
.atlas-globe .route-point { fill: var(--ink-red); }
.atlas-globe .route-point--soft { opacity: .55; }
.atlas figcaption { margin-top: 10px; color: var(--paper-muted); font-size: .9rem; }
.atlas figcaption b { color: var(--paper-ink); }
.cadence { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px clamp(30px, 5vw, 80px); align-items: center; margin-top: clamp(70px, 8vw, 120px); padding-top: 34px; border-top: 2px solid var(--paper-ink); }
.cadence h3 { grid-row: span 2; }
.cadence-rule { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-bottom: 1.5px solid var(--paper-ink); }
.cadence-rule li { position: relative; padding: 0 0 14px; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 2rem); font-style: italic; }
.cadence-rule li::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 1.5px; height: 14px; background: var(--paper-ink); }

/* ---------- 04 TOOLS (flight strips) ---------- */
.tools { padding: clamp(100px, 11vw, 160px) 0; }
.tools-head { margin-bottom: clamp(50px, 6vw, 80px); }
.strips { position: relative; display: grid; gap: 8px; margin: 0; padding: 0 0 0 26px; list-style: none; }
.strips::before { content: ""; position: absolute; left: 0; top: -10px; bottom: -10px; width: 10px; border-radius: 3px; background: linear-gradient(180deg, #1a2133, #0d1220); border: 1px solid var(--line); }
.strip { --band: var(--sky); position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 20px 26px 20px 30px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); transition: transform .45s var(--ease), border-color .3s, background .3s; }
.strip::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 4px 0 0 4px; background: var(--band); box-shadow: 0 0 18px var(--band); opacity: .85; }
.strip:hover { transform: translateX(14px); border-color: var(--line-2); background: linear-gradient(90deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); }
.s-sky { --band: #7cc8ff; } .s-violet { --band: #a68cff; } .s-mint { --band: #6ee7b7; } .s-amber { --band: #ffb547; }
.strip-code { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; letter-spacing: .12em; color: var(--band); }
.strip h3 { margin: 0 0 4px; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.015em; }
.strip p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.strip-tag { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 4px; color: #c9d3e6; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.metar { margin: clamp(40px, 5vw, 60px) 0 0 26px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 4px; background: #070a12; }
.metar-raw { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 20px; }
.metar-src { color: var(--mint); font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; }
.metar-raw code { color: #e9eef8; font-family: var(--mono); font-size: clamp(.82rem, 1.5vw, 1.1rem); letter-spacing: .04em; word-break: break-word; }
.metar-decoded { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.metar-decoded span { font-family: var(--mono); font-size: .9rem; color: #fff; }
.metar-decoded small { display: block; color: var(--dim); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- 05 THEMES (dial) ---------- */
.themes { position: relative; padding: clamp(100px, 11vw, 160px) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.themes-bg { position: absolute; inset: 0; z-index: -1; transition: background .7s var(--ease); }
.themes-inner { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.themes-copy > p:not(.chapter) { max-width: 26rem; margin: 26px 0 0; color: #c3cbdb; }
.theme-window { margin: 0 -8vw 0 0; border-radius: 14px; overflow: hidden; border: 1px solid rgba(220, 230, 255, .2); box-shadow: var(--shadow-window); container-type: inline-size; transform: perspective(2000px) rotateY(-8deg); transform-origin: 100% 50%; }
.dial { position: relative; width: 300px; height: 300px; margin: 44px 0 0 -10px; --rot: 0deg; }
.dial-face { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3a4256, #141824 60%, #0a0d14); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 10px rgba(255, 255, 255, .03), 0 20px 40px rgba(0, 0, 0, .7), inset 0 2px 0 rgba(255, 255, 255, .15); transform: rotate(var(--rot)); transition: transform .7s cubic-bezier(.3, 1.4, .4, 1); }
.dial-pointer { position: absolute; left: 50%; top: 10px; width: 4px; height: 30px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #9fd4ff; }
.dial-ticks { position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -1deg, rgba(255, 255, 255, .25) 0 2deg, transparent 2deg 45deg); -webkit-mask: radial-gradient(circle, transparent 62px, #000 63px, #000 70px, transparent 71px); mask: radial-gradient(circle, transparent 62px, #000 63px, #000 70px, transparent 71px); }
.dial-readout { position: absolute; left: 50%; top: 50%; z-index: 1; margin: 0; text-align: center; transform: translate(-50%, -50%); pointer-events: none; }
.dial-readout small { display: block; color: var(--dim); font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; }
.dial-readout b { font-size: .98rem; }
.dial-opt { --a: 0deg; position: absolute; left: 50%; top: 50%; min-height: 32px; padding: 4px 10px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: rgba(243, 245, 249, .55); font-size: .8rem; font-weight: 600; cursor: pointer; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-128px) rotate(calc(-1 * var(--a))); transition: color .3s, background .3s, border-color .3s; }
.dial-opt:hover { color: #fff; }
.dial-opt[aria-checked="true"] { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); }
.o0 { --a: 0deg; } .o1 { --a: 45deg; } .o2 { --a: 90deg; } .o3 { --a: 135deg; } .o4 { --a: 180deg; } .o5 { --a: 225deg; } .o6 { --a: 270deg; } .o7 { --a: 315deg; }

/* ---------- 06 BETA (boarding pass) ---------- */
.beta { padding: clamp(100px, 11vw, 160px) 0; background: radial-gradient(60% 50% at 70% 60%, rgba(90, 110, 255, .14), transparent 70%); border-top: 1px solid var(--line); }
.beta-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 30px clamp(30px, 5vw, 80px); align-items: end; }
.beta-head .chapter { grid-column: 1 / -1; margin-bottom: 0; }
.beta-lede { grid-column: 1; max-width: 34rem; }
.status-board { grid-column: 2; grid-row: 2 / span 2; align-self: end; margin: 0; border-top: 1px solid var(--line-2); font-family: var(--mono); }
.status-board div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.status-board dt { color: var(--dim); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.status-board dd { margin: 0; color: #f1ead6; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.status-board dd.ok { color: var(--mint); }
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 270px; margin-top: clamp(50px, 6vw, 80px); color: var(--paper-ink); filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); }
.pass-main, .pass-stub { background: linear-gradient(180deg, #f6f2e9, #ebe4d4); }
.pass-main { padding: clamp(24px, 3.5vw, 44px); border-radius: 16px 0 0 16px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat; }
.pass-stub { position: relative; display: grid; align-content: start; gap: 14px; padding: clamp(24px, 3vw, 36px) 28px; border-radius: 0 16px 16px 0; border-left: 2px dashed rgba(23, 32, 51, .3); overflow: hidden;
  -webkit-mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) bottom / 100% 51% no-repeat; }
.pass-stub small { display: block; color: var(--paper-muted); font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }
.pass-stub b { font-family: var(--mono); font-size: 1rem; letter-spacing: .06em; }
.barcode { display: block; height: 54px; margin-top: 6px; background: repeating-linear-gradient(90deg, var(--paper-ink) 0 2px, transparent 2px 4px, var(--paper-ink) 4px 5px, transparent 5px 8px, var(--paper-ink) 8px 11px, transparent 11px 12px); opacity: .85; }
.pass-stamp { position: absolute; right: 18px; bottom: 90px; padding: 10px 14px; border: 3px solid var(--ink-red); border-radius: 8px; color: var(--ink-red); font-family: var(--mono); font-size: .9rem; font-weight: 800; letter-spacing: .14em; line-height: 1.2; text-align: center; text-transform: uppercase; opacity: 0; transform: rotate(-14deg) scale(1.6); transition: opacity .35s, transform .5s cubic-bezier(.3, 1.6, .4, 1); mix-blend-mode: multiply; }
.pass.is-received .pass-stamp { opacity: .9; transform: rotate(-14deg) scale(1); }
.pass-top { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1.5px solid var(--paper-ink); font-family: var(--display); font-weight: 700; }
.pass-top img { width: 28px; height: 28px; }
.pass-kind { margin-left: auto; color: var(--paper-muted); font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.pass-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; }
.pf { display: grid; gap: 4px; min-width: 0; }
.pf-wide { grid-column: 1 / -1; }
.pf label { color: var(--paper-muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; }
.pf .opt { letter-spacing: .1em; opacity: .7; }
.pf input, .pf select, .pf textarea { width: 100%; min-height: 46px; padding: 8px 0; border: 0; border-bottom: 1.5px solid rgba(23, 32, 51, .35); border-radius: 0; background: transparent; color: var(--paper-ink); font-size: 1.15rem; font-weight: 600; outline: none; transition: border-color .25s; }
.pf select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23172033' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 26px; font-size: 1rem; }
.pf select option { background: #f6f2e9; color: var(--paper-ink); }
.pf textarea { min-height: 80px; resize: vertical; font-size: 1rem; font-weight: 500; line-height: 1.5; }
.pf input::placeholder, .pf textarea::placeholder { color: rgba(23, 32, 51, .4); font-weight: 500; }
.pf input:focus, .pf select:focus, .pf textarea:focus { border-bottom-color: var(--ink-blue); }
.pf [aria-invalid="true"] { border-bottom-color: var(--ink-red); }
.pass :focus-visible { outline-color: var(--ink-blue); }
.error { margin: 4px 0 0; color: var(--ink-red); font-size: .84rem; font-weight: 600; }
.error:empty { display: none; }
.count { justify-self: end; color: var(--paper-muted); font-family: var(--mono); font-size: .7rem; }
.consent-wrap { display: grid; gap: 4px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--paper-muted); font-size: .9rem; line-height: 1.55; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink-blue); }
.consent a { color: var(--ink-blue); }
.consent-wrap .error { margin-left: 34px; }
.trap { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: 12px 14px; border-left: 3px solid var(--ink-red); background: rgba(185, 71, 58, .08); color: #7c2318; font-size: .92rem; font-weight: 500; }
.form-status.is-info { border-left-color: var(--ink-blue); background: rgba(44, 88, 166, .08); color: #1d3f7c; }
.form-status[hidden], .form-fallback[hidden] { display: none; }
.form-fallback { margin-top: -8px; }
.form-fallback-button { padding: 8px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ink-blue); font: inherit; font-weight: 650; cursor: pointer; text-align: left; }
.form-fallback-button:hover { color: var(--paper-ink); }
.form-fallback-button:focus-visible { outline: 2px solid var(--ink-blue); outline-offset: 5px; }
.pass-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 8px; }
.pass-submit .btn-solid { background: var(--paper-ink); color: #f6f2e9; box-shadow: 0 16px 30px -14px rgba(23, 32, 51, .6); }
.pass-submit .btn-solid:hover { background: #0b1222; }
.pass-submit p { margin: 0; color: var(--paper-muted); font-size: .84rem; }
.success { padding: 30px 0 10px; }
.success[hidden] { display: none; }
.success h3 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); font-style: italic; font-weight: 400; line-height: 1.1; }
.success p { margin: 0; max-width: 34rem; color: var(--paper-muted); font-size: 1.02rem; }

/* Submitted boarding-pass state: confirmation becomes the dominant ticket. */
.beta-submitted .dock { display: none!important; }
.pass.is-received .pass-main, .pass.is-received .pass-stub {
  background: linear-gradient(160deg, #f9f4e7, #eae8db);
}
.pass.is-received .pass-top { border-color: rgba(34, 105, 91, .52); }
.pass.is-received .pass-kind { color: #18634e; font-weight: 800; }
.pass.is-received .pass-stamp { color: #18634e; border-color: #18634e; }
.success { padding: clamp(25px, 4vw, 54px) 0 22px; }
.success-status { display: flex; align-items: center; gap: 10px; margin: 0 0 26px!important;
  color: #18634e!important; font: 700 .73rem var(--mono)!important; letter-spacing: .13em; text-transform: uppercase; }
.success-check { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #18634e;
  border-radius: 50%; font-size: 1.05rem; font-weight: 800; }
.success h3 { margin-bottom: 24px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 800;
  font-style: normal; line-height: 1.06; letter-spacing: -.04em; }
.success h3 em { font-family: var(--serif); font-weight: 400; }
.success > p:not(.success-status) { max-width: 41rem; line-height: 1.65; }
.success-details { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px;
  margin-top: 34px; padding: 24px 0; border-top: 1px solid rgba(23,32,51,.22); border-bottom: 1px solid rgba(23,32,51,.22); }
.success-details div { min-width: 0; }
.success-details small { display: block; margin-bottom: 10px; font: 600 .62rem var(--mono); letter-spacing: .1em;
  text-transform: uppercase; color: var(--paper-muted); }
.success-details strong { font: 750 clamp(.85rem, 1.4vw, 1rem) var(--display); }
.success .success-fineprint { margin-top: 22px!important; font-size: .82rem; }
@media (max-width: 900px) {
  .pass.is-received .pass-stamp {
    position: relative; right: auto; bottom: auto; grid-column: 1 / -1;
    justify-self: end; margin: 12px 14px 8px 0;
  }
}
@media (max-width: 580px) {
  .success-details { grid-template-columns: 1fr; gap: 15px; }
  .success-details div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .success-details small { margin-bottom: 0; }
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(100px, 11vw, 160px) 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.faq-head { position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: baseline; padding: 24px 0; font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 650; letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-family: var(--mono); font-size: .76rem; font-weight: 500; color: var(--sky); letter-spacing: .1em; }
.faq-list summary::after { content: "+"; justify-self: end; color: var(--muted); font-family: var(--mono); font-size: 1.3rem; font-weight: 400; transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); color: var(--sky); }
.faq-list .answer { padding: 0 36px 26px 56px; color: var(--muted); }
.faq-list .answer p { margin: 0; }

/* Real-geography website illustrations: Natural Earth public-domain outlines.
   Fills are explicit SVG attributes to avoid browser-default black landmasses. */
.geo-globe .geo-land { paint-order: stroke fill; }
.geo-map .geo-map-land { paint-order: stroke fill; }
.geo-map .geo-map-route { filter: drop-shadow(0 0 4px rgba(97,177,255,.34)); }

/* ---------- Footer ---------- */
.footer { padding: clamp(80px, 9vw, 130px) 0 calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #03050b; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-line { max-width: 18ch; margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.8rem); font-style: italic; line-height: 1.05; letter-spacing: -.02em; }
.footer-cols { display: grid; grid-template-columns: 130px 140px minmax(165px, .8fr) minmax(270px, 1.8fr); gap: clamp(24px, 2.9vw, 40px); padding: 50px 0; color: var(--muted); font-size: .92rem; }
.footer-cols h2 { margin: 0 0 14px; color: var(--text); font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.footer-cols ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); }
.footer-legal { display: grid; gap: 10px; color: var(--dim); font-size: .8rem; }
.footer-legal p { margin: 0; }
.footer-word { margin: 0 0 -0.18em; font-family: var(--display); font-size: clamp(4rem, 15.5vw, 16rem); font-weight: 760; line-height: .9; letter-spacing: -.06em; color: rgba(255, 255, 255, .055); white-space: nowrap; }
.footer-word em { font-family: var(--serif); font-weight: 400; background: linear-gradient(100deg, rgba(143, 214, 255, .2), rgba(193, 155, 255, .2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Public sitewide visit total; same GoatCounter account used before Design V2. */
.footer-visitors { min-width: 0; padding-left: 22px; border-left: 1px solid var(--line); }
.footer-visitors-number { margin: 0; color: var(--text); font-family: var(--display); font-weight: 730; font-size: clamp(2.15rem, 3.1vw, 3.25rem); line-height: 1.12; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.footer-visitors-badge { display: block; width: auto; max-width: 100%; height: 22px; margin: 8px 0 5px; object-fit: contain; object-position: left center; }
.footer-visitors-label { margin: 5px 0 0; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-visitors-status { margin: 12px 0 0; color: var(--dim); font-size: .73rem; line-height: 1.4; }
.footer-visitors-status.is-live { color: #8accb7; }
.footer-visitors-status.is-cached { color: var(--muted); }
@media (max-width: 1180px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-visitors { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}

/* ---------- Mobile dock ---------- */
.dock { position: fixed; z-index: 100; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; transform: translateY(160%); transition: transform .5s var(--ease); }
.dock .btn { width: 100%; box-shadow: 0 20px 40px rgba(0, 0, 0, .55); }
.dock.is-on { transform: none; }

/* ---------- Legal pages ---------- */
.legal-page .topbar { background: rgba(4, 6, 13, .85); border-bottom-color: var(--line); }
.legal { padding: 150px 0 100px; }
.legal article { max-width: 760px; }
.legal h1 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 720; line-height: .95; letter-spacing: -.045em; }
.legal h1 em { font-family: var(--serif); font-weight: 400; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legal h2 { margin: 48px 0 10px; font-family: var(--display); font-size: 1.35rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: #bfe2ff; }
.legal .note { color: var(--dim); font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; }
.legal-foot { padding: 40px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }
.legal-foot p { margin: 0 0 8px; }
.legal-foot a { color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .strips .strip.reveal { transform: translateX(-30px); }
.js .strips .strip.reveal.is-visible { transform: none; }
.js .cal-window.reveal { transform: translateY(40px) scale(.97); }
.js .cal-window.reveal.is-visible { transform: none; }

@keyframes beacon { 50% { opacity: .45; } }
@keyframes dash { to { stroke-dashoffset: -520; } }
@keyframes drift { 50% { transform: rotate(-1.5deg) translateY(-8px); } }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Concept illustrations ---------- */

/* =====================================================================
   Concept illustrations (HTML/SVG, not screenshots). Each scales with its
   container so it reads like a product render at every width.
   ===================================================================== */
.concept { margin: 0; }
.concept-frame { position: relative; }
.cx-k { display: block; color: #8fb7ff; font-size: .72em; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.cx-badge { display: inline-flex; align-items: center; gap: .4em; padding: .2em .6em; border-radius: 999px; background: rgba(121, 236, 203, .12); color: #9ff3d8; font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cx-badge::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: #5ee8b4; box-shadow: 0 0 .6em #5ee8b4; }
.cx-progress { height: .45em; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.cx-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #62c4ff, #a98bff); }
.cx-progress .p33 { width: 33%; } .cx-progress .p58 { width: 58%; } .cx-progress .p62 { width: 62%; } .cx-progress .p67 { width: 67%; } .cx-progress .p100 { width: 100%; }

/* Month view */
.cx-app {
  --cx-accent: 98, 168, 255;
  display: grid; grid-template-columns: 23% minmax(0, 1fr); gap: .9em; aspect-ratio: 16 / 10; padding: .9em;
  font-size: clamp(5px, 1.02cqi, 14px); line-height: 1.3; color: #e8f0ff; text-align: left;
  background: radial-gradient(70% 60% at 70% 0%, rgba(70, 110, 220, .22), transparent 70%), #070d20;
}
.cx-side { display: flex; flex-direction: column; gap: .7em; min-width: 0; }
.cx-side > div { border: 1px solid rgba(170, 200, 255, .12); border-radius: .9em; background: rgba(255, 255, 255, .035); }
.cx-side > .cx-brand { display: flex; align-items: center; gap: .7em; padding: .8em; background: linear-gradient(135deg, rgba(90, 130, 255, .18), rgba(160, 120, 255, .08)); }
.cx-brand img { width: 3.2em; height: 3.2em; }
.cx-brand span { font-size: 1.55em; font-weight: 800; letter-spacing: -.02em; }
.cx-brand em { font-style: normal; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-status { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; padding: .45em; }
.cx-status span { display: flex; align-items: center; gap: .35em; padding: .35em .45em; border-radius: .5em; background: rgba(0, 0, 0, .2); color: #9fb2cf; font-size: .7em; }
.cx-status b { margin-left: auto; color: #e8f0ff; }
.cx-status i { width: .55em; height: .55em; border-radius: 50%; background: #5ee8b4; box-shadow: 0 0 .5em #5ee8b4; }
.cx-weather { display: flex; align-items: center; gap: .6em; padding: .6em .7em; }
.cx-weather i { display: grid; place-items: center; width: 2em; height: 2em; border-radius: .5em; background: rgba(98, 196, 255, .12); color: #8ad2ff; font-style: normal; }
.cx-weather b, .cx-weather small { display: block; }
.cx-weather b { font-size: .85em; }
.cx-weather small { color: #8ea2c0; font-size: .7em; }
.cx-fcard { display: flex; flex-direction: column; gap: .6em; padding: .8em; flex: 1; }
.cx-fc-top { display: flex; justify-content: space-between; align-items: center; color: #8ea2c0; font-size: .75em; }
.cx-fc-id { padding: .55em .7em; border-radius: .7em; background: linear-gradient(135deg, rgba(110, 150, 255, .25), rgba(170, 110, 255, .15)); color: #c9d6f0; font-size: .85em; }
.cx-fc-id b { float: right; color: #fff; font-size: 1.5em; line-height: 1; }
.cx-fc-ac { padding: .5em .7em; border-radius: .7em; background: rgba(0, 0, 0, .2); font-size: .85em; font-weight: 700; }
.cx-fc-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: .4em; align-items: center; }
.cx-fc-route span { padding: .45em; border-radius: .6em; background: rgba(0, 0, 0, .25); text-align: center; }
.cx-fc-route small { display: block; color: #8ea2c0; font-size: .62em; letter-spacing: .12em; }
.cx-fc-route b { font-size: 1.15em; }
.cx-fc-route i { color: #a98bff; font-style: normal; }
.cx-fc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .4em; }
.cx-fc-stats span { padding: .45em .55em; border-radius: .6em; background: rgba(0, 0, 0, .2); font-family: var(--mono); font-size: .78em; }
.cx-fc-stats small { display: block; font-family: var(--font); color: #8ea2c0; font-size: .82em; text-transform: uppercase; letter-spacing: .06em; }

.cx-main { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .7em; min-width: 0; padding: .7em; border: 1px solid rgba(170, 200, 255, .12); border-radius: 1em; background: rgba(5, 10, 26, .55); }
.cx-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8em; }
.cx-nav { display: flex; gap: .3em; align-items: center; }
.cx-nav i, .cx-nav span { display: grid; place-items: center; height: 2.1em; min-width: 2.1em; padding: 0 .6em; border-radius: 999px; background: rgba(255, 255, 255, .06); font-style: normal; font-size: .85em; color: #c8d6ef; }
.cx-month { text-align: center; }
.cx-month b { display: block; font-size: 1.75em; letter-spacing: -.01em; }
.cx-month small { display: inline-block; margin-top: .2em; padding: .15em .7em; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #b6c6e0; font-size: .7em; }
.cx-pilot { justify-self: end; display: flex; align-items: center; gap: .55em; padding: .35em .9em .35em .35em; border-radius: 999px; border: 1px solid rgba(170, 200, 255, .15); background: rgba(255, 255, 255, .05); }
.cx-avatar { width: 2.3em; height: 2.3em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #bfe4ff, #4b8dff 45%, #6a3fd0 90%); box-shadow: 0 0 0 .15em rgba(255, 255, 255, .15); }
.cx-pilot b, .cx-pilot small { display: block; }
.cx-pilot b { font-size: .85em; }
.cx-pilot small { color: #8ea2c0; font-size: .68em; }
.cx-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(5, minmax(0, 1fr)); gap: .3em; min-height: 0; }
.cx-dow { padding-bottom: .2em; color: #a9b9d4; font-size: .82em; font-weight: 700; text-align: center; }
.cx-day { position: relative; display: flex; flex-direction: column; gap: .3em; min-width: 0; min-height: 0; padding: .45em; overflow: hidden; border: 1px solid rgba(170, 200, 255, .07); border-radius: .55em; background: rgba(255, 255, 255, .02); font-size: .7em; }
.cx-num { position: absolute; top: .35em; right: .45em; display: grid; place-items: center; min-width: 1.9em; height: 1.9em; border-radius: 50%; font-size: 1.15em; font-weight: 800; color: #dfe8f8; }
.cx-day.out { opacity: .35; }
.cx-day.has { border-color: rgba(var(--cx-accent), .35); background: linear-gradient(160deg, rgba(var(--cx-accent), .2), rgba(var(--cx-accent), .04) 70%); }
.cx-day.has .cx-num { background: rgba(0, 0, 0, .35); }
.cx-count { align-self: flex-start; padding: .2em .55em; border-radius: .45em; background: rgba(var(--cx-accent), .3); font-weight: 750; }
.cx-hud { display: grid; gap: .2em; }
.cx-hud span { padding: .25em .4em; border-radius: .35em; background: rgba(0, 0, 0, .3); font-family: var(--mono); font-weight: 700; }
.cx-hud small { display: block; font-family: var(--font); font-size: .85em; font-weight: 600; color: #9fb2cf; }
.cx-route { display: flex; align-items: center; gap: .35em; margin-top: auto; font-weight: 800; white-space: nowrap; }
.cx-route i { display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: rgba(255, 255, 255, .1); font-style: normal; font-size: .8em; }
.cx-day.planned { border: 1px dashed rgba(169, 139, 255, .6); background: rgba(169, 139, 255, .07); }
.cx-plan { display: flex; flex-direction: column; gap: .15em; margin-top: 1.6em; }
.cx-plan b { align-self: flex-start; padding: .15em .5em; border-radius: .35em; background: rgba(169, 139, 255, .3); text-transform: uppercase; letter-spacing: .08em; font-size: .85em; }
.cx-day.today { box-shadow: inset 0 0 0 .15em rgba(120, 200, 255, .75); }
.cx-day.today .cx-num { background: #62c4ff; color: #04102a; }

/* Flight review panels */
.cx-pop { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .8em; aspect-ratio: 16 / 10; padding: .9em; border-radius: 18px; border: 1px solid rgba(170, 200, 255, .16); background: radial-gradient(60% 50% at 80% 0%, rgba(110, 90, 230, .18), transparent 70%), #070d20; box-shadow: var(--shadow-window); font-size: clamp(6px, 1.2cqi, 14px); color: #e8f0ff; line-height: 1.3; }
.cx-pop-head { display: flex; align-items: center; gap: 1em; padding: .7em 1em; border-radius: .9em; border: 1px solid rgba(170, 200, 255, .12); background: linear-gradient(135deg, rgba(80, 130, 255, .18), rgba(150, 110, 255, .08)); }
.cx-pop-head > b { font-size: 1.25em; }
.cx-pop-route { margin-inline: auto; font-size: 1.3em; font-weight: 800; letter-spacing: .02em; }
.cx-pop-route i { color: #62c4ff; font-style: normal; }
.cx-pop-ac { font-weight: 700; color: #cfdcf3; }
.cx-pop-tab { padding: .25em .7em; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: .8em; font-weight: 700; }
.cx-pop-body { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: .8em; min-height: 0; }
.cx-pop-body--stage { grid-template-columns: 1fr; }
.cx-pop-side { display: flex; flex-direction: column; gap: .5em; padding: .9em; border-radius: .9em; border: 1px solid rgba(170, 200, 255, .1); background: rgba(255, 255, 255, .03); }
.cx-row { display: flex; justify-content: space-between; padding: .45em 0; border-bottom: 1px solid rgba(170, 200, 255, .08); font-size: .9em; color: #aebfd9; }
.cx-row b { color: #fff; font-family: var(--mono); }
.cx-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; margin-top: .4em; }
.cx-metrics span { padding: .6em; border-radius: .7em; border: 1px solid rgba(170, 200, 255, .1); background: rgba(0, 0, 0, .2); font-family: var(--mono); font-size: 1.05em; font-weight: 700; }
.cx-metrics small { display: block; margin-bottom: .2em; font-family: var(--font); color: #8ea2c0; font-size: .65em; letter-spacing: .1em; text-transform: uppercase; }
.cx-pop-stage { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: .5em; min-height: 0; padding: .5em; border-radius: .9em; border: 1px solid rgba(170, 200, 255, .1); background: rgba(0, 0, 0, .25); overflow: hidden; }
.cx-map { width: 100%; height: 100%; border-radius: .6em; }
.cx-map-land { fill: #14263f; stroke: rgba(184, 208, 255, .18); stroke-width: 1.2; }
.cx-map-land-soft { fill: none; stroke: rgba(196, 214, 255, .08); stroke-width: 28; stroke-linecap: round; }
.cx-map-border { fill: none; stroke: rgba(206, 221, 255, .16); stroke-width: 1.4; stroke-linecap: round; }
.cx-map-route-shadow { opacity: .95; }
.cx-map-route { filter: drop-shadow(0 0 8px rgba(98, 196, 255, .2)); }
.cx-route-plane circle { stroke: rgba(255,255,255,.18); }
.cx-svg-label { fill: #e8f0ff; font: 700 15px var(--mono); }
.cx-readouts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4em; }
.cx-readouts span { padding: .4em .5em; border-radius: .5em; background: rgba(255, 255, 255, .04); font-family: var(--mono); font-size: .82em; font-weight: 700; white-space: nowrap; overflow: hidden; }
.cx-readouts small { display: block; color: #8ea2c0; font-size: .78em; }
.cx-scrub { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: .7em; }
.cx-play { display: grid; place-items: center; width: 2.2em; height: 2.2em; border-radius: 50%; background: #fff; color: #061127; font-size: .8em; }
.cx-time { font-family: var(--mono); font-size: .78em; color: #b6c6e0; }
.cx-track { position: relative; height: .35em; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.cx-track i { position: absolute; inset: 0 38% 0 0; border-radius: inherit; background: linear-gradient(90deg, #62c4ff, #a98bff); }
.cx-track i::after { content: ""; position: absolute; right: -.55em; top: 50%; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 0 .6em rgba(98, 196, 255, .8); }
.cx-speed { padding: .2em .55em; border-radius: .4em; background: rgba(255, 255, 255, .08); font-size: .75em; font-weight: 700; }
.cx-pop-stage--globe { background: radial-gradient(60% 70% at 50% 45%, rgba(60, 110, 230, .2), transparent 70%), rgba(0, 0, 0, .3); }
.cx-globe-wrap { display: grid; place-items: center; min-height: 0; }
.cx-globe-pop { height: 100%; max-height: 100%; width: auto; }
.cx-globe-pop .land { fill: rgba(156, 198, 255, .18); stroke: rgba(192, 222, 255, .12); stroke-width: 1.2; }
.cx-globe-pop .land-back { opacity: .72; }
.cx-globe-pop .route-arc { stroke: #6fd0ff; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(111, 208, 255, .28)); }
.cx-globe-pop .route-arc--soft { stroke: #8ea8ff; stroke-width: 2.35; opacity: .55; }
.cx-globe-pop .route-point { fill: #d8efff; }
.cx-globe-pop .route-point--soft { fill: #98b8ff; opacity: .72; }
.cx-globe-legend { position: absolute; top: .8em; left: .8em; display: grid; gap: .35em; font-size: .78em; color: #c3d2ea; }
.cx-globe-legend i { display: inline-block; width: 1.6em; height: .25em; margin-right: .5em; border-radius: 2px; vertical-align: middle; }
.cx-globe-legend .a { background: #6fd0ff; } .cx-globe-legend .b { background: #8ea8ff; } .cx-globe-legend .c { background: #b58cff; }
.cx-pop-body--bb { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
.cx-bb-head { display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.cx-bb-head b { font-size: 1.15em; }
.cx-bb-head span { display: flex; align-items: center; gap: .5em; color: #9fb2cf; font-size: .8em; font-family: var(--mono); }
.cx-bb-head i { width: .55em; height: .55em; border-radius: 50%; background: #62c4ff; box-shadow: 0 0 .5em #62c4ff; }
.cx-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .6em; min-height: 0; }
.cx-chart { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .3em; padding: .6em; border-radius: .8em; border: 1px solid rgba(170, 200, 255, .1); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); min-height: 0; }
.cx-chart-head { display: flex; align-items: baseline; gap: .4em; }
.cx-chart-head small { color: #8ea2c0; font-size: .7em; }
.cx-chart-head span { margin-left: auto; padding: .1em .5em; border-radius: 999px; border: 1px solid rgba(170, 200, 255, .2); font-family: var(--mono); font-size: .75em; font-weight: 700; }
.cx-chart svg { width: 100%; height: 100%; min-height: 0; }
.cx-pop-body--sb { grid-template-columns: 1.25fr 1fr; }
.cx-sb-main, .cx-sb-facts { padding: 1em; border-radius: .9em; border: 1px solid rgba(170, 200, 255, .1); background: rgba(255, 255, 255, .03); }
.cx-sb-main { display: flex; flex-direction: column; gap: 1em; }
.cx-sb-route { display: flex; align-items: center; gap: .8em; font-size: 2em; font-weight: 800; }
.cx-sb-route i { position: relative; flex: 1; height: 2px; background: linear-gradient(90deg, #62c4ff, #a98bff); }
.cx-sb-route i::after { content: "✈"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); font-size: .55em; font-style: normal; color: #fff; }
.cx-sb-main code { padding: .7em .8em; border-radius: .6em; background: rgba(0, 0, 0, .3); color: #b6c6e0; font-family: var(--mono); font-size: .85em; line-height: 1.6; }
.cx-sb-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.cx-sb-compare span { padding: .6em; border-radius: .6em; background: rgba(0, 0, 0, .2); font-weight: 700; }
.cx-sb-compare small, .cx-sb-facts small { display: block; color: #8ea2c0; font-size: .72em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cx-sb-progress { display: grid; gap: .35em; margin-top: auto; }
.cx-sb-progress i { display: block; height: .45em; border-radius: 999px; background: linear-gradient(90deg, #62c4ff, #a98bff); }
.cx-sb-progress span { color: #9fb2cf; font-size: .75em; text-align: right; }
.cx-sb-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; align-content: start; }
.cx-sb-facts span { padding: .55em .6em; border-radius: .6em; background: rgba(0, 0, 0, .2); font-family: var(--mono); font-weight: 700; }

/* Cards: pilot, hangar, challenges, metrics */
.cx-card { display: flex; flex-direction: column; gap: 1em; height: 100%; padding: 1.3em; border-radius: 16px; border: 1px solid rgba(170, 200, 255, .16); background: radial-gradient(80% 60% at 0% 0%, rgba(90, 130, 255, .16), transparent 65%), #08102a; box-shadow: 0 40px 80px -30px rgba(0, 4, 20, .9); font-size: clamp(8px, 2.5cqi, 15px); color: #e8f0ff; line-height: 1.35; }
.cx-career-rank { display: flex; align-items: center; gap: 1em; }
.cx-rank-badge { display: grid; place-items: center; flex: 0 0 auto; width: 3.6em; height: 3.6em; border-radius: 50%; border: 1px solid rgba(170, 200, 255, .3); background: radial-gradient(circle, rgba(98, 196, 255, .25), rgba(98, 196, 255, .03)); color: #8ad2ff; font-size: 1.1em; }
.cx-career-rank small { display: block; color: #8fb7ff; font-size: .75em; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.cx-career-rank b { display: block; font-size: 2em; letter-spacing: -.02em; line-height: 1.1; }
.cx-career-rank em { color: #aebfd9; font-style: normal; font-size: .9em; }
.cx-progress-label { display: flex; justify-content: space-between; margin-top: -.5em; color: #9fb2cf; font-size: .8em; }
.cx-career-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(170, 200, 255, .1); }
.cx-career-stats span { padding: .7em .6em 0; font-size: 1.5em; font-weight: 800; }
.cx-career-stats span + span { border-left: 1px solid rgba(170, 200, 255, .1); }
.cx-career-stats small { display: block; color: #9fb2cf; font-size: .5em; font-weight: 600; }
.cx-exp-line { display: flex; justify-content: space-between; padding: .7em .9em; border-radius: .7em; background: rgba(255, 255, 255, .04); font-size: .9em; }
.cx-exp-line b { color: #8ad2ff; }
.cx-stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8em; }
.cx-stamp { display: grid; place-items: center; align-content: center; aspect-ratio: 1; border-radius: 50%; border: .15em dashed rgba(140, 210, 255, .55); color: #cfe8ff; text-align: center; line-height: 1.05; transform: rotate(-8deg); }
.cx-stamp.s1 { transform: rotate(6deg); border-color: rgba(181, 140, 255, .6); color: #e2d6ff; }
.cx-stamp.s2 { transform: rotate(-3deg); border-color: rgba(121, 236, 203, .55); color: #d3fff0; }
.cx-stamp.s3 { transform: rotate(10deg); border-color: rgba(255, 198, 107, .55); color: #ffe9c4; }
.cx-stamp small { font-size: .55em; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.cx-stamp b { font-size: 1.05em; font-family: var(--mono); }
.cx-stamp i { font-style: normal; font-size: .8em; }
.cx-world { align-items: center; }
.cx-world .cx-k { align-self: flex-start; }
.cx-globe-world { width: 82%; height: auto; }
.cx-world-tags { display: flex; gap: .5em; }
.cx-world-tags span { padding: .25em .7em; border-radius: 999px; border: 1px solid rgba(170, 200, 255, .2); font-size: .75em; }
.cx-hangar-hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 1em; padding: 1em; border-radius: .9em; background: rgba(255, 255, 255, .035); }
.cx-plane { width: 100%; height: auto; }
.cx-hangar-hero small { display: block; color: #8fb7ff; font-size: .72em; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.cx-hangar-hero b { display: block; font-size: 1.5em; }
.cx-hangar-hero em, .cx-hangar-list em { color: #9fb2cf; font-style: normal; font-size: .85em; }
.cx-hangar-list { display: grid; gap: .4em; }
.cx-hangar-list span { display: flex; justify-content: space-between; gap: 1em; padding: .6em .8em; border-radius: .6em; background: rgba(0, 0, 0, .22); }
.cx-seg { display: inline-flex; align-self: flex-start; gap: .2em; padding: .25em; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.cx-seg span { padding: .3em .9em; border-radius: 999px; color: #9fb2cf; font-size: .82em; font-weight: 700; }
.cx-seg .on { background: rgba(255, 255, 255, .12); color: #fff; }
.cx-ch { display: grid; grid-template-columns: 1fr auto; gap: .45em 1em; padding: .8em .9em; border-radius: .8em; border: 1px solid rgba(170, 200, 255, .1); background: rgba(255, 255, 255, .03); }
.cx-ch span { display: flex; justify-content: space-between; gap: 1em; }
.cx-ch em { color: #9fb2cf; font-style: normal; font-family: var(--mono); }
.cx-ch small { grid-row: 1 / 3; grid-column: 2; align-self: center; padding: .2em .6em; border-radius: 999px; background: rgba(98, 196, 255, .12); color: #a7dcff; font-weight: 700; }
.cx-metrics-card { gap: .8em; padding: 1.1em; font-size: clamp(8px, 4.2cqi, 13px); }
.cx-metrics-card .cx-metrics { margin: 0; }


/* ---------- Concept components new in Design V2 ---------- */
.cx-solo { --cx-accent: 98, 168, 255; color: #e8f0ff; line-height: 1.3; font-size: 7.4cqi; }
.loupe-cell { width: 76%; }
.loupe-cell .cx-day { min-height: 0; aspect-ratio: 1 / .92; font-size: 1em; }
.loupe-month { width: 86%; font-size: 6.6cqi; text-align: center; }
.loupe-month .cx-month b { font-size: 1.6em; }
.loupe-month .cx-month small { font-size: .78em; line-height: 1.5; white-space: normal; }

.cx-island { display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid rgba(190, 220, 255, .28); background: rgba(6, 12, 30, .86); color: #e8f0ff; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .85), 0 0 0 6px rgba(124, 200, 255, .05); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 14px; white-space: nowrap; }
.cx-island-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 0 4px rgba(255, 95, 87, .18), 0 0 12px #ff5f57; animation: beacon 1.6s ease-in-out infinite; }
.cx-island-copy small { display: block; color: #9fb2cf; font-family: var(--mono); font-size: .66em; letter-spacing: .14em; text-transform: uppercase; }
.cx-island-copy b { font-family: var(--mono); font-size: .98em; letter-spacing: .04em; }
.cx-island-bar { position: relative; width: 74px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.cx-island-bar i { position: absolute; inset: 0 35% 0 0; border-radius: inherit; background: linear-gradient(90deg, #62c4ff, #a98bff); }
.cx-island em { font-family: var(--mono); font-size: .86em; font-style: normal; color: #cfe0ff; }

.cx-pane { border-radius: 16px; overflow: hidden; border: 1px solid rgba(170, 200, 255, .16); background: radial-gradient(70% 60% at 80% 0%, rgba(110, 90, 230, .16), transparent 70%), #070d20; box-shadow: var(--shadow-window); color: #e8f0ff; font-size: clamp(9px, 1.65cqi, 15px); line-height: 1.35; }
.cx-pane-bar { display: flex; align-items: center; gap: 12px; padding: .8em 1.1em; border-bottom: 1px solid rgba(170, 200, 255, .1); color: #9fb2cf; font-family: var(--mono); font-size: .78em; letter-spacing: .1em; text-transform: uppercase; }
.cx-pane-dots { display: flex; gap: 5px; }
.cx-pane-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.cx-pane-body { padding: 1.4em; }
.cx-connect { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2em; }
.cx-conn-status { display: grid; gap: .6em; align-content: start; }
.cx-conn-row { display: flex; align-items: center; gap: .7em; padding: .8em 1em; border-radius: .7em; border: 1px solid rgba(170, 200, 255, .1); background: rgba(255, 255, 255, .03); }
.cx-conn-row span { color: #9fb2cf; }
.cx-conn-row b { margin-left: auto; }
.cx-conn-row i { width: .6em; height: .6em; border-radius: 50%; background: #5ee8b4; box-shadow: 0 0 .7em #5ee8b4; }
.cx-conn-row i.pulse { animation: beacon 1.8s ease-in-out infinite; }
.cx-conn-sim { padding: 1em; border-radius: .7em; background: linear-gradient(135deg, rgba(90, 130, 255, .18), rgba(160, 120, 255, .08)); }
.cx-conn-sim small { display: block; color: #9fb2cf; font-size: .78em; }
.cx-conn-sim b { font-size: 1.1em; }
.cx-actions { display: grid; gap: .5em; align-content: start; padding: 1em; border-radius: .8em; border: 1px solid rgba(170, 200, 255, .12); background: rgba(0, 0, 0, .25); }
.cx-act { display: flex; align-items: center; gap: .7em; padding: .75em .9em; border-radius: .6em; color: #7f8aa3; font-weight: 600; }
.cx-act.primary { color: #04102a; background: #f3f6fb; box-shadow: 0 0 0 4px rgba(124, 200, 255, .15); }
.cx-act kbd { margin-left: auto; padding: .1em .5em; border-radius: .3em; background: rgba(4, 16, 42, .1); font-family: var(--mono); font-size: .72em; }
.cx-actions p { margin: .4em 0 0; color: #8ea2c0; font-size: .82em; }
.cx-live { display: grid; gap: 1.1em; }
.cx-island--lg { justify-self: start; font-size: 1.05em; }
.cx-live-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1em; }
.cx-live-big { padding: 1em 1.2em; border-radius: .8em; border: 1px solid rgba(170, 200, 255, .1); background: rgba(255, 255, 255, .03); }
.cx-live-big small { color: #9fb2cf; font-family: var(--mono); font-size: .72em; letter-spacing: .14em; text-transform: uppercase; }
.cx-live-big b { display: block; margin: .1em 0; font-family: var(--mono); font-size: 3em; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cx-live-big em { color: #8ea2c0; font-size: .82em; font-style: normal; }
.cx-live-read { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.cx-live-read span { padding: .7em .8em; border-radius: .6em; background: rgba(0, 0, 0, .25); font-family: var(--mono); font-weight: 700; }
.cx-live-read small { display: block; color: #8ea2c0; font-size: .72em; font-weight: 500; letter-spacing: .12em; }
.cx-phases { display: flex; gap: .3em; overflow: hidden; }
.cx-phases span { flex: 1 1 0; min-width: 0; padding: .5em .2em; border-top: 2px solid rgba(255, 255, 255, .1); color: #63708a; font-size: .68em; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-phases span.done { border-color: rgba(124, 200, 255, .45); color: #9fb2cf; }
.cx-phases span.on { border-color: #7cc8ff; color: #fff; background: rgba(124, 200, 255, .1); }
.cx-live-plan { display: grid; gap: .5em; padding: .9em 1em; border-radius: .7em; background: rgba(255, 255, 255, .03); }
.cx-live-plan small { display: block; color: #9fb2cf; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; }
.cx-live-plan .cx-island-bar { width: 100%; height: 6px; }
.cx-land { display: grid; gap: 1em; }
.cx-week { font-size: 1.3em; }
.cx-grid--week { grid-template-rows: auto minmax(7.5em, auto); }
.cx-grid--week .cx-day { min-height: 7.5em; }
.land-new { animation: landpulse 2.4s var(--ease) infinite; }
.cx-toast { display: flex; flex-wrap: wrap; align-items: center; gap: .5em 1em; padding: .9em 1.1em; border-radius: .8em; border: 1px solid rgba(94, 232, 180, .3); background: rgba(94, 232, 180, .07); }
.cx-toast span:last-child { flex-basis: 100%; color: #9fb2cf; font-size: .86em; }
.cx-award { padding: 1em 1.1em; border-radius: .8em; border: 1px solid rgba(170, 200, 255, .12); background: rgba(0, 0, 0, .22); }
.cx-award-rows { display: grid; gap: .3em; margin: .6em 0; }
.cx-award-rows span { display: flex; justify-content: space-between; color: #b6c6e0; font-size: .9em; }
.cx-award-rows b { font-family: var(--mono); color: #fff; }
.cx-award-total { display: flex; justify-content: space-between; padding-top: .6em; border-top: 1px dashed rgba(170, 200, 255, .2); font-weight: 700; }
.cx-award-total b { color: #8ad2ff; font-family: var(--mono); }
.j-panel .cx-pop { aspect-ratio: 16 / 10.5; }

/* Theme backdrops: the whole Themes chapter changes sky */
.themes[data-active="default"] .themes-bg { background: radial-gradient(60% 70% at 75% 10%, rgba(80, 120, 255, .35), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(150, 100, 255, .25), transparent 70%), #060b1c; }
.themes[data-active="aurora"] { --cx-tint: 116, 235, 213; }
.themes[data-active="aurora"] .themes-bg { background: linear-gradient(180deg, #04121c, #061a24 60%, #03101a); }
.themes[data-active="aurora"] .themes-bg i, .themes[data-active="cosmos"] .themes-bg i { opacity: .8; }
.themes-bg i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: 0; transition: opacity .7s var(--ease); }
.themes[data-active="aurora"] .themes-bg i:nth-child(1) { left: -10%; top: -30%; width: 70%; height: 90%; background: rgba(116, 235, 213, .45); transform: rotate(-18deg) scaleY(.4); }
.themes[data-active="aurora"] .themes-bg i:nth-child(2) { left: 30%; top: -35%; width: 70%; height: 80%; background: rgba(120, 160, 230, .45); transform: rotate(12deg) scaleY(.35); }
.themes[data-active="aurora"] .themes-bg i:nth-child(3) { left: 55%; top: -10%; width: 50%; height: 60%; background: rgba(90, 220, 170, .35); transform: rotate(-6deg) scaleY(.3); }
.themes[data-active="cosmos"] .themes-bg { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #dfe8ff, transparent), radial-gradient(1px 1px at 85% 65%, #fff, transparent), radial-gradient(1px 1px at 10% 70%, #fff, transparent), radial-gradient(1px 1px at 55% 45%, #fff, transparent), #070718; }
.themes[data-active="cosmos"] .themes-bg i:nth-child(1) { left: 45%; top: 10%; width: 45%; height: 60%; background: rgba(113, 141, 255, .45); }
.themes[data-active="cosmos"] .themes-bg i:nth-child(2) { left: 60%; top: 35%; width: 30%; height: 45%; background: rgba(150, 70, 200, .45); }
.themes[data-active="cosmos"] .themes-bg i:nth-child(3) { left: 5%; top: 55%; width: 30%; height: 40%; background: rgba(70, 60, 160, .4); }
.themes[data-active="storm"] .themes-bg { background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(190, 215, 255, .06) 22px 23px), radial-gradient(70% 50% at 50% 0%, rgba(125, 162, 214, .35), transparent 70%), linear-gradient(180deg, #121b2c, #0a101c); }
.themes[data-active="wave"] .themes-bg { background: radial-gradient(120% 40% at 50% 100%, rgba(74, 217, 255, .35), transparent 60%), radial-gradient(140% 50% at 20% 110%, rgba(100, 124, 255, .45), transparent 60%), radial-gradient(90% 40% at 90% 105%, rgba(193, 102, 255, .35), transparent 60%), linear-gradient(180deg, #050d22, #071736); }
.themes[data-active="fire"] { --cx-tint: 255, 138, 82; }
.themes[data-active="fire"] .themes-bg { background: radial-gradient(90% 35% at 50% 105%, rgba(255, 140, 60, .7), transparent 70%), radial-gradient(40% 25% at 20% 100%, rgba(255, 209, 132, .5), transparent 70%), linear-gradient(180deg, #120c0a, #1a100b 70%, #2a1208); }
.themes[data-active="demo"] .themes-bg { background: linear-gradient(rgba(130, 170, 255, .08) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(130, 170, 255, .08) 1px, transparent 1px) 0 0 / 44px 44px, conic-gradient(from 200deg at 60% 40%, rgba(86, 190, 255, .35), rgba(114, 60, 255, .35), rgba(89, 235, 185, .3), rgba(255, 120, 200, .25), rgba(86, 190, 255, .35)), #05081a; }
.themes[data-active="intaglio"] { --cx-tint: 208, 200, 184; }
.themes[data-active="intaglio"] .themes-bg { background: repeating-radial-gradient(ellipse at 30% 60%, transparent 0 16px, rgba(208, 200, 184, .1) 16px 17px), repeating-radial-gradient(ellipse at 80% 20%, transparent 0 20px, rgba(208, 200, 184, .07) 20px 21px), linear-gradient(118deg, #22282a, #141617 55%, #2b2b27); }
.themes[data-active="aurora"] .cx-app, .themes[data-active="fire"] .cx-app, .themes[data-active="intaglio"] .cx-app { --cx-accent: var(--cx-tint); }

@keyframes landpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 200, 255, 0); } 40% { box-shadow: 0 0 0 .35em rgba(124, 200, 255, .35), 0 0 2em rgba(124, 200, 255, .4); } }

/* ===================== Responsive ===================== */
@media (max-width: 1180px) {
  .waypoints a { padding: 7px 10px; }
  .waypoints a span { display: none; }
  .loupe-b { left: -1%; }
  .loupe-c { right: 0; }
}
@media (max-width: 1024px) {
  .waypoints { display: none; }
  .topbar-inner { grid-template-columns: auto 1fr auto auto; gap: 12px; }
  .ticket { justify-self: end; }
  .menu-btn { display: inline-flex; }
  .hero { padding-bottom: 90px; }
  .hero-stage { position: relative; right: auto; top: auto; width: 128%; margin: 70px 0 0 6%; }
  .hero-window { transform: rotateY(-14deg) rotateX(5deg); }
  .hero-concept { position: static; width: min(1360px, 100% - 2 * var(--pad)); margin: 18px auto 0; }
  .ticker { position: relative; margin-top: 40px; }
  .hero { min-height: 0; }
  .cal-head, .journey-head, .paper-head, .beta-head, .themes-inner, .faq-grid, .ledger, .atlas-row, .cadence { grid-template-columns: 1fr; }
  .status-board { grid-column: 1; grid-row: auto; }
  .faq-head { position: static; }
  .loupe { position: static; flex-direction: column; align-items: flex-start; }
  .loupe-c { flex-direction: column; }
  .loupe-c figcaption { border-right: 0; border-left: 2px solid var(--violet); text-align: left; }
  .cal-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .cal-window { grid-column: 1 / -1; }
  .loupe figcaption { max-width: none; padding: 12px 0 0 14px; background: transparent; }
  .theme-window { margin: 0; transform: none; }
  .dial { margin: 40px auto 0; }
  .themes-copy { text-align: left; }
  .cadence h3 { grid-row: auto; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .dock { display: block; }
  .journey-body { grid-template-columns: 1fr; gap: 0; }
  .journey-stage { grid-column: 1; grid-row: 1; top: 70px; z-index: 2; height: auto; min-height: 0; padding: 14px 0 30px; background: linear-gradient(180deg, #060a16 85%, rgba(6, 10, 22, 0)); }
  .journey-steps { grid-row: 2; }
  .j-step { min-height: 62vh; padding-top: 30px; justify-content: flex-start; }
  .journey-dots { bottom: 12px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs div:nth-child(n+3) { margin-top: 30px; }
  .strip { grid-template-columns: 70px minmax(0, 1fr); padding: 18px 18px 18px 24px; }
  .strip-tag { grid-column: 2; justify-self: start; }
  .pass { grid-template-columns: 1fr; }
  .pass-main { border-radius: 16px 16px 0 0;
    -webkit-mask: radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 100%, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 14.5px) right / 51% 100% no-repeat; }
  .pass-stub { grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 0; border-top: 2px dashed rgba(23, 32, 51, .3); border-radius: 0 0 16px 16px;
    -webkit-mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 0, transparent 14px, #000 14.5px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 14px, #000 14.5px) right / 51% 100% no-repeat; }
  .barcode { grid-column: 1 / -1; }
  .pass-stamp { right: 20px; bottom: 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shell, .cal-stage { width: calc(100% - 2 * var(--pad)); }
  .mark-word { display: none; }
  .ticket { height: 40px; font-size: .82rem; }
  .ticket-label { padding: 0 12px 0 14px; }
  .ticket-stub { padding: 0 10px; }
  .menu-btn-text { display: none; }
  .hero { padding-top: 112px; }
  .hero h1 { max-width: 100%; font-size: clamp(2.9rem, 14.5vw, 4.4rem); }
  /* Gradient-clipped italic text must not overflow its own block: otherwise
     the last letters disappear even though the viewport has room. */
  .hero h1 em {
    box-sizing: border-box;
    width: 100%;
    font-size: clamp(2.25rem, 11.7vw, 4.2rem);
    letter-spacing: -.035em;
    padding-right: .14em;
    white-space: nowrap;
  }
  .label { font-size: .68rem; letter-spacing: .1em; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { gap: 6px; }
  .hero-stage { width: 175%; margin: 56px 0 0 4%; }
  .hero-island { left: 4%; top: -48px; }
  .cx-island { font-size: 12px; padding: 7px 12px 7px 10px; gap: 9px; }
  .cx-island-bar { width: 44px; }
  .manifesto-text { font-size: clamp(1.75rem, 8.2vw, 2.6rem); }
  .board-table { min-width: 620px; }
  .specs dd { font-size: 3.4rem; }
  .cal-stage { grid-template-columns: 1fr; gap: 26px; }
  .cal-window .cx-app, .theme-window .cx-app { grid-template-columns: 1fr; aspect-ratio: auto; padding: .6em; font-size: clamp(6px, 2.05cqi, 12px); }
  .cal-window .cx-side, .cal-window .cx-pilot, .cal-window .cx-nav span, .theme-window .cx-pilot, .theme-window .cx-nav span { display: none; }
  .cal-window .cx-top, .theme-window .cx-top { grid-template-columns: auto 1fr; }
  .cal-window .cx-month, .theme-window .cx-month { text-align: right; }
  .cal-window .cx-grid, .theme-window .cx-grid { grid-template-rows: auto repeat(5, 5.6em); }
  .cal-window .cx-hud, .cal-window .cx-count, .theme-window .cx-hud, .theme-window .cx-count { display: none; }
  .cal-window .cx-route i, .theme-window .cx-route i { display: none; }
  .cal-window .cx-route, .theme-window .cx-route { font-size: .8em; }
  .loupe { flex-direction: row !important; align-items: center; }
  .loupe-lens { width: 130px; }
  .loupe figcaption { padding: 0 0 0 14px; }
  .journey-stage { padding-bottom: 22px; }
  .j-panel .cx-pop { aspect-ratio: auto; font-size: clamp(7px, 2.5cqi, 11px); }
  .j-panel .cx-pop-head { flex-wrap: wrap; gap: .4em 1em; }
  .j-panel .cx-pop-route { margin: 0; order: 3; width: 100%; }
  .j-panel .cx-pop-ac, .j-panel .cx-pop-side { display: none; }
  .j-panel .cx-pop-body, .j-panel .cx-pop-body--sb { grid-template-columns: 1fr; }
  .j-panel .cx-pop-stage { aspect-ratio: 4 / 3; }
  .j-panel .cx-readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .j-panel .cx-charts { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .j-panel .cx-chart svg { height: 3.6em; }
  .j-panel .cx-charts .cx-chart:nth-child(n+5) { display: none; }
  .j-panel .cx-sb-facts { display: none; }
  .cx-pane { font-size: clamp(8px, 3cqi, 12px); }
  .cx-connect, .cx-live-grid { grid-template-columns: 1fr; }
  .cx-actions .cx-act:nth-child(n+4), .cx-actions p { display: none; }
  .cx-live-read { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cx-phases span:not(.on):not(:nth-child(4)):not(:nth-child(6)) { display: none; }
  .cx-week { font-size: 1em; }
  .cx-week .cx-hud { display: none; }
  .cx-award { display: none; }
  .j-step { min-height: 56vh; }
  .ledger-stats dd { font-size: 2.8rem; }
  .stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .stamp b { font-size: .9rem; }
  .stamp em { display: none; }
  .cadence-rule li { font-size: 1.15rem; }
  .climb-wrap { overflow-x: auto; }
  .climb { min-width: 640px; }
  .strips { padding-left: 16px; }
  .strips::before { width: 6px; }
  .strip { grid-template-columns: 1fr; gap: 8px; }
  .strip-tag { grid-column: 1; }
  .strip:hover { transform: none; }
  .metar { margin-left: 16px; }
  .dial { width: 264px; height: 264px; }
  .dial-opt { font-size: .74rem; padding: 4px 8px; transform: translate(-50%, -50%) rotate(var(--a)) translateY(-112px) rotate(calc(-1 * var(--a))); }
  .dial-face { width: 124px; height: 124px; margin: -62px 0 0 -62px; }
  .dial-ticks { -webkit-mask: radial-gradient(circle, transparent 50px, #000 51px, #000 57px, transparent 58px); mask: radial-gradient(circle, transparent 50px, #000 51px, #000 57px, transparent 58px); }
  .pass-form { grid-template-columns: 1fr; gap: 18px; }
  .pass-submit .btn { width: 100%; }
  .pass-kind { display: none; }
  .faq-list summary { grid-template-columns: 34px minmax(0, 1fr) 20px; font-size: 1.06rem; }
  .faq-list .answer { padding: 0 0 22px 46px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
/* The oversized footer masthead uses two distinct lines on phones and
   narrow tablets; never crop the actual product name. */
@media (max-width: 900px) {
  .footer-word {
    white-space: normal;
    font-size: clamp(2.9rem, 13vw, 7rem);
    line-height: .94;
    letter-spacing: -.045em;
    margin-bottom: 0;
    padding-bottom: .16em;
  }
  .footer-word em {
    display: block;
    white-space: nowrap;
    padding-right: .12em;
  }
}

@media (max-width: 380px) {
  .ticket-label { font-size: .76rem; padding: 0 10px; }
  .hero h1 { font-size: 2.7rem; }
  .specs dd { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .climb .cc-path-draw { stroke-dashoffset: 0; }
  .ticker-track[aria-hidden="true"] { display: none; }
}

/* Wide (no sidebar) month view used by the Themes chapter */
.cx-app--wide { position: relative; grid-template-columns: 1fr; aspect-ratio: 16 / 9.4; background: transparent; }
.cx-app--wide .cx-main { background: rgba(5, 10, 26, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.climb .cc-axis-title { text-anchor: start; letter-spacing: .18em; }
.cal > .concept-note { margin: 22px auto 0; }
.loupe-cell { width: 66%; }
.loupe-cell .cx-day { aspect-ratio: 1 / 1.02; }
.loupe-a { top: -86px; right: 1%; }
.cal-stage { margin-top: clamp(90px, 9vw, 140px); }
.loupe-b { left: -4%; top: 44%; }
.j-step { min-height: 62vh; }
.j-step:first-child { min-height: 54vh; }
@media (max-width: 1024px) { .loupe-a, .loupe-b { top: auto; left: auto; right: auto; } }

@media (max-width: 900px) { .j-step { min-height: 64vh; padding-top: 34vh; justify-content: flex-start; } .j-step:first-child { min-height: 50vh; padding-top: 30vh; } }
