/* Team (src/team.html, js/pg-team.js): live GMT dial, session board, line-up, and the six profiles in one panel.
   Session colours stay in the cyan family (green is kept for CTAs and rewards). */
body.pg-team { --s1: #d4f2ff; --s2: #8ed1fc; --s3: #00a8e8; --s4: #4f86ff; }
.pg-team .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.tm-hero .hero-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); }
.tm-hero .h1 { font-size: clamp(34px, 3.8vw, 54px); }
@media (max-width: 1080px) and (min-width: 901px) { .pg-team .tm-hero .h1 .ln > span { white-space: normal; } }
.tm-hero .lead { margin-top: 22px; max-width: 540px; }
.tm-cue { position: relative; display: block; width: 26px; height: 42px; margin-top: 40px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.tm-cue i { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: tmCue 1.8s ease-in-out infinite; }
@keyframes tmCue { 0% { opacity: 0; translate: 0 -2px; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

.tm-dialbox { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.tm-dial { position: relative; width: min(500px, 100%); aspect-ratio: 1; animation: tmFloat 7s ease-in-out infinite; }
.tm-dial::before { content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,168,232,.32), rgba(0,168,232,0)); filter: blur(20px); }
@keyframes tmFloat { 50% { translate: 0 -12px; } }
.tm-dial svg { width: 100%; height: 100%; overflow: visible; }
.tm-bezel { fill: rgba(8,22,70,.28); stroke: rgba(255,255,255,.14); stroke-width: 1; }
.tm-ticks line { stroke: rgba(255,255,255,.28); stroke-width: 1.4; stroke-linecap: round; }
.tm-ticks line.b { stroke: rgba(255,255,255,.7); stroke-width: 2.4; }
.tm-hours text { fill: rgba(255,255,255,.62); font: 500 14px Poppins, sans-serif; text-anchor: middle; dominant-baseline: central; }
.tm-tracks circle { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 10; }
.tm-arcs path { fill: none; stroke: var(--k); stroke-width: 10; stroke-linecap: round; opacity: .35; transition: opacity .6s; filter: drop-shadow(0 0 6px var(--k)); }
.tm-arcs path.open { opacity: 1; }
.tm-core-bg { stroke: rgba(255,255,255,.16); stroke-width: 1; }
.tm-hand line { stroke: var(--lcyan); stroke-width: 2; stroke-linecap: round; }
.tm-hand circle { fill: #fff; filter: drop-shadow(0 0 8px var(--cyan)); }
.tm-core { position: absolute; inset: 29%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.tm-time { font-size: clamp(36px, 4vw, 54px); font-weight: 500; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tm-time i { font-style: normal; animation: tmBlink 1s steps(1) infinite; }
@keyframes tmBlink { 50% { opacity: 0; } }
.tm-gmt { margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: .2em; color: var(--lcyan); }
.tm-duty { display: flex; justify-content: center; margin-top: 12px; min-height: 34px; }
.tm-duty img { display: none; width: 34px; height: 34px; margin: 0 -4px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: linear-gradient(160deg, #1d4f9a, #0a1a4a); box-shadow: 0 0 0 2px rgba(2,9,35,.9), 0 0 0 3px rgba(142,209,252,.5); }
.tm-duty img.on { display: block; }
.tm-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; color: var(--text); }
.tm-key li { display: flex; align-items: center; gap: 8px; }
.tm-key li::before { content: ""; width: 18px; height: 4px; border-radius: 4px; background: var(--k); box-shadow: 0 0 8px var(--k); }

/* ---------- session board ---------- */
.tb-pan .head.c { margin-bottom: 28px; }
.d .pan .tb { --cw: 190px; position: relative; padding: 22px 28px 28px; background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04)); }
.tb-axis { display: grid; grid-template-columns: var(--cw) minmax(0, 1fr); align-items: center; height: 34px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.tb-hrs { position: relative; height: 100%; }
.tb-hrs span { position: absolute; top: 50%; translate: -50% -50%; font-variant-numeric: tabular-nums; }
.tb-hrs span:nth-child(1) { left: 0; translate: 0 -50%; } .tb-hrs span:nth-child(2) { left: 16.667%; } .tb-hrs span:nth-child(3) { left: 33.333%; } .tb-hrs span:nth-child(4) { left: 50%; } .tb-hrs span:nth-child(5) { left: 66.667%; } .tb-hrs span:nth-child(6) { left: 83.333%; } .tb-hrs span:nth-child(7) { left: 100%; translate: -100% -50%; }
.tb-row { display: grid; grid-template-columns: var(--cw) minmax(0, 1fr); align-items: start; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); }
.tb-where b { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.tb-where b i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.28); }
.tb-row.open .tb-where b i { background: var(--lcyan); box-shadow: 0 0 10px var(--cyan); animation: tbPulse 2.4s ease-in-out infinite; }
@keyframes tbPulse { 50% { box-shadow: 0 0 0 6px rgba(0,168,232,.2), 0 0 12px var(--cyan); } }
.tb-where small { display: block; margin-top: 2px; padding-left: 18px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-lane { position: relative; min-height: 76px; background-image: linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 16.6667% 100%; }
.tb-bars { position: relative; height: 8px; margin-top: 8px; }
.tb-bar { position: absolute; top: 0; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--k), rgba(255,255,255,.9)); opacity: .5; transform-origin: left; box-shadow: 0 0 14px var(--k); }
.tb-row.open .tb-bar { opacity: 1; }
.tb-row:nth-of-type(2) { --k: var(--s1); } .tb-row:nth-of-type(3) { --k: var(--s2); } .tb-row:nth-of-type(4) { --k: var(--s3); } .tb-row:nth-of-type(5) { --k: var(--s4); }
.tb-people { position: absolute; top: 28px; left: 0; display: flex; gap: 10px; white-space: nowrap; }
.tb-who { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; text-align: left; background: rgba(4,14,48,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: box-shadow .3s, translate .35s var(--ease), background .3s; }
.tb-who:hover, .tb-who:focus-visible { translate: 0 -3px; background: rgba(4,14,48,.75); box-shadow: inset 0 0 0 1px rgba(142,209,252,.7), 0 10px 26px -10px rgba(0,168,232,.8); }
.tb-who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: linear-gradient(160deg, #1d4f9a, #0a1a4a); }
.tb-who b, .tb-who small { display: block; line-height: 1.25; }
.tb-who b { font-size: 14px; font-weight: 500; }
.tb-who small { font-size: 12px; color: var(--muted); }
.tb-now { position: absolute; top: 22px; bottom: 28px; left: calc(28px + var(--cw)); width: 0; pointer-events: none; }
.tb-now::before { content: ""; position: absolute; top: 30px; bottom: 0; left: -1px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--lcyan), rgba(142,209,252,.15)); box-shadow: 0 0 12px rgba(0,168,232,.8); transform-origin: top; transform: scaleY(var(--ny, 1)); }
.tb-chip { position: absolute; top: 0; left: 0; translate: -50% 0; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--navy); background: var(--lcyan); box-shadow: 0 0 16px rgba(0,168,232,.6); font-variant-numeric: tabular-nums; }

/* ---------- the desk ---------- */
.tm-cap { margin: 0 0 26px; text-align: center; }
#desk { padding-bottom: var(--pad); }

/* ---------- profile panel ---------- */
html.tm-open { overflow: hidden; }
.tm-panel { position: fixed; inset: 0; z-index: 150; overflow-y: auto; overscroll-behavior: contain; background: rgba(2,9,35,.5); -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3); }
.tm-panel[hidden] { display: none; }
.tm-x { position: fixed; top: 18px; right: 18px; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: background .3s, rotate .4s var(--ease); }
.tm-x:hover { background: rgba(255,255,255,.2); rotate: 90deg; }
.tm-x svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.tm-pin { padding: clamp(70px, 9vh, 110px) 0 80px; }

