/* Parabolica Hub — Teams (/portal/equipos/ and /portal/equipo/). Loaded by those two pages only,
   after hub-tokens.css: the root carries both .hub-tk and .hub-tm, so the paper, the contour lines,
   the buttons, the bands and the reveals come from there and every rule here lives under .hub-tm.

   Concept: the paddock. Photographs dealt on the table like prints, each team behind its own
   garage door, a dark room where the reel of pictures runs past a sentence, the roster laid out
   like a starting grid. Light and dark alternate on purpose.

   Motion is opt-in, as on the tokens page: the entrance only under `.hub-anim .hub-tk.is-fresh`,
   scroll-tied effects only under `.is-live`. */

.hub-tm { --tm-green: #12B76A; }
.hub-tm-kicker { display: block; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--tk-ink-3); }

/* Small tags: simulators, country, state. */
.hub-tm-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.hub-tm-chips > span:not(.hub-tm-status) { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 26px; padding: 0 0.6rem; border-radius: 999px; border: 1px solid var(--tk-line-2); font: 500 0.74rem/1 var(--sans); color: var(--tk-ink-2); white-space: nowrap; }
.hub-tm-chips.is-top { margin-bottom: 1.2rem; }
.hub-tm-chips.is-top > span { min-height: 30px; }
.hub-tm-chips.is-top > span:not(.hub-tm-status) { background: rgba(255, 255, 255, 0.6); }
.hub-tm .hub-tm-status { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 26px; padding: 0 0.65rem; border-radius: 999px; font: 600 0.68rem/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; background: #0E1116; border: 1px solid #0E1116; color: #fff; }
.hub-tm-status i { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 50%; background: #8C95A4; }
.hub-tm-status.is-open i { background: var(--tm-green); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); }
.hub-anim .hub-tm .hub-tm-status.is-open i { animation: hub-tm-pulse 2.4s var(--tk-out) infinite; }
@keyframes hub-tm-pulse { 0% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(18, 183, 106, 0); } }
.hub-tm.is-asleep .hub-tm-status i { animation-play-state: paused; }

/* ─── Directory stage: prints dealt on the table, a glass plate over them ─ */
.hub-tm-fan { --px: 0; --py: 0; --sy: 0; position: relative; width: 100%; max-width: 34rem; aspect-ratio: 1 / 0.94; justify-self: center; }
.hub-tm-fan-p { position: absolute; margin: 0; overflow: hidden; border-radius: 16px; border: 5px solid #fff; background: #171B25; box-shadow: 0 30px 50px -28px rgba(14, 17, 22, 0.6);
  transform: translate3d(calc(var(--px) * var(--z) * 1px), calc((var(--py) + var(--sy)) * var(--z) * 1px), 0) rotate(var(--r)); transition: transform 700ms var(--tk-out); }
.hub-tm-fan-p img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hub-tm-fan-p.is-1 { --r: -5deg; --z: 14; --fx: 24%; --fy: 30%; top: 0; left: 0; width: 66%; aspect-ratio: 16 / 10; }
.hub-tm-fan-p.is-2 { --r: 4deg; --z: 30; --fx: -60%; --fy: 14%; top: 8%; right: 0; width: 40%; aspect-ratio: 9 / 14; }
.hub-tm-fan-p.is-3 { --r: 2deg; --z: -20; --fx: 20%; --fy: -40%; bottom: 3%; left: 5%; width: 58%; aspect-ratio: 16 / 10; }
.hub-tm-plate { position: absolute; right: 0; bottom: 0; width: 72%; padding: 6px; border-radius: 26px; background: rgba(255, 255, 255, 0.3); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 30px 50px -30px rgba(14, 17, 22, 0.7), 0 16px 30px -22px rgba(35, 80, 230, 0.6);
  transform: translate3d(calc(var(--px) * -26px), calc((var(--py) + var(--sy)) * -26px), 0); transition: transform 700ms var(--tk-out); }
