/* ==========================================================================
   SAROS — eclipse expeditions (design demo)
   Palette: umbra black · corona pearl · prominence red
   Type:    Bodoni Moda (display) · Geist (text) · Martian Mono (instruments)
   ========================================================================== */

:root {
  --void: #000;
  --night: #08080b;
  --night-2: #111116;
  --night-3: #1a1a21;
  --pearl: #ece8df;
  --pearl-2: #a8a397;
  --line-d: rgba(236, 232, 223, .14);
  --paper: #eee9e0;
  --paper-2: #e3ddd1;
  --ink: #111114;
  --ink-2: #55524b;
  --line-l: rgba(17, 17, 20, .16);
  --flare: #ff5b3a;
  --flare-ink: #b3301a;
  --gold: #f4c889;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4.2vw, 60px);
  --wrap: 1320px;
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; background: var(--void); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--night); color: var(--pearl);
  font: 400 1.0625rem/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--flare); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--flare); color: var(--void); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--pearl); color: var(--ink); font: 500 .8rem var(--f-mono); transition: top .2s;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.kicker {
  font: 400 .6875rem/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  display: flex; align-items: center; gap: .9em; color: var(--pearl-2);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.on-light .kicker { color: var(--ink-2); }
.h2 {
  font: 400 clamp(2.5rem, 5.6vw, 5.4rem)/.98 var(--f-display);
  letter-spacing: -.02em; font-variation-settings: "opsz" 96;
}
.h2 em, .statement em, h1 em, h3 em { font-style: italic; }
.lede { max-width: 44ch; color: var(--pearl-2); font-size: 1.0625rem; }
.on-light .lede { color: var(--ink-2); }
.mono { font-family: var(--f-mono); }

/* ---------- buttons ---------- */
.btn {
  --bc: currentColor;
  display: inline-flex; align-items: center; gap: .95em; white-space: nowrap;
  padding: 1.05em 1.6em 1.05em 1.25em; border-radius: 999px; border: 1px solid var(--bc);
  font: 400 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .orb {
  position: relative; width: 14px; height: 14px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor; overflow: hidden; flex: none;
}
.btn .orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor;
  transform: translateX(105%); transition: transform .5s var(--ease);
}
.btn:hover .orb::after, .btn:focus-visible .orb::after { transform: translateX(0); }
.btn-solid { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.btn-solid:hover { background: var(--flare); border-color: var(--flare); color: var(--void); }
.btn-ghost:hover { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.on-light .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ==========================================================================
   NAV — hidden on the hero, slides in once the hero is mostly gone
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8, 8, 11, .9); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-d);
  opacity: 0; transform: translateY(-14px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.nav.show { opacity: 1; transform: none; pointer-events: auto; }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { font: 500 1.05rem/1 var(--f-display); letter-spacing: .34em; padding-right: .1em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font: 400 .6875rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pearl-2);
  padding: 8px 0; position: relative; transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--flare);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--pearl); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-count {
  font: 400 .6875rem/1 var(--f-mono); letter-spacing: .08em; color: var(--pearl-2);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nav-count b { color: var(--pearl); font-weight: 400; }
.nav .btn { padding: .85em 1.3em .85em 1.05em; }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; }
.burger svg, .menu-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.menu {
  position: fixed; inset: 0; z-index: 100; height: 100dvh; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, #15151c 0%, var(--void) 60%);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.menu-top { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu-close { width: 44px; height: 44px; margin-right: -10px; display: flex; align-items: center; justify-content: center; }
.menu nav { margin-top: 6vh; display: flex; flex-direction: column; }
.menu nav a {
  font: 400 clamp(2.4rem, 11vw, 3.6rem)/1.12 var(--f-display); padding: .12em 0; border-bottom: 1px solid var(--line-d);
  display: flex; align-items: baseline; justify-content: space-between;
}
.menu nav a span { font: 400 .6875rem var(--f-mono); letter-spacing: .14em; color: var(--pearl-2); }
.menu-foot { margin-top: auto; padding-top: 36px; display: grid; gap: 18px; }
.menu-foot .btn { justify-self: start; }

/* ==========================================================================
   HERO — the corona photograph, headline set inside the Moon
   ========================================================================== */
.hero {
  --D: min(118svh, 150vw);
  position: relative; height: calc(100svh + 44px); min-height: 560px;
  background: var(--void); overflow: hidden; isolation: isolate;
}
.hero-plate {
  position: absolute; left: 50%; top: calc(50% - 22px); width: var(--D); height: var(--D);
  translate: -50% -50%; z-index: 0;
  transform: scale(var(--hs, 1)); opacity: var(--ho, 1); will-change: transform, opacity;
}
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-bead {
  /* Sits on the Moon's limb (radius 0.3·D, lower left), outside the photo layer so
     it can flash on black before the corona fades in. */
  position: absolute; z-index: 1; left: calc(50% - var(--D) * .259); top: calc(50% - 22px + var(--D) * .15);
  width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: #fff; opacity: 0;
  box-shadow: 0 0 10px 4px #fff, 0 0 40px 14px rgba(255, 226, 170, .85), 0 0 120px 50px rgba(255, 190, 120, .35);
}
.hero-bead::before, .hero-bead::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 220px; height: 1px; translate: -50% -50%;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 220, .9), transparent);
}
.hero-bead::after { rotate: 90deg; width: 160px; }
.hero-copy {
  position: absolute; left: 50%; top: calc(50% - 22px); translate: -50% -50%; z-index: 2;
  width: calc(var(--D) * .5); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--D) * .03);
  transform: translateY(var(--hy, 0)); opacity: var(--hc, 1);
}
.hero .eyebrow {
  font: 400 clamp(.58rem, calc(var(--D) * .0108), .72rem)/1.4 var(--f-mono);
  letter-spacing: .2em; text-transform: uppercase; color: var(--pearl-2);
}
.hero h1 {
  font: 400 calc(var(--D) * .08)/.94 var(--f-display); letter-spacing: -.02em; color: var(--pearl);
  font-variation-settings: "opsz" 96;
}
.hero h1 em { color: #fff; }
.hero .btn { margin-top: calc(var(--D) * .012); color: var(--pearl); }

/* entrance: the Moon covers the Sun, Baily's bead flares, the corona appears */
.js .hero .hero-plate { opacity: 0; transform: scale(1.06); }
.js .hero .hero-copy > * { opacity: 0; translate: 0 18px; }
.js .hero.play .hero-plate { animation: coronaIn 2.6s .55s var(--ease) forwards; }
.js .hero.play .hero-bead { animation: bead 1.7s .1s var(--ease-io) forwards; }
.js .hero.play .hero-copy > * { animation: rise 1.1s var(--ease) forwards; }
.js .hero.play .hero-copy > :nth-child(1) { animation-delay: 1.25s; }
.js .hero.play .hero-copy > :nth-child(2) { animation-delay: 1.4s; }
.js .hero.play .hero-copy > :nth-child(3) { animation-delay: 1.6s; }
.js .hero.shown .hero-plate { animation: none; opacity: var(--ho, 1); transform: scale(var(--hs, 1)); }
.js .hero.shown .hero-copy > * { animation: none; opacity: 1; translate: 0 0; }
.js .hero.shown .hero-bead { animation: none; opacity: 0; }
@keyframes coronaIn { to { opacity: 1; transform: scale(1); } }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes bead {
  0% { opacity: 0; scale: .2; }
  30% { opacity: 1; scale: 1.15; }
  60% { opacity: .9; scale: 1; }
  100% { opacity: 0; scale: .4; }
}

/* ==========================================================================
   INTRO — daylight panel that rises over the hero
   ========================================================================== */
.intro {
  position: relative; z-index: 5; margin-top: -44px;
  background: var(--paper); color: var(--ink);
  border-radius: 32px 32px 0 0; box-shadow: 0 -34px 70px -32px rgba(0, 0, 0, .8);
  padding: clamp(84px, 12vw, 170px) 0 clamp(70px, 8vw, 120px);
}
.statement {
  font: 400 clamp(1.95rem, 3.9vw, 3.65rem)/1.1 var(--f-display); letter-spacing: -.012em;
  max-width: 21ch; margin-top: 28px; font-variation-settings: "opsz" 72;
}
.statement em { color: var(--flare-ink); }
.count {
  margin-top: clamp(56px, 8vw, 110px); padding-top: 26px; border-top: 1px solid var(--line-l);
  display: grid; grid-template-columns: repeat(4, auto) 1fr; align-items: end; column-gap: clamp(22px, 4vw, 64px); row-gap: 18px;
}
.count-unit b {
  display: block; font: 400 clamp(3.4rem, 9vw, 8.6rem)/.86 var(--f-display);
  font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.03em;
}
.count-unit span { display: block; margin-top: 12px; font: 400 .6875rem var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.count-note { justify-self: end; max-width: 30ch; text-align: right; font-size: .95rem; color: var(--ink-2); }
.count-note strong { color: var(--ink); font-weight: 500; }
.facts {
  margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-l);
}
.facts > div { padding: 24px 24px 0 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-l); }
.facts dt { font: 400 .6875rem/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin-top: 10px; font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--f-display); }
.facts dd small { display: block; margin-top: 10px; font: 400 .92rem/1.5 var(--f-text); color: var(--ink-2); max-width: 30ch; }

