/* Parabolica Hub — Tokens (/portal/tokens/). Loaded by that page and by the two teams pages,
   which build on it (see hub-teams.css); every rule lives under .hub-tk so nothing here can reach
   any other page.

   Concept: the paddock pass, on paper. A light page drawn with circuit contour lines; the balance
   on a glass credential floating over Parabolica's own film; giant type running in bands; a dark
   room where a sentence lights up between photographs; a milled coin turning where the catalogue
   will be; a timing tower for the table of values. Light and dark alternate on purpose.

   Motion is opt-in: content is visible by default. The entrance only applies under
   `.hub-anim .hub-tk.is-fresh` (first paint, motion allowed, tab visible); scroll-tied effects
   only under `.is-live` (set by the script). `.is-off` / `.is-asleep` pause whatever runs on its
   own while it is off screen or the tab is hidden. */

.hub-tk {
  --tk-paper: #F2F4F7;
  --tk-ink: #0E1116;
  --tk-ink-2: #4A5363;
  --tk-ink-3: #6B7585;
  --tk-line: rgba(14, 17, 22, 0.1);
  --tk-line-2: rgba(14, 17, 22, 0.2);
  --tk-fill: rgba(14, 17, 22, 0.05);
  --tk-cobalt: #2350E6;
  --tk-cobalt-2: #3D66F0;
  --tk-cobalt-3: #A7B8F6;
  --tk-amber: #F2B544;
  --tk-out: cubic-bezier(0.16, 1, 0.3, 1);
  --tk-glide: cubic-bezier(0.32, 0.72, 0, 1);
  position: relative; isolation: isolate; overflow: clip;
  background: var(--tk-paper); color: var(--tk-ink-2);
}
/* The dark rooms carry their own inks. */
.hub-tk [data-dark] { --tk-ink: #F4F6F9; --tk-ink-2: #C5CBD5; --tk-ink-3: #8C95A4; --tk-line: rgba(255, 255, 255, 0.1); --tk-line-2: rgba(255, 255, 255, 0.2); --tk-fill: rgba(255, 255, 255, 0.05); --tk-cobalt: #3D66F0; --tk-cobalt-2: #6F8DF5; color: var(--tk-ink-2); }
.hub-tk ::selection { background: var(--tk-cobalt); color: #fff; }
.hub-tk :focus-visible { outline: 2px solid var(--tk-cobalt); outline-offset: 3px; border-radius: 6px; }
.hub-tk [data-dark] :focus-visible { outline-color: var(--tk-cobalt-3); }
.hub-tk h1, .hub-tk h2, .hub-tk h3 { color: var(--tk-ink); margin: 0; text-wrap: balance; }
.hub-tk p { margin: 0; text-wrap: pretty; }
.hub-tk h2 { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 114%; font-size: clamp(2.1rem, 6.4vw, 4rem); line-height: 0.98; letter-spacing: -0.025em; }
.hub-tk h3 { font-family: var(--cond); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
/* A heading in masked lines (the slot is a little larger than the line so italics are not cut). */
.hub-tk-ln { display: block; overflow: hidden; padding: 0.06em 0.16em 0.1em 0; margin: -0.06em -0.16em -0.1em 0; }
.hub-tk-ln > span { display: block; }
.hub-tk-progress { position: fixed; inset: 0 0 auto 0; z-index: 120; height: 3px; background: var(--tk-cobalt); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* Contour lines: the pattern of the page. */
.hub-tk-contours { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hub-tk-contours path { stroke: var(--tk-line-2); stroke-width: 1.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0.6; }
.hub-anim .hub-tk .hub-tk-contours { animation: hub-tk-drift 34s ease-in-out infinite alternate; }
@keyframes hub-tk-drift { from { transform: translate3d(-1.5%, 0, 0) scale(1.04); } to { transform: translate3d(1.5%, -1.2%, 0) scale(1.04); } }
.is-off > .hub-tk-contours, .hub-tk.is-asleep .hub-tk-contours { animation-play-state: paused !important; }

/* ─── Stage (light) ───────────────────────────────────────────────────── */
.hub-tk-stage { position: relative; padding: clamp(1.6rem, 5vw, 3.6rem) 0 clamp(3.5rem, 9vw, 7rem); }
.hub-tk-stage.is-solo { min-height: 62vh; display: grid; align-items: center; }
.hub-tk-stage-in { display: grid; gap: clamp(2.2rem, 6vw, 3rem); align-items: center; }
.hub-tk-lead h1 { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 116%; font-size: clamp(2.6rem, 10.6vw, 5.6rem); line-height: 0.95; letter-spacing: -0.03em; }
.hub-tk-lead h1 em { display: block; font-style: italic; color: var(--tk-cobalt); }
.hub-tk-sub { max-width: 33rem; margin-top: 1.5rem !important; font-size: clamp(1rem, 2.6vw, 1.14rem); line-height: 1.6; }
.hub-tk-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* Buttons: a pill with its arrow in its own seat, which slides on hover and sinks on press. */
.hub-tk-btn { display: inline-flex; align-items: center; gap: 0.9rem; min-height: 52px; padding: 0.4rem 0.45rem 0.4rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--tk-cobalt); color: #fff; font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 14px 28px -16px rgba(35, 80, 230, 0.8);
  transition: transform 260ms var(--tk-out), background-color 220ms var(--tk-out), border-color 220ms var(--tk-out), box-shadow 260ms var(--tk-out); }
.hub-tk-btn:hover { background: #1A3FC0; transform: translateY(-2px); box-shadow: 0 20px 34px -16px rgba(35, 80, 230, 0.9); }
.hub-tk-btn:active { transform: scale(0.97); }
.hub-tk-btn.is-quiet { background: transparent; border-color: var(--tk-line-2); color: var(--tk-ink); box-shadow: none; }
.hub-tk-btn.is-quiet:hover { background: var(--tk-fill); border-color: var(--tk-ink); }
.hub-tk-go { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: transform 360ms var(--tk-glide), background-color 220ms var(--tk-out), color 220ms var(--tk-out); }
.hub-tk-go svg { width: 16px; height: 16px; }
.hub-tk-btn.is-quiet .hub-tk-go { background: var(--tk-ink); color: var(--tk-paper); }
.hub-tk [data-dark] .hub-tk-btn.is-quiet .hub-tk-go { background: #fff; color: #0E1116; }
.hub-tk-btn:hover .hub-tk-go { transform: translateX(4px) rotate(-45deg); }
.hub-tk-link { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0; border: 0; background: none; cursor: pointer; color: var(--tk-ink); font: 600 0.92rem/1.2 var(--sans); text-decoration: none; }
.hub-tk-link .hub-tk-go { width: 30px; height: 30px; background: var(--tk-fill); color: var(--tk-ink); }
.hub-tk-link .hub-tk-go svg { width: 14px; height: 14px; }
.hub-tk-link:hover .hub-tk-go { transform: translateX(3px); background: var(--tk-cobalt); color: #fff; }
.hub-tk-link:active .hub-tk-go { transform: translateX(3px) scale(0.92); }

/* The scene: Parabolica's film in a frame, and the pass floating over its corner. */
.hub-tk-scene { position: relative; width: 100%; max-width: 34rem; justify-self: center; }
.hub-tk-film { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 28px; background: #0B0D11; box-shadow: 0 40px 70px -40px rgba(14, 17, 22, 0.55); }
.hub-tk-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hub-tk-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(11, 13, 17, 0.1), rgba(11, 13, 17, 0.55)), radial-gradient(90% 70% at 20% 100%, rgba(35, 80, 230, 0.45), transparent 70%); }

/* ─── The pass (always dark glass: it sits on the film) ───────────────── */
.hub-tk-passwrap { position: relative; z-index: 1; perspective: 1200px; width: 94%; margin: -34% auto 0; }
.hub-tk-pass { --rx: 0deg; --ry: 0deg; --mx: 30%; --my: 0%;
  position: relative; padding: 7px; border-radius: 30px; transform-style: preserve-3d; color: #C5CBD5;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 40px 60px -34px rgba(14, 17, 22, 0.75), 0 18px 34px -22px rgba(35, 80, 230, 0.6);
  transition: transform 700ms var(--tk-glide); }
.hub-tk-pass.is-lit { transition-duration: 160ms; transition-timing-function: linear; }
.hub-tk-pass-in { position: relative; overflow: hidden; border-radius: 23px; padding: 1.15rem 1.25rem 1.1rem;
  background: linear-gradient(158deg, rgba(40, 48, 68, 0.62), rgba(14, 17, 24, 0.78) 55%, rgba(12, 16, 30, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hub-tk-pass-in { background: linear-gradient(158deg, #2A3142, #161A24 55%, #10131B); }
}
/* One band of light crosses the glass on arrival (the keyframes live with the entrance). */
.hub-tk-pass-in::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent); }
/* The light that follows the pointer. */
.hub-tk-sheen { position: absolute; inset: 7px; border-radius: 23px; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(42% 36% at var(--mx) var(--my), rgba(255, 255, 255, 0.34), rgba(167, 184, 246, 0.12) 46%, transparent 70%);
  transition: opacity 500ms var(--tk-out); }
.hub-tk-pass.is-lit .hub-tk-sheen { opacity: 1; transition-duration: 200ms; }
.hub-tk-slot { display: block; width: 3.6rem; height: 0.62rem; margin: 0 auto 1.1rem; border-radius: 999px; background: rgba(4, 6, 10, 0.72); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.16); }
.hub-tk-pass-head { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; }
.hub-tk-mark { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: #F4F6F9; }
.hub-tk-mark svg { width: 100%; height: 100%; }
.hub-tk-brand b { display: block; font: 700 0.98rem/1.1 var(--display); font-style: italic; font-stretch: 112%; color: #F4F6F9; letter-spacing: -0.005em; }
.hub-tk-brand span { display: block; margin-top: 0.15rem; font: 500 0.7rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #A7B8F6; }
.hub-tk-who { padding: 0.36rem 0.6rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); font: 600 0.68rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: #F4F6F9; }
.hub-tk-balance { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.6rem; margin-top: clamp(1.4rem, 5vw, 2.2rem); }
.hub-tk-fig { display: inline-flex; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(3.4rem, 17vw, 5.4rem); line-height: 1; letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; }
.hub-tk-balance.is-mute .hub-tk-fig { color: rgba(255, 255, 255, 0.28); letter-spacing: 0.02em; }
.hub-tk-d { display: inline-block; height: 1em; overflow: hidden; padding: 0 0.045em 0 0.02em; margin: 0 -0.02em; }
.hub-tk-d i { display: block; font-style: inherit; transform: translate3d(0, calc(var(--d) * -1em), 0); }
.hub-tk-d b { display: block; height: 1em; font-weight: inherit; }
.hub-tk-fig.is-rolling .hub-tk-d i { transition: transform 1500ms var(--tk-out); transition-delay: calc(var(--i) * 90ms + 320ms); }
.hub-tk-unit { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #8C95A4; }
.hub-tk-line { display: flex; align-items: center; gap: 0.5rem; min-height: 2.9em; margin-top: 0.7rem !important; font-size: 0.92rem; line-height: 1.45; color: #C5CBD5; }
.hub-tk-line.is-warn { color: #FFE2A3; }
.hub-tk-line.is-warn i { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 50%; background: var(--tk-amber); box-shadow: 0 0 0 4px rgba(242, 181, 68, 0.2); }
/* Instrument ruler: the scale of a gauge, not a progress bar. */
.hub-tk-ruler { height: 14px; margin: 1.1rem 0 1rem; opacity: 0.8;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1.5px, transparent 1.5px) left bottom / 8px 6px repeat-x,
    linear-gradient(90deg, #fff 1.5px, transparent 1.5px) left bottom / 40px 14px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent); mask-image: linear-gradient(90deg, #000 70%, transparent); }
.hub-tk-pass-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1rem; min-height: 30px; }
.hub-tk-pass .hub-tk-link { color: #F4F6F9; }
.hub-tk-pass .hub-tk-link .hub-tk-go { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hub-tk-pass .hub-tk-link:hover .hub-tk-go { background: #3D66F0; }
.hub-tk-life { font-size: 0.82rem; color: #8C95A4; }
.hub-tk-life b { margin-right: 0.4rem; font: 600 0.98rem/1 var(--mono); color: #F4F6F9; font-variant-numeric: tabular-nums; }
.hub-tk-fine { margin-top: 1rem !important; padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.72rem; line-height: 1.4; color: #8C95A4; }
/* Reading the balance: a scan line crosses the figure. */
.hub-tk-scan { position: relative; color: rgba(255, 255, 255, 0.12) !important; }
.hub-tk-scan::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(167, 184, 246, 0.55), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: hub-tk-scan 1.1s linear infinite; mix-blend-mode: screen; }
@keyframes hub-tk-scan { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.hub-tk-ghost { display: block; margin-bottom: 0.7rem; border-radius: 10px; background: linear-gradient(90deg, rgba(14, 17, 22, 0.06), rgba(14, 17, 22, 0.13), rgba(14, 17, 22, 0.06)); background-size: 220% 100%; animation: hub-tk-ghost 1.4s linear infinite; }
.hub-tk-pass .hub-tk-ghost { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)); }
@keyframes hub-tk-ghost { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hub-tk-fail { max-width: 34rem; display: grid; gap: 1rem; justify-items: start; }
.hub-tk-fail .hub-tk-mark { color: var(--tk-cobalt); }
.hub-tk-fail h1 { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 114%; font-size: clamp(2rem, 7vw, 3rem); line-height: 1; }

/* ─── Bands: giant type running against each other ────────────────────── */
.hub-tk-bands { position: relative; padding: clamp(0.6rem, 2vw, 1.4rem) 0 clamp(2rem, 6vw, 4rem); overflow: hidden; }
.hub-tk-band { --shift: 0px; transform: translate3d(var(--shift), 0, 0); will-change: transform; }
.hub-tk-band > div { display: flex; width: max-content; align-items: center; animation: hub-tk-run 38s linear infinite; }
.hub-tk-band.is-b > div { animation-direction: reverse; animation-duration: 46s; }
.hub-tk-band span { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; font-size: clamp(3.4rem, 13vw, 9.5rem); line-height: 1.02; letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap; color: var(--tk-ink); padding-right: 0.08em; }
.hub-tk-band.is-b span { color: transparent; -webkit-text-stroke: 1.5px var(--tk-cobalt); }
.hub-tk-band i { flex: none; width: 0.42em; height: 0.42em; margin: 0 0.5em; font-size: clamp(3.4rem, 13vw, 9.5rem); border-radius: 50%; border: 0.05em solid var(--tk-cobalt); background: radial-gradient(circle, var(--tk-cobalt) 0 38%, transparent 40%); }
@keyframes hub-tk-run { to { transform: translate3d(-25%, 0, 0); } }
.hub-tk-bands.is-off .hub-tk-band > div, .hub-tk.is-asleep .hub-tk-band > div { animation-play-state: paused; }

/* ─── The dark room: a sentence lighting up between photographs ───────── */
.hub-tk-say { position: relative; isolation: isolate; overflow: hidden; background: #0B0D11; padding: clamp(3.5rem, 10vw, 7rem) 1.2rem; display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; align-items: center; }
.hub-tk-say .hub-tk-contours path { stroke: rgba(255, 255, 255, 0.16); }
.hub-tk-say-text { grid-column: 1 / -1; grid-row: 2; max-width: 15ch; margin: 0.6rem auto !important; text-align: center; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 114%; font-size: clamp(2.2rem, 9vw, 5.4rem); line-height: 1; letter-spacing: -0.028em; color: #fff; }
.hub-tk-say-text span { display: inline-block; transition: color 500ms var(--tk-out), transform 600ms var(--tk-out); }
.hub-tk.is-live .hub-tk-say-text span { color: rgba(255, 255, 255, 0.2); transform: translate3d(0, 0.08em, 0); }
.hub-tk.is-live .hub-tk-say-text span.is-on { color: #fff; transform: none; }
.hub-tk.is-live .hub-tk-say-text span.is-on:nth-last-child(-n + 3) { color: #A7B8F6; }
.hub-tk-photo { --par: 0px; margin: 0; overflow: hidden; border-radius: 16px; background: #171B25; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9); transform: translate3d(0, var(--par), 0); will-change: transform; aspect-ratio: 16 / 10; }
.hub-tk-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--tk-out); }
.hub-tk-photo.is-1, .hub-tk-photo.is-2 { grid-row: 1; }
.hub-tk-photo.is-3, .hub-tk-photo.is-4 { grid-row: 3; }
@media (hover: hover) { .hub-tk-photo:hover img { transform: scale(1.06); } }

/* ─── Rewards (light): the coin, the tape, the three cases ────────────── */
.hub-tk-rewards { position: relative; isolation: isolate; padding: clamp(3.5rem, 9vw, 7rem) 0; overflow: hidden; }
.hub-tk-rw-top { display: grid; gap: 2.4rem; align-items: center; justify-items: start; }
.hub-tk-rw-coin { justify-self: center; }
.hub-tk-rw-copy p { max-width: 36rem; margin-top: 1.1rem; font-size: 1.04rem; line-height: 1.6; }
.hub-tk-rw-copy .hub-tk-honest { font-size: 0.94rem; color: var(--tk-ink-3); }
.hub-tk-honest strong { color: var(--tk-ink); font-weight: 600; }
/* The coin: nine milled layers between two faces, turning on its axis. */
.hub-tk-coin { --lx: 0deg; --ly: 0deg; --size: clamp(11rem, 44vw, 18rem); position: relative; width: var(--size); height: var(--size); perspective: 1100px; }
.hub-tk-coin-lean { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(calc(var(--ly) + 10deg)) rotateY(var(--lx)); transition: transform 600ms var(--tk-out); }
.hub-tk-coin-spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(-28deg); }
.hub-anim .hub-tk .hub-tk-coin-spin { animation: hub-tk-spin 11s linear infinite; }
@keyframes hub-tk-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.hub-tk-coin-spin > i { position: absolute; inset: 0; border-radius: 50%; background: #7C8596; transform: translateZ(calc(var(--z) * 2px - 8px)); }
.hub-tk-coin-spin > i:nth-child(odd) { background: #9AA3B3; }
.hub-tk-coin-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.hub-tk-coin-face.is-front { transform: translateZ(10px); color: #1A3FC0;
  background: conic-gradient(from 20deg, #EEF1F6, #AEB6C4, #F8FAFD, #8E97A8, #EEF1F6, #B8C0CD, #F8FAFD, #9BA4B4, #EEF1F6);
  box-shadow: inset 0 0 0 0.5rem rgba(14, 17, 22, 0.1), inset 0 0 0 0.62rem rgba(255, 255, 255, 0.55), inset 0 0 2.2rem rgba(14, 17, 22, 0.18); }
.hub-tk-coin-face.is-front svg { width: 58%; height: 58%; }
.hub-tk-coin-face.is-back { transform: rotateY(180deg) translateZ(10px); color: #fff;
  background: conic-gradient(from 200deg, #2350E6, #1A3FC0, #3D66F0, #16349C, #2350E6, #4A72F4, #1A3FC0, #2350E6);
  box-shadow: inset 0 0 0 0.5rem rgba(255, 255, 255, 0.14), inset 0 0 0 0.62rem rgba(14, 17, 22, 0.25), inset 0 0 2.2rem rgba(14, 17, 22, 0.3); }
.hub-tk-coin-face.is-back b { font: 800 calc(var(--size) * 0.32)/1 var(--display); font-style: italic; font-stretch: 116%; letter-spacing: -0.04em; }
.hub-tk-coin-shadow { position: absolute; left: 14%; right: 14%; bottom: -12%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 17, 22, 0.32), transparent); }
.hub-anim .hub-tk .hub-tk-coin-shadow { animation: hub-tk-shadow 5.5s ease-in-out infinite; }
@keyframes hub-tk-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.42); opacity: 0.6; } }
.hub-tk-rewards.is-off .hub-tk-coin-spin, .hub-tk-rewards.is-off .hub-tk-coin-shadow, .hub-tk.is-asleep .hub-tk-coin-spin, .hub-tk.is-asleep .hub-tk-coin-shadow { animation-play-state: paused; }
/* The tape across the section. */
.hub-tk-tape { margin: clamp(2.4rem, 6vw, 4rem) -4vw; padding: 0.85rem 0; background: var(--tk-cobalt); transform: rotate(-1.6deg); overflow: hidden; box-shadow: 0 18px 30px -22px rgba(35, 80, 230, 0.9); }
.hub-tk-tape > div { display: flex; width: max-content; animation: hub-tk-run 30s linear infinite; }
.hub-tk-tape span { padding-right: 2.4rem; font: 800 clamp(0.95rem, 2.6vw, 1.25rem)/1 var(--display); font-style: italic; font-stretch: 116%; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; color: #fff; }
.hub-tk-tape span::after { content: ''; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 2.4rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); vertical-align: 0.05em; }
.hub-tk-rewards.is-off .hub-tk-tape > div, .hub-tk.is-asleep .hub-tk-tape > div { animation-play-state: paused; }
.hub-tk-shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hub-tk-case { --lx: 0deg; --ly: 0deg; perspective: 1000px; }
.hub-tk-case-lean { height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--tk-line); box-shadow: 0 24px 40px -30px rgba(14, 17, 22, 0.4);
  transform: rotateX(var(--ly)) rotateY(var(--lx)); transition: transform 500ms var(--tk-out), box-shadow 400ms var(--tk-out); }
.hub-tk-case-pic { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0B0D11; }
.hub-tk-case-pic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--tk-out); }
.hub-tk-case-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 13, 17, 0.5)); }
.hub-tk-case-body { display: grid; grid-template-rows: auto 1fr auto; gap: 0.5rem; padding: 1.2rem 1.25rem 1.25rem; }
.hub-tk-case-body p { font-size: 0.95rem; line-height: 1.55; }
.hub-tk-seal { justify-self: start; margin-top: 0.7rem; padding: 0.4rem 0.62rem; border-radius: 6px; border: 1px dashed var(--tk-line-2); font: 500 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tk-ink-3); }
@media (hover: hover) {
  .hub-tk-case:hover .hub-tk-case-lean { box-shadow: 0 40px 60px -34px rgba(35, 80, 230, 0.55); }
  .hub-tk-case:hover .hub-tk-case-pic img { transform: scale(1.07); }
}

/* ─── How they are earned (steel): the timing tower ───────────────────── */
.hub-tk-earn { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0; background-color: #E6E9EF;
  background-image: linear-gradient(rgba(14, 17, 22, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 17, 22, 0.045) 1px, transparent 1px); background-size: 44px 44px; background-position: center top; }
.hub-tk-shead p { max-width: 40rem; margin-top: 1rem; font-size: 1.04rem; line-height: 1.6; }
.hub-tk-tower { display: grid; gap: 2.2rem; margin-top: clamp(1.8rem, 5vw, 3rem); }
.hub-tk-group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--tk-ink); }
.hub-tk-group-head span { font-size: 0.86rem; color: var(--tk-ink-3); }
.hub-tk-group ul { list-style: none; margin: 0; padding: 0; }
.hub-tk-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: end; padding: 0.9rem 0 0.8rem; border-bottom: 1px solid var(--tk-line); transition: transform 320ms var(--tk-glide); }
.hub-tk-row-main strong { display: block; font-weight: 600; color: var(--tk-ink); line-height: 1.25; }
.hub-tk-row-main span { display: block; margin-top: 0.15rem; font-size: 0.84rem; line-height: 1.4; color: var(--tk-ink-3); }
.hub-tk-row-n { font: 600 1.3rem/1 var(--mono); color: var(--tk-ink); font-variant-numeric: tabular-nums; transition: color 240ms var(--tk-out); }
.hub-tk-bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: rgba(14, 17, 22, 0.08); overflow: hidden; }
.hub-tk-bar i { display: block; height: 100%; width: 100%; border-radius: 3px; transform-origin: left center; transform: scaleX(var(--w)); background: linear-gradient(90deg, #2350E6, #3D66F0); }
@media (hover: hover) { .hub-tk-row:hover { transform: translateX(6px); } .hub-tk-row:hover .hub-tk-row-n { color: var(--tk-cobalt); } }
.hub-tk-perfect { margin-top: clamp(2rem, 5vw, 3rem); padding: 1.4rem 1.3rem; border-radius: 22px; background: #0E1116; color: #C5CBD5; box-shadow: 0 30px 50px -34px rgba(14, 17, 22, 0.8); }
.hub-tk .hub-tk-perfect h3 { color: #fff; }
.hub-tk-perfect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.hub-tk-perfect-head b { font: 600 clamp(1.7rem, 6vw, 2.4rem)/1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; }
.hub-tk-stack { display: flex; gap: 3px; height: 16px; margin: 1.1rem 0 1rem; }
.hub-tk-stack i { min-width: 6px; border-radius: 3px; transform-origin: left center; }
.hub-tk-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem 1.2rem; font-size: 0.86rem; }
.hub-tk-legend li { display: flex; align-items: center; gap: 0.4rem; }
.hub-tk-legend i { width: 0.6rem; height: 0.6rem; border-radius: 2px; }
.hub-tk-legend b { font: 600 0.86rem/1 var(--mono); color: #fff; }
.hub-tk-stack [data-k="start"], .hub-tk-legend [data-k="start"] i { background: #5F6B80; }
.hub-tk-stack [data-k="finish"], .hub-tk-legend [data-k="finish"] i { background: #8C95A4; }
.hub-tk-stack [data-k="p1"], .hub-tk-legend [data-k="p1"] i { background: #3D66F0; }
.hub-tk-stack [data-k="pole"], .hub-tk-legend [data-k="pole"] i { background: #A7B8F6; }
.hub-tk-stack [data-k="fastest_lap"], .hub-tk-legend [data-k="fastest_lap"] i { background: #E4E8EF; }

/* ─── Where, and the rules (dark, running into the footer) ────────────── */
.hub-tk-where { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0; background: #0B0D11; background-image: radial-gradient(80% 60% at 0% 0%, rgba(35, 80, 230, 0.22), transparent 70%), repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px); }
.hub-tk-where-in { display: grid; gap: 2.5rem; }
.hub-tk-leagues { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.hub-tk-league { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.9rem; align-items: center; padding: 0.55rem 0.7rem 0.55rem 0.55rem; border-radius: 16px; border: 1px solid var(--tk-line); background: rgba(255, 255, 255, 0.03); text-decoration: none; color: var(--tk-ink-2); transition: border-color 260ms var(--tk-out), background-color 260ms var(--tk-out), transform 320ms var(--tk-glide); }
.hub-tk-league:hover { border-color: var(--tk-line-2); background: rgba(255, 255, 255, 0.07); transform: translateX(4px); }
.hub-tk-league:hover .hub-tk-go { background: var(--tk-cobalt); }
.hub-tk-league .hub-tk-go { width: 34px; height: 34px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.hub-tk-league-logo { width: 56px; height: 56px; display: grid; place-items: center; padding: 8px; border-radius: 11px; background: #05070A; border: 1px solid var(--tk-line); color: var(--tk-ink-3); }
.hub-tk-league-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hub-tk-league-name b { display: block; font-family: var(--cond); font-weight: 600; font-size: 1.15rem; color: var(--tk-ink); line-height: 1.2; }
.hub-tk-league-name span { display: block; font-size: 0.82rem; color: var(--tk-cobalt-3); }
.hub-tk-void { margin-top: 1.6rem; padding: 1.3rem 1.25rem; border-radius: 20px; border: 1px dashed var(--tk-line-2); display: grid; gap: 1.1rem; justify-items: start; }
.hub-tk-void p { max-width: 38rem; line-height: 1.6; }
.hub-tk-rules { align-self: start; padding-top: 0.2rem; }
.hub-tk-rules ol { list-style: none; counter-reset: tk; margin: 1rem 0 1.4rem; padding: 0; display: grid; }
.hub-tk-rules li { counter-increment: tk; display: grid; grid-template-columns: 2rem 1fr; gap: 0.4rem; padding: 0.75rem 0; border-top: 1px solid var(--tk-line); font-size: 0.94rem; line-height: 1.55; }
.hub-tk-rules li::before { content: counter(tk); font: 500 0.8rem/1.9 var(--mono); color: var(--tk-cobalt-3); }

/* ─── Layout: wider screens ───────────────────────────────────────────── */
@media (min-width: 640px) {
  .hub-tk-shelf { grid-template-columns: repeat(3, 1fr); }
  .hub-tk-rw-top { grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 5rem); }
  .hub-tk-passwrap { width: 78%; margin: -30% 0 0 -4%; }
}
@media (min-width: 900px) {
  .hub-tk-stage-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hub-tk-scene { justify-self: end; padding-left: 14%; max-width: 38rem; }
  .hub-tk-film { aspect-ratio: 5 / 6; }
  .hub-tk-passwrap { position: absolute; left: 0; bottom: -9%; width: 74%; margin: 0; }
  .hub-tk-pass-in { padding: 1.3rem 1.5rem 1.2rem; }
  .hub-tk-tower { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; align-items: start; }
  .hub-tk-where-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; }
  .hub-tk-case:nth-child(2) { margin-top: 1.8rem; }
  .hub-tk-case:nth-child(3) { margin-top: 3.6rem; }
  /* The room opens up: the sentence in the middle, photographs pinned around it. */
  .hub-tk-say { display: block; min-height: min(118vh, 64rem); padding: clamp(8rem, 18vh, 12rem) 2rem; }
  .hub-tk-say-text { position: relative; z-index: 1; max-width: 12ch; font-size: clamp(3rem, 5.4vw, 4.8rem); margin: clamp(4rem, 12vh, 8rem) auto !important; }
  .hub-tk-photo { position: absolute; }
  .hub-tk-photo.is-1 { top: 8%; left: 3%; width: 20%; }
  .hub-tk-photo.is-2 { top: 10%; right: 4%; width: 13%; aspect-ratio: 9 / 14; }
  .hub-tk-photo.is-3 { bottom: 8%; right: 9%; width: 21%; }
  .hub-tk-photo.is-4 { bottom: 11%; left: 8%; width: 17%; }
}
@media (max-width: 359px) {
  .hub-tk-pass-in { padding: 1rem 0.95rem; }
  .hub-tk-who { display: none; }
  .hub-tk-pass-head { grid-template-columns: auto 1fr; }
}

/* ─── Motion: the entrance (first paint only) and the scroll reveals ──── */
/* Under the site's opening curtain everything waits on its first frame. */
.hub-tk.is-held *, .hub-tk.is-held *::before, .hub-tk.is-held *::after { animation-play-state: paused !important; }
.hub-anim .hub-tk.is-fresh .hub-tk-lead h1 .hub-tk-ln > span { animation: hub-tk-line 1000ms var(--tk-out) both; animation-delay: calc(var(--i) * 110ms); }
.hub-anim .hub-tk.is-fresh .hub-tk-lead h1 em .hub-tk-ln > span { animation-delay: 260ms; }
.hub-anim .hub-tk.is-fresh .hub-tk-sub { animation: hub-tk-rise 900ms var(--tk-out) 380ms both; }
.hub-anim .hub-tk.is-fresh .hub-tk-actions { animation: hub-tk-rise 900ms var(--tk-out) 480ms both; }
.hub-anim .hub-tk.is-fresh .hub-tk-film { animation: hub-tk-open 1300ms var(--tk-glide) 120ms both; }
.hub-anim .hub-tk.is-fresh .hub-tk-film video { animation: hub-tk-zoom 1800ms var(--tk-out) 120ms both; }
.hub-anim .hub-tk.is-fresh .hub-tk-passwrap { animation: hub-tk-pass 1100ms var(--tk-glide) 520ms both; }
.hub-anim .hub-tk.is-fresh .hub-tk-ruler { animation: hub-tk-wipe 900ms var(--tk-out) 1000ms both; }
.hub-anim .hub-tk.is-fresh .hub-tk-pass-in::after { animation: hub-tk-flash 1400ms var(--tk-out) 940ms both; }
.hub-anim .hub-tk.is-fresh .hub-tk-stage .hub-tk-contours path { animation: hub-tk-draw 2200ms var(--tk-out) both; animation-delay: calc(var(--i) * 140ms + 100ms); }
.hub-anim .hub-tk.is-fresh .hub-tk-bands { animation: hub-tk-rise 1000ms var(--tk-out) 700ms both; }
@keyframes hub-tk-line { from { transform: translate3d(0, 112%, 0) rotate(3deg); } }
@keyframes hub-tk-rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes hub-tk-open { from { clip-path: inset(18% 18% 18% 18% round 28px); opacity: 0; } to { clip-path: inset(0 0 0 0 round 28px); opacity: 1; } }
@keyframes hub-tk-zoom { from { transform: scale(1.25); } }
@keyframes hub-tk-pass { from { opacity: 0; transform: translate3d(0, 46px, 0) rotateX(18deg) scale(0.94); } }
@keyframes hub-tk-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes hub-tk-flash { from { opacity: 1; transform: translate3d(-130%, 0, 0) skewX(-18deg); } to { opacity: 1; transform: translate3d(330%, 0, 0) skewX(-18deg); } }
@keyframes hub-tk-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.hub-anim .hub-tk.is-fresh [data-tk-in] { opacity: 0; transition: opacity 800ms var(--tk-out), transform 900ms var(--tk-out), clip-path 1100ms var(--tk-glide); transition-delay: calc(var(--i, 0) * 100ms); }
.hub-anim .hub-tk.is-fresh [data-tk-in]:not(.hub-tk-photo):not(.hub-tk-rw-coin) { transform: translate3d(0, 26px, 0); }
.hub-anim .hub-tk.is-fresh [data-tk-in].is-in { opacity: 1; }
.hub-anim .hub-tk.is-fresh [data-tk-in].is-in:not(.hub-tk-photo):not(.hub-tk-rw-coin) { transform: none; }
/* Photographs open like a shutter and settle from a closer crop. The shutter is on the picture,
   never on the frame being watched: Chrome reports a fully clipped element as not on screen, so a
   clipped frame would never be revealed (and a lazy picture inside it would never load). */
.hub-anim .hub-tk.is-fresh .hub-tk-photo { opacity: 1; }
.hub-anim .hub-tk.is-fresh .hub-tk-photo:not(.is-in) { background: transparent; box-shadow: none; }
.hub-anim .hub-tk.is-fresh .hub-tk-photo img { clip-path: inset(100% 0 0 0); transform: scale(1.3); transition: clip-path 1100ms var(--tk-glide), transform 1600ms var(--tk-out); transition-delay: calc(var(--i, 0) * 100ms); }
.hub-anim .hub-tk.is-fresh .hub-tk-photo.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.hub-anim .hub-tk.is-fresh .hub-tk-case .hub-tk-case-pic img { transform: scale(1.3); }
.hub-anim .hub-tk.is-fresh .hub-tk-case.is-in .hub-tk-case-pic img { transform: scale(1); transition-duration: 1600ms; }
/* Headings inside a revealed block rise line by line. */
.hub-anim .hub-tk.is-fresh [data-tk-in] .hub-tk-ln > span { transform: translate3d(0, 112%, 0); transition: transform 1000ms var(--tk-out); transition-delay: calc(var(--i) * 110ms + 120ms); }
.hub-anim .hub-tk.is-fresh [data-tk-in].is-in .hub-tk-ln > span { transform: none; }
/* The coin drops in. */
.hub-anim .hub-tk.is-fresh .hub-tk-rw-coin { transform: translate3d(0, -60px, 0) scale(0.7) rotate(-18deg); }
.hub-anim .hub-tk.is-fresh .hub-tk-rw-coin.is-in { transform: none; transition: opacity 500ms var(--tk-out), transform 1200ms var(--tk-out); }
/* Broadcast-style details inside a revealed block. */
.hub-anim .hub-tk.is-fresh [data-tk-in] .hub-tk-bar i { transform: scaleX(0); transition: transform 1100ms var(--tk-out); transition-delay: calc(var(--i, 0) * 80ms + 260ms); }
.hub-anim .hub-tk.is-fresh [data-tk-in].is-in .hub-tk-bar i { transform: scaleX(var(--w)); }
.hub-anim .hub-tk.is-fresh .hub-tk-perfect .hub-tk-stack i { transform: scaleX(0); transition: transform 700ms var(--tk-out); transition-delay: calc(var(--i) * 130ms + 200ms); }
.hub-anim .hub-tk.is-fresh .hub-tk-perfect.is-in .hub-tk-stack i { transform: none; }
.hub-anim .hub-tk.is-fresh .hub-tk-rules li { opacity: 0; transform: translate3d(14px, 0, 0); transition: opacity 600ms var(--tk-out), transform 700ms var(--tk-out); }
.hub-anim .hub-tk.is-fresh .hub-tk-rules.is-in li { opacity: 1; transform: none; }
.hub-anim .hub-tk.is-fresh .hub-tk-rules.is-in li:nth-child(2) { transition-delay: 90ms; }
.hub-anim .hub-tk.is-fresh .hub-tk-rules.is-in li:nth-child(3) { transition-delay: 180ms; }
.hub-anim .hub-tk.is-fresh .hub-tk-rules.is-in li:nth-child(4) { transition-delay: 270ms; }
.hub-anim .hub-tk.is-fresh .hub-tk-rules.is-in li:nth-child(5) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .hub-tk *, .hub-tk *::before, .hub-tk *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .hub-tk-pass, .hub-tk-coin-lean, .hub-tk-case-lean { transform: none !important; }
  .hub-tk-progress { display: none; }
}

/* The page under this one is paper too, so nothing flashes between the bar and the stage. */
body[data-hub-page="tokens"] { background: #F2F4F7; }
