/* The panel teaser (views/wip.tsx): a planetarium show in seven segments. Brand tokens come from
   panel-ui.css; the dome's own tokens are below, per theme. Default styles are every replica's END
   state; animations run only on the active segment and start from their first keyframe, so no-JS
   and reduced motion both show finished previews. */

.t-body {
  --t-sky: #060a13; --t-sky-2: #0c1528; --t-rim: #03050b;
  --t-ink: #eef3fb; --t-ink-muted: #a5b1c4; --t-ink-faint: #7d8aa0;
  --t-line: rgba(59, 130, 246, .16); --t-line-strong: rgba(90, 149, 247, .36);
  --t-panel: #0b1322; --t-panel-2: #101b2f;
  --t-amber: #e0aa3e; --t-ok: #4cc27c;
  --t-star: rgba(214, 228, 255, .5);
  --t-shadow: 0 28px 60px -28px rgba(0, 0, 0, .85);
  --t-advance: 9s;
}
:root[data-theme='light'] .t-body {
  --t-sky: #eef2f8; --t-sky-2: #f8fafd; --t-rim: #dfe6f1;
  --t-ink: #0f1b33; --t-ink-muted: #45536b; --t-ink-faint: #5d6a80;
  --t-line: rgba(31, 111, 212, .13); --t-line-strong: rgba(31, 111, 212, .32);
  --t-panel: #ffffff; --t-panel-2: #f2f5fa;
  --t-amber: #9a6400; --t-ok: #23854a;
  --t-star: rgba(31, 66, 140, .28);
  --t-shadow: 0 24px 50px -30px rgba(15, 27, 51, .45);
}

.t-body {
  min-height: 100vh; min-height: 100dvh;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--t-sky); color: var(--t-ink);
  overflow-x: hidden;
}
:root { scrollbar-color: var(--border-strong) var(--bg); }
.t-body ::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--t-ink); }
.t-body :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* The dome: dark at the rim, lifting toward the globe, a scatter of square stars. */
.t-dome {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cg fill='%23fff'%3E%3Crect x='31' y='44' width='2' height='2'/%3E%3Crect x='112' y='190' width='1.5' height='1.5'/%3E%3Crect x='204' y='71' width='2' height='2'/%3E%3Crect x='288' y='233' width='1.5' height='1.5'/%3E%3Crect x='367' y='38' width='2.5' height='2.5'/%3E%3Crect x='455' y='160' width='1.5' height='1.5'/%3E%3Crect x='70' y='330' width='1.5' height='1.5'/%3E%3Crect x='170' y='420' width='2' height='2'/%3E%3Crect x='250' y='351' width='1.5' height='1.5'/%3E%3Crect x='338' y='470' width='2' height='2'/%3E%3Crect x='430' y='300' width='1.5' height='1.5'/%3E%3Crect x='497' y='431' width='2' height='2'/%3E%3Crect x='15' y='250' width='1.5' height='1.5'/%3E%3Crect x='398' y='392' width='1.5' height='1.5'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 80% at 66% 46%, var(--t-sky-2) 0%, var(--t-sky) 58%, var(--t-rim) 100%);
  opacity: 1;
}
.t-dome::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 66% 46%, transparent 40%, var(--t-sky) 100%); opacity: .3; }
:root[data-theme='light'] .t-dome { background: radial-gradient(ellipse 70% 80% at 66% 46%, var(--t-sky-2) 0%, var(--t-sky) 60%, var(--t-rim) 100%); }

.t-top, .t-show { position: relative; z-index: 1; }
.t-top { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1480px; margin: 0 auto; padding: 18px 40px 0; }
.t-top .p-brand { color: var(--t-ink); }

.t-show {
  display: grid; width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 40px 20px;
  grid-template-columns: minmax(340px, 5fr) 7fr; grid-template-rows: 1fr auto;
  grid-template-areas: 'title stage' 'prog prog';
  min-height: calc(100dvh - 64px);
}

