/* ============================================================
   CLRTY ESPORTS — NRG-inspired layout, CLRTY rebrand palette
   Dark: #0a0a0a | Cream text: #F5EDE2 | Accent: #FF4D9E | Bebas Neue
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap");

/* ---- design tokens ---- */
:root {
  --font-display : "Bebas Neue", "Arial Narrow", sans-serif;
  --font-body    : "Inter", system-ui, sans-serif;

  --accent      : #FF4D9E;
  --accent-2    : color-mix(in srgb, var(--accent) 68%, white);
  --accent-deep : color-mix(in srgb, var(--accent) 72%, black);
  --accent-ink  : #ffffff;
  --accent-glow : rgba(255, 77, 158, 0.38);
  --accent-halo : rgba(255, 77, 158, 0.12);

  --maxw   : 1440px;
  --gutter : clamp(20px, 5vw, 80px);
  --radius : 0px;
  --ease   : cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- dark (default) ---- */
:root, [data-theme="dark"] {
  --bg        : #0a0a0a;
  --bg-2      : #111111;
  --bg-3      : #181818;
  --surface   : #1c1c1c;
  --surface-2 : #242424;
  --surface-3 : #2c2c2c;
  --line      : rgba(255, 255, 255, 0.07);
  --line-mid  : rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.20);
  --text      : #F5EDE2;
  --text-dim  : #B8AFA8;
  --text-mute : #6E6560;
  --scrim     : rgba(10, 10, 10, 0.82);
  --shadow    : 0 32px 80px -40px rgba(0,0,0,0.96);
  --shadow-sm : 0 12px 36px -18px rgba(0,0,0,0.72);
  --grain     : 0.038;
}

/* ---- light ---- */
[data-theme="light"] {
  --bg        : #F5EDE2;
  --bg-2      : #EDE4D8;
  --bg-3      : #E5DCD0;
  --surface   : #FAF5EE;
  --surface-2 : #F0E8DC;
  --surface-3 : #E8DFD2;
  --line      : rgba(20, 10, 10, 0.09);
  --line-mid  : rgba(20, 10, 10, 0.14);
  --line-strong: rgba(20, 10, 10, 0.22);
  --text      : #141212;
  --text-dim  : #4A4141;
  --text-mute : #8A8787;
  --scrim     : rgba(245, 237, 226, 0.76);
  --shadow    : 0 28px 64px -40px rgba(20,10,10,0.36);
  --shadow-sm : 0 10px 30px -16px rgba(20,10,10,0.22);
  --grain     : 0.025;
}

/* ================================================================ BASE */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-feature-settings: "kern" 1, "liga" 1; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.45s var(--ease), color 0.45s var(--ease);
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* scroll progress bar */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: calc(var(--scroll-pct, 0) * 100%);
  background: var(--accent);
  z-index: 9999;
  pointer-events: none;
}

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 0; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.skip-link {
  position: absolute; top: -100%; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 10px 20px;
  font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 10000; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ================================================================ TYPOGRAPHY */
.section-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.40em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 0.90;
  letter-spacing: 0.02em;
  margin: 0;
}
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.centered { text-align: center; }
.section-sub {
  color: var(--text-dim);
  max-width: 56ch;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.72;
  margin: 18px 0 0;
}
.text-accent { color: var(--accent); }

/* ================================================================ LAYOUT */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }

