/* =========================================================
   XCLAN — CS2 esports
   Static site. No build step. Edit this file directly.
   ========================================================= */

:root {
  --bg:        #050505;
  --panel:     #0d0d0d;
  --panel-2:   #111;
  --line:      #1c1c1c;
  --text:      #f2f2f2;
  --muted:     #8a8a8a;
  --dim:       #5a5a5a;
  --accent:   #155cff;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body:    Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --nav-h: 84px;
  --pad:   5vw;

  /* Motion. Exponential ease-out for arrivals; exits run shorter. */
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --t-tap:     140ms;   /* immediate feedback   */
  --t-state:   240ms;   /* routine state change */
  --t-layer:   420ms;   /* overlay / layout     */
  --t-focal:   720ms;   /* authored entrance    */
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ---------- browser surfaces ---------- */
/* The parts we didn't draw still belong to the design. */

::selection { background: var(--accent); color: #fff; text-shadow: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #262626 var(--bg);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #262626;
  border: 3px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Film-grain overlay, sits above everything but ignores the mouse.
   The drift keeps the grain from reading as a static texture layer. */
.grain {
  position: fixed;
  inset: -60px;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  animation: grain-drift 900ms steps(1, end) infinite;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes grain-drift {
  0%   { translate:   0     0; }
  25%  { translate: -18px  10px; }
  50%  { translate:  12px -14px; }
  75%  { translate: -8px  -6px; }
  100% { translate:   0     0; }
}

/* ---------- shared bits ---------- */

.icon { width: 18px; height: 18px; display: block; }
.icon.flag { width: 26px; height: 17px; border-radius: 2px; }

.icon-link {
  color: var(--text);
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.icon-link:hover { opacity: 1; color: var(--accent); }

/* HLTV mark — the uploaded logo, cut out and painted with currentColor so it
   takes the same colour and hover behaviour as the inline SVG icons. */
.icon-mark {
  display: block;
  width: 22px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("/__l5e/assets-v1/023d9529-359d-40ab-ae7a-b528ccdea885/hltv-mark.png") center / contain no-repeat;
  mask: url("/__l5e/assets-v1/023d9529-359d-40ab-ae7a-b528ccdea885/hltv-mark.png") center / contain no-repeat;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .28em;
  color: var(--muted);
}
.eyebrow i { width: 28px; height: 2px; background: var(--accent); flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-decoration: none;
  transition:
    background var(--t-tap) var(--ease),
    color      var(--t-tap) var(--ease),
    border-color var(--t-tap) var(--ease),
    translate  var(--t-tap) var(--ease);
}
/* The arrow leads the way the button will take you. */
.btn span { transition: translate var(--t-state) var(--ease); }
.btn:hover span { translate: 4px 0; }
.btn:active { translate: 0 1px; }

.btn-solid   { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #fff; color: #000; }
.btn-outline { border: 1px solid #333; color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition:
    height          var(--t-layer) var(--ease),
    background      var(--t-layer) var(--ease),
    border-color    var(--t-layer) var(--ease);
}

/* Condenses once you leave the hero — tells you where you are on the page. */
.nav.is-scrolled {
  height: 62px;
  background: rgba(5, 5, 5, .93);
  border-bottom-color: #262626;
}
/* Scale, not height. The mark has width:auto, so animating its height
   resized its layout box every frame and dragged the nav links sideways
   with it. Scaling leaves the box alone — nothing else in the row moves. */
.nav .brand img {
  transform-origin: left center;
  transition: scale var(--t-layer) var(--ease);
}
.nav.is-scrolled .brand img { scale: .84; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .22em;
}
.brand img { width: auto; height: 24px; }

.nav-links { display: flex; gap: 36px; }
.nav-links a,
.nav-cta {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  transition: color .2s;
}
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left center;
  transition: scale var(--t-state) var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { scale: 1 1; }
.nav-links a:hover { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-cta { color: var(--text); padding: 12px 18px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 6vh) var(--pad) 12vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: 4vw;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 168px);
  line-height: .82;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }

.lede {
  margin: 34px 0 0;
  max-width: 34ch;
  color: #cfcfcf;
  font-size: 15px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 40vh;
}
.hero-mark img {
  width: auto;
  height: clamp(200px, 42vh, 460px);
  filter: drop-shadow(0 0 90px rgba(21, 92, 255, .45));
}
.hero-mark .ring {
  position: absolute;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(21, 92, 255, .16);
  border-radius: 50%;
}
.hero-mark .ring-2 { width: min(34vw, 390px); border-color: rgba(21, 92, 255, .1); }

/* blue bloom behind the mark */
.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  translate: 0 -50%;
  width: 70vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(21, 92, 255, .13), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.scroll-hint {
  position: absolute;
  left: var(--pad);
  bottom: 5vh;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--dim);
}
.scroll-hint i {
  width: 60px;
  height: 1px;
  background: var(--dim);
  transform-origin: left center;
  animation: hint-sweep 2.6s var(--ease) 1.6s infinite;
}

/* =========================================================
   THE STRIKE — the one authored entrance on this site.
   Rings expand, the bolt discharges top-to-bottom, the bloom
   flashes and settles, the wordmark wipes up behind it.
   Runs once on load. No other section repeats it.
   ========================================================= */

@keyframes rise-in   { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes wipe-up   { from { translate: 0 106%; }             to { translate: 0 0; } }
@keyframes strike    { from { clip-path: inset(0 0 100% 0); }  to { clip-path: inset(0 0 0 0); } }
@keyframes hint-sweep { 0%, 100% { scale: 1 1; opacity: 1; } 50% { scale: .45 1; opacity: .45; } }

@keyframes bolt-charge {
  0%   { filter: brightness(3.4) drop-shadow(0 0 0 rgba(21, 92, 255, 0)); }
  30%  { filter: brightness(1.7) drop-shadow(0 0 130px rgba(21, 92, 255, .9)); }
  100% { filter: brightness(1)   drop-shadow(0 0 90px rgba(21, 92, 255, .45)); }
}
@keyframes ring-out  { from { scale: .35; opacity: 0; } 45% { opacity: 1; } to { scale: 1; opacity: 1; } }
@keyframes bloom-in  { from { opacity: 0; scale: .55; } 40% { opacity: 1; } to { opacity: 1; scale: 1; } }

.hero .eyebrow     { animation: rise-in var(--t-focal) var(--ease)  60ms backwards; }
.hero .lede        { animation: rise-in var(--t-focal) var(--ease) 520ms backwards; }
.hero-actions      { animation: rise-in var(--t-focal) var(--ease) 610ms backwards; }
.scroll-hint       { animation: rise-in var(--t-focal) var(--ease) 780ms backwards; }

.hero h1 .h1-line {
  display: block;
  overflow: hidden;
  padding-bottom: .04em;   /* room for the descender on the period */
}
.hero h1 .h1-line > * { display: block; }
.hero h1 .h1-line:nth-child(1) > * { animation: wipe-up 620ms var(--ease) 180ms backwards; }
.hero h1 .h1-line:nth-child(2) > * { animation: wipe-up 620ms var(--ease) 290ms backwards; }

.hero-mark img {
  animation:
    strike      220ms linear             240ms backwards,
    bolt-charge 900ms var(--ease)        240ms backwards;
}
.hero-mark .ring   { animation: ring-out 900ms var(--ease) 300ms backwards; }
.hero-mark .ring-2 { animation: ring-out 900ms var(--ease) 380ms backwards; }
.hero::after       { animation: bloom-in 1100ms var(--ease) 240ms backwards; }

/* Scroll-driven depth: the mark hangs back as the hero leaves.
   Pure progressive enhancement — no JS, and nothing moves where unsupported. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes mark-depart { to { translate: 0 -14%; opacity: .25; } }
    .hero-mark {
      animation: mark-depart linear both;
      animation-timeline: view();
      animation-range: exit;
    }
  }
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 34s linear infinite;
}
.ticker-track span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .2em;
  color: #262626;
  white-space: nowrap;
  transition: color var(--t-layer) var(--ease);
}
/* A non-essential loop must not burn cycles off-screen (JS toggles this),
   and hovering stops it so the line can actually be read. */
.ticker.is-paused .ticker-track,
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker:hover .ticker-track span { color: #3a3a3a; }
@keyframes ticker { to { translate: -50% 0; } }

/* ---------- sections ---------- */

.section { padding: 12vh var(--pad); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}
.section-head h2,
.about h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 6.5vw, 92px);
  line-height: .9;
}
.section-head h2 small {
  font-size: .42em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}
.section-note {
  margin: 0;
  text-align: right;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.9;
  color: var(--dim);
}

/* ---------- roster ---------- */

/* 1px gaps over a light-ish background read as hairline rules */
/* Hairlines come from per-tile borders rather than a gap showing a
   background through. That way an odd tile count leaves genuine empty
   space instead of a stray coloured block, so the grid takes any number
   of entries without anyone adjusting it. */
.roster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  counter-reset: squad;
}
.roster > * {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Squad numbers are generated, never typed — add or remove a player and
   the rest renumber themselves. Staff are skipped entirely. */
.player:not(.is-staff) { counter-increment: squad; }

/* Closes the grid's bottom-right corner when the tile count is odd.
   Hidden otherwise, and hidden entirely where :has() is unsupported —
   which just leaves the last row open-ended. */
.roster-filler { display: none; }
.roster:has(> .player:nth-child(odd):last-of-type) .roster-filler { display: block; }

/* Staff (coach, manager, analyst): same tile, quieter. No squad number,
   and the role reads COACH, so it needs no separate heading to explain it. */
.player.is-staff .player-name { font-size: clamp(24px, 2.6vw, 34px); }
.player.is-staff .player-meta b { color: var(--muted); }

/* Entrance: the grid rules draw in, then the tiles resolve as a list.
   Total stagger capped at 240ms. This is the only staggered entrance on
   the site — a list appearing as a list, not a section reveal. */
.js .roster,
.js .roster > * { border-color: transparent; }
.js .roster.is-in,
.js .roster.is-in > * { border-color: var(--line); }

.js .roster .player { opacity: 0; translate: 0 12px; }
.js .roster.is-in .player {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity      520ms var(--ease),
    translate    520ms var(--ease),
    border-color 600ms var(--ease),
    background   var(--t-state) var(--ease);
}
.js .roster.is-in .player:nth-child(1) { transition-delay: 0ms; }
.js .roster.is-in .player:nth-child(2) { transition-delay: 60ms; }
.js .roster.is-in .player:nth-child(3) { transition-delay: 120ms; }
.js .roster.is-in .player:nth-child(4) { transition-delay: 180ms; }
/* Everything from the fifth tile on shares one delay, so the stagger stays
   capped at 240ms however many people end up on the roster. */
.js .roster.is-in .player:nth-child(n+5) { transition-delay: 240ms; }
/* needs to out-specify the .is-in rule above to survive */
.js .roster.is-in .player:active { translate: 0 1px; }

.player {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: 0;
  margin: 0;
  padding: 34px 32px 30px;
  min-height: 168px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  transition: background .25s;
}
.player:hover,
.player:focus-visible { background: var(--panel-2); }
.player:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.player:active { translate: 0 1px; }

/* A charge passes through the tile — the same electric idea as the hero
   strike, at feedback scale. */
.player::after {
  content: "";
  position: absolute;
  inset: -30% -40%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(21, 92, 255, .18) 50%, transparent 58%);
  translate: -70% 0;
  opacity: 0;
}
.player:hover::after,
.player:focus-visible::after { animation: gleam 700ms var(--ease); }
@keyframes gleam {
  from { translate: -70% 0; opacity: 0; }
  30%  { opacity: 1; }
  to   { translate: 70% 0; opacity: 0; }
}

.player.is-featured { background: linear-gradient(100deg, rgba(21, 92, 255, .13), transparent 65%), var(--panel); }
.player.is-tbd .player-name { color: var(--dim); }

/* The ghost squad number. Drawn by the tile itself from the CSS counter,
   so adding a player needs no extra markup and no renumbering. */
.player:not(.is-staff)::before {
  content: counter(squad, decimal-leading-zero);
  position: absolute;
  top: 8px;
  right: 26px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 74px;
  line-height: 1;
  color: #fff;
  opacity: .07;
  pointer-events: none;
  transform-origin: 100% 0;
  transition:
    color   var(--t-state) var(--ease),
    opacity var(--t-state) var(--ease),
    scale   var(--t-state) var(--ease);
}
.player:not(.is-staff):hover::before,
.player:not(.is-staff):focus-visible::before { color: var(--accent); opacity: .45; scale: 1.07; }

.player-name {
  position: relative;
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1;
  letter-spacing: .01em;
}
/* Same underline trace as the nav links — one feedback system, not two. */
.player-name::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.14em;
  height: 2px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left center;
  transition: scale var(--t-state) var(--ease);
}
.player:hover .player-name::after,
.player:focus-visible .player-name::after { scale: 1 1; }

.player-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}
.player-meta b {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .16em;
  font-size: 11px;
}
.player-meta i { width: 1px; height: 14px; background: #333; }

.roster-filler { background: var(--panel); }

/* ---------- staff ----------
   The staff grid is the roster tile language again, just introduced by its
   own label so "who runs the team" can never be read as "who plays". */
.staff-head { margin: 84px 0 30px; }
.staff-head h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: .9;
}
.staff-head h3 small {
  font-size: .42em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
}

