/* Legacy Tour case studies: animated hero trace, live 3D route console, elevation profile. */
:root {
  --red: #ff3b47;
  --red-soft: #ff8d93;
  --red-deep: #3a1215;
  --day-0: #ff3b47;
  --day-1: #ff8a63;
  --day-2: #ffd0c4;
  --glass: #0d0b0bd9;
  --line: #2c2727;
}
.tour-page .case-body { padding-top: clamp(40px, 6vw, 80px); }
.tour-page .case-credits { border-bottom-color: var(--line); }

/* ---------- HUD primitives ---------- */
.tour-hud, .tc-hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.tour-hud { inset: 76px 0 112px; }
.tour-hud span, .tc-hud span {
  position: absolute; font: 500 10px/1.2 "Space Grotesk", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #cfc6c6;
}
.tour-hud b, .tc-hud b { color: var(--red-soft); font-weight: 600; }
.hud-tl { top: 22px; left: 26px; }
.hud-tr { top: 22px; right: 26px; text-align: right; }
.hud-bl { bottom: 20px; left: 26px; font-variant-numeric: tabular-nums; color: var(--red-soft) !important; }
.hud-br { bottom: 20px; right: 26px; }
.hud-corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--red); opacity: .9; }
.hud-corner.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.hud-corner.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.hud-corner.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.hud-corner.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

