/* =============================================================
   B4 ESPORTS — "COMBAT PROTOCOL"
   Tactical esports landing page. Matte black / esports red.
   ============================================================= */

/* -------------------------------------------------------------
   TOKENS
   ------------------------------------------------------------- */
:root {
    --bg:          #08080a;
    --bg-2:        #0c0c0f;
    --bg-rgb:      8, 8, 10;
    --fg-rgb:      244, 244, 246;   /* foreground (text/hairlines) as rgb for alpha use */
    --vignette:    rgba(0, 0, 0, 0.55);
    --surface:     rgba(20, 20, 24, 0.6);
    --surface-2:   rgba(28, 28, 33, 0.85);
    --line:        rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);

    --red:         #e50914;
    --red-bright:  #ff3b41;
    --red-deep:    #a4060f;
    --red-rgb:     229, 9, 20;

    --white:       #f4f4f6;
    --muted:       #9a9aa4;
    --muted-dim:   #6a6a72;

    --glow:        0 0 24px rgba(var(--red-rgb), 0.45);
    --glow-strong: 0 0 44px rgba(var(--red-rgb), 0.7);
    --text-glow:   0 0 18px rgba(var(--red-rgb), 0.55);

    --ease:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out:    cubic-bezier(0.33, 1, 0.68, 1);
    --dur:         0.6s;

    --max:         1240px;
    --pad:         clamp(1.25rem, 5vw, 5rem);

    --font-display: 'Anton', sans-serif;
    --font-tac:     'Chakra Petch', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-mono:    'JetBrains Mono', monospace;
}

/* -------------------------------------------------------------
   LIGHT THEME  (class set on <html> — see inline head script)
   ------------------------------------------------------------- */
.light {
    --bg:          #ececed;
    --bg-2:        #f6f6f8;
    --bg-rgb:      236, 236, 237;
    --fg-rgb:      16, 16, 22;
    --vignette:    rgba(0, 0, 0, 0.05);
    --surface:     rgba(255, 255, 255, 0.72);
    --surface-2:   rgba(255, 255, 255, 0.9);
    --line:        rgba(16, 16, 22, 0.1);
    --line-strong: rgba(16, 16, 22, 0.2);

    --white:       #14141a;
    --muted:       #4f4f59;
    --muted-dim:   #808089;

    --red:         #d90711;
    --red-bright:  #ff2a30;

    --glow:        0 0 20px rgba(var(--red-rgb), 0.28);
    --glow-strong: 0 0 34px rgba(var(--red-rgb), 0.42);
    --text-glow:   0 0 10px rgba(var(--red-rgb), 0.22);
}
.light .fx-grain { opacity: 0.03; }
/* Keep player/squad photos punchy on a light canvas */
.light .player-img { filter: grayscale(0.35) contrast(1.08) brightness(0.95); }
.light .about-img  { filter: grayscale(0.15) contrast(1.05); }

/* -------------------------------------------------------------
   RESET
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Custom cursor is opt-in: JS adds .cursor-on so native cursor
   survives when JS is disabled or on touch devices. */
body.cursor-on, body.cursor-on * { cursor: none; }

@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none !important; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #050506; }
::-webkit-scrollbar-thumb { background: #232329; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* -------------------------------------------------------------
   TEXTURE OVERLAYS
   ------------------------------------------------------------- */
.fx-grain {
    position: fixed; inset: 0; z-index: 9998; pointer-events: none;
    opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.7s steps(4) infinite;
}
@keyframes grain {
    0%,100% { transform: translate(0,0); }
    25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -3%); }
    75% { transform: translate(-2%, -2%); }
}
.fx-vignette {
    position: fixed; inset: 0; z-index: 9997; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 0%, transparent 55%, var(--vignette) 100%);
}

