:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, system-ui, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.8,.2,1);
}
:root, [data-theme="dark"] {
  --bg: #000000; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73;
  --glass: rgba(28, 28, 30, 0.58); --glass-strong: rgba(28, 28, 30, 0.82);
  --hair: rgba(255, 255, 255, 0.09); --hair-2: rgba(255, 255, 255, 0.16);
  --fill: rgba(255, 255, 255, 0.10); --fill-2: rgba(255, 255, 255, 0.18);
  --accent: #2997ff; --warm: #ff9f0a; --ok: #30d158;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  --track: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f5f7; --text: #1d1d1f; --text-2: #515154; --text-3: #86868b;
  --glass: rgba(255, 255, 255, 0.62); --glass-strong: rgba(255, 255, 255, 0.86);
  --hair: rgba(0, 0, 0, 0.07); --hair-2: rgba(0, 0, 0, 0.13);
  --fill: rgba(0, 0, 0, 0.05); --fill-2: rgba(0, 0, 0, 0.09);
  --accent: #0071e3; --warm: #c93400; --ok: #248a3d;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.10);
  --track: rgba(0, 0, 0, 0.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; transition: background .6s var(--ease), color .6s var(--ease); }
canvas#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.panel {
  background: var(--glass); border: 1px solid var(--hair);
  -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  box-shadow: var(--shadow);
  transition: background .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease);
}