/* ================================================================ NAV */
/* Nav is always solid — no transparent hero overlay */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease);
  will-change: background;
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  transition: transform 0.35s var(--ease), filter 0.35s;
  border-radius: 0;
}
.brand:hover .brand-logo { transform: scale(1.06); filter: drop-shadow(0 0 10px var(--accent-glow)); }
.brand-text { display: flex; align-items: baseline; gap: 6px; }
.brand-word {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  /* always white — brand logo is always on a dark or image bg */
  color: #fff !important;
}
.brand-sub {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(255,255,255,0.48) !important;
}
/* ---- light mode nav overrides (nav is always solid, so no .scrolled gate needed) ---- */
/* Brand text: charcoal #141212 + muted gray #8A8787 from rebrand palette */
[data-theme="light"] .brand-word { color: #141212 !important; }
[data-theme="light"] .brand-sub  { color: #8A8787 !important; }

.nav-links { display: flex; gap: 48px; margin-left: auto; margin-right: auto; }
.nav-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--accent); }
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* light theme: use rebrand gray palette for nav links */
[data-theme="light"] .nav-link        { color: #8A8787; }
[data-theme="light"] .nav-link:hover  { color: #141212; }
[data-theme="light"] .nav-link.active { color: var(--accent); }

/* dark scrolled — keep using theme vars */
.nav.scrolled .nav-link { color: var(--text-dim); }
.nav.scrolled .nav-link:hover { color: var(--text); }
.nav.scrolled .nav-link.active { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.70);
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.3s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.icon-btn svg { width: 16px; height: 16px; }

/* light theme icon buttons */
[data-theme="light"] .icon-btn {
  border-color: rgba(20,18,18,0.18);
  background: rgba(20,18,18,0.04);
  color: #8A8787;
}
[data-theme="light"] .icon-btn:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* dark scrolled icon buttons */
.nav.scrolled .icon-btn { border-color: var(--line-strong); background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text-dim); }
.nav.scrolled .icon-btn:hover { border-color: var(--accent); color: var(--accent); }

/* sun/moon */
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.theme-toggle:hover { transform: translateY(-1px) rotate(15deg) !important; }

/* ================================================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 0;
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 6px 28px -8px var(--accent-glow);
}
.btn-primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px var(--accent-glow); }
.btn-primary:hover::before { transform: translateX(120%); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.32);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); transform: translateY(-2px); }

[data-theme="light"] .btn-ghost { color: var(--text); border-color: var(--line-strong); }
[data-theme="light"] .btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* white pill — used on coloured promo band */
.btn-white {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.btn-white:hover { background: rgba(255,255,255,0.88); transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(0,0,0,0.25); }

.btn-sm { padding: 9px 18px; font-size: 10px; }

/* ================================================================ HERO */
/* Hero is always dark regardless of site theme — it has its own scrim */
.hero {
  position: relative;
  height: calc(100svh - 70px);   /* fits perfectly below the fixed nav */
  margin-top: 70px;               /* clears the fixed nav */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0a0a0a;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.04);
  animation: heroDrift 32s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: scale(1.10) translateY(-1.5%); } }

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.08) 35%,
      rgba(0,0,0,0.10) 55%,
      rgba(0,0,0,0.88) 100%
    );
}

/* giant watermark wordmark, like NRG's year number */
.hero-wordmark {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;           /* clip so it can't bleed out */
  font-family: var(--font-display);
  font-size: clamp(22vw, 28vw, 34vw);
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;        /* stay on one line */
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: clamp(56px, 9vw, 112px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.hero-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.56);
  margin: 0;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 9px; letter-spacing: 0.38em; text-transform: uppercase;
  color: rgba(255,255,255,0.44);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%,100% { opacity: 0.3; transform: scaleY(0.5) translateY(-8px); }
  50%      { opacity: 1;   transform: scaleY(1)   translateY(0); }
}

/* ================================================================ PROMO BAND */
.promo-band {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 260px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.promo-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.promo-images image-slot { width: 100%; height: 100%; }
.promo-images image-slot[id] { color: var(--text-mute) !important; }
.promo-images image-slot::part(frame) { background: var(--surface-2); }
/* accent slash overlay */
.promo-images::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 55%, rgba(255,77,158,0.12) 100%);
  pointer-events: none;
}

.promo-content {
  background: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 56px);
  gap: 14px;
  position: relative;
  overflow: hidden;
}
/* subtle grid lines on promo */
.promo-content::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.promo-logo {
  position: relative; z-index: 1;
  width: 44px; height: 44px;
}
.promo-logo img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.promo-sub {
  position: relative; z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.promo-title {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 0.90;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.02em;
}
.promo-cta {
  position: relative; z-index: 1;
  margin-top: 8px;
}

/* ================================================================ NEWS — CLRTY CURRENT */
.news-section { background: var(--bg); }
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.news-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px -20px rgba(0,0,0,0.6); }
.news-card:hover .news-media-inner { transform: scale(1.04); }
.news-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.news-media-inner { width: 100%; height: 100%; transition: transform 0.75s var(--ease); }
.news-media image-slot { width: 100%; height: 100%; }
.news-media image-slot[id] { color: var(--text-mute) !important; }
.news-media image-slot::part(frame) { background: var(--surface-2); }
.news-body { padding: 22px 24px 28px; }
.news-cat {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.news-head {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 0.96;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.news-excerpt {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0;
}
.news-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 20px;
}
.see-all {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s var(--ease);
}
.see-all:hover { gap: 12px; }

/* ================================================================ TEAMS PREVIEW */
.teams-preview { background: var(--bg-2); }
.teams-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  margin-top: 40px;
  /* Note: .wrap class is added in HTML for max-width constraint */
}
.team-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  display: block;
  cursor: pointer;
}
.team-thumb-media { position: absolute; inset: 0; }
.team-thumb-media image-slot { width: 100%; height: 100%; }
.team-thumb-media image-slot[id] { color: var(--text-mute) !important; }
.team-thumb-media image-slot::part(frame) { background: var(--surface); }
.team-thumb-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.75s var(--ease); }
.team-thumb:hover .team-thumb-img { transform: scale(1.08); }
.team-thumb-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 50%, transparent 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  /* no transition — overlay stays dark, no pink flash */
}
/* team thumb: only scale, no colour shift */
.team-thumb:hover .team-thumb-img { transform: scale(1.05); }
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  display: block;
  margin-bottom: 6px;
}
.tt-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  text-transform: uppercase;
  color: #fff;
  line-height: 0.95;
  letter-spacing: 0.04em;
  display: block;
}
.teams-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ================================================================ SHOP FEATURE */
.shop-feature { background: var(--bg-3); }
.shop-tabs {
  display: flex;
  border: 1px solid var(--line-mid);
  margin-top: 28px;
  width: fit-content;
  margin-inline: auto;
  overflow: hidden;
}
.shop-tab {
  padding: 10px 28px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--line-mid);
  color: var(--text-dim);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.shop-tab:last-child { border-right: none; }
