/* =========================================================
   Dronosaur — Roadmap: "The Road We Travelled"
   Fixed stage (canvas road + DOM installations) behind semantic checkpoint
   sections. js/roadmap/* drives the camera; this file styles everything else.
   ========================================================= */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page-roadmap { background: #0B0C0E; color: var(--warm); }
[data-tone="light"] .page-roadmap { background: #E8E4DC; }

/* Header tone follows the zone (body.on-dark toggled by js) */
.page-roadmap .site-header { transition: background-color 0.4s ease, border-color 0.4s ease; }
.page-roadmap.on-dark .site-header { background: linear-gradient(180deg, rgba(11, 12, 14, 0.78), rgba(11, 12, 14, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-roadmap.on-dark .brand-word { color: var(--warm); }
.page-roadmap.on-dark .site-nav a { color: rgba(242, 240, 235, 0.62); }
.page-roadmap.on-dark .site-nav a:hover, .page-roadmap.on-dark .site-nav a.is-active { color: var(--warm); }
.page-roadmap.on-dark .header-cta { background: var(--warm); color: var(--aero); }
.page-roadmap.on-dark .menu-btn { border-color: rgba(242, 240, 235, 0.3); }
.page-roadmap.on-dark .menu-btn span { background: var(--warm); }
.page-roadmap:not(.on-dark) .site-header { color: var(--ink); background: rgba(242, 240, 235, 0.94); backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-roadmap .mobile-menu { background: var(--aero); }
.page-roadmap .mobile-menu a { color: var(--warm); border-color: rgba(242, 240, 235, 0.12); }
.page-roadmap.menu-open .site-header { background: var(--aero); }
.page-roadmap.menu-open .brand-word { color: var(--warm); }
.page-roadmap.menu-open .menu-btn span { background: var(--warm); }

.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: var(--signal); border-color: var(--signal); color: #fff; transform: translateY(-2px); }

/* =========================================================
   Stage
   ========================================================= */
.jr-stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #0B0C0E; pointer-events: none; contain: strict; }
.jr-canvas { position: absolute; inset: 0; display: block; }
.jr-world { position: absolute; inset: 0; will-change: transform; }
/* the vignette is painted inside the canvas (one layer less to composite on integrated GPUs) */
.jr-vignette { display: none; }

/* Billboards */
.bb { position: absolute; left: 0; top: 0; transform-origin: 50% 100%; will-change: transform, opacity; color: var(--warm); --a: 0; }
.bb[hidden] { display: none; }
.bb.is-clickable { pointer-events: auto; cursor: pointer; }
.bb svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bb .mono, .bb text { font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; }
.bb[data-status="planned"] { color: #14161A; }
.bb.is-focus { outline: 2px solid rgba(255, 79, 26, 0.7); outline-offset: 6px; }

/* origin sketch */
.bb-origin .o-frame { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--a)); }
.bb-origin .o-cone, .bb-origin text { opacity: clamp(0, calc((var(--a) - 0.55) * 3), 1); }

/* blueprint: parts assemble as the visitor approaches */
.bp-panel { width: 100%; height: 100%; background: rgba(20, 23, 27, 0.92); border: 1px solid rgba(139, 146, 154, 0.35); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45); padding: 10px; }
.bb-blueprint .part { transform: translate(calc(var(--dx) * (1 - var(--a))), calc(var(--dy) * (1 - var(--a)))); }

/* institutional plaque hanging under the gateway lintel */
.pl { width: 100%; height: 100%; display: flex; align-items: center; gap: 22px; padding: 16px 26px; background: #F2F0EB; color: #14161A; border-top: 4px solid var(--signal); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); transform: translateY(calc((1 - var(--a)) * -6px)); }
.pl-logo { flex: none; width: 120px; height: 96px; display: grid; place-items: center; }
.pl-logo img { width: 100%; height: 100%; object-fit: contain; }
.pl-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pl-txt b { font-family: var(--f-display); font-size: 32px; font-weight: 640; letter-spacing: -0.02em; line-height: 1; }
.pl-txt i, .pl-txt em { font-style: normal; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #5D6168; }
.pl-txt em { color: #C93A0B; }

/* monolith face (engraved) */
.mo { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 22px 20px; background: linear-gradient(170deg, #2B2E33 0%, #1C1E22 60%, #151619 100%); border: 1px solid rgba(242, 240, 235, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.mo-top { height: 70px; display: flex; align-items: center; }
.mo-logo { background: #F2F0EB; padding: 8px 12px; height: 58px; display: grid; place-items: center; max-width: 100%; }
.mo-logo img { width: 150px; height: 42px; object-fit: contain; }
.mo-mark { font-family: var(--f-display); font-weight: 700; font-size: 40px; color: #F2F0EB; border: 2px solid rgba(242, 240, 235, 0.5); padding: 2px 12px; }
.mo-val { margin-top: auto; font-family: var(--f-display); font-size: 64px; font-weight: 680; font-stretch: 88%; line-height: 0.92; letter-spacing: -0.03em; color: #EDE9E1; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08); }
.mo-lbl { margin-top: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #FF8A5C; }
.mo-name { margin-top: 26px; font-family: var(--f-display); font-size: 20px; font-weight: 600; color: #C9CED4; line-height: 1.1; }
.mo-date { margin-top: 10px; font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.16em; color: #8B929A; border-top: 1px solid rgba(242, 240, 235, 0.15); padding-top: 10px; }

/* programme pavilion */
.pv { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 14px; background: rgba(27, 31, 36, 0.88); border: 1px solid rgba(139, 146, 154, 0.3); }
.pv-panel { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #F2F0EB; color: #14161A; transform: translateY(calc((1 - var(--a)) * 30px)); opacity: clamp(0, calc(var(--a) * 1.6), 1); }
.pv-panel:nth-child(2) { transition-delay: 0s; transform: translateY(calc((1 - var(--a)) * 50px)); }
.pv-panel:nth-child(3) { transform: translateY(calc((1 - var(--a)) * 70px)); }
.pv-logo { height: 120px; display: grid; place-items: center; }
.pv-logo img { width: 80%; height: 90px; object-fit: contain; }
.pv-panel b { font-family: var(--f-display); font-size: 22px; font-weight: 620; line-height: 1.1; margin-top: auto; }
.pv-panel i { font-style: normal; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #C93A0B; }

/* first flight */
.bb-flight .fl-drone { transform: translateY(calc(var(--lift, 0) * -110px)); }
.bb-flight .fl-shadow { transform-box: fill-box; transform-origin: center; transform: scaleX(calc(1 - var(--lift, 0) * 0.35)); opacity: calc(0.5 - var(--lift, 0) * 0.3); }
.bb-flight .fl-callouts { opacity: clamp(0, calc((var(--a) - 0.6) * 3), 1); }
.bb-flight .fl-props ellipse { animation: rotor 0.12s linear infinite alternate; transform-box: fill-box; transform-origin: center; }
.bb-flight .note { font-size: 12px; }
@keyframes rotor { from { transform: scaleX(1); } to { transform: scaleX(0.82); } }

/* perception screen: overlays switch on in sequence */
.pc-screen { width: 100%; height: 100%; background: rgba(15, 19, 24, 0.82); border: 1px solid rgba(201, 206, 212, 0.35); padding: 8px; }
.bb-perception .L { opacity: 0; }
.bb-perception .L0 { opacity: clamp(0, calc((var(--a) - 0.1) * 5), 1); }
.bb-perception .L1 { opacity: clamp(0, calc((var(--a) - 0.3) * 5), 1); }
.bb-perception .L2 { opacity: clamp(0, calc((var(--a) - 0.5) * 5), 1); }
.bb-perception .L3 { opacity: clamp(0, calc((var(--a) - 0.7) * 5), 1); }
.bb-perception .L4 { opacity: clamp(0, calc((var(--a) - 0.85) * 6), 1); }

/* today: TRL plaque + converging system layers */
.trl { width: 100%; height: 100%; display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: 1fr auto; align-items: center; gap: 4px 18px; padding: 14px 24px; background: #F2F0EB; color: #14161A; border-bottom: 4px solid var(--signal); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.trl-k { font-family: var(--f-mono); font-size: 18px; letter-spacing: 0.2em; }
.trl b { font-family: var(--f-display); font-size: 92px; font-weight: 700; line-height: 0.85; }
.trl-scale { display: flex; gap: 6px; align-self: center; }
.trl-scale i { flex: 1; height: 26px; border: 1.5px solid #14161A; }
.trl-scale i.on { background: #14161A; }
.trl-scale i:nth-child(5) { background: var(--signal); border-color: var(--signal); }
.trl-cap { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #5D6168; }
.st { position: relative; width: 100%; height: 100%; }
.st-slab { position: absolute; left: 50%; width: 300px; height: 64px; margin-left: -150px; bottom: calc(26px + var(--i) * (28px + (1 - var(--a)) * 30px)); transform: skewX(-30deg); background: linear-gradient(90deg, #2A2E34, #3A3F46); border: 1px solid rgba(242, 240, 235, 0.28); display: flex; align-items: center; justify-content: center; }
.st-slab:nth-child(3) { border-color: var(--signal); }
.st-slab span { transform: skewX(30deg); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #E8E4DC; }
.st-note { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #8B929A; }

/* future: unfinished line drawings */
.fu-glyph { color: #14161A; stroke: #14161A; stroke-opacity: 0.8; stroke-dasharray: 14 9; }
.fu-glyph text { fill: #6B6F76; stroke: none; font-size: 26px; }

/* date signpost */
.sg { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; }
.sg-plate { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; background: #1B1F24; border: 1px solid rgba(242, 240, 235, 0.22); border-left: 4px solid var(--signal); font-family: var(--f-mono); color: var(--warm); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.sg-n { font-size: 13px; letter-spacing: 0.18em; color: #FF8A5C; }
.sg-main { font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.15; }
.sg-st { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #8B929A; }
.sg-post { flex: 1; width: 6px; background: linear-gradient(90deg, #3A3F46, #20242A); }
.bb-sign[data-status="planned"] .sg-plate { background: #F2F0EB; color: #14161A; border-color: rgba(20, 22, 26, 0.25); border-left-style: dashed; }
.bb-sign[data-status="planned"] .sg-post { background: #B9BCC0; }

.bb-sketch { color: rgba(242, 240, 235, 0.55); }

/* photo exhibits: revealed by a clip mask on arrival */
.ph { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; }
.ph-frame { flex: 1; background: #1B1F24; border: 6px solid #F2F0EB; overflow: hidden; clip-path: inset(calc((1 - var(--a)) * 100%) 0 0 0); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.ph-frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s ease; }
.is-loaded .ph-frame img { opacity: 1; }
.ph-cap { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--warm); }

/* the aerial traveller */
.tv { width: 100%; height: 100%; animation: hover 3.2s ease-in-out infinite; }
.tv-rotor { animation: rotor 0.1s linear infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.jr-paused .tv, .jr-modal-open .tv, .jr-paused .tv-rotor, .jr-modal-open .tv-rotor, .jr-modal-open .fl-props ellipse { animation-play-state: paused; }

/* =========================================================
   Content layer
   ========================================================= */
.journey { position: relative; z-index: 1; pointer-events: none; }
.journey a, .journey button, .jh-copy, .cp-copy, .jc-copy { pointer-events: auto; }

/* Hero */
.jh { min-height: 112vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: calc(var(--header-h) + 13vh) var(--gutter) 0; text-align: center; position: relative; }
.jh-copy { max-width: 980px; will-change: transform, opacity; }
.jh-eyebrow { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #FF8A5C; margin-bottom: 1.4rem; }
.jh-title { font-family: var(--f-display); font-weight: 640; font-stretch: 90%; font-size: clamp(2.8rem, 7.4vw, 6.6rem); line-height: 0.95; letter-spacing: -0.035em; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5); }
.jh-lede { margin: 1.6rem auto 0; max-width: 40ch; font-size: clamp(1rem, 1.35vw, 1.2rem); color: rgba(242, 240, 235, 0.78); text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.jh-actions { margin-top: 2.2rem; display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.page-roadmap .jh-begin { background: var(--warm); color: var(--aero); }
.page-roadmap .jh-begin:hover { background: var(--signal); color: #fff; }
.jh-explore, .cp-more, .cp-media { font: 600 0.9rem var(--f-body); color: inherit; background: none; border: 0; padding: 0.6rem 0; border-bottom: 1px solid currentColor; cursor: pointer; }
.jh-explore:hover, .cp-more:hover, .cp-media:hover { color: #FF8A5C; }
.jh-scroll { position: absolute; bottom: 14vh; left: 50%; transform: translateX(-50%); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242, 240, 235, 0.55); }

/* Checkpoint sections */
.cp { position: relative; min-height: calc(var(--len) * 1vh); display: flex; padding: 0 var(--gutter); }
.cp[data-copy="right"] { justify-content: flex-end; }
.cp-copy { position: sticky; top: calc(var(--header-h) + 7vh); align-self: flex-start; width: min(440px, 34vw); margin-top: 14vh; padding: 1.6rem 1.7rem 1.5rem; color: var(--warm); background: linear-gradient(160deg, rgba(16, 18, 21, 0.92), rgba(16, 18, 21, 0.8)); border: 1px solid rgba(242, 240, 235, 0.09); }
.cp-chapter { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--titanium); margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(242, 240, 235, 0.12); }
.cp-chapter span { color: #FF8A5C; margin-right: 0.6em; }
.cp-meta { display: flex; gap: 0.9rem; align-items: baseline; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(242, 240, 235, 0.7); }
.cp-n { color: #FF8A5C; }
.cp-title { margin-top: 0.7rem; font-family: var(--f-display); font-weight: 640; font-stretch: 92%; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.cp-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.cp-title .w > span { display: inline-block; }
.cp-when { margin-top: 0.9rem; display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 240, 235, 0.72); }
.cp-when time { color: var(--warm); font-size: 0.9rem; }
.cp-summary { margin-top: 1rem; font-size: 1rem; line-height: 1.6; color: rgba(242, 240, 235, 0.92); }
.cp-context { margin-top: 0.7rem; font-size: 0.92rem; line-height: 1.55; color: rgba(242, 240, 235, 0.66); }
.cp-quote { margin-top: 1rem; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; font-stretch: 94%; color: var(--warm); border-left: 3px solid var(--signal); padding-left: 0.9rem; }
.cp-figure { margin-top: 1rem; display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.cp-figure b { font-family: var(--f-display); font-size: clamp(2.2rem, 3.4vw, 3.2rem); font-weight: 680; font-stretch: 88%; line-height: 1; letter-spacing: -0.03em; }
.cp-figure span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #FF8A5C; }
.cp-logo { display: inline-grid; place-items: center; background: #F2F0EB; padding: 6px 10px; height: 52px; min-width: 52px; }
.cp-logo img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.cp-logo img[src$=".svg"] { width: 110px; }
.cp-logo-sm { height: 40px; margin-left: auto; }
.cp-logo-sm img { max-height: 28px; }
.cp-org { margin-top: 1rem; display: flex; align-items: center; gap: 0.9rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 240, 235, 0.75); }
.cp-orgs { list-style: none; margin-top: 1rem; display: grid; gap: 0.7rem; }
.cp-orgs li { display: flex; gap: 0.9rem; align-items: center; }
.cp-orgs li > span:last-child { display: flex; flex-direction: column; font-size: 0.86rem; line-height: 1.35; color: rgba(242, 240, 235, 0.7); }
.cp-orgs b { color: var(--warm); font-weight: 650; }
.cp-orgs a:hover { color: #FF8A5C; }
.cp-facts { list-style: none; margin-top: 1rem; display: grid; gap: 0.55rem; font-size: 0.9rem; }
.cp-facts li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.cp-note { margin-top: 0.9rem; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.6; color: rgba(242, 240, 235, 0.5); }
.cp-actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; }
.cp-link { font-size: 0.88rem; font-weight: 600; color: rgba(242, 240, 235, 0.8); }
.cp-link:hover { color: #FF8A5C; }
.journey h2[tabindex="-1"]:focus { outline: none; }
.cp.is-active .cp-copy { border-color: rgba(255, 79, 26, 0.35); }

/* status badges (historical / current / planned) */
.badge { display: inline-flex; align-items: center; gap: 0.45em; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3em 0.6em; border: 1px solid currentColor; line-height: 1.2; }
.badge::before { content: ""; width: 6px; height: 6px; background: currentColor; }
.badge-historical { color: #C9CED4; }
.badge-current { color: #FF8A5C; }
.badge-planned { color: #8B929A; border-style: dashed; }
.badge-planned::before { background: none; border: 1px dashed currentColor; border-radius: 50%; }
.page-roadmap .journey .status-dev { color: #FF8A5C; }
.page-roadmap .journey .status-done { color: #6FCF97; }
.page-roadmap .journey .status-planned, .page-roadmap .journey .status-upcoming, .page-roadmap .journey .status-target { color: var(--titanium); }

/* Planned checkpoints sit on the light, unfinished road */
.cp[data-status="planned"] .cp-copy { color: var(--ink); background: linear-gradient(160deg, rgba(251, 250, 247, 0.95), rgba(242, 240, 235, 0.86)); border: 1px dashed rgba(20, 22, 26, 0.25); }
.cp[data-status="planned"] .cp-meta, .cp[data-status="planned"] .cp-when { color: var(--muted); }
.cp[data-status="planned"] .cp-n, .cp[data-status="planned"] .cp-chapter span { color: var(--signal-ink); }
.cp[data-status="planned"] .cp-chapter { color: var(--muted); border-color: var(--line); }
.cp[data-status="planned"] .cp-summary { color: var(--ink); }
.cp[data-status="planned"] .cp-note { color: var(--muted); }
.cp[data-status="planned"] .badge-planned { color: var(--muted); }
.page-roadmap .journey .cp[data-status="planned"] .status-planned { color: var(--muted); }
.cp[data-status="planned"] .cp-more:hover { color: var(--signal-ink); }
.cp[data-status="current"] .cp-copy { border-color: rgba(255, 79, 26, 0.45); }

/* Closing */
.jc { min-height: 110vh; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); text-align: center; }
.jc-copy { max-width: 760px; color: var(--ink); }
.jc .jh-eyebrow { color: var(--signal-ink); }
.jc-title { font-family: var(--f-display); font-weight: 640; font-stretch: 90%; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 0.96; letter-spacing: -0.035em; }
.jc-lede { margin: 1.4rem auto 0; max-width: 42ch; color: var(--ink-2); font-size: 1.1rem; }
.jc-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: center; }
.jc-link { font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.jc-link:hover { color: var(--signal-ink); }

.site-footer { position: relative; z-index: 2; }
.jr-noscript { position: relative; z-index: 2; padding: 2rem var(--gutter); max-width: 900px; margin: 0 auto; }

/* =========================================================
   Journey explorer
   ========================================================= */
.je-trigger { position: fixed; left: var(--gutter); bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1rem 0.7rem 0.8rem; font: 600 0.85rem var(--f-body); color: var(--warm); background: rgba(16, 18, 21, 0.92); border: 1px solid rgba(242, 240, 235, 0.18); cursor: pointer; transition: background 0.3s ease, color 0.3s ease; }
.je-trigger:hover { background: var(--signal); border-color: var(--signal); }
.je-cur { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: #FF8A5C; padding-right: 0.8rem; border-right: 1px solid rgba(242, 240, 235, 0.2); }
.je-trigger:hover .je-cur { color: #fff; }
[data-tone="light"] .je-trigger { color: var(--ink); background: rgba(251, 250, 247, 0.88); border-color: var(--line-strong); }
[data-tone="light"] .je-cur { color: var(--signal-ink); border-color: var(--line); }

.je, .md, .eg { position: fixed; inset: 0; z-index: 90; }
.je[hidden], .md[hidden], .eg[hidden] { display: none; }
.je-backdrop, .md-backdrop, .eg-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 11, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.je-panel { position: absolute; inset: 4vh max(var(--gutter), calc((100vw - 1200px) / 2)); display: flex; flex-direction: column; background: #101215; color: var(--warm); border: 1px solid rgba(242, 240, 235, 0.12); }
.je-head, .eg-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.5rem; border-bottom: 1px solid rgba(242, 240, 235, 0.1); }
.je-head h2 { font-size: 1.3rem; }
.je-close, .md-close, .eg-close { font: 600 0.85rem var(--f-body); color: inherit; background: none; border: 1px solid rgba(242, 240, 235, 0.25); padding: 0.5rem 0.9rem; cursor: pointer; }
.je-close:hover, .md-close:hover, .eg-close:hover { background: var(--warm); color: var(--aero); }
.je-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.4fr; }
.je-map { padding: 1.5rem; border-right: 1px solid rgba(242, 240, 235, 0.08); min-height: 0; display: flex; justify-content: center; background: radial-gradient(80% 60% at 50% 40%, #171A1F, #101215); }
.je-side { overflow-y: auto; overscroll-behavior: contain; padding: 0.5rem 1.5rem 1.5rem; }
.je-list { list-style: none; }
.je-ch h3 { margin: 1.2rem 0 0.4rem; font-size: 0.95rem; display: flex; flex-direction: column; }
.je-ch h3 span { font: 400 0.66rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--titanium); }
.je-ch ol { list-style: none; }
.je-ch a { display: grid; grid-template-columns: 2.4rem 1fr auto auto; grid-template-areas: "n t d b" ". h h h"; gap: 0.1rem 0.9rem; align-items: center; padding: 0.6rem 0.6rem; border-bottom: 1px solid rgba(242, 240, 235, 0.07); }
.je-ch a:hover, .je-ch a:focus-visible { background: rgba(242, 240, 235, 0.06); }
.je-ch a[aria-current="true"] { background: rgba(255, 79, 26, 0.1); }
.je-n { grid-area: n; font-family: var(--f-mono); font-size: 0.75rem; color: #FF8A5C; }
.je-t { grid-area: t; font-weight: 600; font-size: 0.95rem; }
.je-d { grid-area: d; font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--titanium); text-transform: uppercase; }
.je-ch .badge { grid-area: b; }
.je-here { grid-area: h; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: #FF8A5C; }
.je-here:empty { display: none; }
.je-gfx { margin-top: 1.6rem; border: 1px solid rgba(242, 240, 235, 0.12); padding: 0.8rem 1rem 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; font-size: 0.88rem; }
.je-gfx legend { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--titanium); padding: 0 0.4rem; }
.je-gfx label { display: inline-flex; gap: 0.4rem; align-items: center; cursor: pointer; }
.je-gfx input { accent-color: var(--signal); }
.je-gfx-now { flex-basis: 100%; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--titanium); text-transform: uppercase; }

/* minimap (also the static road in reduced motion) */
.mm { width: 100%; height: 100%; max-height: 100%; overflow: visible; }
.mm-road-bed { fill: none; stroke: #2A2E34; stroke-width: 26; stroke-linecap: round; stroke-linejoin: round; }
.mm-road { fill: none; stroke: #3A3F46; stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.mm-road-future { fill: none; stroke: #8B929A; stroke-width: 18; stroke-opacity: 0.35; stroke-dasharray: 10 12; stroke-linecap: round; }
.mm-centre { fill: none; stroke: #C9CED4; stroke-width: 1.5; stroke-dasharray: 8 12; stroke-opacity: 0.6; }
.mm-path { fill: none; stroke: none; }
.mm-cp line { stroke: #8B929A; stroke-width: 1.5; }
.mm-cp circle { fill: #101215; stroke: #FF4F1A; stroke-width: 3; }
.mm-cp[data-status="planned"] circle { stroke-dasharray: 4 3; stroke: #8B929A; }
.mm-cp text { font: 500 20px var(--f-mono); fill: #C9CED4; }
.mm-cp .mm-lbl { font: 500 15px var(--f-body); fill: #8B929A; }
.mm-cp.is-active circle { fill: #FF4F1A; }
.mm-cp.is-active text { fill: #FF8A5C; }
.mm-traveller circle { fill: rgba(255, 79, 26, 0.2); stroke: #FF4F1A; stroke-width: 2; }
.mm-traveller path { fill: #F2F0EB; }

/* =========================================================
   Milestone details panel
   ========================================================= */
.md-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #101215; color: var(--warm); border-left: 1px solid rgba(242, 240, 235, 0.12); display: flex; }
.md-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.4rem 1.8rem 3rem; }
.md-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.md-kicker { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 240, 235, 0.7); display: flex; gap: 0.8rem; }
.md-n { color: #FF8A5C; }
.md-title { margin-top: 1.4rem; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.02em; }
.md-meta { margin-top: 0.9rem; display: flex; gap: 0.8rem; align-items: center; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.md-figure { margin-top: 1.2rem; display: flex; gap: 0.8rem; align-items: baseline; }
.md-figure b { font-family: var(--f-display); font-size: 2.8rem; line-height: 1; }
.md-figure span { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #FF8A5C; }
.md-quote { margin-top: 1rem; font-family: var(--f-display); font-size: 1.3rem; border-left: 3px solid var(--signal); padding-left: 0.9rem; }
.md-summary { margin-top: 1rem; font-size: 1.02rem; }
.md-context, .md-intro { margin-top: 0.7rem; color: rgba(242, 240, 235, 0.68); }
.md-h { margin-top: 1.8rem; font: 500 0.72rem var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--titanium); padding-bottom: 0.5rem; border-bottom: 1px solid rgba(242, 240, 235, 0.1); }
.md-orgs { list-style: none; margin-top: 0.8rem; display: grid; gap: 0.8rem; }
.md-orgs li { display: flex; gap: 0.9rem; align-items: center; }
.md-orgs li > span:last-child { display: flex; flex-direction: column; font-size: 0.9rem; color: rgba(242, 240, 235, 0.7); }
.md-orgs b { color: var(--warm); }
.md-logo { display: grid; place-items: center; width: 92px; height: 56px; background: #F2F0EB; padding: 6px; flex: none; }
.md-logo img { width: 100%; height: 100%; object-fit: contain; }
.md-logo-text { font: 700 1.3rem var(--f-display); color: var(--ink); }
.md-dl { margin-top: 0.6rem; display: grid; }
.md-dl > div { padding: 0.7rem 0; border-bottom: 1px solid rgba(242, 240, 235, 0.07); }
.md-dl dt { font-weight: 650; }
.md-dl dd { margin-top: 0.2rem; color: rgba(242, 240, 235, 0.72); font-size: 0.93rem; }
.md-dl .status { margin-left: 0.4rem; }
.md .status-dev { color: #FF8A5C; } .md .status-done { color: #6FCF97; } .md .status-planned, .md .status-upcoming, .md .status-target { color: var(--titanium); }
.md-facts { list-style: none; margin-top: 1rem; display: grid; gap: 0.5rem; }
.md-note { margin-top: 1.4rem; font: 400 0.7rem var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(242, 240, 235, 0.5); line-height: 1.6; }
.md-gallery { margin-top: 1.4rem; color: var(--warm); }
.md-links { list-style: none; margin-top: 0.6rem; }
.md-links a { font-weight: 600; border-bottom: 1px solid currentColor; }
.md-links a:hover { color: #FF8A5C; }

/* =========================================================
   Event gallery
   ========================================================= */
.eg-backdrop { background: rgba(6, 7, 8, 0.94); }
.eg-panel { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--warm); }
.eg-head { border-bottom: 0; }
.eg-meta { font: 400 0.72rem var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--titanium); }
.eg-title { font-size: 1.3rem; }
.eg-figure { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 var(--gutter); gap: 0.8rem; }
.eg-media { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.eg-media img, .eg-media video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #000; }
.eg-media picture { display: contents; }
.eg-cap { font-size: 0.92rem; color: rgba(242, 240, 235, 0.75); text-align: center; max-width: 70ch; }
.eg-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem var(--gutter) 1.4rem; }
.eg-desc { max-width: 60ch; font-size: 0.9rem; color: rgba(242, 240, 235, 0.7); }
.eg-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.eg-nav button { width: 48px; height: 48px; font-size: 1.1rem; color: inherit; background: none; border: 1px solid rgba(242, 240, 235, 0.3); cursor: pointer; }
.eg-nav button:hover:not(:disabled) { background: var(--warm); color: var(--aero); }
.eg-nav button:disabled { opacity: 0.3; cursor: default; }
.eg-count { font: 400 0.8rem var(--f-mono); letter-spacing: 0.1em; }

/* =========================================================
   Mobile journey
   ========================================================= */
@media (max-width: 860px) {
    .jh { padding-top: calc(var(--header-h) + 8vh); min-height: 104vh; }
    .jh-scroll { bottom: 8vh; }
    .cp { min-height: calc(var(--len) * 0.82vh); flex-direction: column; justify-content: flex-end; padding: 0 16px; }
    .cp[data-copy="right"] { justify-content: flex-end; }
    .cp-copy { position: relative; top: auto; width: 100%; margin: 0 0 16px; padding: 1.1rem 1.15rem 1.1rem; align-self: stretch; }
    .cp-title { font-size: clamp(1.5rem, 6.4vw, 2rem); }
    .cp-summary { font-size: 0.95rem; }
    .cp-context { font-size: 0.88rem; }
    .cp-orgs li > span:last-child { font-size: 0.8rem; }
    .je-trigger { left: 50%; transform: translateX(-50%); bottom: auto; top: calc(var(--header-h) + 8px); padding: 0.45rem 0.75rem; font-size: 0.78rem; white-space: nowrap; gap: 0.6rem; }
    .je-cur { padding-right: 0.6rem; }
    .jh { padding-top: calc(var(--header-h) + 64px); }
    .je-panel { inset: 0; }
    .je-body { grid-template-columns: 1fr; grid-template-rows: 30vh 1fr; }
    .je-map { border-right: 0; border-bottom: 1px solid rgba(242, 240, 235, 0.08); padding: 0.8rem; }
    .je-ch a { grid-template-columns: 2rem 1fr auto; grid-template-areas: "n t b" ". d d" ". h h"; }
    .md-panel { top: auto; left: 0; width: 100%; max-height: 86vh; border-left: 0; border-top: 1px solid rgba(242, 240, 235, 0.14); }
    .eg-foot { flex-direction: column; align-items: stretch; }
}

/* =========================================================
   Static journey (prefers-reduced-motion / no canvas)
   A static winding-road map beside readable checkpoints; nothing moves.
   ========================================================= */
.jr-static .jr-stage { display: none; }
.jr-static .page-roadmap, .jr-static body { background: #101215; }
.jr-static #journey { display: grid; grid-template-columns: minmax(260px, 30vw) 1fr; column-gap: 3vw; padding: 0 var(--gutter); }
.jr-static .jr-static-map { grid-column: 1; grid-row: 1 / span 200; position: sticky; top: calc(var(--header-h) + 3vh); height: calc(100vh - var(--header-h) - 6vh); align-self: start; padding: 1rem; border: 1px solid rgba(242, 240, 235, 0.08); background: radial-gradient(80% 60% at 50% 40%, #171A1F, #101215); margin-top: calc(var(--header-h) + 3vh); }
.jr-static .jh, .jr-static .cp, .jr-static .jc { grid-column: 2; }
.jr-static .jh { min-height: auto; padding: calc(var(--header-h) + 8vh) 0 4rem; text-align: left; align-items: flex-start; }
.jr-static .jh-lede { margin-left: 0; }
.jr-static .jh-scroll { display: none; }
.jr-static .cp { min-height: 0; padding: 1.2rem 0; justify-content: flex-start; }
.jr-static .cp-copy { position: static; width: 100%; max-width: 640px; margin: 0; max-height: none; }
.jr-static .jc { min-height: 0; padding: 5rem 0 6rem; text-align: left; justify-content: flex-start; }
.jr-static .jc-copy { color: var(--warm); }
.jr-static .jc .jh-eyebrow { color: #FF8A5C; }
.jr-static .jc-lede { color: rgba(242, 240, 235, 0.75); margin-left: 0; }
.jr-static .jc-ctas { justify-content: flex-start; }
.jr-static .journey { pointer-events: auto; }
.jr-static .page-roadmap .site-header, .jr-static .page-roadmap.on-dark .site-header { background: #101215; border-bottom: 1px solid rgba(242, 240, 235, 0.08); }
@media (max-width: 860px) {
    .jr-static #journey { grid-template-columns: 1fr; }
    .jr-static .jr-static-map { display: none; }
    .jr-static .jh, .jr-static .cp, .jr-static .jc { grid-column: 1; }
    .jr-static .je-trigger { top: auto; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .tv, .tv-rotor, .bb-flight .fl-props ellipse { animation: none; }
}
