/* Overflown — design tokens */
:root {
  --bg: #0c0b0e;
  --ink: #efe8da;
  --ink-2: rgba(239, 232, 218, .78);
  --mute: rgba(239, 232, 218, .5);
  --hair: rgba(239, 232, 218, .12);
  --accent: #e6a84f;
  --accent-2: rgba(230, 168, 79, .14);
  --sky-top: #07070b;
  --sky-bot: #111019;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(20px, 6vw, 96px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow: hidden; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
a { color: inherit; }
em { font-style: italic; font-family: var(--serif); color: var(--accent); }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

/* ---------- atmosphere ---------- */
#sky { position: fixed; inset: 0; background: radial-gradient(120% 90% at 70% 110%, var(--sky-bot), var(--sky-top) 70%); transition: background 2.5s var(--ease); }
#globe { position: fixed; inset: 0; transition: transform 1.4s var(--ease), opacity 1s; will-change: transform; }
.is-home #globe { transform: translate3d(26vw, 8vh, 0) scale(1.15); }
.is-story #globe { transform: translate3d(19vw, 0, 0); }
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 40; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,3%); } }

/* ---------- top ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 22px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 17px; }
.wordmark svg { width: 26px; height: 26px; transition: transform .8s var(--ease); }
.wordmark:hover svg { transform: rotate(-24deg); }
.telemetry { justify-self: center; font-size: 11px; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; display: flex; gap: 22px; opacity: 0; transition: opacity .6s; white-space: nowrap; }
.telemetry b { color: var(--ink); font-weight: 400; }
.is-story .telemetry { opacity: 1; }
.saved-btn { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(12, 11, 14, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, transform .2s; }
.saved-btn:hover { border-color: rgba(239, 232, 218, .35); }
.saved-btn:active { transform: scale(.97); }
.saved-btn svg { width: 16px; height: 16px; }
.saved-btn span { font-size: 12px; }
.saved-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.15); border-color: var(--accent); } }

/* ---------- views ---------- */
.view { position: fixed; inset: 0; z-index: 10; display: none; }
.is-home #home, .is-story #story { display: block; }

/* ---------- home ---------- */
.home-inner { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-54%); width: min(760px, calc(100vw - 2 * var(--gutter))); }
.kicker { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.prompt { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 72px); line-height: .98; letter-spacing: -.01em; margin-top: 22px; }
.reveal { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.flight-form { margin-top: clamp(28px, 5vh, 56px); }
.flight-field { position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid var(--hair); transition: border-color .4s; }
.flight-field:focus-within { border-color: rgba(239, 232, 218, .45); }
#flightIn { width: 100%; font-family: var(--sans); font-weight: 700; font-size: clamp(72px, 13vw, 196px); line-height: .9; letter-spacing: -.055em; text-transform: uppercase; padding: 0 0 10px; outline: none; caret-color: transparent; }
#flightIn::placeholder { color: rgba(239, 232, 218, .09); }
.caret { position: absolute; bottom: 22px; width: .07em; height: .72em; font-size: clamp(72px, 13vw, 196px); background: var(--accent); animation: blink 1.05s steps(1) infinite; pointer-events: none; left: 0; transition: left .12s var(--ease); }
.flight-field:not(:focus-within) .caret { opacity: .0; animation: none; }
.flight-field:has(#flightIn:placeholder-shown) .caret { left: 0 !important; margin-left: -.12em; }
@keyframes blink { 50% { opacity: 0; } }
.go { flex: none; width: 64px; height: 64px; margin-bottom: 22px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; transition: background .35s var(--ease), color .35s, transform .2s, border-color .35s; }
.go svg { width: 24px; height: 24px; }
.go:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.go:active { transform: scale(.95); }
.form-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.help { font-size: 12px; color: var(--mute); }
.link { font-size: 12px; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--accent); }
.err { margin-top: 14px; font-size: 15px; color: var(--accent); min-height: 1.2em; max-width: 52ch; }
.err:empty { display: none; }
.flight-form.shake .flight-field { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(6px); } }
.loading { list-style: none; margin-top: 18px; font-size: 13px; color: var(--ink-2); display: grid; gap: 6px; }
.loading li { opacity: 0; animation: rise .6s var(--ease) forwards; display: flex; gap: 10px; }
.loading li::before { content: "—"; color: var(--accent); }
.loading li.done::after { content: "ok"; color: var(--mute); margin-left: auto; }

