/* The dark views: the weave (timeline), the land (map) and the journey. Tokens from style.css. */

/* ---------- the land: the map engine (site/map.js), at night ---------- */
.land { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--night); }
.land-map { position: absolute; inset: 0; }
.fmap { position: absolute; inset: 0; overflow: hidden; isolation: isolate; background: #15110d; cursor: grab; touch-action: none; outline: none; }
.fmap.drag { cursor: grabbing; }
.fmap-markers { position: absolute; inset: 0; }
.land-cv { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 1; }
.fmap-markers { pointer-events: none; z-index: 2; }
.fmap-m { position: absolute; left: 0; top: 0; margin: 0; padding: 0; pointer-events: auto; cursor: pointer; border-radius: 50%; border: 0; display: grid; place-items: center; color: var(--night); background: radial-gradient(circle, var(--glow) 0 45%, rgba(255, 241, 214, .35) 46%, rgba(255, 241, 214, 0) 70%); transition: width .5s, height .5s, transform .05s linear; }
.fmap-m::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.fmap-m.none { background: none; border: 1.5px solid rgba(255, 241, 214, .45); }
.fmap-m.sel { background: radial-gradient(circle, var(--amber-l) 0 45%, rgba(240, 184, 96, .4) 46%, rgba(240, 184, 96, 0) 72%); }
.fmap-n { font: 600 .72rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.fmap-lab { position: absolute; white-space: nowrap; pointer-events: none; font: italic 500 1rem/1.1 var(--display); color: var(--on-night); text-shadow: 0 1px 8px #000, 0 0 2px #000; }
.fmap-lab.pt { left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); }
.fmap-lab.pb { left: 50%; top: calc(100% + 3px); transform: translateX(-50%); }
.fmap-lab.pr { left: calc(100% + 5px); top: 50%; transform: translateY(-50%); }
.fmap-lab.pl { right: calc(100% + 5px); top: 50%; transform: translateY(-50%); }
.fmap-lab.off { visibility: hidden; }
.fmap-m.none .fmap-lab { color: var(--on-night-2); font-size: .88rem; }
.fmap-m.sel .fmap-lab { color: var(--amber-l); font-size: 1.15rem; }
.fmap-ctrl { position: absolute; right: 16px; bottom: 44px; z-index: 30; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: rgba(24, 19, 15, .85); border: 1px solid rgba(255, 241, 214, .14); }
.fmap-ctrl button { width: 44px; height: 44px; border: 0; border-bottom: 1px solid rgba(255, 241, 214, .1); background: none; cursor: pointer; font: 1.3rem/1 var(--sans); color: var(--on-night); }
.fmap-ctrl button:last-child { border-bottom: 0; }
.fmap-ctrl button:disabled { opacity: .3; cursor: default; }
.fmap-scale, .fmap-attr { position: absolute; z-index: 30; font: .72rem/1.3 var(--sans); color: var(--on-night-2); }
.fmap-scale { right: 70px; bottom: 16px; padding: 0 .3rem .1rem; border: 1px solid var(--on-night-2); border-top: 0; text-align: center; white-space: nowrap; }
.fmap-attr { right: 16px; bottom: 0; padding: .2rem 0; }
.fmap-attr a { color: inherit; }
.fmap-attr[hidden] { display: none; }

.land-panel { position: absolute; z-index: 20; left: clamp(12px, 3vw, 40px); top: clamp(80px, 11vh, 110px); bottom: 24px; width: min(390px, calc(100% - 24px)); overflow: auto; padding: 1.6rem 1.5rem; border-radius: 18px; background: rgba(17, 13, 10, .82); border: 1px solid rgba(255, 241, 214, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--on-night); scrollbar-width: thin; }
.land-panel .kicker { color: var(--amber-l); }
.land-panel h1 { font: 340 2.6rem/1 var(--display); letter-spacing: -.03em; color: var(--glow); font-variation-settings: "SOFT" 100; margin-bottom: .8rem; }
.land-lede { font: 400 .92rem/1.5 var(--sans); color: var(--on-night-2); }
.land-time { display: flex; align-items: baseline; gap: .8rem; margin: 1.2rem 0 .2rem; }
.land-y { font: 250 3.4rem/1 var(--display); color: var(--glow); margin: 0; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.03em; }
.land-w { font: 400 .82rem/1.3 var(--sans); color: var(--on-night-2); margin: 0; }
.land-ctrl { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.land .pill.ghost { color: var(--on-night); border-color: rgba(255, 241, 214, .3); padding: .5em .9em; font-size: .8rem; flex: none; }
.land-key { display: flex; align-items: center; gap: .4rem .5rem; flex-wrap: wrap; font: 400 .8rem/1.3 var(--sans); color: var(--on-night-2); margin-bottom: 1.2rem; }
.land-key i { display: inline-block; width: 20px; border-top: 2px solid var(--amber-l); margin-left: .4rem; }
.land-key i.k-mat { border-top-color: var(--heather-l); }
.land-key i:first-child { margin-left: 0; }
.land-h { font: 400 1.8rem/1.1 var(--display); color: var(--glow); margin: .4rem 0 .3rem; }
.land-h3 { font: 600 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); margin: 1.2rem 0 .6rem; }
.land-sub { font: 400 .86rem/1.45 var(--sans); color: var(--on-night-2); }
.land-ev { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .55rem; font: 400 .9rem/1.4 var(--sans); }
.land-ev li { display: grid; grid-template-columns: 3rem 1fr; gap: .6rem; }
.le-y { font: 400 1rem/1.35 var(--display); color: var(--on-night-2); font-variant-numeric: lining-nums; }
.le-t { font-style: italic; color: var(--on-night-2); }
.land-ev a, .land-list a { color: var(--on-night); text-decoration-color: rgba(255, 241, 214, .3); }
.small-pill { margin-top: .4rem; }
@media (max-width: 760px) {
  .land { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .land-map { position: relative; height: 62vh; height: 62svh; order: 2; }
  .land-panel { position: relative; inset: auto; width: auto; order: 1; border-radius: 0; border: 0; padding: 88px 18px 14px; background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; overflow: visible; }
  .land-list { order: 3; }
}

/* ---------- the weave ---------- */
.wv-page { background: var(--night); color: var(--on-night); padding-top: clamp(92px, 12vh, 130px); }
.wv-head { width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto 1.6rem; }
.wv-head h1 { font: 340 clamp(2.6rem, 5.5vw, 4.8rem)/1 var(--display); letter-spacing: -.035em; color: var(--glow); font-variation-settings: "SOFT" 100; margin-bottom: 1rem; }
.wv-head .kicker { color: var(--amber-l); }
.wv-head .lede { color: var(--on-night-2); max-width: 44rem; font-size: 1.05rem; }
.wv-leg { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; font: 400 .82rem/1.3 var(--sans); color: var(--on-night-2); }
.wv-leg li { display: flex; align-items: center; gap: .45rem; }
.wv-leg i { display: inline-block; width: 22px; height: 10px; position: relative; }
.lg-l::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid var(--amber-l); }
.lg-b::before { content: ""; position: absolute; left: 7px; top: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber-l); }
.lg-k::before { content: ""; position: absolute; left: 10px; top: 0; height: 10px; border-left: 1.5px solid var(--glow); }
.lg-m::before { content: ""; position: absolute; left: 6px; top: 0; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--glow); }
.lg-f::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; background: linear-gradient(90deg, var(--amber-l), transparent); }
.lg-c::before { content: ""; position: absolute; left: 6px; top: -2px; width: 8px; height: 14px; background: rgba(255, 241, 214, .14); }