/* -------------------------------------------------------------
   CUSTOM CURSOR
   ------------------------------------------------------------- */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none;
    border-radius: 50%; transform: translate(-50%, -50%);
    will-change: transform;
}
.cursor-dot {
    width: 6px; height: 6px; background: var(--red-bright);
    box-shadow: 0 0 10px var(--red);
}
.cursor-ring {
    width: 34px; height: 34px; border: 1.5px solid rgba(var(--red-rgb), 0.55);
    transition: width .25s var(--ease), height .25s var(--ease),
                background .25s var(--ease), border-color .25s var(--ease);
}
.cursor-ring.hover  { width: 58px; height: 58px; border-color: var(--red-bright); background: rgba(var(--red-rgb), 0.08); }
.cursor-ring.click  { width: 24px; height: 24px; }

/* -------------------------------------------------------------
   SCROLL PROGRESS
   ------------------------------------------------------------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 100%; height: 3px;
    z-index: 9996; background: rgba(var(--fg-rgb),0.04);
}
.scroll-progress-bar {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
    box-shadow: 0 0 12px var(--red);
}

/* -------------------------------------------------------------
   SHARED UTILITIES
   ------------------------------------------------------------- */
.text-red { color: var(--red); }
.text-outline {
    color: transparent; -webkit-text-stroke: 1.5px rgba(var(--fg-rgb),0.55);
}
.tick {
    display: inline-block; width: 8px; height: 8px; margin-right: 10px;
    background: var(--red); box-shadow: var(--glow);
    animation: tickPulse 1.6s ease-in-out infinite;
    transform: translateY(1px);
}
@keyframes tickPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.section { padding: clamp(5rem, 11vw, 9rem) var(--pad); position: relative; }

/* Section headers */
.sec-head { position: relative; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head-center { text-align: center; }
.sec-index {
    display: block; font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 11rem); line-height: 0.8;
    color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb),0.07);
    letter-spacing: 2px; margin-bottom: -0.15em; user-select: none;
}
.sec-kicker {
    font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 3px;
    color: var(--muted); text-transform: uppercase; margin-bottom: 0.75rem;
    display: flex; align-items: center;
}
.sec-head-center .sec-kicker { justify-content: center; }
.sec-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 0.98;
    letter-spacing: 1px; text-transform: uppercase;
}

/* Buttons */
.btn {
    position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-tac); font-weight: 600; font-size: 0.92rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 1rem 1.7rem; overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 72%, calc(100% - 14px) 100%, 0 100%);
    transition: transform .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
    will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.78rem; }

.btn-primary { background: var(--red); color: #fff; box-shadow: var(--glow); }
.btn-primary::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(120deg, var(--red-bright), var(--red-deep));
    transform: translateX(-101%); transition: transform .4s var(--ease);
}
.btn-primary:hover { box-shadow: var(--glow-strong); transform: translateY(-3px); }
.btn-primary:hover::before { transform: translateX(0); }

.btn-ghost {
    color: var(--white); border: 1px solid var(--line-strong);
    background: rgba(var(--fg-rgb),0.02); backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); transform: translateY(-3px); box-shadow: var(--glow); }

/* Chips */
.chip {
    font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.5px;
    padding: 0.4rem 0.85rem; border: 1px solid var(--line);
    color: var(--muted); border-radius: 2px; transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--red); color: var(--white); box-shadow: var(--glow); }

/* Spotlight glow (mouse-tracked) */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    border-radius: inherit; opacity: 0; transition: opacity .4s var(--ease);
    background: radial-gradient(220px circle at var(--mx) var(--my), rgba(var(--red-rgb), 0.18), transparent 65%);
}
.spotlight:hover::before { opacity: 1; }

/* -------------------------------------------------------------
   REVEAL ANIMATIONS
   ------------------------------------------------------------- */
[data-reveal] {
    opacity: 0; transform: translateY(34px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* -------------------------------------------------------------
   HEADER
   ------------------------------------------------------------- */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9000;
    transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(var(--bg-rgb),0.78); backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}
.header-inner {
    max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--pad);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    transition: padding .4s var(--ease);
}
.site-header.scrolled .header-inner { padding-top: 0.85rem; padding-bottom: 0.85rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
    border: 1px solid var(--line-strong); box-shadow: var(--glow);
    transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.05); }
.brand-text { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 2px; line-height: 1; }
.brand-slash { color: var(--red); margin: 0 1px; }
.brand-sub { -webkit-text-stroke: 0.8px var(--white); color: transparent; }