.airport-form { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.afield { position: relative; border-bottom: 1px solid var(--hair); padding-bottom: 6px; }
.afield label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.afield input { width: 100%; font-size: 26px; font-weight: 600; letter-spacing: -.02em; outline: none; margin-top: 2px; }
.afield input::placeholder { color: rgba(239, 232, 218, .2); }
.pill-btn { padding: 14px 22px; border-radius: 99px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; transition: transform .2s, background .3s; white-space: nowrap; }
.pill-btn:hover { background: var(--accent); }
.pill-btn:active { transform: scale(.97); }
.pill-btn.ghost { background: none; color: var(--ink); border: 1px solid var(--hair); }
.pill-btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: none; }
.pill-btn svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 8px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #131218; border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; z-index: 5; display: none; }
.suggest.on { display: block; }
.suggest button { display: grid; grid-template-columns: 44px 1fr; width: 100%; text-align: left; padding: 10px 12px; gap: 8px; }
.suggest button:hover, .suggest button.hi { background: var(--accent-2); }
.suggest b { font-family: var(--mono); color: var(--accent); font-weight: 500; }
.suggest small { color: var(--mute); display: block; font-size: 12px; }

.marquee { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 0 22px; border-top: 1px solid var(--hair); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee button { display: inline-flex; align-items: baseline; gap: 12px; padding: 0 28px; font-size: 14px; color: var(--mute); white-space: nowrap; transition: color .3s; }
.marquee button b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--accent); }
.marquee button:hover { color: var(--ink); }
.marquee button::after { content: "/"; margin-left: 28px; color: var(--hair); }

/* ---------- story ---------- */
#story { overflow-y: auto; overflow-x: hidden; scroll-behavior: auto; scrollbar-width: none; outline: none; }
#story::-webkit-scrollbar { display: none; }
.chapters { position: relative; width: min(720px, 56vw); margin-left: var(--gutter); padding-bottom: 20vh; }
.chapters::before { content: ""; position: fixed; inset: 0 auto 0 0; width: min(980px, 74vw); background: linear-gradient(90deg, rgba(12, 11, 14, .82) 0%, rgba(12, 11, 14, .55) 60%, rgba(12, 11, 14, 0) 100%); pointer-events: none; z-index: -1; }
.chapter { min-height: 108dvh; padding: 30vh 0 12vh; position: relative; }
.chapter.intro { min-height: 100dvh; padding-top: 24vh; }
.chapter .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.chapter .meta b { color: var(--accent); font-weight: 500; }
.chapter .num { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .1em; }
.chapter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 9.5vw, 168px); line-height: .86; letter-spacing: -.025em; margin-top: 18px; overflow-wrap: anywhere; }
.chapter.sea h2 { font-style: italic; }
.chapter .where { margin-top: 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-family: var(--mono); }
.chapter .hook { margin-top: 30px; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.22; letter-spacing: -.02em; font-weight: 500; max-width: 24ch; text-wrap: balance; }
.facts { list-style: none; margin-top: 30px; max-width: 54ch; border-top: 1px solid var(--hair); }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.facts li span { font-family: var(--mono); font-size: 11px; color: var(--accent); padding-top: 4px; }

.place { margin-top: 34px; max-width: 520px; display: grid; grid-template-columns: 1fr auto; gap: 16px 20px; align-items: end; padding: 22px 24px; border-radius: 20px; background: rgba(20, 19, 26, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--hair); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.place .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.place h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1; margin-top: 8px; }
.place p { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.45; }
.place .btns { display: flex; gap: 8px; }
.save { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 99px; border: 1px solid var(--hair); font-size: 13px; font-weight: 600; transition: background .3s var(--ease), color .3s, border-color .3s, transform .2s; }
.save svg { width: 15px; height: 15px; }
.save:hover { border-color: var(--accent); }
.save:active { transform: scale(.96); }
.save.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.save.on svg path { fill: currentColor; }
.more { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--hair); transition: border-color .3s, transform .3s var(--ease); }
.more:hover { border-color: var(--accent); transform: rotate(-45deg); }
.more svg { width: 15px; height: 15px; }

/* chapter reveal */
.chapter [data-r] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.chapter.in [data-r] { opacity: 1; transform: none; }
.chapter h2[data-r] { transform: translateY(60px); clip-path: inset(0 0 100% 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease); }
.chapter.in h2[data-r] { clip-path: inset(-10% -5% -10% -5%); }

