/* WindowSeat: cinematic and minimal. Deep black, hairlines, tight grotesk type.
   The 3D scene carries the experience; the interface stays sharp and out of the way. */

:root {
  --bg: #070707;
  --ink: #eef0f5;
  --muted: rgba(238, 240, 245, 0.64);
  --faint: rgba(238, 240, 245, 0.38);
  --line: rgba(238, 240, 245, 0.14);
  --line-strong: rgba(238, 240, 245, 0.32);
  --accent: #ffb86b; /* used sparingly: live, encounters, active states */
  --glass: rgba(6, 8, 16, 0.5);
  --glass-strong: rgba(5, 6, 12, 0.86);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; }
body.immersive { overflow: hidden; overscroll-behavior: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(238, 240, 245, 0.25); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.icon { display: inline-flex; width: 1.1em; height: 1.1em; flex: none; }
.icon svg { width: 100%; height: 100%; }

.stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

.eyebrow {
  font: 500 10px/1.4 var(--sans);
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
  border: 1px solid var(--line);
}

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 2px; border: 1px solid var(--line-strong);
  background: transparent;
  font: 500 11px var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s;
}
.pill:hover { border-color: var(--ink); background: rgba(238, 240, 245, 0.06); }
.pill.solid { background: var(--ink); color: #05060c; border-color: var(--ink); }
.pill.solid:hover { background: #ffffff; }
.pill:disabled { opacity: 0.5; }
.pill .icon { width: 14px; height: 14px; }
.pill[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.pill[aria-pressed="true"] svg { fill: currentColor; }

.ghost-btn {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: 2px; border: 1px solid var(--line);
  background: rgba(3, 4, 9, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); text-decoration: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s;
}
.ghost-btn:hover { border-color: var(--line-strong); background: rgba(238, 240, 245, 0.06); }
.ghost-btn .icon { width: 17px; height: 17px; }
.ghost-btn[aria-pressed="true"], .ghost-btn[aria-expanded="true"] { color: var(--accent); border-color: rgba(255, 184, 107, 0.55); }
.ghost-btn.small { width: 32px; height: 32px; }

/* Tooltips: a small label under (or above) an icon button on hover or keyboard focus. */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; z-index: 30; left: 50%; top: calc(100% + 8px);
  transform: translate(-50%, -3px); padding: 6px 9px; border-radius: 2px; white-space: nowrap; pointer-events: none;
  background: rgba(10, 10, 10, 0.97); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font: 500 10px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity 0.2s var(--ease) 0s, transform 0.3s var(--ease) 0s;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: 0.35s; }
.actions [data-tip]:last-child::after { left: auto; right: 0; transform: translate(0, -3px); }
.actions [data-tip]:last-child:hover::after, .actions [data-tip]:last-child:focus-visible::after { transform: none; }
.timeline [data-tip]::after { top: auto; bottom: calc(100% + 8px); left: 0; transform: translate(0, 3px); }
.timeline [data-tip]:hover::after, .timeline [data-tip]:focus-visible::after { transform: none; }
@media (hover: none) { [data-tip]::after { display: none; } }
.ghost-btn.small .icon { width: 14px; height: 14px; }

.text-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 0; padding: 4px 0;
  font: 400 12.5px var(--sans); letter-spacing: 0.02em; color: var(--muted);
  text-decoration: none; transition: color 0.3s;
}
.text-btn:hover { color: var(--ink); }
.text-btn .icon { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- home */

/* The cabin: a dark wall with one window in it. The window is the identity. */
.home { min-height: 100vh; background: radial-gradient(120% 90% at 78% 45%, #151515 0%, #0a0a0a 55%, #060606 100%); }
.home-grid {
  position: relative; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px);
  padding: 0 clamp(20px, 4vw, 56px);
}
.home-copy { grid-column: 1; grid-row: 1; padding: calc(13vh + var(--safe-t)) 0 90px; max-width: 540px; }
.seat {
  grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100vh; align-self: start;
  display: grid; place-items: center; align-content: center; gap: 22px;
}

.home-copy {
  opacity: 0; transform: translateY(10px);
  transition: opacity 1s var(--ease) 0.5s, transform 1.2s var(--ease) 0.5s;
}
.home.in .home-copy { opacity: 1; transform: none; }
.collection-inner { position: relative; z-index: 1; opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.collection-view.in .collection-inner { opacity: 1; transform: none; }

/* An aircraft window in a dark cabin. The light from outside spills softly onto the wall
   around it and catches the inner bevel of the moulded surround, brightest along the lower
   curve; a dark shade rests a little way down, its lip catching a thin line of light. */
.seat { --h: min(76vh, 780px); }
.seat::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--h) * 1.35); height: calc(var(--h) * 1.3);
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(160, 168, 182, 0.09), rgba(160, 168, 182, 0.035) 55%, rgba(160, 168, 182, 0) 100%);
  opacity: 0; transition: opacity 2.4s var(--ease) 1.2s;
}
.home.in .seat::before { opacity: 1; }
.bezel {
  position: relative; padding: calc(var(--h) * 0.075);
  border-radius: 47% / 35%;
  /* the surround melts into the wall at its outer edge; no outline */
  background: radial-gradient(closest-side, #1d1e21 0%, #17181a 62%, #0f0f10 86%, rgba(10, 10, 10, 0) 100%);
  opacity: 0; transform: scale(0.97);
  transition: opacity 1.4s var(--ease), transform 1.8s var(--ease);
}
.home.in .bezel { opacity: 1; transform: none; }
.reveal {
  position: relative; padding: calc(var(--h) * 0.026);
  border-radius: 44% / 31.6%;
  background:
    radial-gradient(75% 38% at 50% 100%, rgba(150, 156, 168, 0.36), rgba(150, 156, 168, 0) 75%),
    radial-gradient(45% 60% at 0% 62%, rgba(120, 126, 138, 0.16), rgba(120, 126, 138, 0) 75%),
    linear-gradient(180deg, #0f1012 0%, #16171a 45%, #212328 80%, #2a2c31 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 -2px 6px rgba(170, 176, 188, 0.06), 0 30px 80px rgba(0, 0, 0, 0.55);
}
.porthole {
  position: relative; height: var(--h); aspect-ratio: 0.72; overflow: hidden;
  border-radius: 42% / 30.24%; background: #000; isolation: isolate;
  box-shadow: 0 0 0 2px #070708, 0 0 0 3px rgba(255, 255, 255, 0.05);   /* the rubber seal */
  cursor: grab; touch-action: none;
}
.porthole.dragging { cursor: grabbing; }
.porthole-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Thick glass: darkening toward its edge, with a faint diagonal reflection. */
.pane {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 22px 6px rgba(0, 0, 0, 0.8), inset 0 0 90px rgba(0, 0, 0, 0.5);
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 28%, rgba(255, 255, 255, 0) 44%);
}
/* The shade: drawn on arrival, it lifts to rest a little way down, casting a soft shadow. */
.blind {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #0a0a0b 0%, #101012 70%, #17181b 96%, #1d1e22 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(0);
  transition: transform 2.8s cubic-bezier(0.65, 0, 0.2, 1) 0.6s;
}
.blind::after {
  /* the lip: a thin curve of light along the moulded handle */
  content: ""; position: absolute; left: 26%; right: 26%; bottom: 7px; height: 14px;
  border-bottom: 1.5px solid rgba(225, 230, 240, 0.2); border-radius: 0 0 50% 50% / 0 0 100% 100%;
  filter: blur(0.3px);
}
.home.in .blind { transform: translateY(-87%); }

/* Leaving: lean into the window until it fills your view. */
.home.leaving .home-copy { opacity: 0; transform: translateY(-6px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease); }
.home.leaving .bezel { transform: scale(3.2); transition: transform 1s cubic-bezier(0.6, 0, 0.3, 1); }

.mark { font: 600 clamp(56px, 7.4vw, 108px)/0.9 var(--display); letter-spacing: -0.035em; }
.mark .mk-w { margin-right: 0.03em; }   /* the W's arm overhangs the i: give the dot room */
.mark .mk-seat { margin-left: 0.01em; color: var(--accent); }
.strap { margin-top: 22px; font: 500 clamp(20px, 2vw, 26px)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.wordmark { font: 600 11px var(--sans); letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink); }
.brand h1:not(.mark) { margin-top: 26px; font: 500 clamp(44px, 8.5vw, 84px)/0.95 var(--display); letter-spacing: -0.045em; }
.lede { margin-top: 18px; max-width: 32em; font: 400 15px/1.65 var(--sans); color: var(--muted); }

.planner { margin-top: 44px; display: grid; gap: 24px; }
.modes { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mode {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 14px 14px; background: none; border: 0;
  font: 500 10.5px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint);
  transition: color 0.3s;
}
.mode:first-child { padding-left: 0; }
.mode .icon { width: 15px; height: 15px; }
.mode::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.mode:first-child::after { left: 0; }
.mode:hover { color: var(--muted); }
.mode[aria-selected="true"] { color: var(--ink); }
.mode[aria-selected="true"]::after { transform: scaleX(1); }

.mode-panel { display: grid; gap: 22px; animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.field { display: block; position: relative; min-width: 0; }
.field-label { display: block; font: 500 9.5px var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); }
.field input {
  width: 100%; padding: 8px 0 10px; margin-top: 4px;
  font: 500 24px var(--display); letter-spacing: -0.02em; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  outline: none; transition: border-color 0.3s;
}
.field input:focus { border-bottom-color: var(--ink); }
.field input::placeholder { color: var(--faint); font-weight: 400; }
.flightno { letter-spacing: 0.08em !important; text-transform: uppercase; }
/* Searching: a highlight sweeps along the field's own underline, never past its ends. */
.field.busy::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--ink) 50%, transparent 100%) no-repeat;
  background-size: 30% 100%;
  animation: scan 1.1s var(--ease) infinite;
}
@keyframes scan { from { background-position: -45% 0; } to { background-position: 145% 0; } }
.suggest {
  display: none; position: absolute; z-index: 20; left: -10px; right: -10px; top: calc(100% + 6px);
  margin: 0; padding: 4px; list-style: none;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.field.open .suggest { display: block; }
.suggest li { padding: 10px 12px; border-radius: 2px; cursor: pointer; display: grid; }
.suggest li span { font: 500 17px/1.25 var(--display); letter-spacing: -0.01em; }
.suggest li small { color: var(--faint); font-size: 12px; }
.suggest li:hover, .suggest li.on { background: rgba(238, 240, 245, 0.07); }

.pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 18px; }
.swap {
  width: 34px; height: 34px; margin-bottom: 8px; display: grid; place-items: center;
  border-radius: 2px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  transform: rotate(90deg); transition: transform 0.6s var(--ease), color 0.3s, border-color 0.3s;
}
.swap .icon { width: 15px; height: 15px; }
.swap:hover { transform: rotate(270deg); color: var(--ink); border-color: var(--line-strong); }
.or { font: 500 9.5px var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.go { width: 100%; padding: 17px; }
.go .icon { transition: transform 0.4s var(--ease); }
.go:hover .icon { transform: translateX(4px); }
.form-error:empty { display: none; }
.form-error { font: 400 13px var(--sans); color: var(--accent); }

.shelf { margin-top: 60px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; }
.shuffle { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.links.dealt .journey-link { animation: rise 0.5s var(--ease) both; }
.links.dealt .journey-link:nth-child(2) { animation-delay: 0.04s; }
.links.dealt .journey-link:nth-child(3) { animation-delay: 0.08s; }
.links.dealt .journey-link:nth-child(4) { animation-delay: 0.12s; }
.links.dealt .journey-link:nth-child(5) { animation-delay: 0.16s; }
.links.dealt .journey-link:nth-child(6) { animation-delay: 0.2s; }
.links.dealt .journey-link:nth-child(7) { animation-delay: 0.24s; }
.links { display: grid; margin-top: 10px; border-top: 1px solid var(--line); }
.journey-link {
  display: flex; align-items: center; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.journey-link:hover { padding-left: 10px; }
.jl-mode { color: var(--faint); }
.jl-mode .icon { width: 15px; height: 15px; }
.jl-text { display: grid; gap: 3px; min-width: 0; }
.jl-route { font: 500 19px/1.2 var(--display); letter-spacing: -0.02em; }
.jl-note { font: 400 12.5px/1.35 var(--sans); color: var(--faint); transition: color 0.3s; }
.journey-link:hover .jl-note { color: var(--muted); }
.jl-route em { font-style: normal; color: var(--faint); }
.jl-meta { margin-left: auto; font: 500 10px var(--sans); letter-spacing: 0.2em; color: var(--faint); }
.collection { margin-top: 44px; }

/* ---------------------------------------------------------------- journey */

.journey { position: fixed; inset: 0; overflow: hidden; background: #000; }
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

.top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 14px;
  padding: calc(16px + var(--safe-t)) clamp(16px, 4vw, 48px) 24px;
}
.top > * { pointer-events: auto; }
.route-label { flex: 1; min-width: 0; }
.route-label strong { display: block; font: 600 11px var(--sans); letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-label small { display: block; margin-top: 4px; font: 400 11.5px var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actions { margin-left: auto; display: flex; gap: 6px; flex: none; }

.menu {
  position: absolute; top: calc(66px + var(--safe-t)); right: clamp(16px, 4vw, 48px);
  min-width: 220px; padding: 14px 10px 8px; display: grid; gap: 0;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  animation: rise 0.35s var(--ease);
}
.menu[hidden] { display: none; }
.menu .eyebrow { padding: 0 6px 8px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 9px 6px; background: none; border: 0; border-radius: 2px; font: 400 13.5px var(--sans); text-align: left; }
.toggle:hover { background: rgba(238, 240, 245, 0.05); }
.tick { width: 10px; height: 10px; border: 1px solid var(--faint); transition: all 0.3s; }
.toggle[aria-pressed="true"] .tick { background: var(--ink); border-color: var(--ink); }
.toggle[aria-pressed="false"] { color: var(--faint); }

.titlecard {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  padding: 24px; text-align: center;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1.2s var(--ease), transform 1.6s var(--ease);
}
.titlecard.show { opacity: 1; transform: none; pointer-events: auto; }
.titlecard h1 { margin-top: 24px; display: grid; font: 500 clamp(46px, 9vw, 112px)/0.92 var(--display); letter-spacing: -0.05em; }
.titlecard h1 em { font: 500 10.5px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); margin: 1.4em 0; font-style: normal; }
.tc-meta { margin-top: 32px; font: 500 10.5px var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-hint { margin-top: 12px; font: 400 12.5px var(--sans); color: var(--faint); }
.tc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.titlecard .pill { margin-top: 28px; }
.titlecard .tc-actions .pill { margin-top: 0; }

.caption {
  position: absolute; left: clamp(20px, 5vw, 64px); bottom: calc(92px + var(--safe-b));
  max-width: min(560px, 62vw); padding: 0; text-align: left;
  background: none; border: 0; color: var(--ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.caption.show { opacity: 1; transform: none; pointer-events: auto; }
.caption h2 { margin-top: 10px; font: 500 clamp(24px, 3.1vw, 42px)/1.02 var(--display); letter-spacing: -0.035em; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6); }
.cap-meta { margin-top: 10px; font: 400 12px var(--sans); color: var(--muted); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7); }
.cap-meta:empty { display: none; }

.whisper {
  position: absolute; left: 50%; top: 15%; transform: translateX(-50%);
  max-width: 82vw; text-align: center; white-space: nowrap;
  font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transition: opacity 0.8s var(--ease);
}
.whisper.show { opacity: 1; }

.timeline {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 24px clamp(16px, 4vw, 48px) calc(20px + var(--safe-b));
  pointer-events: auto;
}
.end-label { font: 600 10px var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.track { position: relative; flex: 1; height: 24px; display: flex; align-items: center; gap: 2px; cursor: pointer; touch-action: none; }
.seg { flex: 1; height: 1px; background: rgba(238, 240, 245, 0.12); transition: background 0.8s, height 0.8s; }
.seg.revealed { background: rgba(238, 240, 245, 0.32); }
.seg.rich { background: rgba(238, 240, 245, 0.85); height: 2px; }
.track-tip {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 5; display: grid; gap: 2px;
  max-width: 260px; padding: 7px 10px; transform: translate(-50%, 4px); pointer-events: none;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 2px;
  opacity: 0; transition: opacity 0.2s var(--ease), transform 0.3s var(--ease);
}
.track-tip.show { opacity: 1; transform: translate(-50%, 0); }
.track-tip small { font: 500 9.5px var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }
.track-tip span { font: 500 13px/1.25 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb {
  position: absolute; top: 50%; left: 0; width: 1px; height: 14px;
  background: var(--accent); transform: translate(-50%, -50%); pointer-events: none;
  box-shadow: 0 0 10px rgba(255, 184, 107, 0.7);
}
.readout { min-width: 9.5em; text-align: right; font: 400 11.5px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }

.detail {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(460px, 100vw); overflow-y: auto; overscroll-behavior: contain;
  background: var(--glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border-left: 1px solid var(--line);
  transform: translateX(104%); transition: transform 0.7s var(--ease);
}
.detail.open { transform: none; }
.detail .close { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; z-index: 2; }
.d-media { position: relative; aspect-ratio: 2 / 1; background: #000; }
.d-media img, .d-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-media.embed { aspect-ratio: 16 / 9; }
.d-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.d-body { padding: 26px 28px calc(44px + var(--safe-b)); }
.detail > .d-body:first-child { padding-top: calc(76px + var(--safe-t)); }
.d-body h2 { margin: 14px 0 8px; font: 500 34px/1.02 var(--display); letter-spacing: -0.035em; }
.d-sub { font: 400 15px var(--sans); color: var(--muted); }
.d-text { margin-top: 18px; font: 400 14.5px/1.7 var(--sans); color: rgba(238, 240, 245, 0.8); }
.d-meta { margin-top: 18px; font: 400 11.5px var(--sans); color: var(--faint); }
.d-meta:empty { display: none; }
.d-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }

.now-playing {
  position: absolute; right: clamp(16px, 4vw, 48px); top: calc(62px + var(--safe-t));
  display: flex; align-items: center; gap: 4px; max-width: min(380px, 72vw);
  opacity: 0; pointer-events: none; transition: opacity 0.8s var(--ease);
}
.now-playing.show { opacity: 1; pointer-events: auto; }
.top:has(.actions [data-tip]:hover) .now-playing { opacity: 0; transition-duration: 0.25s; } /* out of the tooltips' way */
.np-link { display: flex; align-items: center; gap: 8px; min-width: 0; font: 400 11px var(--sans); color: var(--faint); text-decoration: none; white-space: nowrap; transition: color 0.3s; }
.np-link:hover { color: var(--muted); }
.np-link span:not(.np-mark) { overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.np-link em { font-style: normal; overflow: hidden; text-overflow: ellipsis; }
/* Skip: barely there until you reach for it. */
.np-skip { flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--faint); opacity: 0.55; transition: opacity 0.3s, color 0.3s, background 0.3s; }
.np-skip:hover, .np-skip:focus-visible { opacity: 1; color: var(--ink); background: rgba(238, 240, 245, 0.06); }
.np-skip .icon { width: 13px; height: 13px; }
.np-skip[data-tip]::after { left: auto; right: 0; transform: translate(0, -3px); }
.np-skip[data-tip]:hover::after { transform: none; }
.np-mark { width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: develop 2.4s ease-in-out infinite; }

/* ---------------------------------------------------------------- before the journey */

.journey.prepping .hud { visibility: hidden; }
.prep { position: absolute; inset: 0; z-index: 10; background: #0a0a0a; opacity: 0; transition: opacity 0.9s var(--ease); }
.prep.in { opacity: 1; }
.prep.leaving { opacity: 0; transition: opacity 0.9s cubic-bezier(0.6, 0, 0.8, 0.4) 0.35s; pointer-events: none; }
.prep-map { position: absolute; inset: 0; }
.prep-map .maplibregl-canvas { outline: none; }
.prep-map .maplibregl-ctrl-attrib { background: rgba(9, 9, 9, 0.6); font-size: 10px; }
.prep-map .maplibregl-ctrl-attrib a { color: var(--faint); }
.prep-map .maplibregl-ctrl-attrib-button { filter: invert(1); opacity: 0.4; }
/* Darken toward the card so the type always reads. */
.prep-scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(9, 9, 9, 0.86) 0%, rgba(9, 9, 9, 0.5) 30%, rgba(9, 9, 9, 0) 52%), radial-gradient(130% 100% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%); }
.prep-back { position: absolute; z-index: 2; top: calc(16px + var(--safe-t)); left: clamp(16px, 4vw, 48px); }
.prep-card {
  position: absolute; z-index: 2; left: clamp(20px, 5vw, 72px); bottom: calc(clamp(32px, 8vh, 88px) + var(--safe-b));
  width: min(440px, calc(100vw - 40px));
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.prep.leaving .prep-card { opacity: 0; transform: translateY(-8px); }
.prep-card h1 { margin-top: 18px; display: grid; font: 500 clamp(40px, 5.2vw, 72px)/0.95 var(--display); letter-spacing: -0.05em; }
.prep-card h1 em { font: 500 10px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); margin: 1.1em 0; font-style: normal; }
.prep-meta { margin-top: 22px; font: 500 10.5px var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); font-variant-numeric: tabular-nums; }
.prep-meta:empty { display: none; }
.prep-status { margin-top: 30px; display: flex; align-items: center; gap: 14px; }
.prep-ring { width: 30px; height: 30px; flex: none; transform: rotate(-90deg); }
.prep-ring circle { fill: none; stroke-width: 1.4; }
.prep-ring .track { stroke: rgba(238, 240, 245, 0.14); }
.prep-ring .arc { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); filter: drop-shadow(0 0 3px rgba(255, 184, 107, 0.7)); }
.prep.ready .prep-ring .arc { stroke-dashoffset: 0 !important; }
.prep-label { display: block; font: 500 17px/1.2 var(--display); letter-spacing: -0.01em; }
.prep-count { display: block; margin-top: 4px; font: 400 12px var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; }
.prep-count .text-btn { padding: 0; color: var(--accent); }
.begin-row { margin-top: 26px; display: grid; justify-items: center; gap: 10px; }
.prep .begin-quiet { opacity: 0; visibility: hidden; transition: opacity 0.8s var(--ease) 0.2s, visibility 0s 0.8s, color 0.3s; font-size: 12px; }
.prep.ready .begin-quiet { opacity: 1; visibility: visible; transition: opacity 0.8s var(--ease) 0.2s, visibility 0s, color 0.3s; }
.prep .begin {
  width: 100%; padding: 17px;
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), visibility 0s 0.8s, background 0.3s;
}
.prep.ready .begin { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.8s var(--ease), transform 0.9s var(--ease), visibility 0s, background 0.3s; }
.prep .begin .icon { transition: transform 0.4s var(--ease); }
.prep .begin:hover .icon { transform: translateX(4px); }
.prep-hint { margin-top: 16px; font: 400 12px var(--sans); color: var(--faint); }
.prep.ready .prep-hint { display: none; }
.prep.failed .prep-ring, .prep.failed .prep-hint { display: none; }

/* Stops along the route: empty, filling, then lit. */
.pnode { width: 20px; height: 20px; display: grid; place-items: center; pointer-events: none; }
.pnode-ring { position: absolute; inset: 0; width: 20px; height: 20px; transform: rotate(-90deg); }
.pnode-ring circle { fill: rgba(9, 9, 9, 0.75); stroke-width: 1.5; }
.pnode-ring .track { stroke: rgba(255, 220, 180, 0.28); }
.pnode-ring .arc { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.5s var(--ease); }
.pnode-core { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.6s var(--ease), box-shadow 0.6s; }
.pnode.developing .pnode-core { transform: scale(0.55); animation: develop 1.4s ease-in-out infinite; }
.pnode.loaded .pnode-core { transform: scale(1); box-shadow: 0 0 8px 2px rgba(255, 184, 107, 0.75), 0 0 22px 6px rgba(255, 184, 107, 0.28); }
.pnode.loaded .pnode-ring circle { fill: rgba(255, 184, 107, 0.16); }
.pnode.quiet { transform: scale(0.45); opacity: 0.5; }
@keyframes develop { 50% { opacity: 0.35; } }
.pend { display: grid; justify-items: center; gap: 8px; pointer-events: none; transform: translateY(calc(50% - 7px)); }
.pend-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #fff1dc; background: rgba(9, 9, 9, 0.8); box-shadow: 0 0 14px rgba(255, 184, 107, 0.8); }
.pend-label { font: 600 10px var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: #fff1dc; text-shadow: 0 1px 10px #000, 0 0 2px #000; white-space: nowrap; }

/* ---------------------------------------------------------------- mini-map */

.minimap {
  position: fixed; z-index: 3;
  right: clamp(16px, 4vw, 48px); bottom: calc(80px + var(--safe-b));
  width: 116px; height: 116px; border-radius: 50%; overflow: hidden;
  background: #05060c; border: 1px solid var(--line);
  box-shadow: 0 0 0 5px rgba(238, 240, 245, 0.03);
  transition: width 0.6s var(--ease), height 0.6s var(--ease), border-radius 0.6s var(--ease);
  animation: rise 0.8s var(--ease) both 0.6s;
}
.minimap.big { width: min(560px, calc(100vw - 32px)); height: min(380px, 56vh); border-radius: 4px; }
.minimap.unavailable { display: none; }
.minimap-canvas { position: absolute; inset: 0; filter: invert(1) hue-rotate(180deg) saturate(0.2) brightness(0.8) contrast(1.1); opacity: 0.85; }
.minimap-toggle {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 2;
  width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(3, 4, 9, 0.7); color: var(--ink);
}
.minimap.big .minimap-toggle { left: auto; right: 10px; top: 10px; bottom: auto; transform: none; width: 28px; height: 28px; border-radius: 2px; }
.minimap-toggle .icon { width: 12px; height: 12px; }
.minimap .maplibregl-ctrl-attrib { display: none; }
.minimap.big .maplibregl-ctrl-attrib { display: block; font-size: 10px; }
/* The marker lives inside the inverted map, so invert it back. */
.you { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); filter: invert(1) hue-rotate(180deg); box-shadow: 0 0 10px var(--accent); }
.you.plane { width: 18px; height: 18px; display: grid; place-items: center; background: none; box-shadow: none; color: #ffb86b; }
.you.plane .icon { width: 16px; height: 16px; transform: rotate(var(--heading, 0deg)); }

.toast {
  position: fixed; left: 50%; bottom: calc(120px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 8px); opacity: 0;
  padding: 11px 18px; width: max-content; max-width: calc(100vw - 32px);
  background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 2px;
  font: 500 10.5px var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- collection */

.collection-inner { max-width: 1160px; margin: 0 auto; padding: calc(40px + var(--safe-t)) 20px 90px; }
.brand.small { display: flex; align-items: center; gap: 20px; margin-bottom: 44px; }
.brand.small h1 { margin-top: 8px; font-size: clamp(38px, 6vw, 60px); }
.gallery { columns: 3 300px; column-gap: 18px; }
.tile {
  position: relative; break-inside: avoid; margin: 0 0 18px; border-radius: 2px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--line);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.tile.gone { opacity: 0; transform: scale(0.97); }
.tile-media { display: block; text-decoration: none; }
.tile-media img { width: 100%; display: block; }
.tile-word { display: block; padding: 46px 24px; font: 500 30px/1 var(--display); letter-spacing: -0.035em; background: linear-gradient(135deg, #0c0e16, #1a1f2e); }
.tile figcaption { padding: 14px 16px 18px; }
.tile h3 { margin-top: 8px; font: 500 19px/1.15 var(--display); letter-spacing: -0.02em; }
.tile-meta { margin-top: 6px; font: 400 11.5px var(--sans); color: var(--faint); }
.tile .ghost-btn { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.3s; }
.tile:hover .ghost-btn, .tile .ghost-btn:focus-visible { opacity: 1; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; gap: 0; }
  .seat { grid-column: 1; grid-row: 1; position: relative; height: auto; padding: calc(36px + var(--safe-t)) 0 8px; }
  .home-copy { grid-column: 1; grid-row: 2; padding-top: 28px; margin: 0 auto; }
  .seat { --h: min(52vh, 520px); }
  .prep-scrim { background: linear-gradient(0deg, rgba(9, 9, 9, 0.92) 0%, rgba(9, 9, 9, 0.6) 34%, rgba(9, 9, 9, 0) 60%); }
  .prep-card { left: 20px; right: 20px; width: auto; bottom: calc(24px + var(--safe-b)); }
  .prep-card h1 { font-size: clamp(34px, 10vw, 52px); }
}

@media (max-width: 640px) {
  .mode { padding: 14px 10px 12px; letter-spacing: 0.14em; }
  .pair { grid-template-columns: 1fr; gap: 6px; }
  .swap { justify-self: end; margin: -2px 0 -6px; transform: rotate(0deg); }
  .swap:hover { transform: rotate(180deg); }
  .field input { font-size: 22px; }
  .top { gap: 10px; }
  .actions { gap: 4px; }
  .ghost-btn { width: 34px; height: 34px; }
  .ghost-btn .icon { width: 15px; height: 15px; }
  .route-label small { display: none; }
  .route-label strong { letter-spacing: 0.2em; font-size: 10px; }
  .caption { left: 20px; right: 20px; max-width: none; bottom: calc(76px + var(--safe-b)); }
  .caption h2 { font-size: 30px; }
  .minimap { width: 80px; height: 80px; top: calc(64px + var(--safe-t)); bottom: auto; right: 16px; }
  .minimap.big { top: calc(64px + var(--safe-t)); }
  .end-label { display: none; }
  .readout { min-width: 0; }
  .timeline { gap: 12px; }
  .whisper { top: 13%; white-space: normal; }
  .detail { top: auto; height: 88vh; width: 100%; border-left: 0; border-top: 1px solid var(--line); transform: translateY(104%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.2s !important; }
}