.hub-tm-plate-in { border-radius: 20px; padding: 1rem 1.1rem 1.05rem; color: #C5CBD5;
  background: linear-gradient(158deg, rgba(40, 48, 68, 0.66), rgba(14, 17, 24, 0.82) 55%, rgba(12, 16, 30, 0.9)); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hub-tm-plate-in { background: linear-gradient(158deg, #2A3142, #161A24 55%, #10131B); } }
.hub-tm-plate-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.hub-tm-plate-top b { font: 700 0.9rem/1.1 var(--display); font-style: italic; font-stretch: 112%; color: #F4F6F9; }
.hub-tm-plate-top span { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: #A7B8F6; }
.hub-tm-plate-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding-top: 0.8rem; }
.hub-tm-plate-nums b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 112%; font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hub-tm-plate-nums span { display: block; margin-top: 0.3rem; font-size: 0.7rem; line-height: 1.25; color: #8C95A4; }
.hub-tm .hub-tm-plate-open { padding-top: 0.8rem; font-size: 0.92rem; line-height: 1.45; color: #E4E8EF; }

/* ─── The directory (steel): tools, then one garage door per team ─────── */
.hub-tm-dir { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 7rem); background-color: #E6E9EF; scroll-margin-top: 4rem;
  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-tm-mine { margin-bottom: clamp(2rem, 5vw, 3rem); }
.hub-tm-mine > div { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.7rem; }
.hub-tm .hub-team-mine { border-radius: 16px; border-color: var(--tk-line); }
.hub-tm-dir-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; }
.hub-tm-dir-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1rem; }
.hub-tm-count { font: 500 0.78rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tk-ink-3); }
.hub-tm-search { display: flex; align-items: center; gap: 0.6rem; flex: 1 1 16rem; max-width: 26rem; min-height: 52px; padding: 0 1.1rem; border-radius: 999px; background: #fff; border: 1px solid var(--tk-line-2); color: var(--tk-ink-3); cursor: text; transition: border-color 220ms var(--tk-out), box-shadow 220ms var(--tk-out); }
.hub-tm-search svg { width: 18px; height: 18px; flex: none; }
.hub-tm-search input { flex: 1; min-width: 0; height: 50px; padding: 0; border: 0; background: none; outline: none; font: 500 1rem/1 var(--sans); color: var(--tk-ink); }
.hub-tm-search input::placeholder { color: var(--tk-ink-3); }
.hub-tm-search:focus-within { border-color: var(--tk-cobalt); box-shadow: 0 0 0 4px rgba(35, 80, 230, 0.16); }
.hub-tm .hub-tm-filters { margin: 1.2rem 0 0; }
.hub-tm .hub-fsel { border-color: var(--tk-line-2); color: var(--tk-ink); background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5363' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.hub-tm .hub-fsel:hover { border-color: var(--tk-ink); color: var(--tk-ink); }
.hub-tm .hub-fsel.is-set { background-color: var(--tk-cobalt); border-color: var(--tk-cobalt); color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.hub-tm .hub-filterbar .hub-chip { background: #fff; border-color: var(--tk-line-2); color: var(--tk-ink); }
.hub-tm .hub-filterbar .hub-chip.is-active { background: var(--tk-cobalt); border-color: var(--tk-cobalt); color: #fff; }
.hub-tm .hub-fclear { color: var(--tk-ink-2); }

.hub-tm-grid { list-style: none; margin: clamp(1.4rem, 4vw, 2.2rem) 0 0; padding: 0; display: grid; gap: 1rem; }
.hub-tm-card { --lx: 0deg; --ly: 0deg; display: block; height: 100%; perspective: 1000px; text-decoration: none; color: inherit; border-radius: 22px; }
.hub-tm-card-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), border-color 300ms var(--tk-out); }
/* The door: the team's colours are its logo; the tag stands behind it, drawn in outline. */
.hub-tm-door { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; background: #0E1116;
  background-image: radial-gradient(90% 90% at 0% 100%, rgba(35, 80, 230, 0.55), transparent 70%), repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px); }
.hub-tm-door-tag { position: absolute; z-index: -1; right: -0.06em; bottom: -0.2em; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; font-size: clamp(5.5rem, 26vw, 8rem); line-height: 1; letter-spacing: -0.04em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16); transition: transform 900ms var(--tk-out); }
/* A wide box under the status chip, not a square: most team logos are wordmarks. hub-teams.js crops
   the empty margin many logo files carry, so the drawn part is what fills this box. */
.hub-tm-door-logo { position: absolute; inset: 26% 13% 13%; display: grid; place-items: center; transition: transform 700ms var(--tk-out); }
.hub-tm-door-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hub-tm .hub-tm-door-logo .hub-team-mono { min-height: 0; height: auto; font-size: clamp(2.4rem, 9vw, 3.2rem); color: #fff; }
.hub-tm-door .hub-tm-status { position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(14, 17, 22, 0.7); border-color: rgba(255, 255, 255, 0.2); }
.hub-tm-card-body { display: grid; grid-template-rows: auto 1fr auto auto; gap: 0.6rem; padding: 1.2rem 1.25rem 1.1rem; }
.hub-tm-card-body h3 { font-size: 1.35rem; overflow-wrap: anywhere; }
.hub-tm-card-body h3 small { margin-left: 0.3rem; padding: 0.2rem 0.4rem; border-radius: 5px; background: var(--tk-fill); font: 600 0.68rem/1 var(--mono); letter-spacing: 0.06em; color: var(--tk-ink-3); vertical-align: 0.2em; }
.hub-tm-card-body p { font-size: 0.95rem; line-height: 1.55; }
.hub-tm-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.3rem; padding-top: 0.8rem; border-top: 1px solid var(--tk-line); font-size: 0.86rem; color: var(--tk-ink-3); }
.hub-tm-card-foot b { font: 600 1rem/1 var(--mono); color: var(--tk-ink); }
.hub-tm-card-foot .hub-tk-go { width: 34px; height: 34px; background: var(--tk-fill); color: var(--tk-ink); }
.hub-tm-card-foot .hub-tk-go svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .hub-tm-card:hover .hub-tm-card-lean { box-shadow: 0 40px 60px -34px rgba(35, 80, 230, 0.6); border-color: var(--tk-cobalt-3); }
  .hub-tm-card:hover .hub-tm-door-tag { transform: translate3d(-6%, 0, 0); }
  .hub-tm-card:hover .hub-tm-door-logo { transform: scale(1.08); }
  .hub-tm-card:hover .hub-tk-go { background: var(--tk-cobalt); color: #fff; transform: translateX(3px) rotate(-45deg); }
}
.hub-tm-card:active .hub-tm-card-lean { transform: scale(0.985); }

/* Nothing to show: the grid boxes are painted, nobody is on them yet. */
.hub-tm-empty { margin-top: clamp(1.4rem, 4vw, 2.2rem); padding: clamp(1.4rem, 5vw, 2.4rem); border-radius: 24px; border: 1px dashed var(--tk-line-2); background: rgba(255, 255, 255, 0.5); display: grid; gap: 1.6rem; align-items: center; }
.hub-tm-empty > div:last-child { display: grid; gap: 0.8rem; justify-items: start; }
.hub-tm-empty p { max-width: 34rem; line-height: 1.6; }
.hub-tm-empty h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 114%; font-size: clamp(1.6rem, 5.4vw, 2.2rem); line-height: 1; }
.hub-tm-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.4rem; width: 15rem; max-width: 100%; padding-bottom: 1.1rem; }
.hub-tm-slots i { height: 2.4rem; border: 2px solid var(--tk-ink); border-bottom: 0; border-radius: 4px 4px 0 0; opacity: calc(0.75 - var(--i) * 0.1); }
.hub-tm-slots i:nth-child(even) { transform: translate3d(0, 1.1rem, 0); }

/* ─── The dark room: the sentence, and the reel running past it ───────── */
.hub-tm-room { position: relative; isolation: isolate; overflow: hidden; background: #0B0D11; padding: clamp(4rem, 12vw, 8.5rem) 0 clamp(3rem, 9vw, 6.5rem); }
.hub-tm-room .hub-tk-contours path { stroke: rgba(255, 255, 255, 0.16); }
.hub-tm .hub-tm-say { margin: 0 auto; padding: 0 1.2rem; text-align: center; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 114%; font-size: clamp(1.4rem, 6.6vw, 5.2rem); line-height: 1.04; letter-spacing: -0.028em; color: #fff; }
.hub-tm-say b { display: block; font-weight: inherit; }
.hub-tm-say span { display: inline-block; transition: color 500ms var(--tk-out), transform 600ms var(--tk-out); }
.hub-tm-say span.is-end { color: #A7B8F6; }
.hub-tk.is-live .hub-tm-say span { color: rgba(255, 255, 255, 0.2); transform: translate3d(0, 0.08em, 0); }
.hub-tk.is-live .hub-tm-say span.is-on { color: #fff; transform: none; }
.hub-tk.is-live .hub-tm-say span.is-end.is-on { color: #A7B8F6; }
.hub-tm-reel { --reel: 0px; display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.4rem); width: max-content; margin-top: clamp(2.6rem, 7vw, 5rem); padding: 0 5vw; transform: translate3d(var(--reel), 0, 0); will-change: transform; }
.hub-tm-reel figure { flex: none; margin: 0; overflow: hidden; width: clamp(13.5rem, 30vw, 25rem); aspect-ratio: 16 / 10; border-radius: 16px; background: #171B25; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.9); }
.hub-tm-reel figure.is-tall { width: clamp(8.4rem, 16vw, 13rem); aspect-ratio: 9 / 14; }
.hub-tm-reel figure:nth-child(4n + 1) { margin-top: 2.4rem; }
.hub-tm-reel figure:nth-child(4n + 3) { margin-bottom: 2.4rem; }
.hub-tm-reel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--tk-out); }
@media (hover: hover) { .hub-tm-reel figure:hover img { transform: scale(1.06); } }

/* ─── Registering a team (paper): the pitch and three steps ───────────── */
.hub-tm-how { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0; }
.hub-tm-how-in { display: grid; gap: clamp(2.2rem, 6vw, 4rem); }
.hub-tm-how-copy { display: grid; gap: 1.2rem; justify-items: start; align-content: start; }
.hub-tm-how-copy p { max-width: 32rem; font-size: 1.04rem; line-height: 1.6; }
.hub-tm-steps { list-style: none; counter-reset: tm; margin: 0; padding: 0; display: grid; }
.hub-tm-steps li { counter-increment: tm; display: grid; grid-template-columns: clamp(3.4rem, 12vw, 5rem) 1fr; gap: 0.6rem 1rem; align-items: start; padding: 1.4rem 0; border-top: 2px solid var(--tk-ink); }
.hub-tm-steps li::before { content: counter(tm, decimal-leading-zero); font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 116%; font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 0.9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--tk-cobalt); }
.hub-tm-steps h3 { font-size: 1.3rem; }
.hub-tm-steps p { margin-top: 0.4rem; line-height: 1.6; max-width: 34rem; }

/* ─── One team: the stage ─────────────────────────────────────────────── */
.hub-tm-tstage { padding-bottom: clamp(2rem, 5vw, 3rem); overflow: hidden; }
.hub-tm-ghost { --par: 0px; position: absolute; z-index: -1; right: -0.04em; top: 6%; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 118%; font-size: clamp(9rem, 36vw, 27rem); line-height: 0.8; letter-spacing: -0.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px var(--tk-line-2); pointer-events: none; -webkit-user-select: none; user-select: none; transform: translate3d(0, var(--par), 0); will-change: transform; }
.hub-tm-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font: 500 0.76rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--tk-ink-3); }
.hub-tm-crumbs a { color: var(--tk-ink); text-decoration: none; border-bottom: 1px solid var(--tk-line-2); padding-bottom: 2px; transition: border-color 200ms var(--tk-out), color 200ms var(--tk-out); }
.hub-tm-crumbs a:hover { color: var(--tk-cobalt); border-color: var(--tk-cobalt); }
.hub-tm-crumbs i { font-style: normal; opacity: 0.5; }
.hub-tm-crumbs span { overflow-wrap: anywhere; }
.hub-tm-tgrid { display: grid; gap: 1.8rem; align-items: center; margin-top: clamp(1.4rem, 4vw, 2.4rem); }
.hub-tm-tstage .hub-tk-lead h1 { font-size: clamp(2.5rem, 10vw, 5.2rem); overflow-wrap: anywhere; }
.hub-tm .hub-tk-btn.is-done { border-color: var(--tm-green); }
.hub-tm .hub-tk-btn.is-done .hub-tk-go { background: var(--tm-green); color: #fff; }
.hub-tm .hub-tk-btn .hub-tk-go > svg { width: 16px; height: 16px; }
/* The crest: the logo on its own board, machined like the pass. */
.hub-tm-crest { --lx: 0deg; --ly: 0deg; order: -1; width: 9.5rem; perspective: 1100px; }
.hub-tm-crest-lean { padding: 6px; border-radius: 28px; background: rgba(14, 17, 22, 0.06); border: 1px solid var(--tk-line); box-shadow: 0 34px 54px -34px rgba(14, 17, 22, 0.7), 0 16px 30px -22px rgba(35, 80, 230, 0.55); transform: rotateX(var(--ly)) rotateY(var(--lx)); transition: transform 600ms var(--tk-out); }
.hub-tm-crest-in { position: relative; overflow: hidden; display: grid; justify-items: center; padding: 0.8rem 0.8rem 0.75rem; border-radius: 22px; color: #C5CBD5; background: #0E1116; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  background-image: radial-gradient(100% 80% at 0% 100%, rgba(35, 80, 230, 0.5), transparent 70%), repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px); }
.hub-tm-crest .hub-tk-slot { width: 2.6rem; height: 0.5rem; margin-bottom: 0.4rem; }
.hub-tm-crest-logo { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.hub-tm-crest-logo img { position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: contain; }
.hub-tm .hub-tm-crest-logo .hub-team-mono { min-height: 0; height: auto; font-size: clamp(2.4rem, 5vw, 4.6rem); color: #fff; }
.hub-tm-crest-meta { display: none; flex-wrap: wrap; justify-content: center; gap: 0.3rem 0.9rem; width: 100%; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font: 500 0.7rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #A7B8F6; }
.hub-tm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.4rem; margin-top: clamp(2.2rem, 6vw, 3.6rem); }
.hub-tm-stat { position: relative; padding: 0.9rem 0 1rem; }
.hub-tm-stat::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--tk-ink); transform-origin: left center; }
.hub-tm-stat b { display: block; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 114%; font-size: clamp(2.5rem, 9vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; color: var(--tk-ink); font-variant-numeric: tabular-nums; }
.hub-tm-stat:first-child b { color: var(--tk-cobalt); }
.hub-tm-stat span { display: block; margin-top: 0.35rem; font: 500 0.7rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tk-ink-3); }
.hub-tk-bands.is-one { padding-bottom: clamp(1.4rem, 4vw, 2.6rem); }

/* ─── One team: the roster as a starting grid, and the side cards ─────── */
.hub-tm-body { position: relative; padding: clamp(2.6rem, 7vw, 5rem) 0 clamp(3.5rem, 9vw, 7rem); 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-tm-cols { display: grid; gap: 2.4rem; }
.hub-tm-cols > * { min-width: 0; }
.hub-tm-rhead p { margin-top: 0.8rem; font-size: 0.94rem; color: var(--tk-ink-3); }
.hub-tm-roster { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.8rem; align-items: start; }
.hub-tm-seat { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center; padding: 0.9rem 1rem 0.85rem 0.9rem; border-radius: 20px; background: #fff; border: 1px solid var(--tk-line); box-shadow: 0 20px 34px -28px rgba(14, 17, 22, 0.4); text-decoration: none; color: var(--tk-ink-2);
  transition: transform 420ms var(--tk-glide), border-color 260ms var(--tk-out), box-shadow 360ms var(--tk-out); }
.hub-tm-seat-no { position: absolute; right: 0.5rem; top: 0.1rem; font-family: var(--display); font-style: italic; font-weight: 800; font-stretch: 116%; font-size: 3.2rem; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--tk-line-2); pointer-events: none; transition: -webkit-text-stroke-color 300ms var(--tk-out), transform 600ms var(--tk-out); }
.hub-tm-seat-face { position: relative; width: 58px; height: 58px; flex: none; overflow: hidden; display: grid; place-items: center; border-radius: 15px; background: #0E1116; color: #E4E8EF; font: 600 1.05rem/1 var(--cond); }
.hub-tm-seat-face img { width: 100%; height: 100%; object-fit: cover; }
.hub-tm-seat-who { position: relative; min-width: 0; }
.hub-tm-seat-who strong { display: block; font-weight: 600; line-height: 1.25; color: var(--tk-ink); overflow-wrap: anywhere; }
.hub-tm-seat-who strong small { margin-left: 0.3rem; font: 600 0.65rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tk-cobalt); }
.hub-tm-seat-who > span { display: block; margin-top: 0.15rem; font-size: 0.84rem; color: var(--tk-ink-3); }
.hub-tm-seat-nums { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; padding-top: 0.75rem; border-top: 1px solid var(--tk-line); font-size: 0.72rem; color: var(--tk-ink-3); }
.hub-tm-seat-nums b { display: block; font: 600 1.15rem/1.2 var(--mono); color: var(--tk-ink); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  a.hub-tm-seat:hover { transform: translate3d(0, -4px, 0); border-color: var(--tk-cobalt-3); box-shadow: 0 34px 50px -32px rgba(35, 80, 230, 0.6); }
  a.hub-tm-seat:hover .hub-tm-seat-no { -webkit-text-stroke-color: var(--tk-cobalt); transform: translate3d(-4px, 0, 0); }
}
a.hub-tm-seat:active { transform: scale(0.985); }
/* The boxes that keep the Hub's own forms and lists take the page's shape. */
.hub-tm .hub-box { border-radius: 22px; border-color: var(--tk-line); box-shadow: 0 24px 40px -30px rgba(14, 17, 22, 0.4); padding: 1.3rem; }
.hub-tm .hub-box > h3 { margin-bottom: 0.8rem; }
.hub-tm .hub-box .hub-note, .hub-tm .hub-prose { color: var(--tk-ink-2); }
.hub-tm .hub-team-looking { margin: 0 0 0.9rem; border-left: 0; border-radius: 12px; background: var(--tk-fill); color: var(--tk-ink); }
.hub-tm .hub-team-manage { margin-bottom: clamp(2rem, 5vw, 3rem); border-color: var(--tk-cobalt-3); }
.hub-tm .hub-tm-about { margin-top: 1.6rem; }
.hub-tm-side { display: grid; gap: 1rem; align-content: start; }
.hub-tm-side > .hub-box + .hub-box { margin-top: 0; }
.hub-tm .hub-team-join { scroll-margin-top: 5rem; border-color: var(--tk-cobalt-3); box-shadow: 0 30px 46px -30px rgba(35, 80, 230, 0.5); }

/* The way out: a dark strip that runs into the footer. */
.hub-tm-close { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 9vw, 6.5rem) 0; background: #0B0D11; background-image: radial-gradient(80% 70% at 0% 0%, rgba(35, 80, 230, 0.24), transparent 70%); }
.hub-tm-close .hub-tk-contours path { stroke: rgba(255, 255, 255, 0.14); }
.hub-tm-close-in { display: grid; gap: 1.6rem; justify-items: start; }
.hub-tm-close p { max-width: 34rem; font-size: 1.04rem; line-height: 1.6; }

/* ─── Layout: wider screens ───────────────────────────────────────────── */
@media (min-width: 640px) {
  .hub-tm-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-tm-empty { grid-template-columns: auto 1fr; gap: clamp(1.6rem, 5vw, 3.5rem); }
  .hub-tm-stats { grid-template-columns: repeat(4, 1fr); }
  .hub-tm-tgrid { grid-template-columns: minmax(0, 1fr) auto; gap: 2.4rem; }
  .hub-tm-crest { order: 0; width: clamp(11rem, 24vw, 17rem); }
  .hub-tm-crest-in { padding: 1.1rem 1.1rem 0.95rem; }
  .hub-tm-crest-meta { display: flex; }
  .hub-tm-roster { grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1rem; }
  /* Odd on the left, even half a box behind: the way a grid is painted. */
  .hub-tm-roster > li:nth-child(even) { margin-top: 1.6rem; margin-bottom: -1.6rem; }
  .hub-tm-roster { padding-bottom: 1.6rem; }
}
@media (min-width: 900px) {
  .hub-tm-fan { justify-self: end; }
  .hub-tm-how-in { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .hub-tm-how-copy { position: sticky; top: 6rem; }
  .hub-tm-close-in { grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
  .hub-tm-close-in > a { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 960px) {
  .hub-tm-grid { grid-template-columns: repeat(3, 1fr); }
  .hub-tm-cols { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
}
@media (max-width: 359px) { .hub-tm-plate { width: 84%; } }

/* ─── Motion: the entrance (first paint only) ─────────────────────────── */
.hub-anim .hub-tk.is-fresh .hub-tm-fan-p { animation: hub-tm-deal 1300ms var(--tk-glide) both; animation-delay: calc(var(--i) * 130ms + 180ms); }
.hub-anim .hub-tk.is-fresh .hub-tm-plate { animation: hub-tk-pass 1100ms var(--tk-glide) 640ms both; }
@keyframes hub-tm-deal { from { opacity: 0; transform: translate3d(var(--fx), var(--fy), 0) rotate(calc(var(--r) * -3)) scale(0.6); } }
.hub-anim .hub-tk.is-fresh .hub-tm-crumbs, .hub-anim .hub-tk.is-fresh .hub-tm-chips.is-top { animation: hub-tk-rise 800ms var(--tk-out) 60ms both; }
.hub-anim .hub-tk.is-fresh .hub-tm-crest { animation: hub-tk-pass 1200ms var(--tk-glide) 260ms both; }
.hub-anim .hub-tk.is-fresh .hub-tm-ghost { animation: hub-tm-ghost 1800ms var(--tk-out) 100ms both; }
@keyframes hub-tm-ghost { from { opacity: 0; transform: translate3d(12%, var(--par), 0); } }
/* The rule above each figure is drawn, then the figure counts. */
.hub-anim .hub-tk.is-fresh .hub-tm-stats .hub-tm-stat::before { transform: scaleX(0); transition: transform 1100ms var(--tk-glide); transition-delay: calc(var(--i) * 110ms + 100ms); }
.hub-anim .hub-tk.is-fresh .hub-tm-stats.is-in .hub-tm-stat::before { transform: none; }
/* Doors: the picture side settles from a closer crop as the card arrives. */
.hub-anim .hub-tk.is-fresh [data-tk-in] .hub-tm-door-logo { transform: scale(0.6); opacity: 0; transition: transform 1000ms var(--tk-out) 220ms, opacity 600ms var(--tk-out) 220ms; }
.hub-anim .hub-tk.is-fresh [data-tk-in].is-in .hub-tm-door-logo { transform: none; opacity: 1; }
.hub-anim .hub-tk.is-fresh [data-tk-in] .hub-tm-door-tag { transform: translate3d(30%, 0, 0); }
.hub-anim .hub-tk.is-fresh [data-tk-in].is-in .hub-tm-door-tag { transform: none; transition-duration: 1400ms; }
/* The reel opens like shutters as each frame comes into view. */
/* (The shutter is on the picture, not on the frame being watched: see hub-tokens.css.) */
.hub-anim .hub-tk.is-fresh .hub-tm-reel figure { opacity: 1; }
.hub-anim .hub-tk.is-fresh .hub-tm-reel figure:not(.is-in) { background: transparent; box-shadow: none; }
.hub-anim .hub-tk.is-fresh .hub-tm-reel figure 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-tm-reel figure.is-in img { clip-path: inset(0 0 0 0); transform: scale(1); }
.hub-anim .hub-tk.is-fresh .hub-tm-slots i { clip-path: inset(100% 0 0 0); transition: clip-path 700ms var(--tk-out); transition-delay: calc(var(--i) * 90ms + 200ms); }
.hub-anim .hub-tk.is-fresh .is-in .hub-tm-slots i { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .hub-tm-fan-p { transform: rotate(var(--r)) !important; }
  .hub-tm-plate, .hub-tm-card-lean, .hub-tm-crest-lean, .hub-tm-ghost, .hub-tm-reel { transform: none !important; }
  /* Without the scroll-driven slide the reel becomes a strip you can swipe. */
  .hub-tm-room { overflow-x: auto; }
}

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