/* ---------- Hero ---------- */
.tour-hero {
  position: relative; min-height: max(100svh, 640px); overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  background: radial-gradient(ellipse 60% 70% at 72% 42%, #2a1416 0%, #120d0d 45%, #070707 80%);
}
.tour-hero-grid {
  position: absolute; inset: -10%; z-index: -1; opacity: .55;
  background-image:
    linear-gradient(#ffffff0b 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0b 1px, transparent 1px),
    linear-gradient(#ffffff06 1px, transparent 1px),
    linear-gradient(90deg, #ffffff06 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  mask-image: radial-gradient(ellipse 70% 65% at 65% 45%, #000 20%, transparent 75%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { transform: translate(160px, 160px); } }
.tour-hero .opening-grain { z-index: 1; opacity: .09; }
.tour-hero-stage {
  position: absolute; z-index: 0; top: 92px; bottom: 170px; right: clamp(16px, 4vw, 64px); width: min(56vw, 900px);
  display: flex; align-items: center; justify-content: center;
}
.tour-trace { width: 100%; height: 100%; overflow: visible; }
.tour-trace path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trace-ghosts path { stroke: #ffffff17; stroke-width: 1; }
.trace-lines path, .trace-glows path { stroke: var(--day-0); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.trace-lines path { stroke-width: 2.2; }
.trace-glows path { stroke-width: 7; opacity: .45; }
.tour-trace path[data-day="1"] { stroke: var(--day-1); }
.tour-trace path[data-day="2"] { stroke: var(--day-2); }
.trace-ghosts path { stroke: #ffffff17 !important; }
.is-drawn .trace-lines path, .is-drawn .trace-glows path {
  animation: trace-draw 2.4s cubic-bezier(.65, 0, .25, 1) forwards; animation-delay: calc(.35s + var(--i) * 1.05s);
}
@keyframes trace-draw { to { stroke-dashoffset: 0; } }
.trace-stop { opacity: 0; transform-box: fill-box; transform-origin: center; }
.trace-stop circle { fill: #fff; }
.trace-stop .trace-stop-halo { fill: none; stroke: #ffffff55; stroke-width: 1; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.is-drawn .trace-stop { animation: stop-pop .6s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: calc(.9s + var(--i) * 1.05s + var(--j) * .28s); }
.is-drawn .trace-stop-halo { animation: halo 2.8s ease-out infinite; animation-delay: calc(2s + var(--j) * .4s); }
@keyframes stop-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.trace-label { fill: #e8e2e2; font: 600 13px "Space Grotesk", sans-serif; letter-spacing: .22em; opacity: 0; transition: opacity 1s ease; }
.is-drawn .trace-label--start { opacity: 1; transition-delay: .8s; }
.is-traced .trace-label--finish { opacity: 1; }
.trace-comet { opacity: 0; transition: opacity .6s; }
.is-traced .trace-comet { opacity: 1; }
.trace-comet circle { fill: #fff; }
.trace-comet .trace-comet-halo { fill: var(--red); opacity: .35; filter: blur(6px); }

.tour-hero-copy {
  position: relative; z-index: 4; align-self: end; max-width: 820px;
  padding: 120px clamp(20px, 5vw, 76px) clamp(32px, 5vh, 56px);
}
.tour-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 22px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #d9d2d2; }
.tour-kicker span + span::before { content: ""; display: inline-block; width: 34px; height: 1px; margin-right: 14px; vertical-align: middle; background: var(--red); }
.tour-hero h1 { margin: 0; font-size: clamp(42px, 7.2vw, 116px); line-height: .94; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split-word > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--w) * 80ms + 150ms); }
.is-intro .split-word > span { transform: none; }
.tour-endpoints { display: flex; align-items: center; gap: 16px; margin: 26px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #fff; }
.tour-endpoints i { position: relative; flex: 0 0 auto; width: clamp(60px, 10vw, 140px); height: 1px; background: linear-gradient(90deg, #fff6, var(--red)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(.65, 0, .25, 1) .9s; }
.tour-endpoints i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left: 6px solid var(--red); border-right: 0; }
.is-intro .tour-endpoints i { transform: none; }
.tour-kicker, .tour-endpoints span, .tour-cta { opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
.is-intro .tour-kicker, .is-intro .tour-endpoints span, .is-intro .tour-cta { opacity: 1; transform: none; }
.is-intro .tour-endpoints span:last-child { transition-delay: 1.9s; }
.is-intro .tour-cta { transition-delay: 1.2s; }
.tour-cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding: 13px 20px; border: 1px solid #ffffff38;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; background: #0a0a0a80; backdrop-filter: blur(6px);
  transition: border-color .3s, background .3s, opacity .9s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}
.tour-cta:hover { border-color: var(--red); background: #2a0f12b0; }
.tour-cta span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

.tour-stats {
  position: relative; z-index: 4; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 1px solid #ffffff1c; background: linear-gradient(#07070700, #070707cc);
}
.tour-stats div { padding: 20px clamp(16px, 2.6vw, 34px) 26px; border-right: 1px solid #ffffff12; opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(1.4s + var(--k, 0) * 110ms); }
.tour-stats div:last-child { border-right: 0; }
.is-intro .tour-stats div { opacity: 1; transform: none; }
.tour-stats dt { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #a49c9c; margin-bottom: 8px; }
.tour-stats dd { margin: 0; font-size: clamp(26px, 3.4vw, 50px); font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.tour-stats dd span { color: #fff; }

/* ---------- Context ---------- */
.tour-context { max-width: 980px; margin-inline: auto; text-align: center; }
.tour-context p {
  margin: 0; font-size: clamp(22px, 3.3vw, 40px); line-height: 1.28; letter-spacing: -.02em; font-weight: 500; text-wrap: balance;
}
.tour-context p::before { content: ""; display: block; width: 1px; height: 54px; margin: 0 auto 28px; background: linear-gradient(transparent, var(--red)); }
.tour-context .w { color: #ffffff2e; transition: color .5s ease; }
.tour-context .w.on { color: #fff; }

/* ---------- Reveal ---------- */
.tour-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.tour-ready [data-reveal].is-in { opacity: 1; transform: none; }
.tour-ready .tour-page .case-credits > div { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--k, 0) * 90ms); }
.tour-ready .tour-page .case-credits.is-in > div { opacity: 1; transform: none; }

/* ---------- Console ---------- */
.tour-console { width: 100vw; margin-left: calc(50% - 50vw); padding-inline: clamp(10px, 2.4vw, 36px); scroll-margin-top: 80px; }
.tour-console .case-section-heading h2 { font-size: clamp(30px, 5vw, 58px); text-transform: uppercase; }
.tour-console .case-eyebrow { color: var(--red-soft) !important; }
.tc-shell { max-width: 1640px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0b0a0a; box-shadow: 0 40px 120px #000a; }
.tour-console:not(.is-live) .tc-shell { display: none; }
.tour-console.is-live .tour-fallback { display: none; }
.tc-frame { position: relative; height: min(84vh, 880px); min-height: 540px; overflow: hidden; isolation: isolate; background: #0a0a0a; }
.tc-map, .tc-frame .tc-map.maplibregl-map { position: absolute; inset: 0; }
.tc-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 140px #000c; background: linear-gradient(#0a0a0a99, transparent 18%, transparent 80%, #0a0a0acc); }
.tc-veil { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 16px; background: #0a0a0a; color: #bbb; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; transition: opacity 1.2s ease .2s, visibility 0s 1.4s; }
.tc-veil.is-gone { opacity: 0; visibility: hidden; }
.tc-spinner { width: 46px; height: 46px; border: 1px solid #ffffff1f; border-top-color: var(--red); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.tc-days {
  position: absolute; z-index: 5; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 2px; padding: 4px; border: 1px solid #ffffff1a; border-radius: 4px; background: var(--glass); backdrop-filter: blur(14px);
}
.tc-day { position: relative; display: grid; gap: 3px; padding: 9px clamp(12px, 2vw, 26px) 11px; border: 0; background: transparent; color: #a8a0a0; cursor: pointer; text-align: left; transition: color .3s, background .3s; border-radius: 2px; }
.tc-day span { font-size: 9px; letter-spacing: .24em; text-transform: uppercase; color: var(--red-soft); }
.tc-day strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.tc-day i { position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65, 0, .25, 1); }
.tc-day:hover { color: #fff; background: #ffffff0d; }
.tc-day[aria-pressed="true"] { color: #fff; background: #ffffff10; }
.tc-day[aria-pressed="true"] i { transform: none; }

.tc-hud .hud-tl { top: 26px; }
.tc-hud .hud-tr { top: 26px; }
.tc-hud .hud-bl { bottom: 22px; }

.tc-tools { position: absolute; z-index: 5; right: 16px; bottom: 18px; display: flex; gap: 8px; align-items: stretch; }
.tc-tool-group { display: flex; border: 1px solid #ffffff1f; border-radius: 4px; background: var(--glass); backdrop-filter: blur(14px); overflow: hidden; }
.tc-tool-group button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-right: 1px solid #ffffff14; background: transparent; color: #eee; cursor: pointer; transition: background .25s, color .25s; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.tc-tool-group button:last-child { border-right: 0; }
.tc-tool-group button:hover { background: #ffffff14; }
.tc-tool-group button[aria-pressed="true"] { color: var(--red-soft); }
.tc-tool-group svg, .tc-card-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.tc-play {
  display: flex; align-items: center; gap: 12px; padding: 0 18px 0 12px; border: 1px solid #ff3b4766; border-radius: 4px; cursor: pointer;
  background: linear-gradient(135deg, #3a1215e6, #1a0b0ce6); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  backdrop-filter: blur(14px); transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tc-play:hover { border-color: var(--red); box-shadow: 0 0 28px #ff3b4740; }
.tc-play-icon { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }
.tc-play-icon::before { content: ""; position: absolute; left: 10px; top: 8px; border: 5px solid transparent; border-left: 8px solid #fff; border-right: 0; }
.tc-play[aria-pressed="true"] .tc-play-icon::before { left: 9px; top: 9px; width: 8px; height: 8px; border: 0; background: #fff; }
.tc-play[aria-pressed="true"] .tc-play-icon { animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px #ff3b4730; } }

.tc-progress { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 2px; background: #ffffff10; }
.tc-progress i { display: block; height: 100%; width: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--red); }

.tc-card {
  position: absolute; z-index: 5; top: 76px; left: 16px; width: min(360px, calc(100% - 32px));
  padding: 22px 22px 18px; border: 1px solid #ffffff1c; border-top: 2px solid var(--red); border-radius: 3px;
  background: var(--glass); backdrop-filter: blur(18px); box-shadow: 0 24px 70px #000b;
  animation: card-in .55s cubic-bezier(.16, 1, .3, 1);
}
.tc-card.is-swap { animation: card-swap .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes card-in { from { opacity: 0; transform: translateX(-18px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes card-swap { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tc-card-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: #ddd; cursor: pointer; border-radius: 50%; }
.tc-card-close:hover { background: #ffffff14; }
.tc-card-meta { display: flex; gap: 14px; margin: 0; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--red-soft); font-variant-numeric: tabular-nums; }
.tc-card-meta span:empty { display: none; }
.tc-card-meta span + span::before { content: ""; display: inline-block; width: 16px; height: 1px; margin-right: 14px; vertical-align: middle; background: #ffffff40; }
.tc-card h3 { margin: 10px 32px 12px 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; }
.tc-card-text { margin: 0; color: #d6cfcf; font-size: 14.5px; line-height: 1.5; }
.tc-card-facts { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #ffffff14; }
.tc-card-facts dt { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #8f8787; margin-bottom: 4px; }
.tc-card-facts dd { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: #eee; }
.tc-card-nav { display: flex; justify-content: space-between; margin-top: 16px; }
.tc-card-nav button { border: 1px solid #ffffff1f; background: transparent; color: #eee; padding: 8px 12px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; border-radius: 2px; transition: border-color .25s, background .25s; }
.tc-card-nav button:hover:not(:disabled) { border-color: var(--red); background: #ff3b471a; }
.tc-card-nav button:disabled { opacity: .3; cursor: default; }

/* map pins */
.tc-pin { position: relative; width: 0; height: 0; }
.tc-pin button {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); width: 30px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; color: #fff;
}
.tc-pin-dot { position: absolute; inset: 7px; transform: rotate(45deg); background: #120c0c; border: 1.6px solid var(--red); transition: background .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.tc-pin-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 700 8px/1 "Space Grotesk", sans-serif; letter-spacing: 0; z-index: 1; }
.tc-pin-label {
  position: absolute; left: 26px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap; pointer-events: none;
  padding: 6px 10px; background: var(--glass); border-left: 2px solid var(--red); font: 600 11px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.16, 1, .3, 1);
}
.tc-pin::before, .tc-pin::after { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--red); opacity: 0; pointer-events: none; }
.tc-pin:hover .tc-pin-dot, .tc-pin.is-peek .tc-pin-dot { transform: rotate(45deg) scale(1.3); background: #3a1215; }
.tc-pin:hover .tc-pin-label, .tc-pin.is-peek .tc-pin-label, .tc-pin.is-active .tc-pin-label, .tc-pin.is-terminal .tc-pin-label { opacity: 1; transform: translate(0, -50%); }
.tc-pin.is-active { z-index: 3; }
.tc-pin.is-active .tc-pin-dot { background: var(--red); transform: rotate(45deg) scale(1.35); box-shadow: 0 0 24px var(--red); }
.tc-pin.is-active::before, .tc-pin.is-active::after { animation: ring 2.2s ease-out infinite; }
.tc-pin.is-active::after { animation-delay: 1.1s; }
.tc-pin.is-enter .tc-pin-dot { animation: pin-in .6s cubic-bezier(.34, 1.56, .64, 1) backwards; animation-delay: var(--delay, 0s); }
@keyframes pin-in { from { transform: rotate(45deg) scale(0); } }
@keyframes ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* rail */
.tc-below { border-top: 1px solid var(--line); }
.tc-rail { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.tc-rail::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--rail-p, 0) * 100%); background: var(--red); box-shadow: 0 0 10px var(--red); transition: width .7s cubic-bezier(.65, 0, .25, 1); z-index: 1; }
.tc-rail li { border-right: 1px solid var(--line); opacity: 0; transform: translateY(10px); animation: rail-in .6s cubic-bezier(.16, 1, .3, 1) forwards; animation-delay: calc(var(--k) * 70ms); }
.tc-rail li:last-child { border-right: 0; }
@keyframes rail-in { to { opacity: 1; transform: none; } }
.tc-rail button {
  position: relative; width: 100%; height: 100%; min-height: 96px; display: grid; align-content: start; gap: 7px; padding: 16px 16px 14px;
  border: 0; background: #0d0c0c; color: #eee; text-align: left; cursor: pointer; overflow: hidden; transition: background .35s;
}
.tc-rail button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #ff3b4724, transparent 70%); transform: translateY(-100%); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.tc-rail button:hover::before, .tc-rail button:focus-visible::before, .tc-rail button[aria-pressed="true"]::before { transform: none; }
.tc-rail button[aria-pressed="true"] { background: #1a1011; }
.tc-rail-top { position: relative; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--red-soft); font-variant-numeric: tabular-nums; }
.tc-rail-time { color: #8d8686; }
.tc-rail strong { position: relative; font-size: 15px; line-height: 1.15; font-weight: 600; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.tc-rail button:hover strong { transform: translateX(4px); }
.tc-rail-km { position: relative; font-size: 11px; color: #8d8686; font-variant-numeric: tabular-nums; }
.tc-rail-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.65, 0, .25, 1); }
.tc-rail button:hover .tc-rail-bar { transform: scaleX(.35); }
.tc-rail button[aria-pressed="true"] .tc-rail-bar { transform: none; }

/* profile */
.tc-profile { position: relative; margin: 0; padding: 14px 18px 30px; border-top: 1px solid var(--line); background: #0a0909; }
.tc-profile figcaption { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #8f8787; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.tc-profile figcaption span:last-child { color: var(--red-soft); }
.tc-profile svg { display: block; width: 100%; height: 120px; overflow: visible; cursor: crosshair; }
.tc-profile .pf-area { fill: url(#pf-fill); }
.tc-profile .pf-line { fill: none; stroke: var(--red); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.tc-profile .pf-done { fill: url(#pf-done); }
.tc-profile .pf-grid { stroke: #ffffff0f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tc-profile .pf-cursor { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .2s; }
.tc-profile.is-hover .pf-cursor, .tc-profile.is-playing .pf-cursor { opacity: .8; }
.tc-profile svg.pf-anim { animation: pf-in 1.6s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes pf-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.tc-profile-ticks { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 140px; pointer-events: none; }
.tc-profile-ticks span { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 9px; font-weight: 700; color: #bbb; letter-spacing: .05em; }
.tc-profile-ticks span::before { content: ""; position: absolute; left: 50%; bottom: 14px; width: 1px; height: 116px; background: linear-gradient(transparent, #ffffff30); }
.tc-profile-ticks span.is-active, .tc-profile-ticks span.is-peek { color: var(--red-soft); }
.tc-profile-ticks span.is-peek::before { background: linear-gradient(transparent, #ffffff80); }
.tc-rail button.is-peek .tc-rail-bar { transform: scaleX(.35); }
.tc-profile-ticks span.is-active::before { background: linear-gradient(transparent, var(--red)); }

/* MapLibre chrome */
.tour-console .maplibregl-ctrl-attrib { background: #0a0a0acc !important; color: #888; font-size: 9px; }
.tour-console .maplibregl-ctrl-attrib a { color: #aaa; }
.tour-console .maplibregl-ctrl-attrib-button { filter: invert(1); background-color: transparent; }
.tour-console .maplibregl-ctrl-bottom-right { bottom: 66px; }
.tour-console .maplibregl-cooperative-gesture-screen { background: #0a0a0acc; color: #fff; font-family: "Space Grotesk", sans-serif; font-size: 15px; letter-spacing: .04em; }
.tour-console .maplibregl-canvas { outline: none; }

.tour-fallback { max-width: 1200px; margin: 0 auto; }

@media (max-width: 900px) {
  .tour-hero-stage { top: 80px; bottom: 300px; left: 12px; right: 12px; width: auto; opacity: .55; }
  .tour-hero-copy { padding-bottom: 28px; }
  .tc-frame { height: 74svh; min-height: 480px; }
  .tc-days { top: 12px; left: 12px; right: 12px; transform: none; overflow-x: auto; }
  .tc-day { flex: 1 0 auto; }
  .tc-hud .hud-tl, .tc-hud .hud-tr { display: none; }
  .tc-card { top: auto; bottom: 74px; left: 10px; right: 10px; width: auto; padding: 16px 16px 12px; max-height: 52%; overflow: auto; }
  .tc-card-facts { grid-template-columns: 1fr 1fr 1fr; }
  .tc-card-facts dd { font-size: 11px; }
  .tc-tools { left: 10px; right: 10px; bottom: 12px; justify-content: space-between; }
  .tc-play { padding-right: 14px; }
  .tc-hud .hud-bl { display: none; }
  .tour-console .maplibregl-ctrl-bottom-right { bottom: 60px; }
}
@media (max-width: 520px) {
  .tour-hud { inset: 64px 0 190px; }
  .tour-stats { grid-template-columns: repeat(3, 1fr); }
  .tour-stats div:nth-child(3) { border-right: 0; }
  .tour-stats div { padding: 14px 12px 16px; border-top: 1px solid #ffffff12; }
  .tour-hud .hud-tr, .tour-hud .hud-br { display: none; }
  .tc-tool-group button { width: 38px; height: 40px; }
  .tc-play [data-tc-play-label] { font-size: 10px; letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
  .split-word > span, .tour-kicker, .tour-endpoints span, .tour-cta, .tour-stats div { transform: none !important; opacity: 1 !important; }
  .trace-lines path, .trace-glows path { stroke-dashoffset: 0; }
  .trace-stop, .trace-label { opacity: 1; }
  .tour-endpoints i { transform: none; }
}