/* ---------- gallery ----------
   Twelve columns; each figure picks its own span and shape, so the panoramic
   shot and the portrait keep their framing instead of being cropped to one
   uniform tile. A row stretches to its tallest member, so a narrower photo in
   the same row simply crops a little more. */

[hidden] { display: none !important; }

.gallery { border-top: 1px solid var(--line); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.g-item {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.9) contrast(1.04);
  transition:
    transform var(--t-layer) var(--ease),
    filter     var(--t-state) var(--ease);
}
.g-item:hover img,
.g-item:focus-within img { transform: scale(1.03); filter: none; }

/* column span + shape. One photo per row carries the row's height through
   its aspect ratio; the others in that row have none and stretch to match,
   so a row never ends with two photos of different heights. */
.g-4  { grid-column: span 4; }
.g-5  { grid-column: span 5; }
.g-6  { grid-column: span 6;  aspect-ratio: 3 / 2; }
.g-7  { grid-column: span 7;  aspect-ratio: 3 / 2; }
.g-8  { grid-column: span 8;  aspect-ratio: 3 / 2; }
.g-12 { grid-column: span 12; aspect-ratio: 20 / 7; }

/* Entrance. Gated on .js so a page that never runs script shows every photo. */
.js .g-item { opacity: 0; translate: 0 18px; }
.js .gallery-grid.is-in .g-item {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity   var(--t-focal) var(--ease),
    translate var(--t-focal) var(--ease);
}
.js .gallery-grid.is-in .g-item:nth-child(1) { transition-delay: 0ms; }
.js .gallery-grid.is-in .g-item:nth-child(2) { transition-delay: 70ms; }
.js .gallery-grid.is-in .g-item:nth-child(3) { transition-delay: 140ms; }
/* Everything past the third shares one delay, so the stagger stays capped
   however many photos end up in the grid. */