.shop-tab.active { background: var(--accent); color: #fff; }
.shop-tab:not(.active):hover { background: var(--surface); color: var(--text); }

.shop-product-wrap {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}
.shop-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
  width: 100%;
}
.shop-product-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.shop-product-img image-slot { width: 100%; height: 100%; }
.shop-product-img image-slot[id] { color: var(--text-mute) !important; }
.shop-product-img image-slot::part(frame) { background: var(--surface); }
.shop-product-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  margin-top: 22px;
  margin-bottom: 6px;
}
.shop-product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

/* ================================================================ ABOUT BAND */
.about-band { background: var(--bg-2); }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  max-width: 48ch;
  line-height: 1.75;
  margin-top: 20px;
}
.stat-row {
  display: flex;
  gap: clamp(28px, 5vw, 72px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-num.accent { color: var(--accent); }
.stat-label { font-size: 9px; letter-spacing: 0.30em; text-transform: uppercase; color: var(--text-mute); margin-top: 6px; }
.about-media {
  aspect-ratio: 4 / 3;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.about-media image-slot { width: 100%; height: 100%; }
.about-media image-slot[id] { color: var(--text-mute) !important; }
.about-media image-slot::part(frame) { background: var(--surface); }

/* ================================================================ COMMUNITY BAND */
.community-band { background: var(--bg); border-top: 1px solid var(--line); }
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.community-text .section-title { margin-bottom: 16px; }
.community-text p { color: var(--text-dim); max-width: 42ch; line-height: 1.72; }
.community-form h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.community-form > p { color: var(--text-dim); font-size: 0.93rem; margin: 0 0 24px; line-height: 1.65; max-width: 36ch; }

/* newsletter form — inline like NRG */
.newsletter-form {
  display: flex;
  border: 1px solid var(--line-mid);
  transition: border-color 0.3s var(--ease);
}
.newsletter-form:focus-within { border-color: var(--accent); }
.newsletter-form input {
  flex: 1; min-width: 0;
  background: transparent;
  border: none;
  padding: 14px 18px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.newsletter-form input::placeholder { color: var(--text-mute); }
.newsletter-submit {
  background: transparent;
  border: none;
  border-left: 1px solid var(--line-mid);
  color: var(--text-dim);
  padding: 0 20px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 300;
  transition: background 0.25s, color 0.25s;
}
.newsletter-submit:hover { background: var(--accent); color: #fff; border-left-color: var(--accent); }

/* ================================================================ PARTNERS */
.partners-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  margin-top: 40px;
}
.partner {
  height: 44px;
  min-width: 130px;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
  border: 1px solid var(--line);
  padding: 0 24px;
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.partner:hover { opacity: 1; border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ================================================================ FOOTER */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-mid);
  padding-block: clamp(56px, 8vw, 96px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr;
  gap: 36px;
  align-items: start;
}
.footer-logo-img {
  width: 60px; height: 60px;
  object-fit: contain;
  margin-bottom: 18px;
}
.footer-tag {
  color: var(--text-dim);
  max-width: 26ch;
  font-size: 0.88rem;
  line-height: 1.68;
  margin: 0;
}
.socials { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.social {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}
.social:hover {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  transform: translateY(-3px);
}
.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 0.90rem;
  padding: 6px 0;
  transition: color 0.22s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-newsletter h4 {
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 12px;
}
.footer-newsletter > p {
  color: var(--text-dim);
  font-size: 0.90rem;
  line-height: 1.65;
  max-width: 28ch;
  margin: 0 0 18px;
}
.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ================================================================ LIVE DOT */
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
  flex-shrink: 0;
  display: inline-block;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,77,158,0.55); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ================================================================ RESULTS STRIP */
.results {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.results-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3.5vw, 40px);
  padding-block: 18px;
  flex-wrap: wrap;
}
.result-tag {
  font-size: 9.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-mute); flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
}
.result-score { display: flex; align-items: center; gap: 12px; }
.result-team { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.06em; }
.result-num { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.result-num.win { color: var(--accent); }
.result-dash { color: var(--text-mute); font-family: var(--font-display); font-size: 22px; }
.result-meta { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.result-link { margin-left: auto; }

/* ================================================================ TEAMS PAGE */
.page-pad-top { padding-top: 80px; }

.teams-hero {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-bottom: 3px solid var(--accent);
}
.teams-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 70% 80% at 65% 50%, rgba(255,77,158,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.teams-hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 260px;
  padding: 0 var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  z-index: 2;
}
.teams-hero-word {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.5vw, 5.8rem);
  color: #F5EDE2;
  line-height: 0.88;
  letter-spacing: 0.03em;
}
.teams-hero-word span { color: var(--accent); display: block; }
.teams-hero-media {
  width: 38%; max-width: 480px;
  align-self: stretch;
  position: relative;
  z-index: 2;
}
.teams-hero-media image-slot { width: 100%; height: 100%; }
.teams-hero-media image-slot[id] { color: rgba(245,237,226,0.5) !important; }
.teams-hero-media image-slot::part(frame) { background: transparent; }
.teams-hero .th-grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #0a0a0a 32%, transparent 70%),
              radial-gradient(circle at 80% 50%, rgba(255,77,158,0.08), transparent 60%);
  pointer-events: none;
}

/* division cards */
.divisions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.division-card {
  position: relative;
  min-height: 340px;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  text-align: left;
  border: 1px solid var(--line);
}
.division-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 14px 40px -18px rgba(0,0,0,0.7); }
.division-card::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(100% 80% at 50% 0%, rgba(255,255,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.division-card:hover::before { opacity: 1; }
.division-emblem {
  position: absolute; top: 22px; left: 22px; z-index: 1;
  width: 44px; height: 44px;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}
.division-card:hover .division-emblem { opacity: 1; transform: scale(1.08); }
.division-rank {
  position: absolute; top: 24px; right: 18px; z-index: 1;
  font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 4px 10px;
}
.division-body { position: relative; z-index: 1; }
.division-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
}
.division-meta { font-size: 10.5px; color: var(--text-mute); margin-top: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.division-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.division-card:hover .division-link { color: var(--text-dim); gap: 10px; }

/* roster sections */
.roster-block { scroll-margin-top: 120px; }
.roster-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.rh-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
}
.rh-rank {
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 5px 12px;
  flex-shrink: 0;
}
.rh-staff { margin-left: auto; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }

.roster-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.player-card {
  position: relative; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
}
.player-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 14px 36px -18px rgba(0,0,0,0.65); }
.player-card.open { opacity: 0.58; }
.player-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}
.player-portrait image-slot { width: 100%; height: 100%; }
.player-portrait image-slot[id] { color: var(--text-mute) !important; }
.player-portrait image-slot::part(frame) { background: transparent; }
.player-portrait > * { transition: transform 0.75s var(--ease); }
.player-card:hover .player-portrait > * { transform: scale(1.07); }
.player-cpt {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: 9px; font-weight: 700; letter-spacing: 0.12em;
  background: var(--accent); color: #fff; padding: 3px 9px;
}
.player-info { padding: 14px 16px 18px; display: flex; align-items: center; gap: 8px; }
.player-flag {
  font-size: 9px; font-weight: 700;
  border: 1px solid var(--line-strong); color: var(--text-mute);
  padding: 2px 6px; flex-shrink: 0;
}
.player-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 0.96;
  letter-spacing: 0.03em;
}
.player-role { font-size: 9px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--text-mute); margin-top: 4px; }
.pi-text { flex: 1; min-width: 0; }

/* staff */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.staff-card { background: var(--surface); border: 1px solid var(--line); padding: 24px 26px; }
.staff-card h4 { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 16px; }
.staff-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.staff-row:last-child { border-bottom: 0; }
.staff-role { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); min-width: 80px; }
.staff-person { font-weight: 600; font-size: 0.94rem; }

/* ================================================================ REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.09s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.27s; }
.reveal.d4 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
}

/* ================================================================ RESPONSIVE */
@media (max-width: 1100px) {
  .about-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-newsletter { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .promo-band { grid-template-columns: 1fr; }
  .promo-images { min-height: 200px; }
  .promo-content { min-height: auto; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .teams-track { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr; }
  .divisions { grid-template-columns: repeat(2, 1fr); }
  .roster-grid { grid-template-columns: repeat(3, 1fr); }
  .staff-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .teams-track { grid-template-columns: 1fr 1fr; }
  .divisions { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: repeat(2, 1fr); }
  .teams-hero-media { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 24px; }
}