.nav-desktop { display: flex; gap: 0.4rem; }
.nav-link {
    position: relative; font-family: var(--font-tac); font-weight: 500;
    font-size: 0.9rem; letter-spacing: 0.6px; padding: 0.5rem 0.9rem;
    color: var(--muted); display: inline-flex; align-items: baseline; gap: 0.4rem;
    transition: color .3s var(--ease);
}
.nav-idx { font-family: var(--font-mono); font-size: 0.62rem; color: var(--red); opacity: 0.7; }
.nav-link::after {
    content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem; height: 1.5px;
    background: var(--red); transform: scaleX(0); transform-origin: left; box-shadow: var(--glow);
    transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 1rem; }
.live-badge {
    display: flex; align-items: center; gap: 0.55rem;
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted);
    padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 40px;
}
.live-badge b { color: var(--white); font-weight: 500; }
.live-pulse {
    width: 7px; height: 7px; border-radius: 50%; background: var(--red);
    box-shadow: 0 0 0 0 rgba(var(--red-rgb),0.6); animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--red-rgb),0.55); }
    70% { box-shadow: 0 0 0 8px rgba(var(--red-rgb),0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--red-rgb),0); }
}

.menu-btn {
    display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 9100;
}
.menu-btn span {
    display: block; width: 26px; height: 2px; background: var(--white);
    transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.menu-btn.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
    position: fixed; inset: 0; z-index: 8900;
    background: rgba(var(--bg-rgb),0.97); backdrop-filter: blur(20px);
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.5rem;
    padding: 2rem; opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; }
.drawer-nav { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.drawer-link {
    font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); letter-spacing: 1px;
    color: var(--white); display: flex; align-items: baseline; gap: 0.7rem;
    transition: color .3s var(--ease), letter-spacing .3s var(--ease);
}
.drawer-idx { font-family: var(--font-mono); font-size: 0.85rem; color: var(--red); }
.drawer-link:hover { color: var(--red-bright); letter-spacing: 3px; }
.drawer-cta { margin-top: 1.5rem; }
.drawer-foot { margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 2px; color: var(--muted-dim); }

/* -------------------------------------------------------------
   HERO
   ------------------------------------------------------------- */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    padding: 8rem var(--pad) 4rem; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid {
    position: absolute; inset: 0; z-index: 0; opacity: 0.5;
    background-image:
        linear-gradient(rgba(var(--fg-rgb),0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--fg-rgb),0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
            mask-image: radial-gradient(120% 90% at 50% 40%, #000 30%, transparent 78%);
    animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0; } to { background-position: 64px 64px; } }
.hero-glow {
    position: absolute; z-index: 0; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    top: 42%; left: 50%; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(var(--red-rgb), 0.22), transparent 60%);
    filter: blur(30px); animation: glowBreath 7s ease-in-out infinite;
}
@keyframes glowBreath { 0%,100% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }

.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; width: 100%; }
.hero-eyebrow {
    font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 3px;
    color: var(--muted); text-transform: uppercase; margin-bottom: 1.5rem;
    display: flex; align-items: center;
}
.hero-title {
    font-family: var(--font-display); font-weight: 400;
    font-size: clamp(4.5rem, 19vw, 15rem); line-height: 0.82;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.6rem;
}
.hero-line { display: block; }
.hero-line-outline {
    color: transparent; -webkit-text-stroke: 2px rgba(var(--fg-rgb),0.85);
    position: relative;
}
.scramble { display: inline-block; }

.hero-tagline {
    font-family: var(--font-tac); font-size: clamp(1rem, 2.4vw, 1.5rem); font-weight: 500;
    color: var(--muted); max-width: 640px; margin-bottom: 2.5rem; line-height: 1.5;
}
.rotator {
    display: inline-block; height: 1.4em; overflow: hidden; vertical-align: bottom;
    position: relative; top: 0.32em;
}
.rotator-track {
    display: flex; flex-direction: column; animation: rotate 6s var(--ease) infinite;
}
.rotator-track b { color: var(--red-bright); font-weight: 700; height: 1.4em; line-height: 1.4em; text-shadow: var(--text-glow); }
@keyframes rotate {
    0%, 26% { transform: translateY(0); }
    33%, 59% { transform: translateY(-1.4em); }
    66%, 92% { transform: translateY(-2.8em); }
    100% { transform: translateY(0); }
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }

.hero-stats { display: flex; align-items: center; gap: clamp(1rem, 4vw, 2.5rem); flex-wrap: wrap; }
.hero-stat b {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1; display: block; color: var(--white);
}
.hero-stat span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.hero-stat-div { width: 1px; height: 42px; background: var(--line-strong); }

.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 3px; color: var(--muted);
}
.hero-scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--red), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
    background: var(--red-bright); box-shadow: var(--glow); animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { transform: translateY(-100%); } 100% { transform: translateY(300%); } }

/* -------------------------------------------------------------
   MARQUEE
   ------------------------------------------------------------- */
.marquee {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(var(--red-rgb),0.06), transparent);
    overflow: hidden; padding: 1.4rem 0;
}
.marquee-track {
    display: flex; align-items: center; gap: 2.5rem; width: max-content;
    animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem);
    letter-spacing: 2px; color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb),0.35);
    white-space: nowrap; text-transform: uppercase;
}
.marquee-track .marquee-dot { -webkit-text-stroke: 0; color: var(--red); font-size: 1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* -------------------------------------------------------------
   ABOUT
   ------------------------------------------------------------- */
.about-grid {
    max-width: var(--max); margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about-copy { position: relative; }
.about-copy .sec-index { position: absolute; top: -0.5em; right: 0; }
.about-text { color: var(--muted); font-size: 1.05rem; margin: 1.5rem 0; max-width: 46ch; }
.about-welcome { font-family: var(--font-tac); font-weight: 700; font-size: 1.3rem; text-shadow: var(--text-glow); }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }

.about-media { perspective: 1200px; }
.about-frame {
    position: relative; border-radius: 4px; overflow: hidden;
    border: 1px solid var(--line-strong);
    clip-path: polygon(0 0, 100% 0, 100% 94%, 96% 100%, 0 100%);
    transform-style: preserve-3d; transition: transform .3s var(--ease);
    background: var(--bg-2);
}
/* Natural aspect ratio so the full squad photo is visible (no crop) */
.about-img { width: 100%; height: auto; display: block; filter: grayscale(0.25) contrast(1.05); transition: filter .5s var(--ease), transform .6s var(--ease); }
.about-frame:hover .about-img { filter: grayscale(0) contrast(1.1); transform: scale(1.04); }
.frame-glow {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(var(--red-rgb),0.4), inset 0 0 60px rgba(var(--red-rgb),0.2);
    opacity: 0; transition: opacity .4s var(--ease);
}
.about-frame:hover .frame-glow, .spotlight:hover .frame-glow { opacity: 1; }
.frame-corner { position: absolute; width: 18px; height: 18px; z-index: 3; border: 2px solid var(--red); }
.frame-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.frame-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.frame-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.frame-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.frame-tag {
    position: absolute; bottom: 14px; left: 14px; z-index: 3;
    font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 2px; color: var(--white);
    background: rgba(0,0,0,0.6); padding: 0.35rem 0.6rem; border-left: 2px solid var(--red);
}

/* -------------------------------------------------------------
   ROSTER
   ------------------------------------------------------------- */
.roster { max-width: 1320px; margin: 0 auto; }
.roster-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1.15rem;
}
.player {
    flex: 1 1 210px; max-width: 250px;
    position: relative; border: 1px solid var(--line); background: var(--surface);
    backdrop-filter: blur(6px); overflow: hidden; border-radius: 4px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transform-style: preserve-3d; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.player:hover { border-color: rgba(var(--red-rgb),0.5); box-shadow: 0 24px 50px -20px rgba(var(--red-rgb),0.4); }
.player-num {
    position: absolute; top: 10px; right: 14px; z-index: 3;
    font-family: var(--font-display); font-size: 2.4rem; line-height: 1;
    color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb),0.18);
}
.player-media { position: relative; aspect-ratio: 3/3.5; overflow: hidden; }
.player-img {
    width: 100%; height: 100%; object-fit: cover;
    filter: grayscale(0.55) contrast(1.05) brightness(0.85);
    transition: filter .5s var(--ease), transform .6s var(--ease);
}
.player-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(var(--bg-rgb),0.55) 75%, var(--bg) 100%);
}
.player:hover .player-img { filter: grayscale(0) contrast(1.12) brightness(1); transform: scale(1.06); }
.player-scan {
    position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
    opacity: 0; box-shadow: var(--glow);
}
.player:hover .player-scan { opacity: 1; animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

.player-body { position: relative; z-index: 3; padding: 0 1.15rem 1.4rem; margin-top: -1.6rem; }
.player-role {
    display: inline-block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--red-bright); border: 1px solid rgba(var(--red-rgb),0.4);
    padding: 0.25rem 0.55rem; margin-bottom: 0.55rem; background: rgba(var(--red-rgb),0.08);
}
.player-name {
    font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 1px;
    line-height: 1; margin-bottom: 0.9rem;
}
.player-stats { display: grid; gap: 0.45rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .5s var(--ease); }
.player:hover .player-stats { max-height: 200px; opacity: 1; }
.player-stats li {
    display: flex; justify-content: space-between; gap: 0.5rem;
    font-size: 0.78rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line);
}
.player-stats span { font-family: var(--font-mono); color: var(--muted-dim); letter-spacing: 0.5px; }
.player-stats b { color: var(--white); font-weight: 500; text-align: right; }
.player-edge {
    position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; z-index: 4;
    background: linear-gradient(90deg, var(--red-deep), var(--red-bright));
    transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.player:hover .player-edge { transform: scaleX(1); }

/* -------------------------------------------------------------
   ACHIEVEMENTS / TIMELINE
   ------------------------------------------------------------- */
.achievements { max-width: var(--max); margin: 0 auto; }
.timeline { position: relative; padding: 1rem 0; }
.timeline-spine {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    transform: translateX(-50%); background: var(--line);
}
.timeline-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: linear-gradient(var(--red-bright), var(--red-deep)); box-shadow: var(--glow);
}
.tl-item { position: relative; width: 50%; padding: 1.5rem 3rem; }
.tl-item.left { left: 0; text-align: right; }
.tl-item.right { left: 50%; text-align: left; }
.tl-node {
    position: absolute; top: 2rem; width: 46px; height: 46px; z-index: 3;
    display: grid; place-items: center; border-radius: 50%;
    background: var(--bg-2); border: 2px solid var(--red);
    box-shadow: var(--glow); font-size: 1.2rem;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.tl-item.left  .tl-node { right: -23px; }
.tl-item.right .tl-node { left: -23px; }
.tl-item:hover .tl-node { transform: scale(1.15); box-shadow: var(--glow-strong); }

.tl-card {
    position: relative; border: 1px solid var(--line); background: var(--surface);
    backdrop-filter: blur(6px); padding: 1.5rem 1.7rem; border-radius: 4px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.tl-item.right .tl-card { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }
.tl-item:hover .tl-card { transform: translateY(-4px); border-color: rgba(var(--red-rgb),0.45); }
.tl-year { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 2px; color: var(--red-bright); margin-bottom: 0.35rem; }
.tl-title { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.tl-desc { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.9rem; }

.tag {
    display: inline-block; font-family: var(--font-tac); font-weight: 600;
    font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 0.3rem 0.75rem; border-radius: 2px; border: 1px solid;
}
.tag-gold   { color: #ffd45e; border-color: rgba(255,212,94,0.4); background: rgba(255,212,94,0.08); }
.tag-silver { color: #cfd4dc; border-color: rgba(207,212,220,0.4); background: rgba(207,212,220,0.08); }
.tag-bronze { color: #e0a06a; border-color: rgba(224,160,106,0.4); background: rgba(224,160,106,0.08); }
.tag-red    { color: var(--red-bright); border-color: rgba(var(--red-rgb),0.4); background: rgba(var(--red-rgb),0.08); }

/* reveal directions for timeline */
.tl-item.left  { transform: translateX(-40px); opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tl-item.right { transform: translateX(40px); opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.tl-item.in { transform: none; opacity: 1; }

/* -------------------------------------------------------------
   BY THE NUMBERS
   ------------------------------------------------------------- */
.numbers { background:
    radial-gradient(80% 120% at 50% 0%, rgba(var(--red-rgb),0.08), transparent 60%);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.numbers-inner { max-width: var(--max); margin: 0 auto; }
.counter-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-top: 3rem;
}
.counter {
    text-align: center; padding: 2rem 1rem; border: 1px solid var(--line);
    border-radius: 4px; background: var(--surface); position: relative; overflow: hidden;
    transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.counter::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    transform: scaleX(0); transition: transform .5s var(--ease);
}
.counter:hover { border-color: rgba(var(--red-rgb),0.4); transform: translateY(-5px); }
.counter:hover::before { transform: scaleX(1); }
.counter .count {
    font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.8rem);
    line-height: 1; display: block; background: linear-gradient(180deg, var(--white), var(--red));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.counter span { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }

/* -------------------------------------------------------------
   CONTACT
   ------------------------------------------------------------- */
.contact { text-align: center; }
.contact-inner { max-width: 760px; margin: 0 auto; position: relative; }
.contact-inner .sec-index { position: absolute; top: -1.4em; left: 50%; transform: translateX(-50%); }
.contact-inner .sec-kicker { justify-content: center; }
.contact-title {
    font-family: var(--font-display); font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 0.95; letter-spacing: 1px; text-transform: uppercase; margin: 0.5rem 0 1.2rem;
}
.contact-sub { color: var(--muted); font-size: 1.05rem; max-width: 52ch; margin: 0 auto 2.8rem; }

.contact-card {
    display: flex; align-items: center; gap: 1.3rem; text-align: left;
    max-width: 460px; margin: 0 auto; padding: 1.5rem; position: relative;
    border: 1px solid var(--line-strong); background: var(--surface); border-radius: 6px;
    overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.contact-card:hover { transform: translateY(-6px); border-color: var(--red); box-shadow: 0 30px 60px -25px rgba(var(--red-rgb),0.6); }
.contact-icon {
    flex-shrink: 0; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #f9587c, #e50914, #7d2ff0); box-shadow: var(--glow);
}
.contact-icon svg { width: 30px; height: 30px; color: #fff; }
.contact-meta { display: flex; flex-direction: column; }
.contact-platform { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 1px; }
.contact-handle { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); }
.contact-go { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-tac); font-weight: 600; font-size: 0.82rem; letter-spacing: 1px; text-transform: uppercase; color: var(--red-bright); white-space: nowrap; }
.contact-go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.contact-card:hover .contact-go svg { transform: translateX(4px); }

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--line); padding: clamp(3rem,6vw,4.5rem) var(--pad) 2.5rem;
    max-width: var(--max); margin: 0 auto;
}
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { font-family: var(--font-tac); font-size: 0.92rem; letter-spacing: 0.5px; color: var(--muted); transition: color .3s var(--ease); }
.footer-nav a:hover { color: var(--red-bright); }
.footer-desc { color: var(--muted-dim); font-size: 0.92rem; max-width: 48ch; margin: 1.5rem 0; }
.footer-divider { height: 1px; background: var(--line); margin: 1.5rem 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-dim); letter-spacing: 0.5px; }

/* -------------------------------------------------------------
   BACK TO TOP
   ------------------------------------------------------------- */
.to-top {
    position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 8000;
    width: 48px; height: 48px; display: grid; place-items: center;
    background: var(--red); border-radius: 4px; box-shadow: var(--glow);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s, box-shadow .3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; color: #fff; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { box-shadow: var(--glow-strong); transform: translateY(-3px); }

/* -------------------------------------------------------------
   FUTURISTIC / HUD LAYER
   ------------------------------------------------------------- */
/* CRT scanlines — very subtle, sells the "interface" feel */
.fx-scanlines {
    position: fixed; inset: 0; z-index: 9995; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(var(--fg-rgb), 0.028) 0 1px, transparent 1px 3px);
    mix-blend-mode: overlay; opacity: 0.6;
}
.light .fx-scanlines { opacity: 0.35; }

/* HUD corner brackets on cards */
.player::after, .tl-card::after, .counter::after, .contact-card::after {
    content: ""; position: absolute; inset: 7px; z-index: 3; pointer-events: none;
    --c: rgba(var(--red-rgb), 0.55); --s: 13px; --t: 1.5px;
    background:
        linear-gradient(var(--c), var(--c)) 0 0     / var(--s) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) 0 0     / var(--t) var(--s) no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 0   / var(--s) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 0   / var(--t) var(--s) no-repeat,
        linear-gradient(var(--c), var(--c)) 0 100%   / var(--s) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) 0 100%   / var(--t) var(--s) no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 100% / var(--s) var(--t) no-repeat,
        linear-gradient(var(--c), var(--c)) 100% 100% / var(--t) var(--s) no-repeat;
    opacity: 0.28; transition: opacity .4s var(--ease);
}
.player:hover::after, .tl-card:hover::after, .counter:hover::after, .contact-card:hover::after { opacity: 1; }

/* Hero HUD frame */
.hero-hud { position: absolute; inset: clamp(1rem, 4vw, 2.5rem); z-index: 1; pointer-events: none; }
.hud-c { position: absolute; width: 26px; height: 26px; border: 2px solid rgba(var(--red-rgb), 0.6); box-shadow: var(--glow); }
.hud-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-label {
    position: absolute; display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 2px; color: var(--muted);
    text-transform: uppercase;
}
.hud-label.hud-tr { top: -3px; right: 40px; }
.hud-label.hud-bl { bottom: -3px; left: 40px; }
.hud-label i { width: 6px; height: 6px; background: var(--red); box-shadow: var(--glow); animation: tickPulse 1.4s ease-in-out infinite; }

/* Theme toggle */
.theme-toggle {
    width: 42px; height: 42px; display: grid; place-items: center; flex-shrink: 0;
    border: 1px solid var(--line-strong); color: var(--white);
    background: rgba(var(--fg-rgb), 0.02); transition: color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.theme-toggle:hover { border-color: var(--red); color: var(--red-bright); box-shadow: var(--glow); transform: translateY(-2px); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
.light .theme-toggle .icon-moon { display: none; }
.light .theme-toggle .icon-sun { display: block; }

/* -------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .player { max-width: 300px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-copy .sec-index { position: static; display: block; margin-bottom: 0.5rem; }
    .about-media { max-width: 560px; }
}

@media (max-width: 860px) {
    .nav-desktop { display: none; }
    .header-cta { display: none; }
    .live-badge { display: none; }
    .menu-btn { display: flex; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); }

    /* Timeline → single column left rail */
    .timeline-spine { left: 20px; }
    .tl-item, .tl-item.left, .tl-item.right {
        width: 100%; left: 0; text-align: left; padding: 1rem 0 1rem 3.5rem;
        transform: translateX(30px);
    }
    .tl-item.in { transform: none; }
    .tl-item.left .tl-node, .tl-item.right .tl-node { left: -2px; right: auto; }
    .tl-item .tl-card, .tl-item.right .tl-card {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    }
}

@media (max-width: 600px) {
    .hud-label { display: none; }
}

@media (max-width: 520px) {
    .player { flex-basis: 100%; max-width: 440px; }
    .counter-grid { grid-template-columns: 1fr; }
    .hero-stat-div { display: none; }
    .hero-stats { gap: 1.5rem; }
    .contact-card { flex-direction: column; text-align: center; }
    .contact-go { margin-left: 0; }
    .footer-bottom { flex-direction: column; }
}

/* -------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important; scroll-behavior: auto !important;
    }
    [data-reveal], .tl-item { opacity: 1 !important; transform: none !important; }
    .fx-grain, .hero-glow, .hero-scroll-line::after { animation: none !important; }
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}
