:root {
  --night: #1a1220;
  --plum: #2a1b30;
  --plum-2: #38243d;
  --ember: #ffb27a;
  --rose: #e8705f;
  --cream: #f6ead9;
  --dim: #c3b2b6;
  --line: rgba(246, 234, 217, .17);
  --head: 'Cormorant', Georgia, serif;
  --body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Reenie Beanie', 'Bradley Hand', cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

@view-transition { navigation: auto; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--body); font-size: 18px; line-height: 1.6; overflow-x: hidden; }
/* paper-like grain, and a soft light that follows the pointer */
body::before { content: ''; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body::after { content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 20%), rgba(255, 178, 122, .1), transparent 70%); }
main, .mast, footer { position: relative; z-index: 2; }
a { color: var(--ember); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.page { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
[hidden] { display: none !important; }

/* Header */
.mast { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); background: rgba(26, 18, 32, .5); }
.mast-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 12px; }
.mast-name { font-family: var(--head); font-style: italic; font-size: 24px; font-weight: 500; color: var(--cream); text-decoration: none; }
.mast nav { display: flex; gap: 6px 26px; flex-wrap: wrap; font-size: 15.5px; }
.mast nav a { position: relative; color: var(--cream); text-decoration: none; padding-bottom: 5px; }
.mast nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4C10 1 15 5 24 3s16-1 22 0 9 1 13-1' fill='none' stroke='%23ffb27a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.mast nav a:hover::after, .mast nav a[aria-current]::after { transform: scaleX(1); }