/* ==========================================================================
   TOTALITY — pinned; scrolling performs the eclipse over Luxor
   ========================================================================== */
.seq { position: relative; height: 640vh; background: var(--paper); }
.seq-stage {
  --sky: #eee9e0; --fg: var(--ink); --fg-2: var(--ink-2); --glow: 0; --stars: 0; --dark: 0;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: var(--sky); color: var(--fg);
  transition: color .6s var(--ease);
}
.seq-stage.is-dark { --fg: var(--pearl); --fg-2: rgba(236, 232, 223, .74); }
.seq-stage { --fg-2: rgba(17, 17, 20, .74); }
/* While the sky passes through mid-grey neither ink nor pearl reads well, so a
   soft shade (dark or light, matching the text) sits behind captions and HUD. */
.seq-stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--scrim-a, 0);
  background:
    linear-gradient(90deg, var(--scrim, #000) 0%, transparent 52%),
    linear-gradient(0deg, var(--scrim, #000) 0%, transparent 22%);
}
.seq-horizon {
  position: absolute; inset: auto 0 0; height: 46%; pointer-events: none; opacity: var(--glow);
  background:
    radial-gradient(120% 60% at 50% 100%, rgba(255, 140, 70, .55) 0%, rgba(214, 96, 60, .28) 32%, rgba(40, 30, 60, 0) 70%),
    linear-gradient(0deg, rgba(255, 150, 90, .35), rgba(0, 0, 0, 0) 40%);
}
.seq-stars { position: absolute; inset: 0; opacity: var(--stars); pointer-events: none; }
.seq-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .7); }
.seq-sun {
  --R: min(19vh, 17vw);
  position: absolute; left: 68%; top: 47%; width: 0; height: 0;
}
.sun-canvas { position: absolute; left: 0; top: 0; translate: -50% -50%; max-width: none; }
.plate {
  position: absolute; left: 0; top: 0; width: var(--P, 800px); height: var(--P, 800px); max-width: none;
  translate: -50% -50%; opacity: 0; pointer-events: none; will-change: opacity, transform;
  /* The photographs sit on pure black: screen-blending drops that black into
     whatever the sky is doing, and the mask hides the square's edges. */
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 62%, transparent 100%);
}
.seq-caps { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; width: min(34ch, 38vw); }
.cap { position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 100%; opacity: 0; transition: none; }
.cap .t { font: 400 .6875rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.cap h3 { margin-top: 18px; font: 400 clamp(2.6rem, 5.4vw, 5.2rem)/.95 var(--f-display); letter-spacing: -.02em; }
.cap p { margin-top: 20px; font-size: 1.02rem; line-height: 1.6; color: var(--fg-2); max-width: 36ch; }
.cap .clock { display: block; margin-top: 18px; font: 300 clamp(2.4rem, 4.6vw, 4rem)/1 var(--f-mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.seq-intro { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 26px); opacity: var(--intro, 1); }
.seq-hud {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(22px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: 8px 40px; align-items: end;
  font: 400 .6875rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2);
}
.seq-hud b { display: block; margin-top: 7px; font-weight: 400; color: var(--fg); font-size: .8rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.track { position: relative; height: 34px; align-self: end; }
.track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; opacity: .35; }
.track-fill { position: absolute; left: 0; bottom: 6px; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--fg); }
.track i { position: absolute; bottom: 2px; width: 1px; height: 9px; background: currentColor; }
.track i span { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; font-style: normal; white-space: nowrap; }
.track-dot { position: absolute; bottom: 3px; left: calc(var(--p, 0) * 100%); width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--flare); box-shadow: 0 0 0 4px rgba(255, 91, 58, .2); }