.js .gallery-grid.is-in .g-item:nth-child(n+4) { transition-delay: 210ms; }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6vw;
  align-items: start;
  border-top: 1px solid var(--line);
}
.about h2 em { font-style: normal; color: var(--accent); }

.about-copy h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 30px;
  letter-spacing: .04em;
  color: var(--accent);
}
.about-copy p { margin: 0 0 14px; max-width: 62ch; color: #d6d6d6; font-size: 15px; }
.about-copy strong { color: #fff; }

/* ---------- sponsors ---------- */

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}
.sponsor {
  display: block;
  opacity: .55;
  transition: opacity .2s, transform .2s;
}
.sponsor:hover,
.sponsor:focus-visible { opacity: 1; transform: translateY(-3px); }
.sponsor img { display: block; height: 38px; width: auto; }

@media (max-width: 900px) {
  .sponsor img { height: 30px; }
}

/* ---------- footer ---------- */

footer {
  padding: 8vh var(--pad) 5vh;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 32px 24px;
}
.footer-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-download {
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: .12em;
  transition: color .2s;
}
.footer-download:hover { color: var(--accent); }

.footer-right { text-align: right; }
.footer-right p {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: .02em;
}
.footer-right a {
  color: var(--accent);
  text-decoration: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.footer-right a:hover { color: #fff; }

.footer-legal {
  grid-column: 1 / -1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  color: #2e2e2e;
}

/* ---------- player card overlay ---------- */

.card {
  width: min(1000px, 94vw);
  max-width: none;
  padding: 0;
  border: 1px solid #222;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.card::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(6px); }
.card[open]::backdrop { animation: backdrop-in var(--t-layer) var(--ease) backwards; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }

.card-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #333;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  cursor: pointer;
  transition:
    border-color var(--t-tap) var(--ease),
    color        var(--t-tap) var(--ease),
    rotate       var(--t-state) var(--ease);
}
.card-close:hover { border-color: var(--accent); color: var(--accent); rotate: 90deg; }
.card-close:active { scale: .92; }

/* Card contents settle in after the card has arrived. */
.card .card-info > * { opacity: 0; translate: 0 10px; }
.card.is-open .card-info > * {
  opacity: 1;
  translate: 0 0;
  transition: opacity 420ms var(--ease), translate 420ms var(--ease);
}
.card.is-open .card-info > h2      { transition-delay: 150ms; }
.card.is-open .card-info > .card-stats   { transition-delay: 220ms; }
.card.is-open .card-info > .card-socials { transition-delay: 290ms; }

/* Three parallax planes. JS writes these from pointer position; the
   defaults keep everything centred for touch and reduced motion. */
.card-stage { --px: 0; --py: 0; --gx: 50%; --gy: 38%; }

/* The gradient below is only visible if a player has no data-map set */
.card-stage {
  position: relative;
  height: min(52vh, 420px);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-bottom: 1px solid #fff;
  background:
    radial-gradient(120% 90% at 50% 8%, #232323 0%, #0c0c0c 55%, #050505 100%),
    var(--bg);
}
/* PLANE 1 — furthest. Moves least, and against the pointer.
   The scale gives headroom so parallax never exposes an edge. */
.card-stage .card-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  scale: 1.14;
  translate: calc(var(--px) * -16px) calc(var(--py) * -11px);
  /* No CSS transition on the parallax planes — script.js lerps --px/--py
     itself. A transition here would fight the lerp and re-trigger its easing
     curve on every frame. */
}
.card-map[hidden] { display: none; }

/* PLANE 2 — mid. Darkens the map so the cutout reads against it, and carries
   the blue bloom from the design. Inset negatively so its own drift can't
   uncover undarkened map at the edges. */
.card-scrim {
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(to bottom, rgba(5, 5, 5, .62) 0%, rgba(5, 5, 5, .42) 40%, rgba(5, 5, 5, .88) 100%),
    radial-gradient(ellipse 60% 55% at 50% 112%, rgba(21, 92, 255, .3), transparent 70%);
  translate: calc(var(--px) * -7px) calc(var(--py) * -5px);
}

/* Light sweep that tracks the pointer across the player. Topmost layer,
   bounded to the stage so the blend never leaks into the page. */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  background: radial-gradient(34% 44% at var(--gx) var(--gy), rgba(255, 240, 240, .16), transparent 72%);
  transition: opacity var(--t-state) var(--ease);
}
.card-stage:hover .card-glare { opacity: 1; }
/* display:contents makes the <img> itself the flex item, so its percentage
   height resolves against .card-stage rather than the <picture> wrapper.
   Note the .card-player class: a bare `.card-stage img` would also match
   .card-map and break its absolute positioning. */
.card-stage picture { display: contents; }

/* PLANE 3 — nearest. Drifts *against* the pointer, like looking around a
   scene: move right, the subject shifts left. Deliberately small — the
   cutout is the thing you're looking at, so it should barely move. */
.card-stage .card-player {
  position: relative;
  height: 104%;
  width: auto;
  max-width: none;
  object-fit: contain;
  translate: calc(var(--px) * -9px) calc(var(--py) * -6px);
}

/* No portrait (typically staff): drop the stage entirely and let the info
   panel stand alone, rather than opening onto an empty backdrop. */
.card.no-portrait .card-stage { display: none; }
.card.no-portrait .card-info { padding-top: 56px; }

.card-info { padding: 26px 28px 34px; position: relative; }

.card-socials {
  z-index: 1;
  position: absolute;
  top: 26px;
  left: 28px;
  display: flex;
  gap: 16px;
}
.card-socials a[hidden] { display: none; }

.card-info h2 {
  margin: 0 0 22px;
  text-align: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
}

/* The name is also the X link (see setName in script.js). It keeps the
   headline's look and only admits it is clickable on hover, with the same
   underline trace the nav links use. */
.card-info h2 a {
  position: relative;
  color: inherit;
  text-decoration: none;
  transition: color var(--t-tap) var(--ease);
}
.card-info h2 a[href] { cursor: pointer; }
.card-info h2 a[href]:hover,
.card-info h2 a[href]:focus-visible { color: var(--accent); }
.card-info h2 a[href]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.12em;
  height: 2px;
  background: var(--accent);
  scale: 0 1;
  transform-origin: left center;
  transition: scale var(--t-state) var(--ease);
}
.card-info h2 a[href]:hover::after,
.card-info h2 a[href]:focus-visible::after { scale: 1 1; }

.card-stats {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}
/* flex-end keeps the three values on one baseline even though the age
   column has no icon above it */
.card-stats > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 6px clamp(20px, 6vw, 62px);
}
.card-stats > div + div { border-left: 1px solid #3a3a3a; }
.card-stats dt { display: grid; place-items: center; color: #fff; }
.card-stats dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .04em;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --pad: 6vw; }

  /* few enough links that no burger menu is needed — just tighten them */
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 10px; letter-spacing: .12em; }
  .nav-right { gap: 14px; }
  .nav-cta { padding: 10px 12px; font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
  .brand span { display: none; }
  .brand { flex: none; }   /* or flex shrinks the mark to nothing on narrow phones */

  /* Don't stack the mark above the copy — that spent 40% of a phone screen
     on a logo the nav already carries, and pushed the headline past the
     halfway point. Layer it instead: the mark bleeds off the right edge as
     atmosphere, and the headline gets the top of the screen. */
  .hero {
    grid-template-columns: 1fr;
    /* Short of a full screen on purpose: the ticker peeks above the fold,
       which is the only scroll affordance left once .scroll-hint is hidden. */
    min-height: 86svh;
    padding-top: calc(var(--nav-h) + 4vh);
    padding-bottom: 8vh;
    text-align: left;
  }
  .hero-copy { position: relative; z-index: 1; }
  /* The outlined button sits over the mark; give it ground to stand on. */
  .hero-actions .btn-outline { background: rgba(5, 5, 5, .6); }

  .hero-mark {
    position: absolute;
    z-index: 0;
    right: -20%;
    /* centred without translate, so the scroll-driven drift can own that
       property without fighting the positioning */
    top: calc(50% - min(26vh, 215px));
    width: min(82vw, 430px);
    height: min(52vh, 430px);
    min-height: 0;
    opacity: .2;
    pointer-events: none;
  }
  .hero-mark img { height: 100%; width: auto; }
  .hero-mark .ring   { width: 88%; }
  .hero-mark .ring-2 { width: 64%; }

  .scroll-hint { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-note { text-align: left; }

  .roster { grid-template-columns: 1fr; }
  .roster-filler { display: none; }

  .gallery-grid { grid-template-columns: 1fr; gap: 12px; }
  .g-item { grid-column: auto; aspect-ratio: 3 / 2; }
  .g-4  { aspect-ratio: 4 / 5; }
  .g-12 { aspect-ratio: 16 / 9; }

  .about { grid-template-columns: 1fr; gap: 36px; }

  footer { grid-template-columns: 1fr; }
  .footer-right { text-align: left; }

  .card { width: 100vw; height: 100dvh; max-height: none; border: 0; }
  .card-stage { height: 55dvh; }
}

/* ---------- reduced motion ----------
   Fewer and gentler, not off. Spatial movement and looping effects go;
   opacity, colour and state feedback stay so nothing loses meaning. */

/* Narrow phones: the nav runs out of room before the burger threshold. */
@media (max-width: 420px) {
  .nav { gap: 8px; }
  .nav-links { gap: 11px; }
  .nav-links a { font-size: 9px; letter-spacing: .07em; }
  .nav-right { gap: 10px; }
  .nav-cta { padding: 9px 9px; font-size: 9px; letter-spacing: .07em; }
  .brand img { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Kill the loops outright */
  .ticker-track,
  .grain,
  .scroll-hint i { animation: none !important; }

  /* The strike becomes a plain fade — same beats, no travel */
  .hero .eyebrow,
  .hero .lede,
  .hero-actions,
  .scroll-hint,
  .hero-mark .ring,
  .hero-mark .ring-2,
  .hero::after      { animation: fade-only 320ms ease backwards; }
  .hero h1 .h1-line > * { animation: fade-only 320ms ease backwards; }
  .hero-mark img    { animation: fade-only 320ms ease backwards; }
  @keyframes fade-only { from { opacity: 0; } to { opacity: 1; } }

  /* No travel on the gallery; the photos still fade in as a group */
  .js .g-item { translate: none; }
  .js .gallery-grid.is-in .g-item { transition: opacity 300ms ease; transition-delay: 0ms !important; }
  .g-item img { transition: none; }

  /* No travel on the roster; the tiles still fade in as a group */
  .js .roster .player { translate: none; }
  .js .roster.is-in .player { transition: opacity 300ms ease; transition-delay: 0ms !important; }
  .player::after { animation: none !important; }

  /* Parallax off — the planes hold still */
  .card-stage .card-map,
  .card-scrim,
  .card-stage .card-player { translate: none !important; transition: none; }
  .card .card-info > * { opacity: 1; translate: none; }
  .card-close:hover { rotate: none; }

  /* Feedback that confirms an action stays legible */
  .nav-links a::after,
  .player-name::after { transition-duration: 1ms; }
}

/* Restore native dialog centering (reset by the app base styles) */
dialog.card{margin:auto;}

/* No map backgrounds behind people: one soft, blurred black backdrop for
   every player and staff card instead. */
.card-stage .card-map { display: none !important; }
.card-stage {
  background:
    radial-gradient(60% 70% at 50% 45%, rgba(40, 40, 40, .55), transparent 75%),
    #000;
}
.card-stage::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(45% 55% at 50% 50%, rgba(255, 255, 255, .06), rgba(0, 0, 0, 0) 70%);
  filter: blur(30px);
  pointer-events: none;
}
.card-scrim { background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, .7) 100%); }
.card.no-portrait .card-stage { display: flex; height: min(30vh, 220px); }
.card.no-portrait .card-info { padding-top: 0; }