.wv-stage { position: relative; }
.wv-scroll { height: calc(100vh - 64px); height: calc(100svh - 64px); overflow: auto; overscroll-behavior: contain; scrollbar-color: rgba(255, 241, 214, .25) transparent; border-top: 1px solid rgba(255, 241, 214, .08); }   /* floor-ok: overscroll-behavior is progressive (Safari 16): without it a scroll at the end passes on to the page */
.wv-axis-wrap { position: sticky; top: 0; z-index: 2; background: linear-gradient(var(--night) 70%, rgba(17, 13, 10, 0)); width: max-content; }
.wv-axis { display: block; }
.wv-axis text { font: 600 11px var(--sans); fill: var(--on-night-2); }
.wv-axis .ax10 { font-weight: 400; fill: rgba(185, 171, 152, .55); font-size: 10px; }
.wv { display: block; }
.wv-grid line { stroke: rgba(255, 241, 214, .045); }
.wv-grid .g50 { stroke: rgba(255, 241, 214, .1); }
.wv-ctx { opacity: .07; transition: opacity .3s; }
.wv-ctx .band { fill: #fff1d6; cursor: pointer; outline: none; }
.wv-ctx .band.nat { fill: #ffd9b0; }
.wv-ctx:hover { opacity: .1; }
.wv-strands .st { fill: none; stroke-width: 1; opacity: .38; transition: opacity .25s; }
.wv-strands .st.pat { stroke: var(--amber-l); }
.wv-strands .st.mat { stroke: var(--heather-l); }
.wv-strands .st.inferred { stroke-dasharray: 4 3; }
.wv-strands .st.lead { stroke-dasharray: 1 3; }
.th { cursor: pointer; outline: none; animation: thIn 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes thIn { from { opacity: 0; transform: translateX(-14px); } }
@media (prefers-reduced-motion: reduce) { .th { animation: none; } }
.th .hit { fill: transparent; }
.th .fd { transition: opacity .2s; }
.th .ln { stroke-width: 2; stroke-linecap: round; transition: stroke-width .2s, opacity .2s; }
.th.pat .ln:not(.fade) { stroke: var(--amber-l); }
.th.mat .ln:not(.fade) { stroke: var(--heather-l); }
.th.story .ln:not(.fade) { stroke-width: 3; }
.th.inferred .ln:not(.fade) { stroke-dasharray: 5 3; }
.th.lead .ln:not(.fade) { stroke-dasharray: 1.5 3; }
.th .b { fill: var(--glow); }
.th .d { stroke: var(--glow); stroke-width: 1.5; }
.th .k { stroke: var(--glow); stroke-width: 1.2; opacity: .75; }
.th .k.y { opacity: .35; }
.th .m { fill: none; stroke: var(--glow); stroke-width: 1.3; }
.th .nm { font: 400 10.5px var(--sans); fill: var(--on-night-2); transition: fill .2s; }
.th.story .nm { fill: var(--on-night); font-weight: 600; }
.th:hover .nm, .th:focus .nm { fill: var(--glow); }
.wv.dim .th:not(.on) { opacity: .16; }
.wv.dim .st:not(.on) { opacity: .06; }
.wv.dim .st.on { opacity: .95; stroke-width: 1.6; }
.th.on .nm { fill: var(--glow); }
.th.self .ln { stroke-width: 4; }
.wv-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; padding: .7rem .9rem; border-radius: 12px; background: rgba(24, 19, 15, .9); border: 1px solid rgba(255, 241, 214, .14); font: 400 .85rem/1.4 var(--sans); max-width: 240px; }
.wv-tip p { margin: 0; }
.wv-tip .rt-v, .wv-tip .rt-m { color: var(--on-night-2); }
.wv-ctxbox { position: absolute; left: 0; top: 0; z-index: 6; width: min(320px, calc(100vw - 24px)); padding: 1rem 1.1rem; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 50px -20px #000; font: 400 .9rem/1.5 var(--sans); }
.wv-ctxbox .tag { background: var(--paper-3); }
.cb-k { color: var(--ink-3); margin-bottom: .3rem; }
.cb-t { font: 500 1.2rem/1.2 var(--display); margin-bottom: .5rem; }

/* ---------- the journey ---------- */
.jr-index { background: var(--night); color: var(--on-night); min-height: 100vh; padding: clamp(110px, 14vh, 160px) 0 100px; }
.jr-ih { width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto 3rem; }
.jr-ih h1 { font: 340 clamp(2.8rem, 6vw, 5.2rem)/1 var(--display); letter-spacing: -.035em; color: var(--glow); font-variation-settings: "SOFT" 100; margin-bottom: 1rem; }
.jr-ih .kicker { color: var(--amber-l); }
.jr-ih .lede { color: var(--on-night-2); }
.jr-lines { width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.jr-card { position: relative; isolation: isolate; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--night-3); }
.jr-card-img { position: absolute; inset: 0; z-index: -1; }
.jr-card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.35) brightness(.5); transition: transform 2s cubic-bezier(.2, .7, .2, 1); }
.jr-card:hover .jr-card-img img { transform: scale(1.06); }
.jr-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 20%, rgba(17, 13, 10, .92)); }
.jr-card-b { display: grid; gap: .6rem; padding: 1.6rem; }
.jr-card-k { font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); display: flex; align-items: center; }
.jr-card-t { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--display); letter-spacing: -.015em; color: var(--glow); }
.jr-card-t i { font-style: normal; color: var(--amber-l); margin: 0 .35em; }
.mat .jr-card-t i { color: var(--heather-l); }
.jr-card-m { font: 400 .9rem/1.3 var(--sans); color: var(--on-night-2); }
.jr-dots { display: flex; gap: 6px; }
.jr-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-l); opacity: .8; }
.mat .jr-dots i { background: var(--heather-l); transform: rotate(45deg) scale(.85); border-radius: 1px; }
@media (max-width: 760px) { .jr-lines { grid-template-columns: 1fr; } .jr-card { min-height: 260px; } }