/* ==========================================================================
   SHADOW ATLAS — live map, computed in the browser
   ========================================================================== */
.atlas { position: relative; z-index: 4; background: var(--night); padding: clamp(90px, 11vw, 160px) 0 clamp(80px, 9vw, 130px); margin-top: -1px; }
.atlas-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 60px; align-items: end; }
.atlas-head .kicker { grid-column: 1 / -1; }
.atlas-head .lede { justify-self: end; }
.atlas-body { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: 300px 1fr; gap: 0; border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.atlas-list { position: relative; border-right: 1px solid var(--line-d); display: flex; flex-direction: column; }
.atlas-list li + li { border-top: 1px solid var(--line-d); }
.ecl-tab {
  width: 100%; text-align: left; padding: 16px 22px 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: baseline;
  color: var(--pearl-2); transition: color .25s, background .25s; position: relative;
}
.ecl-tab::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 2px; background: var(--flare); transform: scaleY(0); transition: transform .35s var(--ease); }
.ecl-tab .d { font: 400 1.5rem/1.1 var(--f-display); color: var(--pearl); }
.ecl-tab .dur { font: 400 .75rem var(--f-mono); letter-spacing: .06em; color: var(--pearl); }
.ecl-tab .where { grid-column: 1 / -1; font-size: .82rem; line-height: 1.45; }
.ecl-tab .when { grid-column: 1 / -1; font: 400 .625rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.ecl-tab .when.past { color: var(--pearl-2); }
.ecl-tab:hover { color: var(--pearl); }
.ecl-tab[aria-selected="true"] { color: var(--pearl); padding-left: 16px; }
.ecl-tab[aria-selected="true"]::before { transform: scaleY(1); }
.ecl-tab { transition: color .25s, padding .35s var(--ease); }
.atlas-map { position: relative; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 40% 40%, #0f1016 0%, var(--night) 70%); overflow: hidden; }
.atlas-view { position: relative; flex: 1; min-height: clamp(540px, 66vh, 720px); }
.atlas-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.atlas-loading { position: absolute; inset: 0; display: grid; place-items: center; font: 400 .6875rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pearl-2); }
.atlas-card {
  position: absolute; right: 18px; top: 18px; width: min(340px, calc(100% - 36px));
  background: rgba(10, 10, 14, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-d); border-radius: 18px; padding: 20px 20px 18px;
}
.atlas-card .where { font: 400 .6875rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pearl-2); }
.atlas-card .big { margin-top: 10px; font: 400 2.4rem/1 var(--f-display); letter-spacing: -.01em; }
.atlas-card .big em { font-style: italic; color: var(--flare); }
.atlas-card .sub { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: var(--pearl-2); }
.atlas-card dl { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; border-top: 1px solid var(--line-d); padding-top: 14px; }
.atlas-card dt { font: 400 .625rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pearl-2); }
.atlas-card dd { margin-top: 4px; font: 400 .8rem var(--f-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.atlas-card .act { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.atlas-card .btn { padding: .8em 1.15em .8em .95em; font-size: .64rem; }
.atlas-controls {
  position: absolute; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: center; gap: 16px;
  font: 400 .6875rem var(--f-mono); letter-spacing: .1em; color: var(--pearl-2);
}
.atlas-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; flex: none; color: var(--pearl); background: rgba(8, 8, 11, .6); transition: border-color .25s; }
.atlas-play:hover { border-color: var(--pearl); }
.atlas-play svg { width: 14px; height: 14px; fill: currentColor; }
.atlas-time { min-width: 13ch; color: var(--pearl); font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px #000; }
.atlas-range { flex: 1; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; cursor: pointer; }
.atlas-range::-webkit-slider-runnable-track { height: 1px; background: rgba(236, 232, 223, .35); }
.atlas-range::-moz-range-track { height: 1px; background: rgba(236, 232, 223, .35); }
.atlas-range::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--flare); border: 0; box-shadow: 0 0 0 5px rgba(255, 91, 58, .18); }
.atlas-range::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: var(--flare); border: 0; }
.atlas-legend { position: absolute; left: 18px; top: 18px; display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: rgba(8, 8, 11, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-d); font: 400 .625rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pearl-2); pointer-events: none; }
.atlas-legend span { display: flex; align-items: center; gap: 9px; }
.atlas-legend i { width: 18px; height: 7px; border-radius: 4px; flex: none; }
.lg-path { background: rgba(255, 91, 58, .5); }
.lg-umbra { background: #000; box-shadow: 0 0 0 1px rgba(255, 190, 150, .8), 0 0 8px rgba(255, 120, 80, .7); }
.lg-pen { background: linear-gradient(90deg, rgba(236, 232, 223, .7), rgba(236, 232, 223, .08)); }
.atlas-tools { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.atlas-tools .label { font: 400 .6875rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pearl-2); margin-right: 8px; }
.chip {
  padding: .7em 1.1em; border-radius: 999px; border: 1px solid var(--line-d);
  font: 400 .8rem/1 var(--f-text); color: var(--pearl); transition: border-color .25s, background .25s, color .25s;
}
.chip:hover { border-color: var(--pearl-2); }
.chip[aria-pressed="true"] { background: var(--pearl); color: var(--ink); border-color: var(--pearl); }
.chip-loc { display: inline-flex; align-items: center; gap: 8px; }
.chip-loc svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.atlas-note { margin-top: 18px; font-size: .82rem; color: var(--pearl-2); max-width: 80ch; }
.atlas-note a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   EXPEDITIONS — cards stack as you scroll
   ========================================================================== */
.trips { position: relative; background: var(--night); padding: clamp(40px, 5vw, 70px) 0 clamp(90px, 10vw, 150px); }
.trips-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.trips-head .kicker { grid-column: 1 / -1; }
.trips-head .lede { justify-self: end; }
.trip-stack { display: grid; gap: 28px; }
.trip {
  position: sticky; top: calc(var(--nav-h) + 20px + var(--i, 0) * 16px);
  height: min(78vh, 760px); min-height: 540px;
  display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
  border-radius: 28px; background: var(--night-2); border: 1px solid var(--line-d);
  transform-origin: 50% 0; transform: scale(var(--s, 1)); filter: brightness(var(--b, 1));
  will-change: transform;
}
.trip-media { position: relative; overflow: hidden; }
.trip-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: translateY(var(--py, 0)); }
.trip-media figcaption {
  position: absolute; left: 18px; bottom: 16px; font: 400 .625rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--pearl); background: rgba(0, 0, 0, .45); padding: 6px 9px; border-radius: 6px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.trip-body { padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; }