/* The title card: each band fills the measure (panel-wip.js fits it exactly; cqi is the no-JS guess). */
.t-title { grid-area: title; align-self: center; container-type: inline-size; padding: 24px 0 32px; max-width: 560px; }
.t-title h1 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.035em; line-height: .9; color: var(--t-ink); }
.t-band { display: block; white-space: nowrap; }
.t-band-1 { font-size: min(17.4cqi, 6rem); }
.t-band-2 { font-size: min(9.6cqi, 6rem); margin-top: .12em; }
.t-band-3 { font-size: min(10.7cqi, 6rem); margin-top: .14em; color: var(--accent); }
:root[data-theme='dark'] .t-band-3, :root:not([data-theme]) .t-band-3 { color: #6ea2f8; }
.t-launch { margin: 22px 0 0; font: 750 15px/1.3 var(--display); letter-spacing: .01em; color: var(--t-ink); }
.t-pitch { margin: 14px 0 0; max-width: 44ch; color: var(--t-ink-muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.t-pitch strong { color: var(--t-ink); font-weight: 650; }
.t-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.t-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 9px;
  border: 1px solid var(--t-line-strong); color: var(--t-ink); font: 650 14.5px/1 var(--font); text-decoration: none;
  transition: background-color .18s, border-color .18s, transform .18s cubic-bezier(.16, 1, .3, 1);
}
.t-btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent); }
.t-btn:active { transform: translateY(1px); }
.t-btn-primary { background: var(--accent-fill); border-color: var(--accent-fill); color: #fff; }
.t-btn-primary:hover { background: var(--accent-fill-hover); border-color: var(--accent-fill-hover); }
.t-icon { width: 18px; height: 18px; }

/* The stage: chart lines round the globe, the globe, the pointer, the projected slide. */
.t-stage { grid-area: stage; position: relative; display: grid; place-items: center start; min-height: 0; --g: min(66vh, 42vw, 690px); }
.t-chart {
  position: absolute; left: calc(var(--g) / 2); top: 50%; width: calc(var(--g) * 2.1); height: calc(var(--g) * 2.1); transform: translate(-50%, -50%);
  overflow: visible; pointer-events: none; fill: none; stroke: var(--t-line); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.t-chart circle, .t-chart path { vector-effect: non-scaling-stroke; }
.t-chart path { stroke-dasharray: 2 6; }
.t-globe { position: relative; width: var(--g); aspect-ratio: 1; }
.t-globe-disc, .t-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-globe-disc::before {
  content: ''; position: absolute; inset: 2%; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #15284a 0%, #0a1426 55%, #050a15 100%);
  box-shadow: 0 0 0 1px var(--t-line-strong), 0 0 90px -10px rgba(59, 130, 246, .38);
}
:root[data-theme='light'] .t-globe-disc::before { background: #f7f9fc; box-shadow: 0 0 0 1px var(--t-line-strong); }
.t-globe-land { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-globe canvas { opacity: 0; transition: opacity .9s ease-out; touch-action: pan-y; cursor: grab; }
.t-globe canvas:active { cursor: grabbing; }
.t-globe.is-live canvas { opacity: 1; }
.t-globe.is-live .t-globe-land { opacity: 0; transition: opacity .9s ease-out .2s; }

.t-sites { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.t-site { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.t-site[hidden] { display: none; }
.t-site-mark { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: #fff; box-shadow: 0 0 0 2px var(--t-amber), 0 0 18px 2px color-mix(in srgb, var(--t-amber) 60%, transparent); }
:root[data-theme='light'] .t-site-mark { background: var(--t-ink); }
.t-site-mark::after { content: ''; position: absolute; inset: -2px; border: 1.5px solid var(--t-amber); animation: t-ping 2.6s cubic-bezier(.16, 1, .3, 1) infinite; }
@keyframes t-ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(4.4); opacity: 0; } }
.t-site-label {
  position: absolute; left: 0; bottom: 16px; transform: translateX(-50%); white-space: nowrap;
  font: 750 11px/18px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--t-ink);
  padding: 0 8px; background: color-mix(in srgb, var(--t-sky) 82%, transparent);
}
.t-site-label::after { content: ''; position: absolute; left: 50%; top: 100%; width: 1px; height: 6px; background: var(--t-ink-muted); }

.t-pointer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .4s; }
.t-pointer.is-on { opacity: 1; }
.t-pointer line { stroke: var(--t-amber); stroke-width: 1.6; stroke-dasharray: 10 6; animation: t-march 1.4s linear infinite; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--t-amber) 60%, transparent)); }
.t-pointer rect { fill: var(--t-amber); }
@keyframes t-march { to { stroke-dashoffset: -16; } }