/* Motion helpers */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .06em .12em 0; margin-bottom: -.12em; }
.w > span { display: inline-block; transform: translateY(112%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.split-in .w > span { transform: none; }

/* Inner page headings */
.title { padding: clamp(46px, 8vw, 96px) 0 clamp(26px, 4vw, 44px); }
.title h1 { font-size: clamp(50px, 8vw, 92px); line-height: .98; letter-spacing: -.015em; font-weight: 400; }
.title .sub { max-width: 32em; margin: 22px 0 0; font-size: 20px; color: var(--dim); }
.hand { font-family: var(--hand); font-size: 27px; line-height: 1.05; color: var(--ember); }
section { padding: clamp(40px, 7vw, 76px) 0; }
section > h2, .sec-h { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; margin-bottom: 14px; font-weight: 400; }
.narrow { max-width: 38em; }
.note { font-size: 15.5px; color: var(--dim); }
sup a { font-size: 11px; text-decoration: none; padding: 0 1px; }
.sources { font-size: 14.5px; line-height: 1.55; padding-left: 22px; margin: 0; color: var(--dim); overflow-wrap: anywhere; }
.sources li { margin-bottom: 5px; }
.srcs summary { font-family: var(--head); font-size: 26px; }
footer .foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 0 36px; font-size: 14px; color: var(--dim); }
.foot p { margin: 0 0 4px; }

/* Controls */
.chip { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 7px 15px; cursor: pointer; font-size: 15px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover { border-color: var(--ember); transform: translateY(-2px); }
.chip[aria-pressed=true] { background: var(--ember); border-color: var(--ember); color: var(--night); }
.go { background: var(--ember); color: var(--night); border: 0; border-radius: 99px; padding: 10px 22px; cursor: pointer; font-weight: 600; transition: transform .25s var(--ease), background .25s; }
.go:hover { transform: translateY(-2px); background: var(--cream); }
.go.ghost { background: none; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.go.ghost:hover { box-shadow: inset 0 0 0 1px var(--ember); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; cursor: grab; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: var(--line); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 6px rgba(255, 178, 122, .16); transition: box-shadow .2s; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 6px rgba(255, 178, 122, .16); }
input[type=range]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(255, 178, 122, .22); }
input[type=number] { width: 100%; font: inherit; color: var(--cream); background: var(--plum); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.field { margin-bottom: 20px; }
.field label { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; margin-bottom: 3px; }
.field output { color: var(--ember); font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* Home: the ascent */
.home { background: #2a1840; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero { min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: flex-start; padding: clamp(30px, 8vh, 80px) 0 90px; }
.hero h1 { font-size: clamp(52px, 8.6vw, 112px); line-height: .95; letter-spacing: -.02em; font-weight: 400; max-width: 10.5em; text-shadow: 0 2px 40px rgba(26, 18, 32, .45); }
.hero h1 em { color: var(--ember); }
.hero .hand { margin: 18px 0 0; max-width: 20em; font-size: 33px; color: #ffd9b8; text-shadow: 0 1px 12px rgba(26, 18, 32, .6); }
.cue { position: absolute; bottom: 26px; left: clamp(16px, 4vw, 48px); font-family: var(--hand); font-size: 26px; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }
.stop { min-height: 118vh; display: flex; align-items: center; padding: 0; }
.stop:nth-child(even) { justify-content: flex-end; }
.card { max-width: 30em; padding: clamp(20px, 3vw, 32px); border-radius: 18px; background: rgba(26, 18, 32, .62); backdrop-filter: blur(8px); }
.card h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1.03; font-weight: 400; margin-bottom: 8px; }
.card .alt { font-family: var(--hand); font-size: 28px; color: var(--ember); margin: 0; }
.card p:last-child { margin-bottom: 0; }
.card a { white-space: nowrap; }
.lead { font-size: 21px; line-height: 1.5; }
.meter { position: fixed; z-index: 10; right: clamp(14px, 3vw, 34px); bottom: 22px; text-align: right; pointer-events: none; transition: opacity .4s; }
.meter b { display: block; font-family: var(--head); font-size: clamp(32px, 4.4vw, 54px); line-height: 1; font-weight: 400; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.meter span { font-family: var(--hand); font-size: 23px; color: var(--ember); }
.released { position: fixed; z-index: 10; left: clamp(14px, 3vw, 34px); bottom: 24px; font-family: var(--hand); font-size: 24px; color: var(--ember); pointer-events: none; opacity: 0; transition: opacity .5s; }
.released.on { opacity: 1; }
.index { list-style: none; margin: 0; padding: 0; }
.index a { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 2px 8px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); color: var(--cream); text-decoration: none; transition: padding .4s var(--ease), color .3s; }
.index li:last-child a { border-bottom: 1px solid var(--line); }
.index a:hover { padding-left: 16px; color: var(--ember); }
.index .no { font-family: var(--hand); font-size: 26px; color: var(--ember); }
.index h3 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; font-weight: 400; }
.index p { grid-column: 2; margin: 0; font-size: 16px; color: var(--dim); }
.index .arrow { grid-row: 1; grid-column: 3; font-size: 26px; transition: transform .4s var(--ease); }
.index a:hover .arrow { transform: translateX(8px); }
.state { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.state b { display: block; font-family: var(--hand); font-size: 26px; font-weight: 400; color: var(--ember); }
.state span { font-size: 16px; color: var(--dim); }

/* Guide */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.col { position: relative; background: var(--plum); border-radius: 16px; padding: 20px; overflow: hidden; animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.col svg { display: block; width: 100%; height: 118px; margin-bottom: 10px; }
.col svg .arc { fill: none; stroke: var(--ember); stroke-width: 2; stroke-linecap: round; stroke-dasharray: var(--l); stroke-dashoffset: var(--l); animation: draw 1.5s .15s var(--ease) forwards; }
.col svg .limb { fill: none; stroke: var(--dim); stroke-width: 1.2; }
.col svg .line100 { stroke: var(--line); stroke-dasharray: 3 5; }
.col svg text { font-size: 11px; fill: var(--dim); font-family: var(--body); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.col .who { font-family: var(--hand); font-size: 23px; color: var(--ember); margin: 0; }
.col h3 { font-size: 32px; line-height: 1.05; margin-bottom: 6px; }
.col .price { font-family: var(--head); font-size: 40px; line-height: 1.1; font-variant-numeric: lining-nums; margin: 8px 0 0; }
.col .sgd { font-size: 14px; color: var(--dim); margin: 0 0 12px; }
.col dl { margin: 0; font-size: 15.5px; line-height: 1.42; }
.col dt { color: var(--dim); font-size: 13.5px; margin-top: 9px; }
.col dd { margin: 0; }
.estimator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px 56px; align-items: start; }
.tot { position: sticky; top: 86px; background: var(--plum); border-radius: 18px; padding: 24px; }
.tot .big { font-family: var(--head); font-size: clamp(50px, 6vw, 68px); line-height: 1; font-variant-numeric: lining-nums tabular-nums; margin: 2px 0 14px; }
.stack { display: flex; height: 12px; border-radius: 12px; overflow: hidden; background: var(--plum-2); margin-bottom: 12px; }
.stack i { display: block; width: 0; transition: width .6s var(--ease); }
.stack i:nth-child(1) { background: var(--ember); }
.stack i:nth-child(2) { background: var(--rose); }
.stack i:nth-child(3) { background: var(--dim); }
.key { list-style: none; margin: 0 0 10px; padding: 0; font-size: 15px; }
.key li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.svc-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fx { font-size: 15px; color: var(--dim); }
.fx summary { cursor: pointer; }
.fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.fx-grid label { font-size: 14px; }

.walk { list-style: none; margin: 18px 0 0; padding: 0 0 0 32px; position: relative; }
.walk::before, .walk-fill { content: ''; position: absolute; left: 7px; top: 8px; width: 2px; background: var(--line); bottom: 18px; }
.walk-fill { background: var(--ember); bottom: auto; height: var(--h, 0); box-shadow: 0 0 12px var(--ember); transition: height .8s var(--ease); }
.walk li { position: relative; padding: 0 0 22px; opacity: .38; transition: opacity .5s; cursor: pointer; }
.walk li.done, .walk li.now { opacity: 1; }
.walk li::before { content: ''; position: absolute; left: -31px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--night); border: 2px solid var(--dim); transition: background .4s, border-color .4s, box-shadow .4s; }
.walk li.done::before, .walk li.now::before { background: var(--ember); border-color: var(--ember); }
.walk li.now::before { box-shadow: 0 0 0 7px rgba(255, 178, 122, .2); }
.walk h3 { font-size: 29px; line-height: 1.15; }
.walk p { margin: 2px 0 0; font-size: 16.5px; color: var(--dim); max-width: 34em; }
.walk .btns { display: none; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.walk li.now .btns { display: flex; }

.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; padding: 15px 0; font-family: var(--head); font-size: clamp(25px, 3vw, 31px); line-height: 1.15; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; color: var(--ember); transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--ember); }
.qa > div { padding-bottom: 14px; max-width: 40em; color: var(--dim); animation: rise .5s var(--ease); }

/* Tracker */
.deck { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; }
.globe-wrap { position: relative; aspect-ratio: 1; margin: 0 auto; width: min(100%, max(260px, calc(100vh - 340px))); cursor: grab; touch-action: pan-y; }
.globe-wrap:active { cursor: grabbing; }
#globe { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe-tip { position: absolute; left: 0; top: 0; font-family: var(--hand); font-size: 24px; transform: rotate(-3deg); }
.mission { min-height: 300px; }
.mission .st { font-family: var(--hand); font-size: 27px; color: var(--ember); margin: 0; }
.mission .st.bad { color: var(--rose); }
.mission h2 { font-size: clamp(38px, 5vw, 54px); line-height: 1.03; font-weight: 400; margin-bottom: 10px; }
.mission dl { margin: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 7px 14px; font-size: 16px; line-height: 1.42; }
.mission dt { color: var(--dim); }
.mission dd { margin: 0; }
.swap { animation: rise .55s var(--ease); }
.title.tight { padding: 18px 0 12px; }
.title.tight h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05; }
.title.tight .sub { margin-top: 4px; max-width: none; font-size: 15.5px; }
.tl-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-top: 6px; }
.tl-bar h2 { font-size: 26px; line-height: 1.1; font-weight: 400; }
.tl-bar .chips { margin: 0; }
.tl-bar .chip { padding: 4px 13px; font-size: 14px; }
.line { position: relative; height: 80px; margin: 4px 0 8px; }
.line::before { content: ''; position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: var(--line); }
.tick { position: absolute; top: 56px; font-size: 13px; color: var(--dim); transform: translateX(-50%); }
.tick::before { content: ''; position: absolute; left: 50%; top: -20px; width: 1px; height: 12px; background: var(--line); }
.dot { position: absolute; top: 30px; width: 21px; height: 21px; padding: 0; margin-left: -10px; border-radius: 50%; border: 2px solid var(--ember); background: var(--night); cursor: pointer; transition: transform .3s var(--ease), background .3s, opacity .3s; }
.dot:nth-of-type(even) { top: 6px; }
.dot.up { border-style: dashed; }
.dot.bad { border-color: var(--rose); }
.dot:hover { transform: scale(1.3); }
.dot.on { background: var(--ember); transform: scale(1.3); box-shadow: 0 0 18px var(--ember); }
.dot.bad.on { background: var(--rose); box-shadow: 0 0 18px var(--rose); }
.dot.off { opacity: .15; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.log time { font-family: var(--hand); font-size: 23px; color: var(--ember); line-height: 1.2; }

/* Archive */
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--plum); border-radius: 99px; padding: 4px; margin: 18px 0; max-width: 560px; }
.seg i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 99px; background: var(--ember); transition: transform .45s var(--ease); }
.seg button { position: relative; background: none; border: 0; padding: 8px 6px; cursor: pointer; font-size: 15.5px; transition: color .3s; }
.seg button[aria-checked=true] { color: var(--night); font-weight: 600; }
.memorial { position: relative; background: var(--cream); color: #2c2026; border-radius: 6px; padding: clamp(24px, 5vw, 56px); transform: rotate(-.5deg); transition: filter .7s, transform .7s var(--ease); box-shadow: 0 30px 70px -30px #000; }
.memorial:hover { transform: rotate(0deg); }
.memorial.veil .vb { filter: blur(9px); opacity: .45; user-select: none; }
.memorial .vb { transition: filter .7s, opacity .7s; }
.memorial.closed .vb { filter: blur(16px); opacity: .1; }
.stamp { position: absolute; top: 18px; right: 18px; font-family: var(--hand); font-size: 28px; color: #b6341f; border: 2px solid #b6341f; border-radius: 6px; padding: 0 10px; transform: rotate(8deg); }
.memorial h3.nm { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; padding-right: 110px; }
.memorial .yrs { color: #6e5a60; margin: 0 0 18px; }
.memorial .story { font-family: var(--hand); font-size: 30px; line-height: 1.1; color: #2c2026; }
.memorial h4 { font-family: var(--body); font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6e5a60; margin: 18px 0 6px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tl > li > b { display: block; font-family: var(--head); font-size: 21px; }
.tl > li > span { font-size: 15px; line-height: 1.35; display: block; }
.veil-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-family: var(--hand); font-size: 32px; line-height: 1.1; color: #2c2026; opacity: 0; pointer-events: none; transition: opacity .6s; }
.memorial.veil .veil-msg, .memorial.closed .veil-msg { opacity: 1; }
.ch { display: inline-block; transition: transform 1.8s var(--ease), opacity 1.8s, filter 1.8s; transition-delay: var(--d); }
.memorial.gone .ch { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; filter: blur(2px); }
.memorial.gone { background: transparent; box-shadow: inset 0 0 0 1px var(--line); transition: background 1.4s 1.2s, box-shadow 1.4s 1.2s; }
.memorial.gone .stamp { opacity: 0; transition: opacity .6s; }
.del { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 50px; align-items: start; }
.tasks { list-style: none; margin: 0; padding: 0; }
.tasks li { position: relative; padding: 0 0 12px 30px; color: var(--dim); transition: color .4s; }
.tasks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line); transition: background .4s, border-color .4s; }
.tasks li.ok { color: var(--cream); }
.tasks li.ok::before { background: var(--ember); border-color: var(--ember); }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { padding: 9px 0; border-top: 1px solid var(--line); }

/* Lab */
.field-of { width: 100%; display: block; }
.big-fig { font-family: var(--head); font-size: clamp(64px, 11vw, 130px); line-height: 1; font-variant-numeric: lining-nums; color: var(--ember); margin: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 30px 50px; align-items: center; }
.bars { margin-top: 12px; }
.bar { padding: 8px 0; cursor: default; }
.bar p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 16px; }
.bar p b { font-weight: 400; color: var(--ember); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar > span { display: block; height: 10px; border-radius: 10px; background: var(--ember); width: 0; transition: width 1.5s var(--ease); }
.bar.alt > span { background: var(--rose); min-width: 3px; }
.bars.in .bar > span { width: var(--w); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.42; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 400; font-size: 13.5px; color: var(--dim); }
tbody th { font-weight: 500; }
td.num { white-space: nowrap; color: var(--ember); }
.reports { padding-left: 20px; margin: 0; }

@media (max-width: 880px) {
  .estimator, .deck, .del, .two { grid-template-columns: minmax(0, 1fr); }
  .tot { position: static; }
  .state { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .globe-wrap { width: min(100%, 40vh); }
  /* On phones the timeline sits straight under the globe, with details below it. */
  #map { display: flex; flex-direction: column; gap: 8px; }
  .deck { display: contents; }
  .globe-wrap { order: 1; }
  .tl-bar { order: 2; }
  .line { order: 3; }
  .mission { order: 4; min-height: 0; }
  #map > .note { order: 5; }
  .tl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .stop:nth-child(even) { justify-content: flex-start; }
  .memorial h3.nm { padding-right: 0; padding-top: 34px; }
  .log li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .index a { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .card { background: rgba(26, 18, 32, .72); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .rv { opacity: 1; transform: none; }
}