.trip-no { font: 400 .6875rem var(--f-mono); letter-spacing: .16em; color: var(--pearl-2); display: flex; justify-content: space-between; }
.trip h3 { margin-top: clamp(18px, 3vh, 34px); font: 400 clamp(2.5rem, 4.4vw, 4.4rem)/.95 var(--f-display); letter-spacing: -.02em; }
.trip-where { margin-top: 14px; font: 400 .75rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--flare); }
.trip-copy { margin-top: 18px; color: var(--pearl-2); max-width: 46ch; font-size: 1rem; }
.trip-facts { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.trip-facts > div { padding: 16px 12px 0 0; }
.trip-facts > div:nth-child(n+4) { border-top: 1px solid var(--line-d); margin-top: 16px; }
.trip-facts dt { font: 400 .6rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pearl-2); }
.trip-facts dd { margin-top: 6px; font: 400 1.35rem/1.1 var(--f-display); }
.trip-facts dd.live::after { content: "live"; margin-left: 7px; vertical-align: 3px; font: 400 .52rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--flare); }
.trip-cta { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.trip-cta small { font-size: .78rem; color: var(--pearl-2); }

/* ==========================================================================
   THE DAY — itinerary, parallax columns
   ========================================================================== */
.day { position: relative; background: var(--night); padding: clamp(80px, 10vw, 150px) 0 clamp(100px, 12vw, 180px); overflow: hidden; }
.day-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 60px; align-items: end; }
.day-head .kicker { grid-column: 1 / -1; }
.day-head .lede { justify-self: end; }
.day-grid { margin-top: clamp(50px, 7vw, 100px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 34px); align-items: start; }
.day-col { display: grid; gap: clamp(16px, 2.4vw, 34px); transform: translateY(var(--cy, 0)); will-change: transform; }
.day-col:nth-child(2) { margin-top: 120px; }
.day-col:nth-child(3) { margin-top: 40px; }
.moment { position: relative; }
.moment .ph { position: relative; overflow: hidden; border-radius: 18px; background: var(--night-2); }
.moment .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translateY(var(--iy, 0)); }
.moment.tall .ph { aspect-ratio: 4 / 5; }
.moment.wide .ph { aspect-ratio: 5 / 4; }
.moment.sq .ph { aspect-ratio: 1; }
.moment-t { margin-top: 16px; display: flex; align-items: baseline; gap: 14px; }
.moment-t time { font: 300 .8rem var(--f-mono); letter-spacing: .06em; color: var(--flare); font-variant-numeric: tabular-nums; }
.moment-t h3 { font: 400 1.55rem/1.1 var(--f-display); }
.moment p { margin-top: 8px; font-size: .94rem; line-height: 1.55; color: var(--pearl-2); max-width: 40ch; }
.moment.text-only { padding: 28px 0; border-top: 1px solid var(--line-d); }
.moment.text-only .big { font: 400 clamp(3rem, 6vw, 5.6rem)/.9 var(--f-display); letter-spacing: -.02em; }
.moment.text-only .big em { color: var(--flare); }

