/* Orbit · guided tour (assets/js/tour.js). Look and feel from mockups/tour/kit.css and the Film comps.
   Uses orbit.css tokens only; every class is prefixed t- so nothing here touches the rest of the site. */
:root {
  --c-documented: #3ccb8a;
  --c-probable: #7fb8ff;
  --c-lead: #f0b429;
  --c-conflict: #f06a6a;
  --hl-fill: rgba(255, 210, 122, .14);
  --hl-glow: 0 0 12px rgba(255, 210, 122, .55);
  --t-strong: rgba(12, 17, 31, 0.86);
}

/* ---------- icons (mask icons, colour = currentColor) ---------- */
.t-ico { display: inline-block; flex: none; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -3px; }
.i-play   { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 4.8v14.4a.8.8 0 0 0 1.2.7l11.3-7.2a.8.8 0 0 0 0-1.4L8.2 4.1A.8.8 0 0 0 7 4.8Z'/></svg>"); }
.i-pause  { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='6' y='4.5' width='4' height='15' rx='1.2'/><rect x='14' y='4.5' width='4' height='15' rx='1.2'/></svg>"); }
.i-replay { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12a7 7 0 1 0 2.2-5.1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/><path d='M4 4.5v4.8h4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.i-x      { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='2' stroke-linecap='round'/></svg>"); }
.i-sound  { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/><path d='M15.5 9a4.2 4.2 0 0 1 0 6M18 6.5a7.8 7.8 0 0 1 0 11' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/></svg>"); }
.i-mute   { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 9.5h3.5L12 5.5v13l-4.5-4H4z'/><path d='M16 9.5l5 5M21 9.5l-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/></svg>"); }
.i-music  { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 17.5V6.2l10-2v11.3' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/><circle cx='6.6' cy='17.6' r='2.6'/><circle cx='16.6' cy='15.6' r='2.6'/></svg>"); }
.i-back   { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 6l-6 6 6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.i-next   { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 6l6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.i-doc    { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6.5 3h7.5l4.5 4.5V20a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z' fill='none' stroke='black' stroke-width='1.7'/><path d='M9 12h6M9 15.5h6M9 8.5h3' stroke='black' stroke-width='1.7' stroke-linecap='round'/></svg>"); }
.i-expand { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M14 4h6v6M10 20H4v-6M20 4l-7 7M4 20l7-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.i-text   { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 6h14M5 10h14M5 14h10M5 18h7' stroke='black' stroke-width='1.8' stroke-linecap='round'/></svg>"); }
.i-film   { --i: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='2.6'/><circle cx='12' cy='12' r='6.2' fill='none' stroke='black' stroke-width='1.5' opacity='.7'/><circle cx='12' cy='12' r='9.8' fill='none' stroke='black' stroke-width='1.5' opacity='.45'/><circle cx='18.2' cy='12' r='1.6'/></svg>"); }

.t-glass { background: var(--t-strong); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 50px rgba(0, 0, 0, .45); }
.t-kicker { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.t-kicker b { color: var(--gold); font-weight: 500; }
.t-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- buttons ---------- */
.t-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; background: #fff; color: #0a0f1e; transition: background .2s, border-color .2s; }
.t-btn .t-ico { width: 15px; height: 15px; }
.t-btn.ghost { background: transparent; color: var(--text); font-weight: 500; border: 1px solid var(--edge-strong); }
.t-btn.ghost:hover { border-color: rgba(255, 255, 255, .32); }
.t-btn.quiet { background: rgba(255, 255, 255, .08); color: var(--text); font-weight: 500; }
.t-btn.quiet:hover { background: rgba(255, 255, 255, .14); }
.t-btn.sm { height: 32px; padding: 0 13px; font-size: 12.5px; }
.t-btn .sub { font: 500 11.5px var(--mono); opacity: .6; }
.t-ghost { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); flex: none; transition: background .2s, color .2s; }
.t-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.t-ghost .t-ico { width: 18px; height: 18px; }
.t-ghost.txt { font: 600 11.5px var(--mono); letter-spacing: -.01em; }
.t-ghost.cc { font: 700 10.5px var(--sans); letter-spacing: .04em; }
.t-ghost.cc span { border: 1.5px solid currentColor; border-radius: 4px; padding: 1px 3px 0; line-height: 1.2; }
.t-ghost[aria-pressed="true"] { color: var(--text); background: rgba(255, 255, 255, .1); }
.t-ghost.off { color: var(--faint); }
.t-round { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--text); flex: none; transition: background .2s, transform .2s; }
.t-round:hover { background: rgba(255, 255, 255, .18); }
.t-round:active { transform: scale(.96); }
.t-round .t-ico { width: 18px; height: 18px; }
.t-round.ready { background: #fff; color: #0a0f1e; box-shadow: 0 0 0 5px rgba(255, 255, 255, .1); }
kbd.t-kbd { font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--edge-strong); border-radius: 7px; padding: 2px 6px; }

/* ---------- ▶ Take the tour chip (beside ✦ crossed paths) ---------- */
.t-tour-chip { color: var(--text); padding: 0 14px 0 6px; gap: 8px; }
.t-tour-chip .tc-play { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #0a0f1e; display: grid; place-items: center; }
.t-tour-chip .tc-play .t-ico { width: 11px; height: 11px; }
.t-tour-chip .tc-play .i-play { margin-left: 1px; }
.t-tour-chip .short { display: none; }
.t-tour-chip.is-on { background: #fff; color: #0a0f1e; border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12), 0 18px 50px rgba(0, 0, 0, .4); }
.t-tour-chip.is-on .tc-play { background: #0a0f1e; color: #fff; }
.t-tour-chip.is-live { border-color: rgba(255, 210, 122, .35); }
.t-tour-chip.is-live .tc-play { background: var(--gold); color: #1a1204; }

/* ---------- claim badges: icon + word, never colour alone ---------- */
.t-badge { --c: var(--muted); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: color-mix(in srgb, var(--c) 72%, #fff); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 42%, transparent); }
.t-badge > i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--c) 70%, transparent); font-style: normal; }
.t-badge.documented { --c: var(--c-documented); }
.t-badge.probable { --c: var(--c-probable); }
.t-badge.conflict { --c: var(--c-conflict); }
.t-badge.lead { --c: var(--c-lead); }
.t-badge.lead > i { border-radius: 1.5px; transform: rotate(45deg); }
.t-badge.context { --c: #fff; color: #c9cfdc; background: transparent; border-color: rgba(255, 255, 255, .22); }
.t-badge.context > i { background: transparent; border: 1.5px solid rgba(255, 255, 255, .5); box-shadow: none; width: 8px; height: 8px; }
.t-badge.coincidence { --c: var(--gold); color: var(--gold); background: transparent; border-color: rgba(255, 210, 122, .6); }
.t-badge.coincidence > i, .t-badge.not-ours > i { width: auto; height: auto; background: none; box-shadow: none; border-radius: 0; font-size: 12px; line-height: 1; letter-spacing: 0; }
.t-badge.coincidence > i::before { content: "✦"; color: var(--gold); text-shadow: 0 0 8px rgba(255, 210, 122, .6); }
.t-badge.not-ours { --c: var(--faint); color: var(--muted); background: transparent; border: 1px dashed rgba(255, 255, 255, .22); }
.t-badge.not-ours > i::before { content: "⊘"; color: var(--faint); font-size: 13px; }
.t-badge.sm { height: 20px; font-size: 10px; padding: 0 8px 0 6px; }

/* ---------- scene dim behind the intro sheet (the top chrome stays bright and usable) ---------- */
#tourDim { position: absolute; inset: 0; z-index: 7; background: rgba(3, 5, 10, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
#tourDim.on { opacity: 1; pointer-events: auto; }
body.t-sheet .top { z-index: 8; }

/* ---------- intro sheet (one tour) ---------- */
.t-intro { position: absolute; z-index: 9; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 132px); width: min(900px, calc(100% - 32px)); max-height: calc(100% - env(safe-area-inset-top, 0px) - 148px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 26px 28px 20px; border-radius: 24px; transform: translate(-50%, 16px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.t-intro.on { transform: translate(-50%, 0); opacity: 1; }
.t-intro .t-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 7, 13, .6); border: 1px solid var(--edge); color: var(--text); }
.t-intro .t-x .t-ico { width: 15px; height: 15px; }
.t-intro h2 { margin: 6px 0 0; font-size: 28px; font-weight: 600; letter-spacing: -.025em; line-height: 1.12; }
.t-intro .lede { margin: 8px 0 0; max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.t-intro .notes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.t-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); white-space: nowrap; }
.t-pill .t-ico { width: 13px; height: 13px; }
.t-pill .cc { font: 700 9.5px var(--sans); letter-spacing: .04em; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 3px; }
.t-intro .grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-top: 20px; }
.t-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 210, 122, .32); background: rgba(255, 210, 122, .045); box-shadow: 0 0 0 4px rgba(255, 210, 122, .05); }
.t-cover { position: relative; height: 128px; overflow: hidden; border-bottom: 1px solid var(--edge); }
.t-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.t-cover .tag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #1a1204; background: var(--gold); }
.t-cover .tag .t-ico { width: 13px; height: 13px; }
.t-cover .len { position: absolute; right: 12px; bottom: 10px; font: 600 12px var(--mono); padding: 3px 8px; border-radius: 999px; background: rgba(5, 7, 13, .72); border: 1px solid var(--edge); }
.t-card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.t-card h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.t-card .meta { font: 12px var(--mono); color: var(--muted); }
.t-card .meta b { color: var(--text); font-weight: 500; }
.t-card p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: #c3cad9; }
.t-card .credits { font-size: 11.5px; color: var(--faint); line-height: 1.45; }
.t-card .act { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.t-card .act .t-btn { flex: 1; }
.t-chapters h4 { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.t-chapters h4 span { text-transform: none; letter-spacing: 0; font-family: var(--mono); }
.t-chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.t-chapters button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .05); transition: background .2s, border-color .2s; }
.t-chapters button:hover, .t-chapters button:focus-visible { background: rgba(255, 255, 255, .08); border-color: var(--edge-strong); }
.t-chapters button span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.t-chapters .n { font: 11px var(--mono); color: var(--faint); min-width: 18px; }
.t-chapters small { font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
.t-chapters .short-mark { color: var(--gold); font-size: 10px; margin-left: 4px; }
.t-intro .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--edge); }
.t-intro .fine { font-size: 12px; color: var(--faint); display: flex; gap: 14px; flex-wrap: wrap; }
.t-intro .fine kbd { margin-right: 4px; }
.t-link { color: var(--muted); font-size: 12.5px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; }
.t-link:hover { color: var(--text); }
.t-link .t-ico { width: 14px; height: 14px; }

/* ---------- tour bar: replaces the time bar in the same glass pill ---------- */
body.t-live #legend, body.t-live #hint, body.t-live .fab-row, body.t-live #timebar { display: none !important; }
.t-bar { position: absolute; z-index: 5; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); transform: translateX(-50%); width: min(760px, calc(100% - 32px)); height: 64px; border-radius: 20px; padding: 10px 12px 10px 10px; display: grid; grid-template-columns: auto minmax(0, 184px) 1fr auto; align-items: center; gap: 14px; }
.t-bar .read { min-width: 0; line-height: 1.2; }
.t-bar .read b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-bar .read span { display: block; margin-top: 2px; font: 11px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-bar .read em { font-style: normal; color: var(--faint); }
.t-bar .btns { display: flex; align-items: center; gap: 2px; }
.t-rail { position: relative; height: 44px; display: flex; align-items: center; gap: 4px; min-width: 0; }
.t-rail > button { position: relative; flex: var(--w, 1) 1 0; min-width: 6px; height: 44px; padding: 0; }
.t-rail > button::before { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); transition: height .15s, top .15s, background .15s; }
.t-rail > button:hover::before { top: 20px; height: 4px; background: rgba(255, 255, 255, .3); }
.t-rail > button.done::before { background: rgba(255, 255, 255, .5); }
.t-rail > button.cur::before { background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255, 255, 255, .3) var(--p, 0%)); box-shadow: 0 0 10px rgba(255, 255, 255, .35); }
.t-rail > button.cur::after { content: ""; position: absolute; left: var(--p, 0%); top: 17px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 12px rgba(255, 255, 255, .7); }
.t-rail > button.x > i { position: absolute; left: 50%; bottom: 29px; transform: translateX(-50%); font-size: 10px; line-height: 1; color: var(--gold); text-shadow: 0 0 8px rgba(255, 210, 122, .8); font-style: normal; pointer-events: none; }
.t-rail .tip { position: absolute; bottom: 44px; transform: translateX(-50%); padding: 5px 9px; border-radius: 9px; background: var(--t-strong); border: 1px solid var(--edge-strong); font-size: 11.5px; white-space: nowrap; color: var(--text); pointer-events: none; opacity: 0; transition: opacity .15s; }
.t-rail .tip small { color: var(--muted); font: 10.5px var(--mono); margin-left: 6px; }
.t-rail .tip.on { opacity: 1; }
/* the mono year chip floating above the playhead */
.t-year { position: absolute; left: var(--x, 50%); bottom: calc(100% + 12px); transform: translateX(-50%); display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 13px; border-radius: 999px; font: 600 16px var(--mono); letter-spacing: -.02em; white-space: nowrap; background: var(--t-strong); border: 1px solid var(--edge-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); pointer-events: none; transition: left .25s linear; }
.t-year small { font: 500 11px var(--sans); letter-spacing: 0; color: var(--muted); }
.t-year::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); }
.t-year.sweeping::before { content: "→"; font: 500 12px var(--sans); color: var(--gold); order: 2; }
.t-year:empty { display: none; }
.t-cap .t-year { display: none; }

/* ---------- caption card: the legend's slot (desktop) ---------- */
.t-cap { position: absolute; z-index: 5; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 104px); width: 420px; max-height: calc(100% - env(safe-area-inset-top, 0px) - 240px); overflow-y: auto; scrollbar-width: none; padding: 18px; border-radius: 20px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.t-cap .t-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.t-cap .t-kicker .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.t-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 10px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.t-who > span { display: inline-flex; align-items: center; gap: 7px; }
.t-who b { color: var(--text); font-weight: 600; }
.t-who i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.t-text { margin: 0; font-size: 16px; line-height: 1.55; letter-spacing: -.005em; text-wrap: pretty; }
.t-text .sp { color: #fff; }
.t-text .up { color: var(--muted); }
.t-text .cur { color: #fff; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.t-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; font-style: italic; color: var(--faint); }
.t-sub .lang { font: 600 9.5px var(--mono); font-style: normal; letter-spacing: .06em; color: var(--faint); border: 1px solid var(--edge-strong); border-radius: 4px; padding: 0 4px; margin-right: 6px; vertical-align: 1px; }
.t-sub .sp { color: #aeb6c8; } .t-sub .cur { color: #e6eaf3; text-decoration: underline; text-decoration-color: rgba(255, 210, 122, .7); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.t-cap.nocc .t-text, .t-cap.nocc .t-sub, .t-cap.nocc .t-window { display: none; }
.t-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--edge); }
.t-foot .spacer { flex: 1; }
.t-foot .count { font: 11px var(--mono); color: var(--faint); }
.t-why { --c: var(--muted); flex-basis: 100%; margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.t-why b { font-weight: 600; color: color-mix(in srgb, var(--c) 72%, #fff); }
.t-why.documented { --c: var(--c-documented); } .t-why.probable { --c: var(--c-probable); } .t-why.lead { --c: var(--c-lead); } .t-why.conflict { --c: var(--c-conflict); } .t-why.coincidence { --c: var(--gold); }
.t-ev-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--edge-strong); white-space: nowrap; transition: border-color .2s, background .2s; }
.t-ev-chip .t-ico { width: 14px; height: 14px; color: var(--muted); }
.t-ev-chip .arr { color: var(--muted); font-size: 11px; }
.t-ev-chip:hover { border-color: rgba(255, 255, 255, .32); }
.t-ev-chip.on { border-color: rgba(255, 210, 122, .55); background: rgba(255, 210, 122, .1); color: var(--gold); }
.t-ev-chip.on .t-ico, .t-ev-chip.on .arr { color: var(--gold); }
/* a long record title never runs past its card: the chip shrinks to the line and the title ends in an ellipsis (full title on hover) */
.t-ev-chip { max-width: 100%; min-width: 0; }
.t-ev-chip .cl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.t-ev-chip .t-ico, .t-ev-chip .arr { flex: none; }
.t-cap .grab { display: none; }
.t-cap .above { position: absolute; left: 0; bottom: calc(100% + 10px); display: flex; gap: 8px; align-items: center; }
.t-audio-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; border-radius: 999px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.t-audio-chip .lang { display: inline-grid; place-items: center; height: 22px; min-width: 28px; padding: 0 6px; border-radius: 999px; font: 600 10.5px var(--mono); letter-spacing: .04em; color: #0a0f1e; background: linear-gradient(90deg, #3ccb8a 0 33%, #edf0f7 33% 66%, #f06a6a 66%); }
.t-audio-chip b { color: var(--text); font-weight: 500; }

/* ---------- the band key (Time view): what the lit bands are and how sure we are ---------- */
.t-key { position: absolute; z-index: 4; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 128px); transform: translateX(-35%); display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; }
.t-key .row { display: grid; grid-template-columns: 14px auto auto 1fr; align-items: center; gap: 9px; font-size: 12px; white-space: nowrap; }
.t-key .sw { width: 12px; height: 12px; border-radius: 3px; border-left: 2px solid var(--gold); background: rgba(255, 210, 122, .22); }
.t-key .sw.documented { border-left-color: var(--c-documented); background: rgba(60, 203, 138, .24); }
.t-key b { font-weight: 600; color: var(--text); }
.t-key .mono { font-size: 11px; color: var(--muted); }
.t-key .t-badge { justify-self: start; height: 20px; font-size: 10px; padding: 0 8px 0 6px; }
.t-key .t-badge > i { width: 6px; height: 6px; }
/* the site's own era label, lit by the tour */
.lbl.era.lit { color: #fff; border-left-color: var(--gold); background: #0c1226; padding: 0 6px; line-height: 14px; text-shadow: 0 0 10px rgba(255, 210, 122, .45); }
.lbl.era.lit.documented { border-left-color: var(--c-documented); text-shadow: 0 0 10px rgba(60, 203, 138, .45); }

/* ---------- evidence card: the right panel's slot ---------- */
.t-ev { position: absolute; z-index: 5; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 76px); width: 392px; max-height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 172px); border-radius: var(--r-panel); overflow: hidden; display: flex; flex-direction: column; transform: translateX(calc(100% + 32px)); transition: transform .5s var(--ease); }
.t-ev.on { transform: none; }
#panel.open ~ .t-ev { visibility: hidden; }
.t-ev .scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; flex: 1; position: relative; }
.t-ev .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px 20px; }
.t-ev .head .t-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 7, 13, .5); border: 1px solid var(--edge); color: var(--text); }
.t-ev .head .t-x .t-ico { width: 15px; height: 15px; }
.t-ev .grab { display: none; }
.t-well { --well-h: 230px; position: relative; height: var(--well-h); margin: 0 14px; border-radius: 14px; background: #05070d; overflow: hidden; border: 1px solid var(--edge); }
.t-well .stage { position: absolute; inset: 0; }
.t-well .pic { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 1.2s var(--ease), opacity .5s var(--ease); }
.t-well .stage > .t-hl { transition: left 1.2s var(--ease), top 1.2s var(--ease), width 1.2s var(--ease), height 1.2s var(--ease), opacity .4s; }
.t-well.instant .pic, .t-well.instant .t-hl { transition: none !important; }
.t-well .pic img { display: block; width: 100%; height: 100%; filter: grayscale(.15) contrast(1.05) brightness(.92); user-select: none; -webkit-user-drag: none; }
.t-well .pic.gone, .t-well .fold.gone { opacity: 0; pointer-events: none; }
.t-hl { position: absolute; border: 2px solid var(--gold); background: var(--hl-fill); border-radius: 4px; box-shadow: 0 0 0 2000px rgba(5, 7, 13, .42), var(--hl-glow); pointer-events: none; }
.t-mask { position: absolute; background: #0a0d16; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }
.t-well .fold { position: absolute; left: 10px; right: 10px; top: 9px; display: grid; gap: 4px; transition: opacity .5s var(--ease); }
.t-well .fl { display: flex; justify-content: space-between; align-items: baseline; font: 500 9.5px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.t-well .fl em { font-style: normal; color: var(--muted); letter-spacing: .02em; text-transform: none; }
.t-well .band { position: relative; height: 52px; border-radius: 8px; overflow: hidden; background: #cfcfcf; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); margin-bottom: 6px; }
.t-well .band .pic { transition: none; }
.t-well .zoomtag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(5, 7, 13, .72); border: 1px solid var(--edge); font-size: 11px; z-index: 2; }
.t-well .zoomtag button { padding: 3px 9px; border-radius: 999px; color: var(--muted); }
.t-well .zoomtag button[aria-pressed="true"] { background: rgba(255, 255, 255, .14); color: var(--text); }
.t-well .open { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 7, 13, .72); border: 1px solid var(--edge); z-index: 2; color: var(--text); }
.t-well .open .t-ico { width: 14px; height: 14px; }
.t-stamp { --c: var(--c-documented); position: absolute; z-index: 3; right: 52px; bottom: 12px; transform: rotate(-6deg); padding: 5px 11px 4px; border: 2px solid var(--c); border-radius: 6px; font: 700 12px/1.1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 10%, rgba(5, 7, 13, .72)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent) inset; pointer-events: none; }
.t-stamp.probable { --c: var(--c-probable); } .t-stamp.lead { --c: var(--c-lead); } .t-stamp.conflict { --c: var(--c-conflict); } .t-stamp.context { --c: rgba(255, 255, 255, .6); } .t-stamp.coincidence { --c: var(--gold); } .t-stamp.not-ours { --c: var(--faint); border-style: dashed; }
.t-ev .body { padding: 16px 20px 20px; display: grid; gap: 14px; }
.t-ev h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
.t-ev h3 small { display: block; margin-top: 4px; font: 400 12px var(--mono); letter-spacing: 0; color: var(--muted); }
.t-quote { margin: 0; padding: 10px 12px; border-left: 2px solid var(--gold); background: rgba(255, 210, 122, .06); border-radius: 0 10px 10px 0; font: 12.5px/1.55 var(--mono); color: #f3e3bd; }
.t-fields { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font: 12px/1.45 var(--mono); }
.t-fields dt { color: var(--faint); white-space: nowrap; }
.t-fields dd { margin: 0; color: var(--text); }
.t-fields dd.hl { color: var(--gold); }
.t-cite { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--faint); }
.t-cite b { color: var(--muted); font-weight: 500; }
.t-ev .efoot { display: flex; gap: 8px; align-items: center; }
.t-ev .efoot .spacer { flex: 1; }
.t-ev .efoot .count { font: 11px var(--mono); color: var(--faint); }
.t-ev .efoot .t-ghost:disabled { opacity: .3; cursor: default; }

/* ---------- Paused — you're exploring · ▶ Resume ---------- */
.t-pause { position: absolute; z-index: 6; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 74px); transform: translate(-50%, -8px); display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 16px; border-radius: 999px; font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.t-pause.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.t-pause .pz { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.t-pause .pz .t-ico { width: 14px; height: 14px; color: var(--muted); }
.t-pause .pz em { font-style: normal; color: var(--muted); }
.t-pause .t-btn { height: 32px; padding: 0 14px 0 11px; font-size: 12.5px; }
.t-pause .t-btn .t-ico { width: 12px; height: 12px; }

/* ---------- read the tour as text ---------- */
.t-textview { position: absolute; inset: 0; z-index: 10; display: grid; place-items: start center; padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px 24px; background: rgba(3, 5, 10, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); overflow-y: auto; overscroll-behavior: contain; }
.t-doc { position: relative; width: min(760px, 100%); padding: 28px 30px 30px; border-radius: 24px; }
.t-doc .t-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 7, 13, .6); border: 1px solid var(--edge); color: var(--text); }
.t-doc .t-x .t-ico { width: 15px; height: 15px; }
.t-doc h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.t-doc .lede { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.t-doc .credits { margin: 0; color: var(--faint); font-size: 12px; }
.t-doc section { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--edge); }
.t-doc h3 { margin: 4px 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.t-doc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.t-doc li p { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: var(--text); }
.t-doc li .it { font-style: italic; color: var(--muted); font-size: 13.5px; }
.t-doc .why { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.t-doc .why .t-badge { margin-top: 1px; }
.t-doc .why span.note { flex: 1; min-width: 200px; }
.t-doc .evs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.t-doc .play-here { margin-left: auto; }

/* ---------- reduced motion: a quick cross-fade instead of a flight ---------- */
.t-fade { position: absolute; inset: 0; background: var(--void); pointer-events: none; opacity: 0; }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .t-tour-chip { padding: 0 12px 0 5px; gap: 6px; }
  .t-tour-chip .tc-play { width: 22px; height: 22px; }
  .t-tour-chip .long { display: none; }
  .t-tour-chip .short { display: inline; }
  .t-intro { left: 12px; right: 12px; width: auto; top: calc(env(safe-area-inset-top, 0px) + 156px); max-height: calc(100% - env(safe-area-inset-top, 0px) - 168px); padding: 20px 16px 16px; transform: translateY(16px); }
  .t-intro.on { transform: none; }
  .t-intro h2 { font-size: 24px; padding-right: 40px; }
  .t-intro .grid { grid-template-columns: 1fr; gap: 16px; }
  .t-intro .fine { display: none; }
  .t-bar { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); width: auto; height: auto; transform: none; padding: 10px 10px 4px; grid-template-columns: auto 1fr auto; grid-template-rows: auto 26px; gap: 4px 10px; }
  .t-bar .t-rail { grid-column: 1 / -1; grid-row: 2; height: 26px; padding: 0 4px; }
  .t-rail > button { height: 26px; }
  .t-rail > button::before { top: 12px; }
  .t-rail > button:hover::before { top: 11px; }
  .t-rail > button.cur::after { top: 8px; }
  .t-rail > button.x > i { bottom: 17px; }
  .t-bar .btns .desk { display: none; }
  .t-cap { left: 12px; right: 12px; width: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 110px); max-height: none; overflow: visible; padding: 20px 16px 14px; border-radius: 22px; touch-action: none; }
  .t-cap .grab { display: block; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 64px; height: 18px; }
  .t-cap .grab::before { content: ""; position: absolute; left: 12px; right: 12px; top: 7px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
  .t-cap .t-kicker { margin-bottom: 6px; font-size: 10.5px; }
  .t-cap .t-text { font-size: 15px; line-height: 1.5; }
  .t-bar .t-year { display: none; }
  .t-cap .t-year { display: inline-flex; left: auto; right: 14px; top: -15px; bottom: auto; transform: none; font-size: 14px; padding: 5px 11px; transition: none; }
  .t-cap .t-year:empty { display: none; }
  .t-cap .t-year::after { display: none; }
  .t-cap.collapsed .t-who, .t-cap.collapsed .t-sub, .t-cap.collapsed .t-why, .t-cap.collapsed .count { display: none; }
  .t-cap.collapsed .t-window { position: relative; height: 3em; overflow: hidden; -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .25) 0, #000 1.2em); mask: linear-gradient(180deg, rgba(0, 0, 0, .25) 0, #000 1.2em); }
  .t-cap.collapsed .t-window .t-text { transition: transform .45s var(--ease); }
  .t-cap.collapsed .t-foot { margin-top: 10px; padding-top: 0; border-top: 0; }
  .t-cap.mini { transform: translateY(calc(100% + 120px)); opacity: 0; pointer-events: none; }
  .t-cap .above { display: none; }
  .t-key { display: none; }
  .t-ev { left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 64px); bottom: 0; width: auto; max-height: none; border-radius: 24px 24px 0 0; z-index: 8; transform: translateY(105%); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .t-ev.on { transform: none; }
  .t-ev .grab { display: block; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); z-index: 4; }
  .t-ev .head { padding-top: 20px; }
  .t-well { --well-h: 300px; }
  .t-pause { top: calc(env(safe-area-inset-top, 0px) + 156px); max-width: calc(100% - 24px); font-size: 12.5px; padding-left: 14px; }
  .t-pause .pz em { display: none; }
  .t-doc { padding: 22px 18px 24px; }
}

/* ---------- the end: "Explore on your own", with a few records to start from (the tour's suggestions) ---------- */
.t-end { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--edge); display: grid; gap: 10px; }
.t-end .lede { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.t-sugs { display: grid; gap: 6px; }
.t-sug { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; text-align: left; background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); transition: border-color .2s, background .2s; }
.t-sug:hover, .t-sug:focus-visible { border-color: rgba(255, 210, 122, .45); background: rgba(255, 210, 122, .06); }
.t-sug .art { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: #0b1020; display: grid; place-items: center; color: var(--muted); }
.t-sug .art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) brightness(.85); }
.t-sug .art .t-ico { width: 16px; height: 16px; }
.t-sug .tx { min-width: 0; }
.t-sug b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.t-sug small { display: block; margin-top: 2px; font: 10.5px var(--mono); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sug .arr { color: var(--muted); font-size: 11px; }
.t-end .act { display: flex; gap: 8px; flex-wrap: wrap; }
.t-end .act .t-btn .t-ico { width: 13px; height: 13px; }
@media (max-width: 760px) {
  .t-cap.ended { max-height: calc(100% - env(safe-area-inset-top, 0px) - 250px); overflow-y: auto; touch-action: pan-y; }
  .t-end { margin-top: 10px; padding-top: 10px; gap: 8px; }
  .t-sug { grid-template-columns: 34px minmax(0, 1fr) auto; }
  .t-sug .art { width: 34px; height: 34px; }
}

/* ---------- on the globe during a tour: the ship and route of a lit journey, at mid-ocean while it's sailed ---------- */
.lbl.route { font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--gold); text-shadow: 0 1px 8px #000, 0 0 2px #000; text-align: left; }
.lbl.route small { display: block; margin-top: 1px; font: 400 11px var(--mono); letter-spacing: 0; color: rgba(237, 240, 247, .78); }
