/* NXG Esports. Tokens, base and shared pieces first, then one block per page section, motion, breakpoints. */

:root {
  --bg: #0a0909;
  --surface: #111010;
  --text: #f2f0e8;
  --muted: #a6a29d;
  --gold: #f5bf35;
  --gold-bright: #ffda73;
  --red: #e52332;
  --bone: #e9e4d6;
  --ochre: #e3ad34;
  --ink: #0c0b08;
  --line: #ffffff21;

  --display: 'Anton', Impact, sans-serif;
  --condensed: 'Barlow Condensed', sans-serif;
  --body: 'DM Sans', sans-serif;

  /* Nothing on the page sets type smaller than the label size. */
  --text-label: .75rem;
  --text-small: .875rem;
  --text-body: 1.0625rem;
  --track-label: .12em;

  --gutter: clamp(24px, 4.4vw, 80px);
  --section: clamp(72px, 8.6vw, 132px);
  --header: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); color-scheme: dark; scrollbar-color: #6d5a2c var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: var(--text-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:active, .button:active { transform: translateY(1px); }
img { display: block; max-width: 100%; height: auto; }
button, figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; }

svg.icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.container { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 15px; background: var(--gold); color: var(--bg); font-size: var(--text-small); font-weight: 700; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.gold-text { color: var(--gold); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); line-height: 1.5; color: var(--gold); }
.display-heading { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6.1vw, 88px); letter-spacing: -.025em; line-height: 1.06; }