/* ==========================================================================
   SAFETY — light band
   ========================================================================== */
.safe { background: var(--paper); color: var(--ink); padding: clamp(80px, 10vw, 140px) 0; position: relative; z-index: 2; }
.safe-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px clamp(40px, 7vw, 120px); }
.safe .h2 { margin-top: 26px; }
.safe .h2 em { color: var(--flare-ink); }
.safe-list { display: grid; gap: 0; counter-reset: s; }
.safe-list li { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line-l); }
.safe-list li:last-child { border-bottom: 1px solid var(--line-l); }
.safe-list li::before { counter-increment: s; content: "0" counter(s); font: 400 .75rem var(--f-mono); letter-spacing: .1em; color: var(--flare-ink); padding-top: 8px; }
.safe-list h3 { font: 400 1.6rem/1.15 var(--f-display); }
.safe-list p { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
.safe-src { margin-top: 26px; font-size: .9rem; color: var(--ink-2); }
.safe-src a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ==========================================================================
   RESERVE — form + generated boarding pass
   ========================================================================== */
.reserve { position: relative; background: var(--void); padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; isolation: isolate; }
.reserve::before {
  content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 1) 0 34%, rgba(236, 232, 223, .16) 35.2%, rgba(236, 232, 223, .05) 44%, transparent 64%);
}
.res-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px clamp(40px, 7vw, 110px); align-items: start; }
.res-intro .h2 { margin-top: 26px; }
.res-intro .lede { margin-top: 26px; }
.res-demo { margin-top: 26px; padding: 14px 16px; border: 1px dashed var(--line-d); border-radius: 12px; font-size: .86rem; color: var(--pearl-2); max-width: 44ch; }
.form { display: grid; gap: 26px; }
.field-label { display: block; font: 400 .6875rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pearl-2); margin-bottom: 10px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.opt span { display: block; height: 100%; padding: 14px 14px 13px; border: 1px solid var(--line-d); border-radius: 14px; transition: border-color .25s, background .25s; }
.opt b { display: block; font: 400 1.15rem/1.15 var(--f-display); }
.opt small { display: block; margin-top: 6px; font: 400 .625rem/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pearl-2); }
.opt input:checked + span { border-color: var(--pearl); background: rgba(236, 232, 223, .06); }
.opt input:focus-visible + span { outline: 2px solid var(--flare); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-d); border-radius: 999px; height: 52px; }
.stepper button { width: 52px; height: 100%; font-size: 1.2rem; color: var(--pearl); }
.stepper button:disabled { color: var(--line-d); cursor: default; }
.stepper output { flex: 1; text-align: center; font: 400 .9rem var(--f-mono); }
.select, .input {
  width: 100%; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-d);
  background: transparent; color: var(--pearl); transition: border-color .25s;
}
.select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pearl-2) 50%), linear-gradient(135deg, var(--pearl-2) 50%, transparent 50%); background-position: calc(100% - 24px) 23px, calc(100% - 19px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { color: #111; }
.input::placeholder { color: rgba(168, 163, 151, .7); }
.input:hover, .select:hover { border-color: rgba(236, 232, 223, .35); }
.input:focus, .select:focus { outline: none; border-color: var(--pearl); }
.input[aria-invalid="true"] { border-color: var(--flare); }
.err { margin-top: 8px; min-height: 1.2em; font-size: .8rem; color: var(--flare); }
.total { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line-d); }
.total .sum { font: 400 clamp(2.4rem, 4vw, 3.4rem)/1 var(--f-display); font-variant-numeric: lining-nums; }
.total small { display: block; margin-top: 8px; font-size: .78rem; color: var(--pearl-2); }

.pass {
  display: none; position: relative; border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, #16161d, #0b0b0f 60%); border: 1px solid var(--line-d);
}
.pass.show { display: block; animation: passIn .9s var(--ease) both; }
@keyframes passIn { from { opacity: 0; transform: translateY(24px) rotateX(10deg); } to { opacity: 1; transform: none; } }
.pass-top { display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; border-bottom: 1px dashed var(--line-d); font: 400 .6875rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pearl-2); }
.pass-top .brand { color: var(--pearl); font-size: .95rem; }
.pass-main { padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 22px; }
.pass-main h3 { font: 400 clamp(2rem, 3.4vw, 2.9rem)/1 var(--f-display); }
.pass-main .who { margin-top: 10px; color: var(--pearl-2); }
.pass-eclipse { width: 104px; height: 104px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7), 0 0 26px 6px rgba(236, 232, 223, .35), 0 0 70px 18px rgba(236, 232, 223, .12); }
.pass-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-d); }
.pass-grid > div { padding: 16px 26px 20px; }
.pass-grid > div + div { border-left: 1px solid var(--line-d); }
.pass-grid dt { font: 400 .6rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--pearl-2); }
.pass-grid dd { margin-top: 6px; font: 400 .92rem var(--f-mono); font-variant-numeric: tabular-nums; }
.pass-foot { padding: 20px 26px 24px; border-top: 1px dashed var(--line-d); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pass-foot p { flex-basis: 100%; font-size: .82rem; color: var(--pearl-2); }
.pass-code { font: 400 .75rem var(--f-mono); letter-spacing: .2em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--void); color: var(--pearl-2); padding: 70px 0 34px; border-top: 1px solid var(--line-d); }
.foot-mark {
  font: 400 clamp(4.4rem, 20vw, 21rem)/.8 var(--f-display); letter-spacing: -.02em; color: var(--pearl);
  display: flex; align-items: center; justify-content: space-between; user-select: none;
}
.foot-mark .o {
  display: inline-block; width: .66em; height: .66em; border-radius: 50%; background: #000; margin-inline: .02em; translate: 0 .03em;
  box-shadow: 0 0 0 .012em rgba(255, 255, 255, .85), 0 0 .12em .03em rgba(236, 232, 223, .45), 0 0 .4em .06em rgba(236, 232, 223, .12);
}
.foot-cols { margin-top: 60px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-top: 30px; border-top: 1px solid var(--line-d); font-size: .9rem; }
.foot-cols h4 { font: 400 .6875rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--pearl); margin-bottom: 14px; }
.foot-cols li + li { margin-top: 8px; }
.foot-cols a { transition: color .2s; }
.foot-cols a:hover { color: var(--pearl); }
.foot-cols a.u { text-decoration: underline; text-underline-offset: 3px; }
.foot-note { max-width: 46ch; line-height: 1.6; }
.foot-base { margin-top: 50px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font: 400 .625rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* ==========================================================================
   REVEALS — content is visible without JS; .js opts into motion
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .08s; } .js .rv-d2 { transition-delay: .16s; } .js .rv-d3 { transition-delay: .24s; }
.js .rv-mask .ph img, .js .rv-mask > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease); }
.js .rv-mask.in .ph img, .js .rv-mask.in > img { clip-path: inset(0 0 0 0); }
.js .rv-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.js .rv-words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.js .rv-words.in .w > span { transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav .nav-count { margin-left: auto; }
  .burger { display: flex; }
  .nav .btn { display: none; }
  .atlas-body { grid-template-columns: 1fr; }
  .atlas-list { border-right: 0; border-bottom: 1px solid var(--line-d); flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .atlas-list::-webkit-scrollbar { display: none; }
  .atlas-list li { flex: none; }
  .atlas-list li + li { border-top: 0; border-left: 1px solid var(--line-d); }
  .ecl-tab { padding: 14px 18px; width: auto; min-width: 180px; }
  .ecl-tab[aria-selected="true"] { padding-left: 18px; background: rgba(236, 232, 223, .05); }
  .ecl-tab::before { left: 18px; right: 18px; top: auto; bottom: -1px; width: auto; height: 2px; transform: scaleX(0); }
  .ecl-tab[aria-selected="true"]::before { transform: scaleX(1); }
  .ecl-tab .where { display: none; }
  .trip { grid-template-columns: 1fr; grid-template-rows: 40% 1fr; height: auto; min-height: 0; }
  .trip-media { min-height: 260px; }
  .res-grid { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  .nav-count .lbl { display: none; }
  .atlas-head, .trips-head, .day-head { grid-template-columns: 1fr; }
  .atlas-head .lede, .trips-head .lede, .day-head .lede { justify-self: start; }
  .count { grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 12px; }
  .count-unit b { font-size: clamp(2.6rem, 12.4vw, 3.4rem); }
  .count-unit span { font-size: .6rem; letter-spacing: .12em; }
  .count-note { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-l); margin-top: 22px; }
  .seq-sun { --R: min(15vh, 27vw); left: 50%; top: 32%; }
  .seq-caps { left: var(--gutter); right: var(--gutter); width: auto; top: auto; bottom: 150px; translate: 0 0; height: 40vh; }
  .cap { top: auto; bottom: 0; translate: 0 0; }
  .cap h3 { font-size: clamp(2.3rem, 11vw, 3rem); margin-top: 12px; }
  .cap p { margin-top: 12px; font-size: .95rem; }
  .cap .clock { font-size: 2.2rem; margin-top: 10px; }
  .seq-hud { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .seq-hud .hud-where, .seq-hud .hud-alt { display: none; }
  .track { grid-column: 1 / -1; }
  .atlas-view { flex: none; min-height: 0; aspect-ratio: 4 / 5; }
  .atlas-card { position: static; width: auto; margin: 0 12px 12px; }
  .atlas-legend { display: none; }
  .atlas-controls { left: 12px; right: 12px; }
  .trip { position: relative; top: auto; transform: none !important; filter: none !important; border-radius: 22px; }
  .trip-facts { grid-template-columns: 1fr 1fr; }
  .trip-facts > div:nth-child(n+3) { border-top: 1px solid var(--line-d); margin-top: 14px; }
  .trip-facts > div:nth-child(n+4) { margin-top: 14px; }
  .day-grid { grid-template-columns: 1fr; }
  .day-col, .day-col:nth-child(2), .day-col:nth-child(3) { margin-top: 0; transform: none !important; }
  .safe-grid { grid-template-columns: 1fr; }
  .safe-list li { grid-template-columns: 44px 1fr; }
  .opts { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .pass-grid { grid-template-columns: 1fr 1fr; }
  .pass-grid > div:nth-child(3) { border-left: 0; }
  .pass-grid > div:nth-child(n+3) { border-top: 1px solid var(--line-d); }
  .pass-eclipse { width: 70px; height: 70px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* ==========================================================================
   REDUCED MOTION — no pinning, no scrubbing, everything visible
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero .hero-plate { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .hero .hero-copy > * { opacity: 1 !important; transform: none !important; translate: none !important; animation: none !important; }
  .hero-bead { display: none; }
  .js .rv, .js .rv-mask .ph img, .js .rv-mask > img, .js .rv-words .w > span { opacity: 1; transform: none; clip-path: none; transition: none; }
  .seq { height: auto; }
  .seq-stage { position: relative; height: auto; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 60px; --sky: #05060b; --fg: var(--pearl); --fg-2: var(--pearl-2); }
  .seq-sun { position: relative; left: auto; top: auto; width: 100%; height: 56vh; }
  .seq-sun .plate-total { opacity: 1 !important; left: 50%; top: 50%; --P: 70vh; }
  .sun-canvas, .seq-sun .plate-c2, .seq-sun .plate-c3 { display: none; }
  .seq-caps { position: relative; left: auto; top: auto; translate: none; width: auto; padding: 0 var(--gutter); display: grid; gap: 40px; max-width: 760px; }
  .cap { position: relative; top: auto; translate: none; opacity: 1 !important; }
  .seq-hud, .seq-intro { display: none; }
  .trip { position: relative; top: auto; transform: none !important; filter: none !important; }
  .day-col { transform: none !important; }
}
