:root {
  --night: #050b14;
  --deep: #07111f;
  --ice: #eaf2f8;
  --glacier: #8ec5e8;
  --ember: #e02534;      /* the tracker's route colour, so the map and the page agree */
  --ember-text: #ff7a6e; /* a lighter tint for small text on the dark ground */
  --graphite: #263546;
  --mist: rgba(234, 242, 248, 0.6);
  --gutter: clamp(16px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--ice); scroll-behavior: auto; }
body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-variation-settings: "opsz" 14, "wdth" 100;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ember-text); outline-offset: 4px; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; font-variation-settings: "opsz" 96; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3.6rem); max-width: 22ch; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px var(--gutter);
  background: linear-gradient(var(--night) 0%, rgba(5, 11, 20, 0) 100%);
  font-size: 0.95rem;
}
.nav__mark { font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.nav__mark span { font-weight: 400; color: var(--mist); margin-left: 10px; }
.nav__links { display: flex; gap: 24px; }
.nav__links a { opacity: 0.75; }
.nav__links a:hover { opacity: 1; }
@media (max-width: 720px) { .nav__mark span { display: none; } .nav__links { gap: 14px; font-size: 0.9rem; } }

/* hero */
.hero {
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
  position: relative; isolation: isolate; overflow: hidden;
}
.hero__photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,11,20,0.92) 0%, rgba(5,11,20,0.55) 45%, rgba(5,11,20,0.15) 100%),
    linear-gradient(rgba(5,11,20,0.2) 0%, rgba(5,11,20,0.1) 50%, var(--night) 100%);
}
.hero__top { padding-top: 120px; display: flex; justify-content: flex-end; }
.hero__intro { max-width: 36ch; color: var(--ice); font-size: clamp(0.95rem, 1.1vw, 1.1rem); text-wrap: pretty; }
.hero__title {
  margin: 0;
  font-size: clamp(2.5rem, 7.4vw, 7.5rem);
  font-weight: 300; font-variation-settings: "opsz" 96, "wdth" 100;
  line-height: 0.98; letter-spacing: -0.025em;
}
.hero__title .line { display: block; }
.hero__title .line:nth-child(3) { color: var(--glacier); }
.hero__foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  margin-top: 40px; color: var(--mist); font-size: 0.9rem;
}
.hero__season { color: var(--ice); }
.hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--graphite); border-radius: 999px;
  color: var(--ice); background: rgba(5,11,20,0.5); backdrop-filter: blur(6px);
}
.hero__chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(224,37,52,0.6); }
.hero__chip.is-live i { animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(224,37,52,0.6); } 100% { box-shadow: 0 0 0 10px rgba(224,37,52,0); } }
.cue { display: inline-flex; align-items: center; gap: 10px; }
.cue i { display: block; width: 1px; height: 36px; background: var(--mist); transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 720px) {
  .hero__top { justify-content: flex-start; padding-top: 96px; }
  .hero__photo { object-position: 60% 20%; }
  .hero::after { background: linear-gradient(rgba(5,11,20,0.35) 0%, rgba(5,11,20,0.75) 55%, var(--night) 100%); }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .cue { display: none; }
}