.t-slides { position: absolute; right: 0; bottom: 3%; width: min(380px, 44%); }
.t-slide { padding: 16px 16px 0; border: 1px solid var(--t-line-strong); border-radius: 12px; background: var(--t-panel); box-shadow: var(--t-shadow); overflow: hidden; }
.t-slide h2 { margin: 0; font: 750 20px/1.2 var(--display); letter-spacing: -.015em; color: var(--t-ink); }
.t-slide > p { margin: 7px 0 0; max-width: 42ch; color: var(--t-ink-muted); font-size: 13.5px; line-height: 1.5; text-wrap: pretty; }

.js .t-slide { position: absolute; right: 0; bottom: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s ease-out, transform .45s cubic-bezier(.16, 1, .3, 1), visibility 0s .3s; }
.js .t-slide.is-active { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease-out .12s, transform .5s cubic-bezier(.16, 1, .3, 1) .12s, visibility 0s; }

/* A projected preview: a framed miniature of the real screen. */
.t-frame { margin: 14px -16px 0; border-top: 1px solid var(--t-line); }
.t-frame-bar { display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--t-line); background: var(--t-panel-2); font: 650 11px/1 var(--font); color: var(--t-ink-muted); }
.t-frame-tag { font: 750 9.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--t-ink-faint); }
.t-frame-body { padding: 12px 12px 13px; font-size: 12px; color: var(--t-ink); min-height: 196px; }
.t-frame-body small { display: block; color: var(--t-ink-faint); font-size: 10.5px; margin-top: 1px; }
.t-frame-body ul, .t-frame-body ol { list-style: none; margin: 0; padding: 0; }
.t-frame-body p { margin: 0; }

.r-btn { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border: 1px solid var(--t-line-strong); border-radius: 6px; font-size: 10.5px; font-weight: 600; color: var(--t-ink-muted); }
.r-head { width: 18px; height: 18px; flex: none; background: hsl(var(--h) 38% 42%); box-shadow: inset 0 -6px 0 hsl(var(--h) 30% 30%), inset 4px 6px 0 -2px hsl(var(--h) 30% 62%); }

/* Console */
.r-power { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.r-state { margin-right: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--t-ok); }
.r-state::before { content: ''; width: 7px; height: 7px; background: var(--t-ok); }
.r-log { font: 10.5px/1.6 var(--mono); color: var(--t-ink-muted); background: var(--t-panel-2); border: 1px solid var(--t-line); border-radius: 6px; padding: 7px 9px; }
.r-log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-log b { font-weight: 500; color: var(--t-ink-faint); }
.r-log li:nth-child(4) { color: var(--t-ok); }
.r-prompt { margin-top: 6px; font: 10.5px/1.6 var(--mono); color: var(--t-ink); padding: 0 9px; }
.r-caret { display: inline-block; width: 6px; height: 11px; margin-left: 2px; vertical-align: -1px; background: var(--accent); }
.r-usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 0; }
.r-usage div { display: grid; gap: 4px; }
.r-usage dt { font: 700 9.5px/1 var(--display); letter-spacing: .12em; color: var(--t-ink-faint); }
.r-usage dd { margin: 0; }
.r-meter { display: block; height: 5px; background: var(--t-line); position: relative; }
.r-meter::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--accent); transform-origin: left; }