.button { min-height: 56px; padding: 16px 24px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; font-size: .8125rem; font-weight: 800; letter-spacing: .1em; line-height: 1.2; transition: background .2s, color .2s, transform .2s; }
.button-gold { background: var(--gold); color: var(--bg); }
.button-gold:hover { background: var(--gold-bright); }
.button-dark { background: var(--bg); color: var(--gold); }
.button-dark:hover { background: #302719; }
.button .icon { transition: transform .25s var(--ease); }
.button:hover .icon { transform: translate(3px, -3px); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 16px; font-size: var(--text-small); font-weight: 500; line-height: 1.4; white-space: nowrap; transition: color .2s; }
.text-link:hover { color: var(--gold); }
.text-link .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.text-link:hover .icon { transform: translate(2px, -2px); }

/* Header. The menu button sits before the nav in the markup for keyboard order; `order` restores the visual order. */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--header); border-bottom: 1px solid var(--line); background: linear-gradient(#090909ee, #090909b0); backdrop-filter: blur(12px); transition: background .2s; }
.site-header.is-scrolled { background: #0a0909f2; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 44px; }
.brand img { object-fit: contain; }
.brand > span { font-family: var(--display); font-size: 28px; line-height: 1; letter-spacing: .02em; }
.brand-caption { display: block; margin-top: 5px; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--muted); }
.primary-nav { order: 1; display: flex; gap: 36px; margin-left: 40px; }
.primary-nav a { position: relative; display: flex; min-width: 40px; min-height: 44px; align-items: center; justify-content: center; font-size: var(--text-small); font-weight: 500; color: #d2ceca; transition: color .2s; }
.primary-nav a:hover, .primary-nav a[aria-current] { color: var(--gold); }
.primary-nav a::after { content: ''; position: absolute; left: 0; bottom: 6px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); }
.header-shop { order: 2; display: inline-flex; min-height: 44px; align-items: center; gap: 24px; padding: 0 18px; border: 1px solid #bd923978; color: var(--gold); font-size: var(--text-label); font-weight: 700; letter-spacing: .09em; line-height: 1.2; transition: background .2s, border-color .2s; }
.header-shop:hover { background: #f5bf3515; border-color: var(--gold); }
.header-shop .icon { width: 15px; height: 15px; }
.menu-toggle { order: 3; display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; background: #070707; }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: translate3d(var(--pointer-x, 0), var(--pointer-y, 0), 0) scale(1.035); transition: transform .5s var(--ease); will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, #070707cc 0%, #07070770 30%, transparent 60%), linear-gradient(0deg, #080707 0%, #080707b3 13%, transparent 32%, transparent 85%, #07070760 100%); }
.hero-main { position: relative; min-height: 790px; min-height: clamp(640px, calc(100svh - 77px), 1000px); padding-top: calc(var(--header) + 48px); padding-bottom: 112px; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 740px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(106px, 11.3vw, 173px); font-size: clamp(88px, min(11.3vw, 21svh), 173px); letter-spacing: -.035em; line-height: .99; }
.hero-line { display: block; }
.hero-line-gold { color: var(--gold); }
.hero-description { margin-top: 28px; font-size: 1.25rem; line-height: 1.5; color: #d5d0c6; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 32px; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 26px; display: flex; align-items: center; gap: 14px; min-height: 44px; font-size: var(--text-label); letter-spacing: var(--track-label); color: #c4bab0; transition: color .2s; }
.scroll-cue:hover { color: var(--gold); }
.scroll-cue .icon { width: 14px; height: 32px; color: var(--gold); }
.hero-signature { position: absolute; right: var(--gutter); bottom: 39px; font-size: var(--text-label); letter-spacing: var(--track-label); color: #cfc6ba; }
.arena-strip { border-top: 1px solid #c38c342e; border-bottom: 1px solid var(--line); background: #090909ac; }
.arena-inner { min-height: 77px; display: flex; align-items: center; gap: 40px; }
.strip-label { margin-right: 40px; font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); color: var(--gold); }
.arena-inner a { display: flex; align-items: center; min-height: 44px; font-family: var(--condensed); font-size: 1rem; font-weight: 600; letter-spacing: .11em; color: #d2cdc5; transition: color .2s; }
.arena-inner a:hover { color: var(--gold); }
.arena-divider { font-size: 20px; font-weight: 300; color: #6b5843; }
.strip-reticle { width: 24px; height: 24px; margin-left: auto; fill: none; stroke: var(--gold); stroke-width: 1; }
/* When a poster tile in the feed has a future data-start, app.js swaps the arenas for that match and a countdown. */
.arena-inner .next-match { align-items: baseline; gap: 14px; }
.next-game { font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; color: var(--text); transition: color .2s; }
.next-match:hover .next-game { color: var(--gold); }
.next-event { font-family: var(--body); font-size: var(--text-small); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.next-time { font-size: var(--text-small); color: #d2cdc5; }
.next-countdown { margin-left: auto; font-family: var(--condensed); font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--gold); }
/* Game day: the strip takes the crimson of the match-day posters. */
[data-gameday] .arena-strip { background: #ee2e3c; border-color: transparent; }
[data-gameday] .arena-strip :is(.strip-label, .next-game, .next-event, .next-time, .next-countdown) { color: var(--bg); }
[data-gameday] .next-match:hover .next-game { color: var(--bg); }
[data-gameday] .site-header { box-shadow: inset 0 3px 0 #ee2e3c; }
[data-gameday] .hero-shade { background: linear-gradient(90deg, #5c0a12b3 0%, #5c0a1259 34%, transparent 62%), linear-gradient(0deg, #080707 0%, #080707b3 13%, transparent 32%, transparent 85%, #07070760 100%); }

/* The org */
.org-section { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 2.2fr); gap: 50px; padding-block: var(--section); }
.org-label { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.org-reticle { width: 82px; height: 82px; fill: none; stroke: #9f762c; stroke-width: .6; transform: rotate(-12deg); }
.org-statement h2 { font-family: var(--body); font-size: clamp(34px, 4.5vw, 70px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; }
.muted-heading { color: #8a8581; }
.org-bottom { display: flex; align-items: flex-end; gap: 50px; margin-top: 44px; }
.org-bottom p { max-width: 52ch; line-height: 1.65; color: var(--muted); }
.org-bottom .text-link { margin-left: auto; }
.org-founders { display: flex; flex-wrap: wrap; align-items: center; gap: 0 34px; margin: 44px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.org-founders dt { margin-right: auto; }
.org-founders dd { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font-family: var(--condensed); font-size: 28px; font-weight: 700; letter-spacing: .02em; }
.org-founders a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; transition: color .2s; }
.org-founders a:hover { color: var(--gold); }
.org-founders .avatar { width: 44px; height: 44px; font-size: 22px; }
.org-founders .icon { width: 14px; height: 14px; color: var(--gold); }

/* Teams. Each arena takes one brand colour as a duotone; hover and focus show the artwork's own colour. */
.section-space { padding-block: var(--section); }
.teams-section { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.section-aside { padding-bottom: 8px; line-height: 1.55; color: var(--muted); }
.teams-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.team-card { --arena: var(--red); position: relative; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 1px solid #ffffff1a; text-align: left; overflow: hidden; background: #181313; isolation: isolate; }
.team-cs2 { --arena: var(--gold); }
.team-r6 { --arena: var(--bone); }
.team-card > img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.08); transition: transform .9s var(--ease), filter .6s var(--ease); }
.team-valorant > img { object-position: 48% 50%; }
.team-cs2 > img { object-position: 53% 50%; }
.team-r6 > img { object-position: 32% 50%; }
.team-card::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--arena); mix-blend-mode: multiply; transition: opacity .6s var(--ease); }
.team-tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0a0909b3 0%, #0a090900 24%, #0a090900 42%, #0a0909d9 80%, #0a0909 100%); }
.team-topline { position: absolute; top: 22px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); }
.small-reticle { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: .9; }
.team-bottom { position: absolute; left: 24px; right: 24px; bottom: 26px; }
.team-game { display: block; font-family: var(--display); font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -.018em; }
.team-subline { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: var(--text-small); color: #d6cdc2; }
.circle-arrow { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #f2f0e870; border-radius: 50%; color: var(--text); transition: background .25s, color .25s, border-color .25s; }
.circle-arrow .icon { width: 16px; height: 16px; }
.team-hover-label { position: absolute; left: 24px; top: 50px; font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); color: var(--gold); opacity: 0; transform: translateY(-7px); transition: opacity .3s, transform .3s var(--ease); }
.team-card:hover > img, .team-card:focus-visible > img { transform: scale(1.06); filter: grayscale(0) contrast(1.05) brightness(.92); }
.team-card:hover::before, .team-card:focus-visible::before { opacity: 0; }
.team-card:hover .circle-arrow, .team-card:focus-visible .circle-arrow { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.team-card:hover .team-hover-label, .team-card:focus-visible .team-hover-label { opacity: 1; transform: translateY(0); }
.teams-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.teams-footer > span { font-size: var(--text-label); letter-spacing: var(--track-label); color: #a39a90; }

/* The feed./* The feed. A wall of match-day posters, 3:4 and shown whole, newest first, each with its result once played. */
.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; }
.news-card a { display: block; }
.news-image { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #191414; border: 1px solid #ffffff13; }
.news-image > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-card a:hover .news-image > img { transform: scale(1.03); }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 18px; font-size: var(--text-label); font-weight: 600; letter-spacing: .1em; }
.news-meta > span:first-child { color: var(--gold); }
.news-meta time { color: var(--muted); }
.meta-line { width: 20px; height: 1px; background: #77716b; }
.news-card h3 { margin-top: 8px; font-family: var(--condensed); font-size: clamp(20px, 1.75vw, 25px); font-weight: 600; line-height: 1.15; transition: color .2s; }
.news-card a:hover h3 { color: var(--gold); }
.news-result { margin-top: 6px; font-size: var(--text-small); color: var(--muted); }
.news-result[data-outcome="win"] { color: var(--gold); }
.news-grid:not([data-show-results]) .news-result { display: none; }

/* Merch */
.merch-section { position: relative; overflow: hidden; background: var(--ochre); color: var(--ink); isolation: isolate; }
.merch-outline { position: absolute; inset: -15% -5%; z-index: -1; font-family: var(--display); font-size: clamp(140px, 25vw, 390px); line-height: 1.3; letter-spacing: -.03em; -webkit-text-stroke: 1px #47310638; color: transparent; white-space: nowrap; transform: rotate(-9deg); pointer-events: none; }
.merch-section::after { content: ''; position: absolute; inset: 0; z-index: -1; 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' opacity='.12' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"); opacity: .4; pointer-events: none; }
.merch-inner { min-height: 660px; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-block: 76px; }
.merch-copy .display-heading { font-size: clamp(58px, 6.2vw, 93px); line-height: 1.015; }
.merch-copy > p { margin-top: 24px; font-weight: 500; line-height: 1.55; color: #2a2210; }
.merch-copy .button { margin-top: 30px; min-width: 188px; }
.jersey-display { position: relative; display: flex; align-items: center; justify-content: center; min-height: 500px; }
.jersey-display > img { width: min(100%, 500px); max-height: 600px; object-fit: contain; filter: drop-shadow(15px 26px 16px #4c280b55); transform: rotate(8deg); transition: transform .7s var(--ease); }
.jersey-display:hover > img { transform: rotate(3deg) translateY(-8px); }
.jersey-caption { position: absolute; right: 0; bottom: -12px; display: flex; align-items: center; gap: 24px; font-size: var(--text-label); font-weight: 700; letter-spacing: var(--track-label); line-height: 1.5; }
.jersey-caption small { display: block; font-size: inherit; font-weight: 500; }
.jersey-caption .icon { width: 18px; height: 18px; }
.merch-section :focus-visible { outline-color: #16130b; }

/* Partners. One tile per partner: the partner's own image, then name, one line and a link arrow. */
.partners-section { background: var(--surface); border-block: 1px solid var(--line); }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; margin: 0; padding: 0; list-style: none; }
.partner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "media media" "name icon" "note icon"; column-gap: 20px; }
.partner-media { grid-area: media; aspect-ratio: 2 / 1; margin-bottom: 22px; overflow: hidden; background: #191414; border: 1px solid #ffffff13; }
.partner-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.partner-name { grid-area: name; font-family: var(--condensed); font-size: clamp(40px, 4.2vw, 60px); font-weight: 700; letter-spacing: .03em; line-height: 1; text-transform: uppercase; transition: color .2s; }
.partner-note { grid-area: note; margin-top: 8px; font-size: var(--text-small); line-height: 1.4; color: var(--muted); }
.partner .icon { grid-area: icon; margin-top: 8px; color: var(--gold); transition: transform .25s var(--ease); }
a.partner:hover .partner-media img { transform: scale(1.03); }
a.partner:hover .partner-name { color: var(--gold); }
a.partner:hover .icon { transform: translate(3px, -3px); }

/* Community and footer */
.community-section { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 60px 80px; padding-block: var(--section); }
.community-copy .display-heading { font-size: clamp(52px, 5.8vw, 83px); }
.community-actions { display: flex; flex-direction: column; align-items: flex-start; padding-bottom: 10px; }
.community-actions > p { margin-bottom: 28px; line-height: 1.6; color: var(--muted); }
.creators { grid-column: 1 / -1; }
.creators ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 34px; margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.creators li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.creator-name { font-family: var(--condensed); font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; letter-spacing: .02em; }
.creator-links { display: flex; gap: 12px; }
.creator-links a { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 44px; min-height: 44px; font-size: var(--text-small); color: var(--muted); transition: color .2s; }
.creator-links a:hover { color: var(--gold); }
.creator-links .icon { width: 13px; height: 13px; color: var(--gold); }
.site-footer { overflow: hidden; }
.footer-top { display: flex; align-items: center; gap: 30px; padding-block: 30px; border-top: 1px solid var(--line); }
.footer-top > p { font-size: var(--text-small); color: var(--muted); }
.footer-contact { margin-left: auto; display: flex; align-items: center; gap: 18px; min-height: 44px; font-size: var(--text-label); font-weight: 600; letter-spacing: .11em; transition: color .2s; }
.footer-contact .icon { width: 15px; height: 15px; color: var(--gold); }
.footer-contact:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--text-label); letter-spacing: .1em; color: #a39a90; }
.social-links { display: flex; gap: 28px; }
.social-links a, .back-top { display: flex; align-items: center; gap: 10px; min-height: 44px; transition: color .2s; }
.social-links a:hover, .back-top:hover { color: var(--gold); }
.social-links .icon, .back-top .icon { width: 13px; height: 13px; }
.footer-wordmark { position: relative; margin-top: 24px; margin-bottom: -.18em; font-family: var(--display); font-size: clamp(88px, 22vw, 340px); letter-spacing: -.04em; line-height: 1.11; color: #1f1a13; white-space: nowrap; user-select: none; }
.footer-wordmark > span { display: inline-block; margin-top: 1em; margin-left: 1em; font-family: var(--body); font-size: .1em; vertical-align: top; color: #695a3e; }

/* Intro. The logo film covers the page on a first visit, then lifts. It stays hidden unless the script
   beside it in index.html switches it on, so no-script and reduced-motion visitors never see it. */
.intro { position: fixed; inset: 0; z-index: 200; display: none; background: #000; }
.intro-playing .intro, .intro.is-leaving { display: block; }
.intro.is-leaving { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
/* The film is a square of logo on pure black, centred on the black overlay: 58% of the height on desktops, full width on phones. */
.intro-video { position: absolute; inset: 0; margin: auto; width: min(58vh, 100vw); height: min(58vh, 100vw); pointer-events: none; }
.intro-skip { position: absolute; right: var(--gutter); bottom: 28px; min-height: 44px; padding: 0 16px; background: transparent; border: 1px solid #ffffff38; font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); color: #d2cdc5; transition: color .2s, border-color .2s; }
.intro-skip:hover { border-color: var(--gold); color: var(--gold); }
html.intro-playing { overflow: hidden; }
/* The hero's own entrance waits for the intro to lift. */
.intro-playing :is(.hero-media, .hero-line, .hero-description, .hero-actions) { animation-play-state: paused; }

/* Team dialog */
.team-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #bb8c3260; background: var(--bg); color: var(--text); overflow: auto; }
.team-dialog::backdrop { background: #000c; backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 17px; top: 17px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; background: #0a0909e6; border: 1px solid #ffffff55; transition: background .2s, color .2s; }
.dialog-close:hover { background: var(--gold); color: var(--bg); }
.dialog-close svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.dialog-image-wrap { position: relative; height: 260px; overflow: hidden; }
.dialog-image-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 30%, var(--bg)); }
.dialog-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { position: relative; margin-top: -44px; padding: 0 44px 40px; }
.dialog-content h2 { font-size: clamp(38px, 6vw, 66px); }
#dialog-description { max-width: 56ch; margin-top: 18px; font-size: 1rem; line-height: 1.7; color: var(--muted); }
.dialog-links { display: flex; align-items: center; gap: 30px; margin-top: 28px; }
.dialog-links .button { text-transform: uppercase; }

/* A team with a film: it fills the panel behind everything, fading to solid before the bottom edge so a
   scrolling panel never shows where it ends. It has no controls and cannot be clicked. */
.dialog-video { position: absolute; inset: 0; z-index: 0; display: none; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dialog-video::-webkit-media-controls { display: none !important; }
.team-dialog.has-video .dialog-video { display: block; }
.team-dialog.has-video::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #0a090947 0%, #0a090980 30%, #0a0909e0 54%, var(--bg) 80%); pointer-events: none; }
.team-dialog.has-video :is(.dialog-image-wrap, .dialog-content) { z-index: 2; }
.team-dialog.has-video .dialog-image-wrap img, .team-dialog.has-video .dialog-image-wrap::after { display: none; }
/* The small gold label above each list of people. */
.dialog-roster h3, .org-founders dt, .creators h3 { font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); line-height: 1.5; color: var(--gold); }
.dialog-roster { margin-top: 26px; }
.dialog-roster ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dialog-roster li { border-bottom: 1px solid var(--line); }
/* Portraits are X profile pictures, kept square like everything else on the site. */
.avatar { flex: none; width: 52px; height: 52px; display: grid; place-items: center; object-fit: cover; background: #1c1818; border: 1px solid #ffffff24; font-family: var(--condensed); font-size: 24px; font-weight: 700; line-height: 1; color: var(--muted); }
.roster-who { display: flex; flex-direction: column; gap: 5px; min-width: 0; line-height: 1; }
.dialog-roster :is(a, li > span) { display: flex; align-items: center; gap: 12px; min-height: 70px; font-family: var(--condensed); font-size: 26px; font-weight: 700; letter-spacing: .02em; transition: color .2s; }
.dialog-roster small { font-family: var(--body); font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.dialog-roster a:hover { color: var(--gold); }
.dialog-roster .icon { width: 14px; height: 14px; margin-left: auto; color: var(--gold); }

/* Reticle. Drawn from the NXG crosshair, it stands in for the mouse cursor: a dot on the pointer, brackets that
   trail it, grow over links and frame any [data-lock] target. The system cursor is hidden only while it is live. */
.reticle-on:not(.intro-playing) body:not(.dialog-open), .reticle-on:not(.intro-playing) body:not(.dialog-open) * { cursor: none; }
.reticle-dot { position: fixed; left: 0; top: 0; z-index: 61; width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); box-shadow: 0 0 0 1px #0a0909cc; pointer-events: none; opacity: 0; transition: opacity .2s; }
.reticle-dot.is-on { opacity: 1; }
/* Over a link or button the dot steps aside so it never sits on the label; the widened brackets mark the spot. */
.reticle-dot.is-hot { opacity: 0; }
.reticle-dot.on-light { background: var(--ink); box-shadow: 0 0 0 1px #f2f0e8b3; }
.reticle { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; color: var(--gold); filter: drop-shadow(0 1px 2px #000c); transition: opacity .25s; }
.reticle.is-on { opacity: 1; }
.reticle i { position: absolute; width: 9px; height: 9px; border: 0 solid currentColor; transition: width .35s var(--ease), height .35s var(--ease); }
.reticle i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.reticle i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.reticle i:nth-child(3) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.reticle i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }
.reticle b { position: absolute; left: 0; bottom: calc(100% + 8px); font-size: var(--text-label); font-weight: 600; letter-spacing: var(--track-label); line-height: 1; opacity: 0; transition: opacity .2s; }
.reticle.is-locked i { width: 24px; height: 24px; }
.reticle.is-locked b { opacity: 1; }
.reticle.is-firing i { width: 14px; height: 14px; }
.reticle.on-light { color: var(--ink); filter: none; }
body.dialog-open :is(.reticle, .reticle-dot) { opacity: 0; }

/* Motion. Everything is visible by default; these only run when motion is welcome. */
.motion-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .news-grid .reveal:nth-child(2), .motion-ready .partner-list .reveal:nth-child(2) { transition-delay: 90ms; }
/* Team cards wipe open behind a curtain. The card itself stays unclipped so the scroll observer can still see it. */
.motion-ready .team-card.reveal { opacity: 1; transform: none; transition: border-color .4s; }
.motion-ready .team-card.reveal:not(.is-visible) { border-color: transparent; }
.motion-ready .team-card.reveal::after { content: ''; position: absolute; inset: 0; z-index: 3; background: var(--surface); transform-origin: top; transition: transform 1s var(--ease); }
.motion-ready .team-card.reveal.is-visible::after { transform: scaleY(0); }
.motion-ready .team-card.reveal > img { scale: 1.16; transition: scale 1.5s var(--ease), transform .9s var(--ease), filter .6s var(--ease); }
.motion-ready .team-card.reveal.is-visible > img { scale: 1; }
.motion-ready .teams-grid .reveal:nth-child(2)::after, .motion-ready .teams-grid .reveal:nth-child(2) > img { transition-delay: 90ms; }
.motion-ready .teams-grid .reveal:nth-child(3)::after, .motion-ready .teams-grid .reveal:nth-child(3) > img { transition-delay: 180ms; }

@keyframes line-rise { from { transform: translateY(100%); clip-path: inset(0 -5% 100% -5%); } to { transform: none; clip-path: inset(-12% -5% -12% -5%); } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes medallion-settle { from { scale: 1.09; filter: brightness(.5) saturate(.75); } to { scale: 1; filter: none; } }
@keyframes nav-open { from { opacity: .4; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 -40px 0); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: medallion-settle 1.9s var(--ease) both; }
  .hero-line { animation: line-rise 1s var(--ease) .1s both; }
  .hero-line-gold { animation-delay: .2s; }
  .hero-description, .hero-actions { animation: fade-rise .9s var(--ease) both; }
  .hero-description { animation-delay: .45s; }
  .hero-actions { animation-delay: .55s; }

  .team-dialog { opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .3s var(--ease), transform .45s var(--ease), overlay .45s allow-discrete, display .45s allow-discrete; }
  .team-dialog[open] { opacity: 1; transform: none; }
  .team-dialog::backdrop { opacity: 0; transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
  .team-dialog[open]::backdrop { opacity: 1; }
  @starting-style {
    .team-dialog[open] { opacity: 0; transform: translateY(18px) scale(.985); }
    .team-dialog[open]::backdrop { opacity: 0; }
  }
}

/* Three creators across leaves no room for the links beside the name, so they drop beneath it. */
@media (min-width: 900px) and (max-width: 1280px) {
  .creators li { grid-template-columns: auto minmax(0, 1fr); }
  .creators .avatar { grid-row: span 2; }
  .creator-links { grid-column: 2; margin-top: -4px; }
  .creator-links a { justify-content: flex-start; }
}

@media (max-width: 1100px) {
  .primary-nav { gap: 18px; margin-left: 0; }
  .header-inner { gap: 20px; }
  .next-event { display: none; }
  .hero-shade { background: linear-gradient(90deg, #070707dc 0%, #07070775 34%, transparent 70%), linear-gradient(0deg, #080707 0%, #080707b3 13%, transparent 32%); }
  .hero-signature { display: none; }
  .arena-inner { gap: 24px; }
  .strip-label { margin-right: 10px; }
  .team-card { aspect-ratio: 3 / 4; }
  .team-topline, .team-bottom { left: 20px; right: 20px; }
  .team-hover-label { left: 20px; }
  .org-bottom { gap: 28px; }
  .merch-inner { min-height: 580px; padding-block: 65px; gap: 25px; }
  .jersey-display { min-height: 430px; }
  .community-section { gap: 40px; }
}

@media (max-width: 899px) {
  :root { --header: 78px; }
  .brand img { width: 43px; height: 43px; }
  .brand > span { font-size: 25px; }
  .header-inner { gap: 20px; }
  .header-shop { margin-left: auto; }
  .menu-toggle { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 8px; background: transparent; border: 1px solid #ffffff30; }
  .menu-toggle span { display: block; width: 20px; height: 1px; background: var(--text); transition: transform .25s var(--ease); }
  .menu-toggle.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: calc(var(--header) - 1px); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: #0c0b0b; border-bottom: 1px solid #cda24066; box-shadow: 0 20px 24px #0008; }
  .primary-nav.is-open { display: flex; animation: nav-open .4s var(--ease); }
  .primary-nav a { min-height: 58px; justify-content: flex-start; font-family: var(--condensed); font-size: 26px; font-weight: 600; }
  .primary-nav a + a { border-top: 1px solid var(--line); }
  .primary-nav a::after { display: none; }

  .hero-main { min-height: 745px; padding-top: calc(var(--header) + 60px); }
  .hero h1 { font-size: 14vw; }
  .hero-media img { object-position: 60% center; }
  .hero-shade { background: linear-gradient(90deg, #070707e6 0%, #07070785 48%, #07070720 100%), linear-gradient(0deg, #080707, transparent 35%); }
  .arena-inner { min-height: 70px; gap: 6px 22px; flex-wrap: wrap; padding-block: 8px; }
  .arena-divider, .strip-reticle { display: none; }

  .org-section { grid-template-columns: 1fr; gap: 28px; }
  .org-label { flex-direction: row; align-items: center; }
  .org-reticle { width: 30px; height: 30px; }
  .org-statement h2 { font-size: 40px; }
  .org-bottom { margin-top: 30px; }
  .section-heading { margin-bottom: 36px; }
  .teams-grid { gap: 16px; }
  .team-card { aspect-ratio: auto; min-height: 400px; }
  .team-game { font-size: 31px; }
  .team-topline, .team-bottom, .team-hover-label { left: 17px; right: 17px; }
  .team-hover-label { right: auto; }
  .team-bottom { bottom: 20px; }
  .team-subline { align-items: flex-end; }
  .circle-arrow { width: 36px; height: 36px; }

  .news-grid { gap: 36px 16px; }
  .arena-inner .next-match { flex-wrap: wrap; gap: 0 12px; }
  .merch-inner { grid-template-columns: 1.1fr 1fr; gap: 15px; }
  .merch-copy .display-heading { font-size: 7.2vw; }
  .jersey-display { min-height: 350px; }
  .jersey-caption { gap: 12px; bottom: -40px; }
  .partner-list { gap: 24px; }
  .community-section { grid-template-columns: 1fr; gap: 28px; }
  .creators { margin-top: 16px; }
  .creators ul { grid-template-columns: 1fr; }
  .community-actions { flex-direction: row; justify-content: space-between; align-items: center; gap: 28px; padding-bottom: 0; }
  .community-actions > p { margin: 0; }
  .footer-top { flex-wrap: wrap; gap: 20px; }
  .footer-top > p { margin-left: auto; }
  .footer-contact { margin-left: 0; }
  .footer-bottom { flex-wrap: wrap; }
  .social-links { gap: 20px; }
  .back-top { display: none; }
  .footer-wordmark { margin-top: 12px; }
}

@media (max-width: 600px) {
  :root { --gutter: 22px; --text-body: 1rem; --hero-art-w: clamp(157vw, 860px, 202vw); --hero-art-h: calc(var(--hero-art-w) * .5628); }
  .header-inner { gap: 12px; }
  .header-shop { gap: 12px; padding-inline: 14px; }
  .brand { gap: 8px; }
  .brand img { width: 40px; height: 40px; }
  .brand > span { font-size: 24px; }

  /* The medallion sits whole beneath the copy with its centre on the page axis, instead of a zoomed crop behind it. */
  .hero-media { inset: auto auto 0 calc(50% - var(--hero-art-w) * .682); width: var(--hero-art-w); height: var(--hero-art-h); }
  .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #070707 0%, #07070700 30%); }
  .hero-media img { object-position: center; transform: none; will-change: auto; }
  .hero-shade { display: none; }
  .hero-main { min-height: 0; padding-top: calc(var(--header) + 40px); padding-bottom: calc(var(--hero-art-h) - 104px); align-items: flex-start; }
  .hero-copy { max-width: 100%; }
  .hero h1 { font-size: 22vw; line-height: 1.04; letter-spacing: -.04em; }
  .hero-description { margin-top: 20px; font-size: 1.0625rem; }
  .hero-actions { gap: 6px 18px; flex-wrap: wrap; margin-top: 24px; }
  .hero-actions .button { gap: 24px; padding-inline: 20px; }
  .hero-actions .text-link { gap: 10px; }
  .scroll-cue { display: none; }
  .arena-inner { justify-content: center; gap: 0 20px; min-height: 0; padding-block: 14px 10px; }
  .strip-label { flex-basis: 100%; margin: 0; text-align: center; }
  .arena-inner a { font-size: .875rem; letter-spacing: .06em; white-space: nowrap; }

  .org-statement h2 { font-size: 33px; line-height: 1.16; }
  .org-bottom { display: block; margin-top: 24px; }
  .org-bottom .text-link { margin-top: 12px; }
  .org-founders { margin-top: 30px; }
  .org-founders dt { flex-basis: 100%; margin: 0 0 2px; }
  .section-heading { margin-bottom: 30px; }
  .display-heading { font-size: 45px; }
  .section-aside { display: none; }
  .teams-grid { grid-template-columns: 1fr; gap: 20px; }
  .team-card { aspect-ratio: 4 / 5; min-height: 0; }
  .team-card > img { object-position: center; }
  .team-r6 > img { object-position: 25% center; }
  .team-topline, .team-bottom, .team-hover-label { left: 22px; right: 22px; }
  .team-hover-label { right: auto; }
  .team-bottom { bottom: 24px; }
  .team-game { font-size: 46px; }
  .circle-arrow { width: 44px; height: 44px; }
  .teams-footer { align-items: flex-start; flex-direction: column; gap: 6px; margin-top: 26px; }

  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .news-card h3 { font-size: 20px; }
  .meta-line { display: none; }
  .next-match { flex-basis: 100%; justify-content: center; }
  .next-event { display: inline; }
  .next-countdown { flex-basis: 100%; margin: 0; text-align: center; }
  .next-time { padding-bottom: 4px; }
  .dialog-roster ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .dialog-roster :is(a, li > span) { gap: 10px; font-size: 23px; }
  .dialog-roster .avatar { width: 44px; height: 44px; }
  .dialog-roster .icon { display: none; }
  .creators .avatar { width: 44px; height: 44px; }
  .creator-links { gap: 4px; }
  .merch-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 56px; padding-bottom: 60px; gap: 16px; }
  .merch-copy .display-heading { font-size: 14.4vw; line-height: 1.06; }
  .jersey-display { min-height: 390px; margin-inline: 25px; }
  .jersey-display > img { width: 90%; max-height: 420px; transform: rotate(6deg); }
  .jersey-caption { right: -25px; bottom: -24px; }
  .merch-outline { inset: 15% -60%; font-size: 160px; line-height: 2.3; transform: rotate(-15deg); }
  .partner-list { grid-template-columns: 1fr; gap: 36px; }
  .partner-media { aspect-ratio: 16 / 9; margin-bottom: 18px; }
  .partner-name { font-size: 44px; }
  .community-section { gap: 22px; }
  .community-copy .display-heading { font-size: 12.3vw; }
  .community-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
  .footer-top { padding-block: 24px; gap: 14px 20px; }
  .footer-top > p { max-width: 170px; line-height: 1.5; }
  .footer-bottom { gap: 0; align-items: flex-start; flex-direction: column; padding-top: 20px; }
  .social-links { gap: 24px; }
  .footer-wordmark { margin-top: 14px; margin-bottom: -.1em; font-size: 21vw; line-height: 1.2; }
  .footer-wordmark > span { margin-left: .5em; }
  .dialog-content { padding: 0 24px 30px; }
  .dialog-image-wrap { height: 190px; }
  .dialog-content .display-heading { font-size: 40px; }
  .dialog-links { gap: 12px; flex-direction: column; align-items: stretch; }
  .dialog-links .button, .dialog-links .text-link { justify-content: center; }
}

@media (max-width: 360px) {
  .header-shop .icon { display: none; }
  .hero-actions .button { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media img { transform: none; will-change: auto; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}