/* live: the tracker takes the stage */
.live { padding: clamp(72px, 10vh, 120px) var(--gutter) clamp(48px, 7vh, 88px); background: var(--night); position: relative; z-index: 1; }
.live__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.live__head > div { display: grid; gap: 10px; }
.live__sub { color: var(--mist); max-width: 60ch; font-size: 1.05rem; }
.live__sub.is-stale { color: var(--ember-text); }
.live__map { height: min(82vh, 920px); min-height: 420px; border: 1px solid var(--graphite); border-radius: 2px; overflow: hidden; background: var(--deep); }
.live__map { position: relative; }
.live__map iframe { width: 100%; height: 100%; border: 0; display: block; }
/* the map swallows wheel and touch events, so it needs a click before it takes them */
.live__gate { position: absolute; inset: 0; border: 0; padding: 20px; background: transparent; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: flex-end; font: inherit; color: var(--ice); }
.live__gate span { padding: 10px 16px; border-radius: 999px; background: rgba(5,11,20,0.75); border: 1px solid var(--graphite); font-size: 0.9rem; backdrop-filter: blur(6px); }
.live__gate:hover span { border-color: var(--ember); }
.live__map.is-active .live__gate { display: none; }
@media (hover: none) { .live__gate span::before { content: "Tap to use the map"; } .live__gate span { font-size: 0; } .live__gate span::before { font-size: 0.9rem; } }
.tiles { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); border-left: 1px solid var(--graphite); border-top: 1px solid var(--graphite); }
.tiles li { padding: 24px 20px 22px; border-right: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); display: grid; gap: 6px; align-content: start; }
.tiles b { font-weight: 300; font-size: clamp(1.7rem, 2.3vw, 2.5rem); letter-spacing: -0.03em; line-height: 1; font-variation-settings: "opsz" 96; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tiles b.is-position { font-size: clamp(1.2rem, 1.5vw, 1.6rem); white-space: normal; line-height: 1.15; letter-spacing: -0.02em; }
.tiles b.is-position span { display: block; }
.tiles span { color: var(--ice); font-size: 0.95rem; }
.tiles small { color: var(--mist); font-size: 0.85rem; min-height: 1.2em; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .live { padding-top: 56px; }
  .live__map { height: 70vh; min-height: 360px; }
  .tiles { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; }
  .tiles li { padding: 16px 12px 14px; gap: 4px; }
  .tiles b { font-size: 1.35rem; }
  .tiles b.is-position { font-size: 1rem; }
  .tiles span { font-size: 0.8rem; }
  .tiles small { font-size: 0.72rem; }
}

/* story: content scrolls over the chart */
.story { position: relative; }
.bg { position: fixed; inset: 0; z-index: 0; opacity: 0; pointer-events: none; }
.story > section { position: relative; z-index: 1; }
.chart__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chart__svg .sphere { fill: var(--deep); stroke: var(--graphite); stroke-width: 1; }
.chart__svg .graticule { fill: none; stroke: var(--graphite); stroke-width: 0.8px; vector-effect: non-scaling-stroke; }
.chart__svg .graticule--minor { stroke-width: 0.5px; opacity: 0.7; }
.chart__svg .land { fill: var(--ice); stroke: var(--glacier); stroke-width: 0.9px; vector-effect: non-scaling-stroke; }
.chart__svg .route { fill: none; stroke: var(--ember); stroke-linecap: round; stroke-linejoin: round; }
.chart__svg .route-ghost { fill: none; stroke: var(--ember); opacity: 0.5; }
.chart__svg .track { fill: none; stroke: var(--ice); stroke-linecap: round; stroke-linejoin: round; }
.chart__svg .wp { fill: var(--night); stroke: var(--ember); stroke-width: 1.6; }
.chart__svg .wp-label { font-size: 13px; fill: var(--ice); font-weight: 500; letter-spacing: 0.01em; }
.chart__svg .lat-label { font-size: 11px; fill: var(--mist); }
.chart__svg .marker { fill: var(--ember); }
.chart__svg .marker-halo { fill: none; stroke: var(--ember); stroke-width: 1; opacity: 0.6; }
.chart__svg .live-dot { fill: var(--ice); stroke: var(--night); stroke-width: 2; }
.chart__svg .live-halo { fill: none; stroke: var(--ice); stroke-width: 1; opacity: 0.7; }
.chart__svg .live-label { font-size: 13px; fill: var(--ice); font-weight: 600; paint-order: stroke; stroke: var(--night); stroke-width: 4px; stroke-linejoin: round; }
.chart__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,11,20,0.9) 0%, rgba(5,11,20,0.6) 45%, rgba(5,11,20,0.15) 100%); }
.chart__hud { position: absolute; top: 96px; right: var(--gutter); text-align: right; color: var(--ice); opacity: 0; transition: opacity 0.4s; }
.bg.is-route .chart__hud { opacity: 1; }
.chart__hud small { display: block; color: var(--mist); font-size: 0.85rem; margin-bottom: 4px; }
.chart__hud b { display: block; font-weight: 300; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; font-variation-settings: "opsz" 96; letter-spacing: -0.02em; }
.chart__hud span { color: var(--mist); font-size: 0.9rem; }
.chart__key { position: absolute; right: var(--gutter); bottom: clamp(24px, 6vh, 56px); display: flex; gap: 18px; font-size: 0.85rem; color: var(--mist); }
.chart__key span { display: inline-flex; align-items: center; gap: 8px; }
.chart__key span::before { content: ""; width: 22px; height: 0; border-top: 2px solid var(--ember); }
.chart__key-track::before { border-color: var(--ice) !important; }
@media (max-width: 720px) {
  .chart__scrim { background: linear-gradient(rgba(5,11,20,0.7), rgba(5,11,20,0.85)); }
  .chart__hud { top: 76px; }
  .chart__hud b { font-size: 1.6rem; }
  .chart__key { display: none; }
  .chart__svg .wp-label, .chart__svg .lat-label { display: none; }
}