/* Modpacks */
.r-sources { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 9px; }
.r-sources span { padding: 3px 7px; border: 1px solid var(--t-line); border-radius: 5px; font-size: 10px; color: var(--t-ink-muted); }
.r-sources .is-on { border-color: var(--accent); color: var(--t-ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.r-pack-list li { display: flex; align-items: center; gap: 9px; padding: 6px 0; border-top: 1px solid var(--t-line); }
.r-pack-list li:first-child { border-top: 0; }
.r-pack-art { width: 28px; height: 28px; flex: none; background: conic-gradient(from 90deg at 50% 50%, #5b8c4a 0 25%, #3f6b34 0 50%, #7b5a3a 0 75%, #5b8c4a 0); background-size: 14px 14px; }
.r-pack-list li:nth-child(2) .r-pack-art { background: conic-gradient(#8a6f2e 0 25%, #5c4a1f 0 50%, #3b4f7a 0 75%, #8a6f2e 0); background-size: 14px 14px; }
.r-pack-list li:nth-child(3) .r-pack-art { background: conic-gradient(#6b6f78 0 25%, #4a4e57 0 50%, #2f7a72 0 75%, #6b6f78 0); background-size: 14px 14px; }
.r-pack-name { flex: 1; min-width: 0; font-weight: 650; }
.r-pack-go { position: relative; width: 74px; height: 22px; display: grid; place-items: center end; }
.r-pack-bar { position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: var(--accent); transform-origin: left; opacity: 0; }
.r-pack-done { font-size: 10.5px; font-weight: 650; color: var(--t-ok); }
.r-software { margin-top: 8px !important; font-size: 10.5px; color: var(--t-ink-faint); }

/* Players */
.r-tabs { display: flex; gap: 12px; margin-bottom: 7px; font-size: 10.5px; color: var(--t-ink-faint); border-bottom: 1px solid var(--t-line); }
.r-tabs span { padding-bottom: 6px; }
.r-tabs .is-on { color: var(--t-ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); }
.r-player-list li { display: flex; align-items: center; gap: 9px; padding: 5px 0; }
.r-player-name { flex: 1; font-weight: 600; }
.r-seen { font-size: 10.5px; color: var(--t-ink-faint); width: 54px; }
.r-seen.is-online { color: var(--t-ok); }
.r-op { display: inline-grid; place-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 800 10px/1 var(--display); letter-spacing: .1em; color: var(--accent); border: 1px solid var(--accent); }
.r-history { margin-top: 6px !important; font-size: 10.5px; color: var(--t-ink-faint); }

/* Files */
.r-code { counter-reset: ln; font: 10.5px/1.75 var(--mono); background: var(--t-panel-2); border: 1px solid var(--t-line); border-radius: 6px; padding: 6px 0; }
.r-code li { counter-increment: ln; padding: 0 10px 0 0; white-space: nowrap; }
.r-code li::before { content: counter(ln); display: inline-block; width: 26px; margin-right: 8px; text-align: right; color: var(--t-ink-faint); opacity: .7; }
.r-code i { font-style: normal; color: var(--t-ink-faint); }
.r-code span { color: #6ea2f8; }
:root[data-theme='light'] .r-code span { color: var(--accent); }
.r-code em { font-style: normal; color: var(--t-amber); }
.r-code .is-edit { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.r-swap { display: inline-grid; }
.r-swap s, .r-swap ins { grid-area: 1 / 1; text-decoration: none; }
.r-swap s { opacity: 0; }
.r-files-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 10.5px; color: var(--t-ink-faint); }
.r-files-foot span:first-child { font: 10px/1 var(--mono); padding: 4px 6px; border: 1px solid var(--t-line-strong); border-radius: 4px; }
.r-saved { font-weight: 650; color: var(--t-ok); }

/* Network */
.r-domain { display: flex; align-items: center; gap: 0; padding: 8px 10px; border: 1px solid var(--t-line-strong); border-radius: 7px; font: 12px/1 var(--mono); }
.r-domain-name { color: var(--t-ink); }
.r-domain-zone { color: var(--t-ink-faint); margin-right: auto; }
.r-domain-ok { font: 650 10.5px/1 var(--font); color: var(--t-ok); }
.r-proxy { display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin-top: 12px; }
.r-node { display: inline-grid; place-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--t-line-strong); border-radius: 6px; font-weight: 650; font-size: 11px; background: var(--t-panel-2); }
.r-node-proxy { border-color: var(--accent); }
.r-links { width: 100%; height: 60px; fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.r-links path { vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.r-backends { display: grid; gap: 8px; }
.r-ports { margin-top: 10px !important; font-size: 10.5px; color: var(--t-ink-faint); }

/* Safety net */
.r-schedule { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--t-line-strong); border-radius: 7px; font-weight: 600; }
.r-clock { font: 700 15px/1 var(--display); letter-spacing: .02em; color: var(--t-ink); }
.r-schedule > span:nth-child(2) { flex: 1; }
.r-fired { font-size: 10.5px; color: var(--t-ink-faint); }
.r-backup-list { margin-top: 8px !important; display: grid; }
.r-backup-list li { display: grid; grid-template-columns: 1fr auto 44px; gap: 10px; padding: 5px 2px; border-top: 1px solid var(--t-line); font-size: 11px; }
.r-backup-list li:first-child { border-top: 0; }
.r-backup-list .is-new { color: var(--t-ink); font-weight: 650; }
.r-where { color: var(--t-ink-faint); text-align: right; }
.r-db { margin-top: 6px !important; font-size: 10.5px; color: var(--t-ink-faint); }

/* Your plan */
.r-split { display: flex; gap: 3px; height: 44px; }
.r-split span { flex: 0 0 calc(var(--w) * 1% - 2px); display: flex; flex-direction: column; justify-content: center; padding: 0 9px; background: color-mix(in srgb, var(--accent) 22%, var(--t-panel-2)); border-top: 2px solid var(--accent); font-weight: 650; font-size: 11px; overflow: hidden; white-space: nowrap; }
.r-subusers { margin-top: 10px !important; }
.r-subusers li { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-weight: 600; }
.r-subusers small { margin: 0 0 0 auto !important; }
.r-transfer { margin-top: 6px !important; font-size: 10.5px; color: var(--t-ink-faint); }

/* The programme: seven numbered segments, the current one amber with its constellation joined. */
.t-programme { grid-area: prog; position: relative; z-index: 2; }
.t-programme ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--t-line-strong); }
.t-programme a {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 8px;
  padding: 14px 10px 10px; color: var(--t-ink-muted); text-decoration: none; border-radius: 0;
  transition: color .2s;
}
.t-programme a:hover { color: var(--t-ink); }
.t-con { grid-column: 1 / -1; width: 40px; height: 24px; overflow: visible; }
.t-con-star { fill: var(--t-star); transition: fill .3s; }
.t-con-line { fill: none; stroke: var(--t-amber); stroke-width: .9; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s cubic-bezier(.16, 1, .3, 1); }
.t-programme a:hover .t-con-star { fill: var(--t-ink-muted); }
.t-prog-num { font: 700 11px/1.5 var(--display); color: var(--t-ink-faint); }
.t-prog-name { font: 700 14px/1.5 var(--display); letter-spacing: -.005em; }
.t-programme a::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; transition: background-color .2s; }
.t-programme [aria-selected='true'] { color: var(--t-ink); }
.t-programme [aria-selected='true']::before { background: var(--t-amber); }
.t-programme [aria-selected='true'] .t-prog-num { color: var(--t-amber); }
.t-programme [aria-selected='true'] .t-con-star { fill: var(--t-amber); }
.t-programme [aria-selected='true'] .t-con-line { stroke-dashoffset: 0; }
.t-prog-next { position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.t-programme .is-next .t-prog-next { animation: t-count var(--t-advance) linear forwards; }
@keyframes t-count { to { transform: scaleX(1); } }

/* Replica motion: only on the active slide; each starts from its first keyframe. */
.is-active .r-log li { animation: r-line .5s ease-out backwards; animation-delay: calc(var(--i) * 520ms + 150ms); }
@keyframes r-line { from { opacity: .2; } }
@keyframes r-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.is-active .r-prompt { animation: r-in .3s ease-out 2.9s backwards; }
.is-active .r-caret { animation: r-blink 1s steps(1) 3.2s 6; }
@keyframes r-blink { 50% { opacity: 0; } }
.is-active .r-meter::after { animation: r-needle 1.2s cubic-bezier(.16, 1, .3, 1) backwards; }
.is-active .r-usage div:nth-child(2) .r-meter::after { animation-delay: .15s; }
.is-active .r-usage div:nth-child(3) .r-meter::after { animation-delay: .3s; }
@keyframes r-needle { from { transform: scaleX(0); } }
@keyframes r-in { from { opacity: 0; transform: translateY(4px); } }

.is-active .r-pack-list li { animation: r-slide .5s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: calc(var(--i) * 110ms); }
@keyframes r-slide { from { opacity: 0; transform: translateX(14px); } }
.is-active .r-pack-bar { animation: r-fill 3s ease-in-out .7s backwards; }
@keyframes r-fill { 0% { opacity: 1; transform: scaleX(0); } 88% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1); } }
.is-active .r-pack-done { animation: r-late 3.1s .7s backwards; }
@keyframes r-late { 0%, 92% { opacity: 0; } 100% { opacity: 1; } }

.is-active .r-player-list li { animation: r-in .4s ease-out backwards; animation-delay: calc(var(--i) * 90ms); }
.is-active .is-opped { animation: r-in .4s ease-out 90ms backwards, r-flash 1.2s ease-out 1.5s backwards; }
@keyframes r-flash { 0% { background: color-mix(in srgb, var(--accent) 20%, transparent); } 100% { background: transparent; } }
.is-active .r-op { animation: r-pop .45s cubic-bezier(.16, 1, .3, 1) 1.5s backwards; }
@keyframes r-pop { from { opacity: 0; transform: scale(.6); } }
.is-active .r-history { animation: r-in .4s ease-out 2s backwards; }

.is-active .r-swap s { animation: r-out-late 1.8s backwards; }
.is-active .r-swap ins { animation: r-late 1.8s backwards; }
@keyframes r-out-late { 0%, 92% { opacity: 1; } 100% { opacity: 0; } }
.is-active .r-files-foot span:first-child { animation: r-key .5s ease-out 2.2s backwards; }
@keyframes r-key { from { background: var(--accent-fill); color: #fff; } }
.is-active .r-saved { animation: r-late 2.4s backwards; }

.is-active .r-domain-name { animation: r-type .9s steps(14, end) .2s backwards; }
.is-active .r-domain-ok { animation: r-pop .45s cubic-bezier(.16, 1, .3, 1) 1.2s backwards; }
.is-active .r-links path { animation: t-march .6s linear 8; }
.is-active .r-backends .r-node { animation: r-in .4s ease-out backwards; }
.is-active .r-backends .r-node:nth-child(2) { animation-delay: .2s; }

.is-active .r-fired { animation: r-blink .8s steps(1) .4s 3; }
.is-active .r-backup-list .is-new { animation: r-drop .55s cubic-bezier(.16, 1, .3, 1) 2.4s backwards; }
@keyframes r-drop { from { opacity: 0; transform: translateY(-8px); } }

.is-active .r-split span:nth-child(1) { animation: r-split-a 1.6s cubic-bezier(.65, 0, .35, 1) .3s backwards; }
.is-active .r-split span:nth-child(2), .is-active .r-split span:nth-child(3) { animation: r-split-b 1.6s cubic-bezier(.65, 0, .35, 1) .3s backwards; }
@keyframes r-split-a { from { flex-basis: 100%; } }
@keyframes r-split-b { from { flex-basis: 0%; padding: 0; } }
.is-active .r-subusers li { animation: r-in .4s ease-out backwards 1.8s; }
.is-active .r-subusers li:nth-child(2) { animation-delay: 2s; }

/* Without the script: no programme, every preview in a grid under the title card. */
html:not(.js) .t-programme { display: none; }
html:not(.js) .t-show { grid-template-areas: 'title stage' 'slides slides'; }
html:not(.js) .t-slides { position: static; width: auto; grid-area: slides; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin-top: 40px; }
html:not(.js) .t-stage { display: contents; }
html:not(.js) .t-globe { grid-area: stage; justify-self: center; align-self: center; }
html:not(.js) .t-chart, html:not(.js) .t-pointer { display: none; }

@media (max-width: 1080px) {
  .t-top { padding: 14px 16px 0; }
  .t-show { padding: 0 16px 32px; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: none; min-height: 0; }
  .t-title { grid-area: auto; order: 1; max-width: 640px; padding: 28px 0 8px; }
  .t-stage { display: contents; --g: min(88vw, 460px); }
  .t-chart, .t-pointer { display: none; }
  .t-globe { order: 2; justify-self: center; margin: 12px 0 8px; }
  .t-programme { grid-area: auto; order: 3; margin: 0 -16px; }
  .t-programme ol { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 16px; }
  .t-programme ol::-webkit-scrollbar { display: none; }
  .t-programme li { flex: 0 0 auto; scroll-snap-align: start; }
  .t-programme a { min-width: 116px; }
  .t-slides { order: 4; position: relative; right: auto; bottom: auto; width: 100%; max-width: 560px; justify-self: center; margin-top: 18px; }
  html:not(.js) .t-slides { max-width: none; }
  .t-site-label { font-size: 10px; }
}
@media (max-width: 480px) {
  .t-pitch { font-size: 15px; }
  .t-actions .t-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .t-body *, .t-body *::before, .t-body *::after { animation: none !important; }
  .js .t-slide, .js .t-slide.is-active, .t-globe canvas, .t-globe-disc, .t-con-line { transition: none !important; }
}