/* intro */
.intro .flightno { display: inline-flex; align-items: center; gap: 12px; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(110, 231, 160, .1); border: 1px solid rgba(110, 231, 160, .35); color: #9ff0bf; font-size: 10px; letter-spacing: .18em; }
.live-chip i { width: 6px; height: 6px; border-radius: 50%; background: #6ee7a0; animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .3; transform: scale(.7); } }
.intro h2 { font-size: clamp(60px, 8.4vw, 150px); }
.intro h2 .to { display: block; font-style: italic; color: var(--accent); }
.stats { margin-top: 44px; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0 44px; }
.stats div { border-top: 1px solid var(--hair); padding-top: 12px; }
.stats b { display: block; font-family: var(--mono); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -.02em; }
.stats span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.cta-row { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.scroll-cue { margin-top: 12vh; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--ink); animation: drop 2s var(--ease) infinite; }
@keyframes drop { from { top: -14px; } to { top: 46px; } }

/* endpoints + outro */
.chapter.outro { min-height: 100dvh; padding: 16vh 0 10vh; display: flex; flex-direction: column; justify-content: center; }
.chapters { padding-bottom: 0; }
.chapter.endpoint h2 { font-size: clamp(56px, 7.5vw, 128px); }
.outro .big { font-family: var(--serif); font-size: clamp(110px, 17vw, 300px); line-height: .8; letter-spacing: -.04em; color: var(--accent); }
.outro .line { font-family: var(--serif); font-size: clamp(36px, 4.4vw, 68px); line-height: 1; margin-top: 10px; }
.outro .sub { margin-top: 24px; font-size: 18px; color: var(--ink-2); max-width: 40ch; line-height: 1.5; }
.outro .made { margin-top: 12vh; font-size: 12px; color: var(--mute); max-width: 46ch; line-height: 1.6; }
.outro .made a { text-decoration-color: var(--hair); text-underline-offset: 3px; }

/* rail */
.rail { position: fixed; left: calc(var(--gutter) / 2 - 1px); top: 18vh; bottom: 18vh; width: 2px; z-index: 12; }
.rail-line { position: absolute; inset: 0; background: var(--hair); }
.rail-fill { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--accent); }
.rail ol { list-style: none; }
.rail li { position: absolute; left: -3px; width: 8px; height: 1px; background: var(--mute); }
.rail li button { position: absolute; left: -10px; top: -10px; width: 28px; height: 20px; }
.rail li span { position: absolute; left: 16px; top: -8px; white-space: nowrap; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); pointer-events: none; background: rgba(12, 11, 14, .8); padding: 2px 6px; border-radius: 4px; }
.rail li:hover span { opacity: 1; transform: none; }
.rail li.on { background: var(--accent); width: 12px; left: -5px; }