/* route chapters */
.route { padding: clamp(96px, 16vh, 200px) var(--gutter) 0; }
.route__intro { display: grid; gap: 16px; max-width: 34rem; min-height: 60vh; }
.route__intro p { color: var(--mist); font-size: 1.1rem; max-width: 44ch; }
.route__chapters { display: grid; }
.chapter { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; max-width: 34rem; }
.chapter h3 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); margin-bottom: 12px; }
.chapter p { font-size: clamp(0.98rem, 1.15vw, 1.15rem); color: var(--ice); max-width: 38ch; }
.chapter small { display: block; margin-top: 12px; color: var(--glacier); font-size: 0.9rem; }
.plan { padding: clamp(48px, 8vh, 96px) 0 clamp(80px, 14vh, 160px); display: grid; gap: 20px; max-width: 60rem; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 32px; }
.plan__list b { display: block; font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.03em; line-height: 1.1; font-variation-settings: "opsz" 96; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan__list span { color: var(--mist); font-size: 0.9rem; }

/* log */
.log { padding: 0 var(--gutter) clamp(80px, 14vh, 160px); }
.log__head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vh, 40px); }
.log__head p { color: var(--mist); }
.log__table-wrap { overflow-x: auto; max-width: 60rem; }
.log__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.log__table th { text-align: left; font-weight: 500; color: var(--mist); font-size: 0.85rem; padding: 0 12px 12px 0; border-bottom: 1px solid var(--graphite); }
.log__table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--graphite); vertical-align: middle; white-space: nowrap; }
.log__table td:first-child { font-weight: 500; }
.log__table th.log__skied, .log__table td.log__skied { width: 40%; }
.log__table .is-rest { color: var(--mist); }
.log__table .is-latest td:first-child { color: var(--ember-text); }
.bar { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.bar i { display: block; height: 6px; border-radius: 0 3px 3px 0; background: var(--ember); transform-origin: left; width: var(--w); }
.bar em { font-style: normal; min-width: 5ch; text-align: right; }
.log__empty { color: var(--mist); padding: 32px 0; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--graphite); max-width: 60rem; }

/* about */
.about { padding: clamp(80px, 14vh, 160px) 0 0; border-top: 1px solid var(--graphite); background: var(--night); position: relative; z-index: 1; }
.about__grid { display: grid; gap: 40px; padding: 0 var(--gutter); align-items: center; }
.about__portrait { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about__text { display: grid; gap: 20px; }
.about__text p { max-width: 48ch; color: var(--mist); font-size: 1.1rem; }
.about__text [data-about-paragraphs] { display: grid; gap: 1em; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 5fr 6fr; gap: 64px; } .about__portrait { aspect-ratio: 4 / 5; } }
.strip__pin { overflow: hidden; margin-top: clamp(56px, 8vh, 96px); }
.strip__track { display: flex; gap: 20px; padding: 0 var(--gutter) clamp(80px, 14vh, 160px); width: max-content; }
.card {
  width: min(78vw, 440px); aspect-ratio: 3 / 4; flex: none;
  border: 1px solid var(--graphite); border-radius: 2px; overflow: hidden; position: relative;
  background: var(--deep);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(5,11,20,0) 55%, rgba(5,11,20,0.85)); }
.card figcaption { position: absolute; left: 24px; bottom: 20px; z-index: 1; font-size: 0.95rem; }
@media (max-width: 899px) { .strip__pin { overflow-x: auto; scroll-snap-type: x mandatory; } .card { scroll-snap-align: start; } }

/* follow */
.follow { padding: clamp(80px, 14vh, 160px) var(--gutter); border-top: 1px solid var(--graphite); display: grid; gap: 20px; background: var(--night); position: relative; z-index: 1; }
.follow p { max-width: 44ch; color: var(--mist); font-size: 1.1rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--ember);
  color: var(--ice); font-weight: 500; width: fit-content; transition: background 0.25s, color 0.25s; white-space: nowrap;
}
.button:hover { background: var(--ember); color: var(--ice); }

/* partners */
.partners { padding: clamp(48px, 8vh, 80px) var(--gutter); background: var(--ice); color: var(--night); position: relative; z-index: 1; }
.partners h2 { font-size: 1rem; font-weight: 500; letter-spacing: 0; margin-bottom: 28px; color: #4b5a68; }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px 44px; align-items: center; }
.partners__list img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.partners__list a { display: block; transition: opacity .2s; }
.partners__list a:hover { opacity: .6; }

footer { position: relative; z-index: 1; background: var(--night); padding: 32px var(--gutter) 48px; color: var(--mist); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot__text { display: grid; gap: 6px; align-content: start; }
.credit { display: inline-flex; align-items: center; gap: 14px; color: var(--ice); }
.credit svg { width: 48px; height: 48px; fill: currentColor; flex: none; }
.credit:hover { color: var(--glacier); }

.preview {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  padding: 8px 14px; border-radius: 999px; background: var(--ember); color: var(--ice); font-size: 0.85rem; font-weight: 500;
}

/* reduced motion: the chart becomes a static figure above the chapters */
.reduced .bg { position: relative; opacity: 1; height: 70vh; pointer-events: auto; }
.reduced .chart__scrim { background: none; }
.reduced .chapter { min-height: 0; margin-bottom: 48px; }
.reduced .route__intro { min-height: 0; margin-bottom: 48px; }
.reduced .chart__hud, .reduced .cue, .reduced .chart__key { display: none; }
.reduced .hero__chip i { animation: none; }