.jr { position: relative; background: var(--night); color: var(--on-night); }
.jr-sticky { position: sticky; z-index: 3; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; overflow: hidden; }
.jr-year { position: absolute; right: -2vw; bottom: -6vh; margin: 0; font: 200 clamp(10rem, 34vw, 30rem)/.8 var(--display); letter-spacing: -.06em; color: rgba(255, 241, 214, .07); font-variant-numeric: lining-nums tabular-nums; mix-blend-mode: screen; font-variation-settings: "SOFT" 100; }
.jr-mapbox { position: absolute; right: clamp(16px, 4vw, 56px); top: clamp(90px, 13vh, 130px); width: clamp(170px, 18vw, 250px); padding: 10px; border-radius: 16px; background: rgba(17, 13, 10, .6); border: 1px solid rgba(255, 241, 214, .08); }
.jr-map { display: block; width: 100%; height: auto; }
.jm-pl { fill: rgba(255, 241, 214, .25); }
.jm-route { fill: none; stroke: rgba(255, 241, 214, .14); stroke-width: 1.2; stroke-dasharray: 2 3; }
.jm-done { fill: none; stroke: var(--amber-l); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mat .jm-done { stroke: var(--heather-l); }
.jm-stop { fill: var(--night); stroke: var(--on-night-2); stroke-width: 1.2; }
.jm-t { font: 500 9px var(--sans); fill: var(--on-night-2); }
.jm-here { fill: var(--glow); filter: drop-shadow(0 0 6px var(--amber-l)); transition: cx .6s, cy .6s; }
.jr-rail { position: fixed; z-index: 10; left: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jr-rail a { display: flex; align-items: center; gap: .5rem; text-decoration: none; font: 500 .7rem/1 var(--sans); color: transparent; padding: 3px 0; }
.jr-rail a::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(255, 241, 214, .35); flex: none; transition: background .3s, transform .3s; }
.jr-rail .past a::before { background: rgba(255, 241, 214, .35); }
.jr-rail .on a::before { background: var(--glow); border-color: var(--glow); transform: scale(1.3); }
.jr-rail .on a, .jr-rail a:hover { color: var(--on-night-2); }
.jr-ch { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; isolation: isolate; }
.jr-img { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.2s; }
.jr-ch.on .jr-img { opacity: 1; }
.jr-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.35) brightness(.38); transform: scale(1.06); transition: transform 8s ease-out; }
.jr-ch.on .jr-img img { transform: scale(1); }
.jr-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 13, 10, .92) 0%, rgba(17, 13, 10, .55) 55%, rgba(17, 13, 10, .2) 100%); }
.jr-in { width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto; padding-left: clamp(24px, 6vw, 90px); }
.jr-in > * { max-width: 40rem; }
.jr-ch .jr-in > * { opacity: .25; transform: translateY(14px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1); }
.jr-ch.on .jr-in > *, .jr-open .jr-in > *, .jr-end .jr-in > * { opacity: 1; transform: none; }
.jr-ch.on .jr-in > :nth-child(2) { transition-delay: .08s; }
.jr-ch.on .jr-in > :nth-child(3) { transition-delay: .16s; }
.jr-ch.on .jr-in > :nth-child(4) { transition-delay: .24s; }
.jr-ch.on .jr-in > :nth-child(5) { transition-delay: .32s; }
.jr-rel { font: 600 .74rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-l); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mat .jr-rel { color: var(--heather-l); }
.jr-n { color: var(--on-night-2); }
.jr-name { font: 340 clamp(2.6rem, 6.4vw, 5.6rem)/.95 var(--display); letter-spacing: -.035em; color: var(--glow); font-variation-settings: "SOFT" 100; margin-bottom: .9rem; }
.jr-years { font: 300 clamp(1.2rem, 2vw, 1.6rem)/1.2 var(--display); color: var(--on-night); margin-bottom: 1.4rem; }
.jr-years span { color: var(--on-night-2); }
.jr-lede { font: 400 clamp(1.08rem, 1.5vw, 1.25rem)/1.6 var(--serif); color: var(--on-night); }
.jr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem 2rem; margin: 1.6rem 0; padding-top: 1.2rem; border-top: 1px solid rgba(255, 241, 214, .12); }
.jf p { margin: 0; font: 400 .95rem/1.45 var(--sans); }
.jf a { color: var(--on-night); }
.jf .jf-k { font: 600 .66rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); margin-bottom: .35rem; }
.jf-s { display: block; color: var(--on-night-2); font-size: .85rem; }
.jr-go { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.6rem; }
.jr .pill { background: var(--glow); color: var(--night); }
.jr .pill.ghost { background: none; color: var(--on-night); border-color: rgba(255, 241, 214, .3); }
.jr-next { font: 600 .85rem/1 var(--sans); color: var(--on-night-2); text-decoration: none; }
.jr-next:hover { color: var(--glow); }
.jr-cap { position: absolute; right: clamp(16px, 3vw, 36px); bottom: 20px; max-width: 24rem; text-align: right; margin: 0; font: 400 .74rem/1.4 var(--sans); color: rgba(239, 230, 214, .5); }
.jr-title { font: 340 clamp(2.4rem, 6vw, 5rem)/1.02 var(--display); letter-spacing: -.035em; color: var(--on-night-2); font-variation-settings: "SOFT" 100; margin-bottom: 1.4rem; }
.jr-title em { font-style: normal; color: var(--glow); }
.jr-open .kicker a { color: var(--amber-l); }
.jr-end .jf-k { font: 600 .66rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.jr-others { display: flex; flex-wrap: wrap; gap: .6rem; }
.jr-end { min-height: 70vh; }
@media (max-width: 760px) {
  .jr-mapbox { width: 120px; top: 74px; right: 10px; padding: 6px; }
  .jm-t { display: none; }
  .jr-rail { display: none; }
  .jr-in { padding-left: 0; }
  .jr-cap { display: none; }
  .jr-ch { padding-top: 200px; }
}