/* brand */
.brand { position: fixed; top: 30px; left: 34px; max-width: 440px; pointer-events: none; }
.brand::before { content: ""; position: absolute; inset: -60px -90px -50px -60px; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 80%, transparent), transparent); }
.brand h1 { margin: 0; font-size: 31px; line-height: 1.08; font-weight: 600; letter-spacing: -0.024em; }
.brand .lede { margin: 10px 0 20px; font-size: 15px; line-height: 1.45; color: var(--text-2); max-width: 36ch; }
.stats { display: flex; gap: 30px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { font-size: 12px; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.stats dd { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats small { font-size: 14px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }

/* toolbar */
.toolbar { position: fixed; top: 26px; right: 26px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.toolbar .row { display: flex; align-items: center; gap: 8px; }
.toolbar .tools .icon-btn.round { width: 34px; height: 34px; }
.icon-btn[aria-pressed="true"]:not(#btn-sound) { background: var(--text); color: var(--bg); border-color: var(--text); }
#btn-sound .off, #btn-sound[aria-pressed="false"] .on { display: none; }
#btn-sound[aria-pressed="false"] .off { display: block; }
#btn-capture { position: relative; }
.rec-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #ff453a; display: none; }
#btn-capture.rec .rec-dot { display: block; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.menu { position: fixed; top: 122px; right: 26px; width: 230px; padding: 6px; border-radius: 16px; display: grid; gap: 2px; z-index: 6; }
.menu button { text-align: left; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.menu button:hover { background: var(--fill); }
.menu-note { margin: 4px 12px 6px; font-size: 11.5px; color: var(--text-3); }
.globe-card { position: fixed; right: 26px; top: 50%; transform: translateY(-46%); width: 350px; padding: 22px; border-radius: 24px; }
.globe-card h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.gc-lede { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.gc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gc-list li { display: grid; grid-template-columns: 10px 1fr auto; gap: 2px 10px; align-items: baseline; font-size: 13.5px; }
.gc-list i { width: 9px; height: 9px; border-radius: 50%; align-self: center; }
.gc-list b { font-weight: 600; }
.gc-list span { grid-column: 2 / 3; color: var(--text-2); font-size: 12.5px; }
.gc-list em { font-style: normal; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; grid-row: 1; grid-column: 3; }
.gc-total { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--text); }
.globe-card .src { margin: 10px 0 0; font-size: 12px; color: var(--text-3); }
body.globe .card, body.globe .transport, body.globe .brand .lede, body.globe .stats, body.globe .disclaimer { opacity: 0; pointer-events: none; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background .3s var(--ease), color .3s var(--ease); }
.seg button[aria-selected="true"] { background: var(--fill-2); color: var(--text); }
.seg button:disabled { opacity: .45; cursor: default; }
.swatches { display: flex; gap: 8px; padding: 9px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 0 0 1px rgba(127,127,127,.35); position: relative; }
.swatch[aria-checked="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--text); }
.icon-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--hair); background: var(--glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); font-size: 13px; font-weight: 500; color: var(--text); transition: background .3s var(--ease); }
.icon-btn:hover { background: var(--glass-strong); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn[aria-pressed="false"] { color: var(--text-3); }
.icon-btn[aria-expanded="true"] { background: var(--fill-2); }
.icon-btn.round { width: 36px; padding: 0; justify-content: center; }
[data-theme="dark"] .icon-btn .sun, [data-theme="light"] .icon-btn .moon { display: none; }

/* camera modes */
.seg.cam button[aria-checked="true"] { background: var(--fill-2); color: var(--text); }
.fly-hint { position: fixed; left: 50%; bottom: 98px; transform: translateX(-50%); width: min(430px, calc(100vw - 32px)); margin: 0; padding: 10px 16px; border-radius: 16px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); text-align: center; animation: hintOut .6s ease 8s forwards; pointer-events: none; }
.fly-hint b { color: var(--text); font-weight: 600; margin-right: 4px; }
.fly-hint span { display: block; color: var(--text-3); margin-top: 2px; }
@keyframes hintOut { to { opacity: 0; } }

/* inspect popover */
.pop { position: fixed; left: 0; top: 0; width: 250px; padding: 13px 14px 12px; border-radius: 16px; z-index: 5; }
.pop b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.pop span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pop p { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.pop-go { margin-top: 10px; border: 0; padding: 6px 11px; border-radius: 999px; background: var(--fill-2); font-size: 12.5px; font-weight: 500; }
.pop-go:hover { background: var(--text); color: var(--bg); }

/* lighting panel */
.light-panel { position: fixed; top: 122px; right: 26px; width: 320px; padding: 16px 16px 14px; border-radius: 20px; max-height: calc(100vh - 180px); overflow: auto; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.presets button { border: 1px solid var(--hair-2); background: transparent; padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.presets button[aria-checked="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.sl { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; margin-bottom: 9px; font-size: 12.5px; }
.sl span { color: var(--text-2); }
.sl output { color: var(--text-3); font-variant-numeric: tabular-nums; font-size: 12px; }
.sl input { grid-column: 1 / -1; width: 100%; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 18px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: var(--track); }
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--track); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35), 0 0 0 .5px rgba(0,0,0,.1); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.sl.kelvin input::-webkit-slider-runnable-track { background: linear-gradient(90deg, #ff9b3d, #fff1dc 45%, #cfe3ff); }
.sl.kelvin input::-moz-range-track { background: linear-gradient(90deg, #ff9b3d, #fff1dc 45%, #cfe3ff); }
.toggles { display: grid; gap: 7px; padding: 10px 0 10px; border-top: 1px solid var(--hair); margin-top: 6px; font-size: 13px; color: var(--text-2); }
.toggles input { accent-color: var(--accent); margin-right: 6px; }
.quality { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); border-top: 1px solid var(--hair); padding-top: 10px; }
.quality select { background: var(--fill); border: 1px solid var(--hair); border-radius: 8px; padding: 4px 8px; }

/* step card */
.card { position: fixed; right: 26px; top: 50%; transform: translateY(-46%); width: 340px; padding: 22px 22px 18px; border-radius: 24px; }
.card-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.card h2 { margin: 0 0 10px; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.figure { margin: 18px 0 14px; display: flex; flex-direction: column; gap: 2px; }
.figure strong { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.figure span { font-size: 13px; color: var(--text-2); }
.live { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; padding: 7px 10px; margin: 0 0 16px; border-radius: 12px; background: var(--fill); font-size: 12.5px; }
.phase { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-weight: 500; }
.phase::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.live.on .phase::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.live.hot .phase::before { background: var(--warm); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warm) 25%, transparent); }
.torque { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.torque b { color: var(--text); font-weight: 600; }
.torque .bar { width: 54px; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; }
.torque .bar i { display: block; height: 100%; width: 0; background: var(--warm); border-radius: 4px; }
.card h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.card #c-why { font-size: 13.5px; }
.card .src { margin-top: 14px; font-size: 12px; color: var(--text-3); }
.cta { margin-top: 14px; width: 100%; border: 0; padding: 10px 14px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.cta:hover { filter: brightness(1.08); }
.card.swap > * { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* parts at this station */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hair-2); font-size: 12.5px; font-weight: 500; color: var(--text); }
.chip small { font-size: 12px; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.checks { list-style: none; margin: -6px 0 16px; padding: 0; display: grid; gap: 5px; }
.checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); transition: color .3s; }
.checks li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--hair-2); flex: none; box-sizing: border-box; transition: background .3s, border-color .3s; }
.checks li.ok { color: var(--text); }
.checks li.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

/* transport */
.transport { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(780px, calc(100vw - 52px)); height: 58px; border-radius: 29px; display: flex; align-items: center; gap: 4px; padding: 0 12px 0 8px; }
.t-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; color: var(--text); }
.t-btn:hover { background: var(--fill); }
.t-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-btn.play svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.t-btn.play { background: var(--fill); }
.t-btn.play .i-pause, .t-btn.play.on .i-play { display: none; }
.t-btn.play.on .i-pause { display: block; }
.timeline { flex: 1; display: flex; gap: 4px; height: 40px; align-items: center; padding: 0 10px; cursor: pointer; position: relative; }
.tl-seg { flex: 1; height: 100%; position: relative; display: flex; align-items: center; }
.tl-seg .track { width: 100%; height: 4px; border-radius: 4px; background: var(--track); overflow: hidden; transition: height .25s var(--ease); }
.tl-seg .track i { display: block; height: 100%; width: 0%; background: var(--text); border-radius: 4px; }
.tl-seg.cur .track { height: 6px; }
.tl-seg.cur .track i { background: var(--accent); }
.tl-seg .tip { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%) translateY(4px); white-space: nowrap; font-size: 12px; font-weight: 500; padding: 5px 9px; border-radius: 8px; background: var(--glass-strong); border: 1px solid var(--hair); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.tl-seg:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.speed { border: 0; background: transparent; font-size: 13px; font-weight: 600; width: 40px; height: 32px; border-radius: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.speed:hover { background: var(--fill); color: var(--text); }

.disclaimer { margin: 16px 0 0; max-width: 300px; font-size: 11px; line-height: 1.45; color: var(--text-3); pointer-events: none; }
.disclaimer .linkish { pointer-events: auto; }

/* intro */
.intro { position: fixed; left: 8vw; bottom: 22vh; max-width: 760px; pointer-events: none; opacity: var(--o, 0); transform: translateY(calc((1 - var(--o, 0)) * 10px)); }
.intro h2 { margin: 0; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.intro p { margin: 14px 0 0; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.4; color: var(--text-2); }
.intro-skip { position: fixed; right: 28px; bottom: 54px; display: none; border: 1px solid var(--hair-2); background: var(--glass); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text); }
body.is-intro .intro-skip { display: block; }
body.is-intro .brand, body.is-intro .toolbar, body.is-intro .card, body.is-intro .transport, body.is-intro .disclaimer, body.is-intro #labels, body.is-intro .light-panel { opacity: 0; pointer-events: none; }
.brand, .toolbar, .card, .transport, .disclaimer, #labels { transition: opacity .8s var(--ease); }
.cta-row { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 108px; display: flex; gap: 10px; padding: 8px; border-radius: 999px; background: var(--glass); border: 1px solid var(--hair); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); box-shadow: var(--shadow); animation: cardIn .6s var(--ease) both; }
.cta-row button { border: 0; padding: 10px 18px; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cta-row button:hover { background: var(--fill); }
.cta-row .primary, .tour .primary { background: var(--accent); color: #fff; }
.cta-row .primary:hover { background: var(--accent); filter: brightness(1.08); }

/* director */
.lower { position: fixed; left: clamp(34px, 3.4vw, 76px); bottom: clamp(104px, 13vh, 160px); display: none; flex-direction: column; gap: clamp(3px, 0.5vw, 9px); pointer-events: none; }
.lower b { font-size: clamp(17px, 2.15vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: -0.022em; text-shadow: 0 1px 18px color-mix(in srgb, var(--bg) 70%, transparent); }
.lower b .num { font-style: normal; font-weight: 500; color: var(--text-3); margin-right: 0.5em; font-variant-numeric: tabular-nums; }
.lower > span { font-size: clamp(13.5px, 1.3vw, 23px); color: var(--text-2); font-variant-numeric: tabular-nums; text-shadow: 0 1px 14px color-mix(in srgb, var(--bg) 70%, transparent); }
body.cinema .lower { display: flex; }
body.cinema .card, body.cinema .brand .lede, body.cinema .disclaimer, body.cinema #labels { opacity: 0; pointer-events: none; }
body.cinema.idle .toolbar, body.cinema.idle .transport, body.cinema.idle .brand { opacity: 0; }

/* tour */
.tour { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); width: min(600px, calc(100vw - 32px)); padding: 18px 20px 14px; border-radius: 22px; }
.tour.swap > * { animation: cardIn .5s var(--ease) both; }
.tour-count { margin: 0 0 4px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tour h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.tour-text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.tour-btns { display: flex; gap: 8px; margin-top: 14px; align-items: center; }
.tour-btns button { border: 1px solid var(--hair-2); background: transparent; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.tour-btns button:disabled { opacity: .4; cursor: default; }
.tour-btns .primary { border-color: transparent; }
.tour-btns .link { margin-left: auto; border: 0; color: var(--text-2); }
body.touring .card, body.touring .transport, body.touring .disclaimer { opacity: 0; pointer-events: none; }
#spot { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); --sx: 50%; --sy: 50%;
  background: radial-gradient(circle at var(--sx) var(--sy), transparent 0, transparent 90px, rgba(0, 0, 0, .55) 300px); }
[data-theme="light"] #spot { background: radial-gradient(circle at var(--sx) var(--sy), transparent 0, transparent 90px, rgba(245, 245, 247, .6) 300px); }
.linkish { border: 0; background: none; padding: 0; margin-left: 4px; font-size: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }
.disclaimer { pointer-events: none; }

/* macro close-up (the picture itself is drawn into the WebGL canvas under this frame) */
.macro { position: fixed; left: 34px; bottom: 104px; width: 340px; height: 212px; margin: 0; border-radius: 18px; opacity: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 18px 50px -18px rgba(0,0,0,.6);
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.28) 100%); }
.macro.on { pointer-events: auto; }
.macro figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: baseline; gap: 8px; padding: 7px 11px; border-radius: 11px;
  background: var(--glass-strong); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; }
.macro-kicker { color: var(--text-3); font-weight: 500; }
.macro-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.macro-value { margin-left: auto; color: var(--text-2); font-variant-numeric: tabular-nums; }
.macro-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hair); background: var(--glass-strong); display: grid; place-items: center; color: var(--text); opacity: 0; transition: opacity .25s; }
.macro:hover .macro-close { opacity: 1; }
.macro-close svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.cinema .macro, body.touring .macro, body.globe .macro, body.is-intro .macro { visibility: hidden; }
@media (max-width: 1180px) { .macro { width: 280px; height: 175px; left: 20px; } }
@media (max-width: 900px) { .macro { width: 200px; height: 125px; left: 12px; bottom: auto; top: 150px; } .macro .macro-kicker { display: none; } }

/* film export */
.export { position: fixed; left: 50%; bottom: 98px; transform: translateX(-50%); width: min(460px, calc(100vw - 32px)); padding: 22px; border-radius: 24px; z-index: 6; }
.export h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.export p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.ex-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; font-size: 13.5px; }
.ex-row .seg button { padding: 6px 12px; font-size: 13px; }
.ex-row .seg button[aria-pressed="true"] { background: var(--fill-2); color: var(--text); }
.ex-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 12px; font-size: 13.5px; }
.ex-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ex-checks input { accent-color: var(--accent); }
.export .ex-est { font-variant-numeric: tabular-nums; color: var(--text-3); }
.ex-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.ex-actions button, .ex-wav { border: 1px solid var(--hair-2); background: var(--fill); color: var(--text); padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.ex-go, .ex-done-close { background: var(--accent) !important; border-color: transparent !important; color: #fff !important; }
.ex-go:disabled { opacity: .4; }
.ex-bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; margin: 6px 0 12px; }
.ex-bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .2s linear; }
.export .ex-meta { font-variant-numeric: tabular-nums; color: var(--text); }
.export .ex-note { color: var(--text-3); font-size: 12.5px; }
body.exporting .toolbar, body.exporting .transport, body.exporting .card, body.exporting .brand, body.exporting #labels, body.exporting .lower,
body.exporting .credit, body.exporting .macro, body.exporting .cta-row, body.exporting .intro, body.exporting .intro-skip, body.exporting #pop,
body.exporting #tour, body.exporting #light-panel, body.exporting #globe-card, body.exporting #capture-menu, body.exporting #fly-hint { visibility: hidden !important; }
body.exporting #gl { pointer-events: none; }

/* design credit */
.credit { position: fixed; right: 28px; bottom: 22px; font-size: 11px; font-weight: 500; letter-spacing: 0.09em; color: var(--text-3); text-decoration: none; transition: color .25s var(--ease); z-index: 2; }
.credit:hover, .credit:focus-visible { color: var(--text); }
@media (max-width: 1100px) and (min-width: 901px) { .transport { left: 26px; transform: none; width: calc(100vw - 220px); } }

/* scene labels */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; will-change: transform, opacity; transition: opacity .35s; }
.lbl .dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bg) 55%, transparent); }
.lbl .line { position: absolute; left: -0.5px; bottom: 0; width: 1px; transform-origin: bottom; background: var(--text-2); opacity: .7; }
.lbl .txt { position: absolute; left: 0; bottom: 0; transform: translate(-50%, 0); white-space: nowrap; padding: 6px 10px 6px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--hair); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 12px; line-height: 1.25; }
.lbl .txt b { display: block; font-weight: 600; color: var(--text); }
.lbl .txt span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.lbl.sm .txt { padding: 4px 8px; font-size: 11.5px; border-radius: 8px; }
.lbl.sm .dot { width: 5px; height: 5px; left: -2.5px; top: -2.5px; background: var(--accent); }
.lbl.cur .txt { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

/* loader */
.loader { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 10; transition: opacity .9s var(--ease); }
.loader.done { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; color: var(--text-2); font-size: 13px; }
.ring { width: 28px; height: 28px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--hair-2); border-top-color: var(--text); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) { .disclaimer { display: none; } .card { width: 310px; } }
@media (max-width: 900px) {
  .brand { top: 18px; left: 18px; right: 18px; }
  .brand h1 { font-size: 22px; } .brand .lede { display: none; }
  .stats { gap: 18px; margin-top: 8px; } .stats dd { font-size: 18px; }
  .toolbar { top: auto; bottom: 92px; right: 50%; transform: translateX(50%); }
  .icon-btn span, .swatches { display: none; }
  .toolbar .tools { flex-wrap: wrap; justify-content: center; }
  .globe-card { top: auto; bottom: 16px; left: 16px; right: 16px; width: auto; transform: none; max-height: 50vh; overflow: auto; }
  .seg.cam button[data-cam="fly"] { display: none; }
  .chips, .checks { display: none; }
  .seg button { padding: 7px 10px; font-size: 12px; }
  .icon-btn { padding: 0 10px; }
  .card { top: auto; bottom: 140px; right: 16px; left: 16px; width: auto; transform: none; padding: 14px 16px; border-radius: 18px; max-height: 34vh; overflow: auto; }
  .card .figure, .card h3, .card #c-why, .card .src { display: none; }
  .card h2 { font-size: 18px; }
  .transport { bottom: 16px; width: calc(100vw - 32px); }
  .credit { right: 16px; bottom: 2px; font-size: 9.5px; }
  .speed { display: none; }
  .light-panel { top: auto; bottom: 140px; right: 16px; left: 16px; width: auto; max-height: 50vh; }
  .tl-seg .tip { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

[data-build="chip"] #btn-xray, [data-build="chip"] #btn-explode { display: none; }