/* plane + live dot on globe */
.plane { width: 30px; height: 30px; pointer-events: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.ping { width: 14px; height: 14px; border-radius: 50%; background: #6ee7a0; box-shadow: 0 0 0 0 rgba(110, 231, 160, .6); animation: ping 1.8s infinite; pointer-events: none; }
@keyframes ping { to { box-shadow: 0 0 0 18px rgba(110, 231, 160, 0); } }

/* ---------- drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 50; background: #100f14; border-left: 1px solid var(--hair); transform: translateX(102%); transition: transform .7s var(--ease); overflow-y: auto; padding: 28px; }
.drawer.on { transform: none; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(5, 5, 8, .55); opacity: 0; pointer-events: none; transition: opacity .5s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer-head { position: relative; }
.drawer-head h2 { font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1; margin-top: 18px; }
.close { position: absolute; top: -6px; right: -6px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.close svg { width: 18px; height: 18px; }
.close:hover { background: rgba(255, 255, 255, .05); }
.saved-list { list-style: none; margin-top: 28px; display: grid; gap: 10px; }
.saved-list li { padding: 18px; border-radius: 16px; border: 1px solid var(--hair); display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.saved-list .c { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.saved-list h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin-top: 4px; }
.saved-list p { font-size: 13px; color: var(--mute); margin-top: 4px; line-height: 1.4; }
.saved-list .acts { display: flex; gap: 6px; }
.saved-list .x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; }
.saved-list .x svg { width: 14px; height: 14px; }
.empty { margin-top: 48px; text-align: left; color: var(--mute); }
.empty svg { width: 160px; color: var(--hair); }
.empty p { font-family: var(--serif); font-size: 30px; color: var(--ink); margin-top: 18px; }
.empty small { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; max-width: 32ch; }

#toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; transition: .45s var(--ease); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 99px; font-size: 14px; font-weight: 600; pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .top { padding: 14px 18px; grid-template-columns: auto 1fr auto; }
  .telemetry { display: none; }
  .is-home #globe { transform: translate3d(0, 34vh, 0) scale(1.05); }
  .home-inner { left: 18px; right: 18px; width: auto; top: 13vh; transform: none; }
  .go { width: 52px; height: 52px; margin-bottom: 14px; }
  .airport-form { grid-template-columns: 1fr; }
  #story { top: 42vh; border-top: 1px solid var(--hair); background: linear-gradient(180deg, rgba(12, 11, 14, .78), rgba(12, 11, 14, .94) 30%); }
  .is-story #globe { transform: translate3d(0, -29vh, 0) scale(.92); }
  .chapters { width: auto; margin: 0 18px; padding-top: 0; }
  .chapters::before { display: none; }
  .chapter.outro { padding-top: 8vh; min-height: 58dvh; }
  .chapter { min-height: 62dvh; padding: 7vh 0 9vh; }
  .chapter.intro { padding-top: 4vh; min-height: 58dvh; }
  .chapter h2 { font-size: clamp(52px, 15vw, 96px); }
  .stats { grid-template-columns: repeat(2, auto); gap: 16px 32px; }
  .rail { display: none; }
  .place { grid-template-columns: 1fr; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(24, 23, 31, .92); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- sound toggle ---------- */
.top { grid-template-columns: auto 1fr auto auto; }
.icon-btn { grid-column: 3; justify-self: end; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hair); display: grid; place-items: center; background: rgba(12, 11, 14, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color .3s, transform .2s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn .mute { display: none; }
.icon-btn.off { color: var(--mute); }
.icon-btn.off .wave { display: none; }
.icon-btn.off .mute { display: inline; }
.icon-btn:active { transform: scale(.94); }
.saved-btn { grid-column: 4; }

/* ---------- story progress segments (phones) ---------- */
.segs { display: none; }

/* ---------- passport ---------- */
.passport { margin-top: 34px; }
.pp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.pp-stats { font-size: 12px; color: var(--mute); }
.pp-stats b { color: var(--ink); font-weight: 500; }
.pp-stats i { font-style: normal; color: var(--hair); margin: 0 4px; }
.stamps { display: flex; gap: 12px; margin-top: 16px; overflow-x: auto; padding: 8px 4px 12px; scrollbar-width: none; }
.stamps::-webkit-scrollbar { display: none; }
.stamp { flex: none; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px dashed rgba(230, 168, 79, .55); text-decoration: none; transform: rotate(var(--r)); transition: transform .4s var(--ease), background .3s; background: rgba(230, 168, 79, .05); min-width: 150px; }
.stamp:hover { transform: rotate(0) translateY(-3px); background: rgba(230, 168, 79, .12); }
.stamp b { color: var(--accent); font-size: 15px; font-weight: 500; }
.stamp span { font-size: 13px; }
.stamp small { font-size: 10px; color: var(--mute); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- keep it (email) ---------- */
.keep { margin-top: 44px; max-width: 520px; padding-top: 26px; border-top: 1px solid var(--hair); }
.keep h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin-top: 12px; }
.keep-row { display: flex; gap: 8px; margin-top: 16px; }
.keep-row input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(255, 255, 255, .03); outline: none; font-size: 15px; transition: border-color .3s; }
.keep-row input:focus { border-color: rgba(239, 232, 218, .45); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.consent input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.keep-msg { margin-top: 10px; font-size: 12px; color: var(--accent); min-height: 1em; }
.keep .fine { font-size: 11px; color: var(--mute); margin-top: 6px; }
.drawer .keep { margin-top: 36px; }
.pill-btn:disabled { opacity: .5; }

@media (max-width: 860px) {
  .top { grid-template-columns: auto 1fr auto auto; gap: 10px; }
  #home { overflow-y: auto; }
  .home-inner { position: relative; top: auto; left: auto; right: auto; margin: 0 18px; padding: 13vh 0 120px; }
  .marquee { position: fixed; z-index: 2; background: rgba(12, 11, 14, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  /* stories-style progress under the bar, and chapters that settle into place */
  .segs { display: flex; gap: 3px; position: fixed; top: calc(42vh - 10px); left: 18px; right: 18px; z-index: 13; }
  .segs i { flex: 1; height: 2px; border-radius: 2px; background: rgba(239, 232, 218, .18); overflow: hidden; }
  .segs i b { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
  .segs i.done b { transform: scaleX(1); }
  #story { scroll-snap-type: y proximity; }
  .chapter { scroll-snap-align: start; scroll-margin-top: 0; }
  .keep-row { flex-direction: column; }
}

/* chapters with no story: a quiet pass-over */
.chapter.brief { min-height: 62dvh; padding: 26vh 0 8vh; }
.chapter.brief h2 { font-size: clamp(44px, 5.6vw, 92px); color: var(--ink-2); }
.brief-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); text-decoration: none; }
.brief-link svg { width: 13px; height: 13px; }
.brief-link:hover { color: var(--accent); }
@media (max-width: 860px) { .chapter.brief { min-height: 40dvh; padding: 6vh 0; } }

/* ---------- photos ---------- */
.photo { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #15141a; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 2.4s var(--ease); }
.photo.ready img { opacity: 1; transform: none; }
.photo .ph-skel { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(239, 232, 218, .06) 50%, transparent 70%) #15141a; background-size: 220% 100%; animation: shimmer 1.6s linear infinite; }
.photo.ready .ph-skel, .photo.none .ph-skel { display: none; }
.photo.none { display: none; }
@keyframes shimmer { to { background-position: -120% 0; } }
.photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(239, 232, 218, .7); background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.photo figcaption a { color: inherit; text-decoration: none; }
.photo figcaption a:hover { color: var(--accent); }
.place.has-photo { grid-template-columns: 1fr auto; padding: 10px 10px 22px; }
.place.has-photo .photo { grid-column: 1 / -1; margin-bottom: 6px; }
.place.has-photo > div:not(.btns) { padding-left: 14px; }
.place.has-photo .btns { padding-right: 12px; }
.chapter.city .photo { margin-top: 26px; max-width: 560px; aspect-ratio: 16 / 10; }
.wiki-extract { margin-top: 22px; max-width: 54ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.wiki-extract:empty { display: none; }
.wiki-extract::after { content: "From Wikipedia"; display: block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.chapter.city h2 { font-size: clamp(56px, 7.6vw, 132px); }

/* ---------- share sheet ---------- */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #100f14; border-top: 1px solid var(--hair); border-radius: 22px 22px 0 0; padding: 22px var(--gutter) 26px; transform: translateY(104%); transition: transform .7s var(--ease); max-height: 92dvh; display: flex; flex-direction: column; }
.sheet.on { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; }
.sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; margin-top: 10px; }
.sheet-head .close { position: static; }
.sheet-cards { display: flex; gap: 14px; overflow-x: auto; padding: 22px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sheet-cards::-webkit-scrollbar { display: none; }
.card-slot { flex: none; width: min(42vw, 240px); aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--hair); scroll-snap-align: start; background: #17161d; transition: transform .3s var(--ease); animation: rise .6s var(--ease) both; }
.card-slot:hover { transform: translateY(-4px); }
.card-slot:active { transform: scale(.98); }
.card-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-slot span { position: absolute; left: 10px; bottom: 10px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: rgba(12, 11, 14, .7); padding: 4px 8px; border-radius: 99px; }
.card-slot.loading { background: linear-gradient(100deg, transparent 30%, rgba(239, 232, 218, .07) 50%, transparent 70%) #17161d; background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
.sheet-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sheet-foot span { font-size: 11px; color: var(--mute); }
@media (max-width: 860px) {
  .sheet { padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); }
  .sheet-head h2 { font-size: 30px; }
  .card-slot { width: 58vw; }
}
.card-slot img + span { display: none; }

/* ---------- pre-launch fixes ---------- */
.sheet { overflow-y: auto; }
#sheetKeep .keep { margin-top: 18px; }
.nudge { position: fixed; left: 50%; bottom: 24px; z-index: 55; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 99px; background: rgba(20, 19, 26, .94); border: 1px solid rgba(230, 168, 79, .45); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7); transform: translate(-50%, 140%); transition: transform .6s var(--ease); max-width: calc(100vw - 24px); }
.nudge.on { transform: translate(-50%, 0); }
.nudge span { font-size: 14px; }
.nudge .pill-btn { padding: 11px 16px; min-height: 44px; }
.nudge .x2 { width: 44px; height: 44px; display: grid; place-items: center; color: var(--mute); flex: none; }
.nudge .x2 svg { width: 16px; height: 16px; }
.inapp { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--accent); max-width: 52ch; }
/* tap targets: 44px minimum */
.marquee button { min-height: 44px; align-items: center; }
.link { min-height: 44px; display: inline-flex; align-items: center; }
.saved-btn { min-height: 44px; padding: 8px 14px 8px 12px; }
.icon-btn { width: 44px; height: 44px; }
.close { width: 44px; height: 44px; }
.more { width: 44px; height: 44px; }
.save { min-height: 44px; }
.brief-link { min-height: 44px; }
@media (max-width: 860px) { .nudge { bottom: calc(14px + env(safe-area-inset-bottom)); width: calc(100vw - 24px); border-radius: 18px; } .nudge span { font-size: 13px; } }
.nudge { background: #15141b; }
.nudge span { flex: 1; min-width: 0; line-height: 1.35; }
.nudge .pill-btn { flex: none; white-space: nowrap; }
.wordmark { min-height: 44px; }

.repeat { margin-top: 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* stats sticker preview: checkerboard shows it's transparent */
.card-slot.sticker { background-color: #2a2830; background-image: linear-gradient(45deg, #34313b 25%, transparent 25%), linear-gradient(-45deg, #34313b 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #34313b 75%), linear-gradient(-45deg, transparent 75%, #34313b 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.card-slot.sticker img { object-fit: contain; }
.add-photo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 18px; text-align: center; border-style: dashed; border-color: rgba(230, 168, 79, .6); cursor: pointer; }
.add-photo .plus { position: static; font-size: 44px; line-height: 1; color: var(--accent); background: none; padding: 0; }
.add-photo b { font-size: 15px; }
.add-photo small { font-size: 12px; color: var(--mute); line-height: 1.4; }
.sheet-cards { flex: none; }

/* ---------- phones: globe takes the top third and fades into the story ---------- */
@media (max-width: 860px) {
  .is-story #globe { transform: translate3d(0, -33.5vh, 0); }
  #story { top: 31vh; border-top: 0; background: linear-gradient(180deg, rgba(12, 11, 14, 0) 0, rgba(12, 11, 14, .82) 4vh, rgba(12, 11, 14, .97) 9vh); }
  .chapters { padding-top: 7vh; }
  .segs { top: calc(31vh - 6px); }
  .chapter { min-height: 72dvh; padding: 6vh 0 8vh; }
  .chapter.intro { padding-top: 0; min-height: 66dvh; }
  .chapter h2 { font-size: clamp(48px, 14vw, 88px); }
}

/* best bits */
.best { margin-top: 40px; }
.best-row { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.best-row::-webkit-scrollbar { display: none; }
.best-card { flex: none; width: 150px; text-align: left; scroll-snap-align: start; display: grid; gap: 6px; }
.best-card .photo { aspect-ratio: 4 / 5; border-radius: 12px; }
.best-card .photo figcaption { display: none; }
.best-card .photo.none { display: block; background: linear-gradient(160deg, #1d1b24, #2b2219); }
.best-card span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.best-card b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1; }
.best-card:hover b { color: var(--accent); }
.best-card:active { transform: scale(.98); }

/* Pro + donations */
.pro { max-width: 560px; margin: 0 auto; }
@media (min-width: 861px) { .pro { left: 50%; right: auto; width: 560px; transform: translate(-50%, 104%); } .pro.on { transform: translate(-50%, 0); } }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 14px; }
.price b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; color: var(--accent); }
.price span { color: var(--ink-2); font-size: 14px; max-width: 26ch; }
.perks { list-style: none; margin: 18px 0; display: grid; gap: 12px; }
.perks li { display: grid; gap: 2px; padding-left: 18px; position: relative; }
.perks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.perks b { font-size: 15px; }
.perks span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.pro-email, .restore-email, .first-name { width: 100%; padding: 13px 16px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(255,255,255,.03); outline: none; font-size: 15px; margin-top: 4px; }
.first-name { margin-top: 10px; }
.pill-btn.wide { width: 100%; margin-top: 10px; min-height: 50px; }
.pro-msg { font-size: 12px; color: var(--accent); margin-top: 10px; min-height: 1em; line-height: 1.5; }
.restore { margin-top: 12px; }
.restore summary { font-size: 12px; color: var(--mute); cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.tip { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--hair); }
.tip h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-top: 8px; }
.tip p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.tip-row { display: flex; gap: 8px; margin-top: 12px; }
.tip-row .pill-btn { flex: 1; min-height: 46px; }
.pro-on { color: var(--accent); font-size: 13px; margin-top: 12px; }
.pro-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; letter-spacing: inherit; text-transform: inherit; }
.pro-badge { font-style: normal; background: var(--accent); color: var(--bg); border-radius: 99px; padding: 2px 8px; margin-left: 8px; font-size: 10px; letter-spacing: .1em; }

/* departure / arrival strip */
.times { margin-top: 28px; max-width: 560px; display: grid; grid-template-columns: 1fr 48px 1fr; align-items: start; gap: 0 12px; padding: 18px 20px; border: 1px solid var(--hair); border-radius: 18px; background: rgba(20, 19, 26, .55); position: relative; }
.times .leg { display: grid; gap: 3px; }
.times .label { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-family: var(--mono); }
.times b { font-size: clamp(30px, 4vw, 42px); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin-top: 2px; }
.times small { font-size: 12px; color: var(--ink-2); line-height: 1.35; }
.times .leg:last-of-type { text-align: right; }
.times .dash { align-self: center; height: 1px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); }
.times .status { position: absolute; top: -11px; left: 18px; padding: 4px 10px; border-radius: 99px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; background: #1f1d26; border: 1px solid var(--hair); color: var(--ink); }
.times .status.live { color: #9ff0bf; border-color: rgba(110, 231, 160, .45); }
.times .status.warn { color: var(--accent); border-color: rgba(230, 168, 79, .6); }
.times .status.bad { color: #ff9b8a; border-color: rgba(255, 120, 100, .5); }
@media (max-width: 860px) { .times { grid-template-columns: 1fr 28px 1fr; padding: 16px 14px; } }

/* departure day */
.date-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.date-row .label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }
.date-row button, .date-row .pick { min-height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--hair); font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; transition: background .25s, color .25s, border-color .25s; cursor: pointer; position: relative; }
.date-row button:hover, .date-row .pick:hover { border-color: rgba(239, 232, 218, .35); }
.date-row .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.date-row .pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; color-scheme: dark; }
@media (max-width: 860px) { .date-row button, .date-row .pick { min-height: 44px; padding: 0 12px; } .date-row .label { width: 100%; } }

/* ocean chapters */
.depth { margin-top: 14px; font-size: 12px; letter-spacing: .08em; color: #8fb8ff; min-height: 1em; opacity: 0; transition: opacity .8s; }
.depth.on { opacity: 1; }
.sights { margin-top: 26px; display: grid; gap: 10px; max-width: 560px; }
.sight { padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(143, 184, 255, .25); background: rgba(20, 26, 40, .5); }
.sight span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8fb8ff; }
.sight b { display: block; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; margin-top: 6px; }
.sight p { font-size: 14px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.wing { margin-top: 22px; font-size: 15px; color: var(--ink-2); max-width: 54ch; }
.wing span { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

/* marine life */
.creature { margin-top: 26px; max-width: 560px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(143, 184, 255, .28); background: rgba(18, 24, 38, .6); }
.creature .photo { border-radius: 0; aspect-ratio: 16 / 10; }
.creature .photo figcaption { font-size: 9px; }
.creature .c-txt { padding: 16px 18px 18px; }
.creature span { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8fb8ff; }
.creature b { display: block; font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1; margin-top: 8px; }
.creature p { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }
.creature small { display: block; margin-top: 8px; font-size: 11px; color: var(--mute); letter-spacing: .04em; }

/* date picker: keep the field clickable but invisible, and in front of the label text */
.date-row .pick input { z-index: 1; width: 100%; height: 100%; }

/* Header: coffee and Go Pro, always in reach */
.top { grid-template-columns: auto 1fr auto auto auto auto; gap: 10px; }
.top .telemetry { grid-column: 2; }
.hdr-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--accent); color: #17130c; transition: transform .2s, background .3s, border-color .3s; }
.hdr-btn:hover { background: var(--ink); }
.hdr-btn:active { transform: scale(.96); }
.hdr-btn.ghost { background: rgba(12, 11, 14, .4); color: var(--ink); border: 1px solid var(--hair); font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hdr-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.hdr-btn svg { width: 17px; height: 17px; flex: none; }
.hdr-btn.is-pro { background: none; color: var(--accent); border: 1px solid var(--accent); }
#tipBtn { grid-column: 3; } #proBtn { grid-column: 4; } .icon-btn { grid-column: 5; } .saved-btn { grid-column: 6; }
.tip.alone { margin-top: 6px; padding-top: 0; border-top: 0; }
@media (max-width: 860px) {
  .top { grid-template-columns: auto 1fr auto auto auto; gap: 8px; }
  #tipBtn { width: 38px; padding: 0; justify-content: center; }
  #tipBtn span, #soundBtn { display: none; }
  #proBtn { grid-column: 4; padding: 0 14px; } .saved-btn { grid-column: 5; }
}

/* Laptop and up: the home column scrolls if it's taller than the screen (a full Sky Passport),
   instead of sliding up under the header. */
@media (min-width: 861px) {
  #home { overflow-y: auto; }
  .home-inner { position: relative; top: auto; left: auto; transform: none; margin-left: var(--gutter); min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 104px 0 84px; }
  .marquee { position: fixed; z-index: 2; background: rgba(12, 11, 14, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}

/* Pro: best seat and the sun */
.seat { margin-top: 34px; padding: 22px 22px 20px; border: 1px solid var(--hair); border-radius: 18px; background: linear-gradient(160deg, rgba(230, 168, 79, .09), rgba(12, 11, 14, .2) 60%); max-width: 560px; }
.seat-head { display: flex; align-items: baseline; gap: 16px; margin-top: 12px; }
.seat-side { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 54px; line-height: 1; color: var(--accent); flex: none; }
.seat-head span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.seat-list { list-style: none; margin: 16px 0 0; display: grid; }
.seat-list li { display: grid; grid-template-columns: 74px 1fr auto; gap: 4px 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.seat-list li > span.mono { font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.seat-list li > span:last-child { font-size: 13px; color: var(--ink-2); text-align: right; }
.seat .sun-k { margin-top: 22px; }
.seat-note { margin-top: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.seat.locked .pill-btn { margin-top: 18px; }
.seat-side.blur { filter: blur(9px); user-select: none; }
#btnOffline.done { border-color: var(--accent); color: var(--accent); }
#btnOffline svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 8px; }
.pp-wrapped { margin-left: auto; font-size: 11px; letter-spacing: .06em; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(230, 168, 79, .55); color: var(--accent); transition: background .3s, color .3s; }
.pp-wrapped:hover { background: var(--accent); color: #17130c; }
@media (max-width: 860px) {
  .seat { padding: 18px 16px; margin-top: 26px; }
  .seat-side { font-size: 44px; }
  .seat-list li { grid-template-columns: 62px 1fr; }
  .seat-list li > span:last-child { grid-column: 2; text-align: left; }
}
.seat-list b i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.seat-list li > span.mono { white-space: nowrap; }
@media (max-width: 860px) { .seat-list li { grid-template-columns: 76px 1fr; gap: 2px 12px; } .seat-list li > span.mono { grid-row: span 2; padding-top: 3px; } }

/* Culture: the sound, the plate, the roots, say it */
.lenses { margin-top: 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.lens { padding: 16px 16px 14px; border: 1px solid var(--hair); border-radius: 16px; background: rgba(12, 11, 14, .35); display: grid; gap: 6px; align-content: start; }
.lens > span.mono { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lens > b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; }
.lens p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.lens.sound { grid-column: 1 / -1; }
.lens.say p { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.lens.say p b { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.lens.say p i { font-style: normal; font-size: 12px; color: var(--mute); }
.am { font-size: 11px; color: var(--mute); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.am svg { width: 12px; height: 12px; }

/* Song buttons and the soundtrack */
.song { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hair); background: rgba(239, 232, 218, .03); transition: border-color .3s, background .3s; }
.song:hover { border-color: rgba(230, 168, 79, .5); }
.song .pp { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); flex: none; }
.song .pp svg { width: 13px; height: 13px; margin-left: 2px; }
.song .st { display: grid; min-width: 0; flex: 1; }
.song .st b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .st i { font-style: normal; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song .n { font-size: 11px; color: var(--mute); width: 18px; flex: none; }
.song .eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.song .eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eqb .9s ease-in-out infinite; }
.song .eq i:nth-child(2) { animation-delay: .2s; } .song .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eqb { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.song.on { border-color: var(--accent); background: rgba(230, 168, 79, .08); }
.song.on .pp { background: var(--accent); }
.song.on .eq { display: flex; }
.song.loading .pp { opacity: .5; }
.song.none { opacity: .45; }
.soundtrack { margin-top: 34px; max-width: 560px; }
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.st-head h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin-top: 8px; max-width: 20ch; }
.st-btns { display: flex; gap: 8px; }
.st-btns .pill-btn { padding: 11px 16px; }
.soundtrack ol { list-style: none; margin: 16px 0 0; display: grid; gap: 6px; max-height: 340px; overflow-y: auto; padding-right: 4px; }
.soundtrack li { display: grid; gap: 4px; }
.soundtrack li .where { font-size: 10.5px; color: var(--mute); padding-left: 42px; }
.soundtrack .credit { margin-top: 10px; font-size: 10.5px; color: var(--mute); }
#stPlayAll.on { background: var(--accent); }

/* Your plane */
.plane-card { margin-top: 30px; max-width: 560px; padding: 18px 20px; border: 1px solid var(--hair); border-radius: 18px; background: rgba(12, 11, 14, .3); }
.pc-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 10px; }
.pc-row b { font-size: 22px; font-weight: 500; letter-spacing: .04em; color: var(--accent); }
.pc-row span { font-size: 17px; }
.pc-bits { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.pc-link { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; font-size: 11px; color: var(--mute); text-decoration: none; }
.pc-link svg { width: 12px; height: 12px; }

/* Badges and import */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; align-items: center; }
.b-count { font-size: 11px; color: var(--mute); margin-right: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 5px 10px 5px 8px; border-radius: 99px; border: 1px dashed var(--hair); color: var(--mute); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair); }
.badge.on { border: 1px solid rgba(230, 168, 79, .55); color: var(--ink); background: rgba(230, 168, 79, .08); }
.badge.on i { background: var(--accent); }
.pp-empty { font-size: 14px; color: var(--ink-2); margin-top: 10px; max-width: 46ch; line-height: 1.5; }
.pp-empty .link { font-size: 14px; color: var(--accent); }
.pp-import { margin-top: 12px; font-size: 11.5px; color: var(--ink-2); }
.pp-import .link { font-size: 11.5px; }

/* Flight of the day */
.fotd { margin-top: 34px; max-width: 560px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(230, 168, 79, .35); background: linear-gradient(150deg, rgba(230, 168, 79, .12), rgba(12, 11, 14, .3) 65%); }
.fotd h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.08; margin-top: 10px; }
.fd-line { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }
.fd-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.fd-foot .mono { font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.fd-foot .pill-btn { padding: 11px 20px; text-decoration: none; }
.fd-next { font-size: 10.5px; color: var(--mute); margin-top: 12px; }
@media (max-width: 860px) {
  .lenses { grid-template-columns: 1fr; }
  .st-head h3 { font-size: 24px; }
  .fotd h3 { font-size: 26px; }
}
.song .i-pause, #stPlayAll .i-pause { display: none; }
.song.on .i-play, #stPlayAll.on .i-play { display: none; }
.song.on .i-pause, #stPlayAll.on .i-pause { display: inline; }
#stPlayAll svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 8px; }
.song .st em.wh { font-style: normal; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-left: 6px; }
.tip-any { margin-top: 8px; width: 100%; min-height: 46px; }
#btnFlown.done { border-color: var(--accent); color: var(--accent); }
.pp-looked { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 14px; font-size: 11px; color: var(--mute); }
.pp-looked span { letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
.pp-looked a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hair); }
.pp-empty b { color: var(--ink); font-weight: 600; }

/* Sky Wrapped story viewer */
#wrappedView { position: fixed; inset: 0; z-index: 80; background: #050507; display: none; place-items: center; }
#wrappedView.on { display: grid; }
.wv-load { color: var(--accent); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; animation: wvp 1.2s ease-in-out infinite alternate; }
@keyframes wvp { from { opacity: .4; } to { opacity: 1; } }
.wv-img { height: min(calc(100dvh - 92px), 177.8vw); width: auto; max-width: 100vw; object-fit: contain; display: block; align-self: start; margin-top: 22px; border-radius: 14px; }
.wv-bars { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px)); display: flex; gap: 4px; z-index: 2; }
.wv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(239, 232, 218, .25); overflow: hidden; }
.wv-bars b { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.wv-prev, .wv-next { position: fixed; top: 0; bottom: 90px; width: 35%; z-index: 1; }
.wv-prev { left: 0; } .wv-next { right: 0; width: 65%; }
.wv-x { position: fixed; top: 24px; right: 16px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .4); color: var(--ink); }
.wv-x svg { width: 20px; height: 20px; }
.wv-foot { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