.tm-mhero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; column-gap: clamp(24px, 4vw, 60px); min-height: min(560px, 70vh); }
.tm-name { font-size: clamp(48px, 6.4vw, 92px); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
.tm-name .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.tm-name .ln > span { display: inline-block; }
.tm-name em { background: linear-gradient(90deg, var(--lcyan), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-role { margin-top: 20px; font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; letter-spacing: .08em; color: var(--lcyan); }
.tm-stage { position: relative; width: min(520px, 100%); aspect-ratio: 1; margin-left: auto; }
.tm-orbit { position: absolute; inset: 6%; }
.cv-halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,168,232,.45), rgba(0,168,232,0)); filter: blur(10px); animation: tmBreathe 5s ease-in-out infinite; }
@keyframes tmBreathe { 50% { scale: 1.12; opacity: .75; } }
.cv-ring { position: absolute; inset: var(--i); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(142,209,252, var(--a, .2)); }
.cv-dash { box-shadow: none; border: 1px dashed rgba(142,209,252,.26); }
.cv-spin { position: absolute; inset: var(--i); border-radius: 50%; animation: orbit var(--t) linear infinite; }
.cv-spin.rev { animation-direction: reverse; }
.cv-spin::before { content: ""; position: absolute; top: calc(var(--s) / -2); left: 50%; width: var(--s); height: var(--s); margin-left: calc(var(--s) / -2); border-radius: 50%; background: var(--d); box-shadow: 0 0 14px var(--d); }
.tm-face { position: absolute; left: 4%; bottom: 0; width: 92%; height: auto; animation: tmFloat 8s ease-in-out infinite; -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%); mask-image: linear-gradient(180deg, #000 74%, transparent 99%); filter: drop-shadow(0 30px 40px rgba(1,6,26,.5)); }

.tm-sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; overflow: hidden; }
.tm-fact { position: relative; padding: clamp(22px, 2.4vw, 32px); box-shadow: 1px 0 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1); }
.tm-fact::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(70% 90% at 50% 0%, rgba(0,168,232,.28), rgba(0,168,232,0)); transition: opacity .4s; }
.tm-fact:hover::before { opacity: 1; }
.tm-fact dt { font-size: 13px; font-weight: 500; color: var(--lcyan); }
.tm-fact .v { margin-top: 8px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; white-space: nowrap; }
.tm-own .v { background: linear-gradient(90deg, var(--lcyan), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tm-fact .n { margin-top: 6px; font-size: 14px; color: var(--muted); }
.tm-mini { position: relative; display: block; height: 46px; margin-top: 6px; }
.tm-mini .mt { position: absolute; left: 0; right: 0; top: 18px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); }
.tm-mini .mf { position: absolute; top: 18px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--lcyan), var(--cyan)); box-shadow: 0 0 10px rgba(0,168,232,.7); transform-origin: left; }
.tm-mini .mh { position: absolute; top: 0; font-size: 10.5px; color: var(--faint); translate: -50% 0; font-variant-numeric: tabular-nums; }
.tm-mini .mh:first-child { translate: 0 0; } .tm-mini .mh:nth-child(7) { translate: -100% 0; }
.tm-mini .me { position: absolute; top: 30px; font-size: 11.5px; font-weight: 500; color: #fff; translate: -50% 0; font-variant-numeric: tabular-nums; }
.tm-mini .mn { position: absolute; top: 12px; width: 2px; height: 18px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px #fff; transform-origin: bottom; }

.tm-tick { margin-top: clamp(50px, 6vw, 80px); }
.tm-thead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.tm-live { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ice); white-space: nowrap; }
.tm-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lcyan); box-shadow: 0 0 10px var(--cyan); animation: tbPulse 2.4s ease-in-out infinite; }
.tm-tape { margin: 0 calc(50% - 50vw); padding: 14px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); }
.tm-tape + .tm-tape { border-bottom: 1px solid rgba(255,255,255,.1); }
.tm-run { display: flex; width: max-content; animation: marq 38s linear infinite; }
.tm-tape.rev .tm-run { animation-duration: 46s; animation-direction: reverse; }
.tk { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 30px; font-size: clamp(16px, 1.4vw, 20px); white-space: nowrap; }
.tk b { font-weight: 600; letter-spacing: .02em; }
.tk span { color: var(--muted); font-variant-numeric: tabular-nums; }
.tk em { font-size: .8em; font-weight: 500; color: var(--lgreen); }
.tk.down em { color: #ff6b6b; }
.tm-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

.tm-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 18px; max-width: 980px; margin: clamp(60px, 7vw, 96px) auto 0; }
.tm-mc { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 200px; padding: 24px 26px; text-align: left; }
.tm-mc:nth-child(5):last-child { grid-column: 1 / -1; width: calc(50% - 9px); justify-self: center; }
.tm-mc img { position: absolute; right: -2%; bottom: 0; z-index: -1; height: 122%; width: auto; max-width: none; transition: translate .7s var(--ease), scale .7s var(--ease); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.tm-mc:hover img, .tm-mc:focus-visible img { translate: 0 -6px; scale: 1.02; }
.tm-mc b { position: relative; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.tm-mc small { position: relative; font-size: 13.5px; color: var(--lcyan); }
.tm-mc .go { position: absolute; top: 20px; right: 20px; }
.tm-mc:hover .go { background: rgba(0,168,232,.6); transform: translateX(4px); box-shadow: 0 0 18px rgba(0,168,232,.7); }
.tm-back { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .d .pan .tb { --cw: 150px; padding: 18px 20px 22px; }
  .tb-now { top: 18px; bottom: 22px; left: calc(20px + var(--cw)); }
  .tm-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tm-hero .hero-in { grid-template-columns: 1fr; row-gap: 40px; }
  .tm-dial { width: min(420px, 100%); }
  .tm-cue { display: none; }
  .tm-mhero { grid-template-columns: 1fr; min-height: 0; row-gap: 10px; }
  .tm-stage { margin: 0 auto; width: min(400px, 100%); order: -1; }
}
/* phones: each session stacks (city, then its lane with its own now mark, then the people) */
@media (max-width: 760px) {
  .d .pan .tb { padding: 6px 16px 14px; }
  .tb-axis { display: none; }
  .tb-row { grid-template-columns: 1fr; row-gap: 12px; padding: 16px 0; }
  .tb-axis + .tb-row { border-top: 0; }
  .tb-where { display: flex; align-items: baseline; justify-content: space-between; }
  .tb-lane { min-height: 0; }
  .tb-bars { margin-top: 0; }
  .tb-people { position: static; flex-wrap: wrap; margin-top: 12px; white-space: normal; }
  .tb-now { display: none; }
  .tb-lane .tb-mnow { display: block; }
  .tm-sheet { grid-template-columns: 1fr; }
  .tm-fact .v { white-space: normal; }
  .tm-more { grid-template-columns: 1fr; }
  .tm-mc:nth-child(5):last-child { grid-column: auto; width: auto; justify-self: stretch; }
  .tm-mc { height: 170px; }
  .tm-more { row-gap: 56px; }
  .tm-thead { flex-direction: column; align-items: flex-start; gap: 6px; }
}
.tb-mnow { display: none; position: absolute; top: -4px; width: 2px; height: 16px; margin-left: -1px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px var(--cyan); }
@media (prefers-reduced-motion: reduce) {
  .tm-dial, .tm-face, .cv-halo, .cv-spin, .tm-run, .tm-time i, .tm-cue i, .tb-row.open .tb-where b i, .tm-live i { animation: none; }
  .tm-tape { overflow-x: auto; }
}
