/* ============================================================
   NarXploit — Cybersecurity Community
   Design system + layout
   Theme: near-black + brand red (from logo) "red-team" aesthetic
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --bg:        #0a0a0e;
  --bg-1:      #0c0c11;
  --panel:     #101017;
  --panel-2:   #15151f;
  --elev:      #1a1a25;

  /* brand */
  --red:       #e11d2a;   /* logo X */
  --red-bright:#ff3546;
  --red-glow:  #ff5a63;
  --red-deep:  #8f0f18;

  /* accents */
  --term:      #4ade80;   /* terminal green, used sparingly */
  --term-dim:  #1f6b42;
  --cyan:      #38bdf8;

  /* text */
  --text:      #ececf2;
  --muted:     #a2a2ad;
  --dim:       #6a6a78;
  --faint:     #43434f;

  /* lines */
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --red-line:  rgba(225,29,42,0.35);

  /* type */
  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;

  /* metrics */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --sp-section: clamp(4.5rem, 9vw, 8rem);

  --shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  --shadow-red: 0 0 0 1px var(--red-line), 0 22px 55px -22px rgba(225,29,42,0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
::selection { background: var(--red); color: #fff; }

/* ---------- Global background texture ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(225,29,42,0.10), transparent 60%),
    radial-gradient(900px 600px at 5% 10%, rgba(56,189,248,0.05), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.2rem); }
.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red-glow);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: "//"; color: var(--red); opacity: 0.7; }

.section-title {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  max-width: 22ch;
}
.section-title .hl { color: var(--red); }
.section-lead {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}
.section-head { margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-family: var(--f-mono); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(225,29,42,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(225,29,42,0.85); }
.btn--ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line-2);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--red-line); color: #fff; background: rgba(225,29,42,0.06); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.82rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(8,8,11,0.6);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled { background: rgba(8,8,11,0.86); border-bottom-color: var(--line); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__logo { height: 26px; width: auto; }
.wordmark {
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.02em; color: var(--text);
}
.wordmark .x { color: var(--red); }

.nav__links { display: flex; align-items: center; gap: 0.35rem; }
.nav__links a {
  padding: 0.5rem 0.7rem; border-radius: 8px; white-space: nowrap;
  font-family: var(--f-mono); font-size: 0.83rem; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav__cta { display: flex; align-items: center; gap: 0.6rem; }

.nav__burger {
  display: none; width: 42px; height: 42px; border-radius: 9px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.hero__status {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.02); margin-bottom: 1.6rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--term); box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,0.5);} 70%{box-shadow:0 0 0 9px rgba(74,222,128,0);} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0);} }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.hero__title .x { color: var(--red); text-shadow: 0 0 30px rgba(225,29,42,0.55); }
.hero__title .glitch { position: relative; display: inline-block; }
.hero__sub {
  color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  max-width: 52ch; margin-top: 1.4rem;
}
.hero__sub b { color: var(--text); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.1rem; }

.hero__stats { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.stat { }
.stat__num { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text); }
.stat__num .unit { color: var(--red); }
.stat__label { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-top: 0.15rem; }

/* Terminal card */
.terminal {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--f-mono);
}
.terminal__bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.terminal__dots { display: flex; gap: 0.4rem; }
.terminal__dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal__dots i:nth-child(1){ background:#ff5f56; } .terminal__dots i:nth-child(2){ background:#ffbd2e; } .terminal__dots i:nth-child(3){ background:#27c93f; }
.terminal__title { margin-left: 0.4rem; font-size: 0.76rem; color: var(--dim); }
.terminal__body { padding: 1.1rem 1.2rem; font-size: 0.86rem; line-height: 1.9; height: 250px; overflow: hidden; }
.terminal__body .l { display: block; white-space: pre-wrap; }
.prompt { color: var(--term); }
.prompt::before { content: "➜ "; color: var(--red); }
.tok-cmd { color: var(--text); }
.tok-flag { color: var(--cyan); }
.tok-str { color: var(--red-glow); }
.tok-ok { color: var(--term); }
.tok-comment { color: var(--dim); }
.caret { display: inline-block; width: 9px; height: 1.05em; background: var(--term); vertical-align: -2px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee (partners / tags) ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255,255,255,0.015); padding-block: 0.9rem; }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: scrollx 26s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--f-mono); font-size: 0.85rem; color: var(--dim); letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 0.6rem; }
.marquee__track span::before { content: "▹"; color: var(--red); }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- Cards grid generic ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0));
  padding: 1.5rem;
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s, background 0.28s;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 200px at var(--mx,50%) var(--my,0%), rgba(225,29,42,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { transform: translateY(-5px); border-color: var(--red-line); box-shadow: var(--shadow-red); }
.card:hover::after { opacity: 1; }
.card__icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(225,29,42,0.1); border: 1px solid var(--red-line); color: var(--red-glow);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__tag { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--f-mono); font-size: 0.7rem; color: var(--dim); }

/* ---------- About / story ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.timeline { position: relative; margin-top: 0.5rem; padding-left: 1.6rem; }
.timeline::before { content:""; position:absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--red), transparent); }
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item::before { content:""; position:absolute; left: -1.6rem; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--red); box-shadow: 0 0 0 4px rgba(225,29,42,0.12); }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--f-mono); font-size: 0.8rem; color: var(--red-glow); letter-spacing: 0.06em; }
.tl-item h4 { font-size: 1.05rem; margin: 0.25rem 0 0.35rem; }
.tl-item p { color: var(--muted); font-size: 0.92rem; }

.values { display: grid; gap: 0.9rem; }
.value { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.015); }
.value__k { font-family: var(--f-mono); color: var(--red); font-weight: 700; }

/* ---------- Divisions / tracks ---------- */
.track { padding: 1.4rem; }
.track__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.track__badge { font-family: var(--f-mono); font-size: 0.72rem; color: var(--dim); border: 1px solid var(--line); padding: 0.2rem 0.5rem; border-radius: 6px; }
.track h3 { font-size: 1.05rem; }
.track h3 .sym { color: var(--red); font-family: var(--f-mono); }
.track ul { list-style: none; margin: 0.7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.track li { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 6px; padding: 0.2rem 0.5rem; }

/* ---------- Achievements ---------- */
.ach-list { display: grid; gap: 0.7rem; }
.ach {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 0.95rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.015); transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.ach:hover { border-color: var(--red-line); background: rgba(225,29,42,0.05); transform: translateX(4px); }
.ach__place { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; min-width: 2.6rem; text-align: center; }
.ach__place.gold { color: #ffcf4a; } .ach__place.silver { color: #cdd3dc; } .ach__place.bronze { color: #d38b5d; } .ach__place.na{ color: var(--dim); }
.ach__name { font-weight: 600; }
.ach__meta { font-family: var(--f-mono); font-size: 0.76rem; color: var(--dim); margin-top: 0.1rem; }
.ach__pts { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); text-align: right; }

/* ---------- Events ---------- */
.event {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.15rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.event:hover { border-color: var(--red-line); transform: translateY(-3px); box-shadow: var(--shadow-red); }
.event__date { text-align: center; border-right: 1px solid var(--line); padding-right: 1rem; }
.event__date .d { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.event__date .m { font-family: var(--f-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--red-glow); letter-spacing: 0.1em; }
.event__body h4 { font-size: 1.1rem; }
.event__body p { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }
.event__type { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 100px; padding: 0.3rem 0.7rem; white-space: nowrap; }
.event--past { opacity: 0.62; }
.event--past .event__type { color: var(--dim); }

/* ---------- Members ---------- */
.member { text-align: center; padding: 1.6rem 1.2rem; }
.member__avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1rem;
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.6rem;
  background: linear-gradient(145deg, var(--elev), var(--panel)); border: 1px solid var(--red-line);
  color: var(--text); position: relative;
}
.member__avatar::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px dashed var(--red-line); opacity:0.5; }
.member h4 { font-size: 1.05rem; }
.member__role { font-family: var(--f-mono); font-size: 0.76rem; color: var(--red-glow); margin-top: 0.15rem; }
.member__socials { display: flex; gap: 0.5rem; justify-content: center; margin-top: 0.9rem; }
.member__socials a { color: var(--dim); transition: color 0.2s, transform 0.2s; }
.member__socials a:hover { color: var(--red); transform: translateY(-2px); }
.member__socials svg { width: 17px; height: 17px; }

/* ---------- Join / CTA ---------- */
.join {
  border: 1px solid var(--red-line); border-radius: 20px;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(225,29,42,0.14), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: clamp(2rem, 5vw, 3.6rem);
  position: relative; overflow: hidden;
}
.join__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,4vw,3rem); align-items: center; }
.join h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.join p { color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.steps { display: grid; gap: 0.8rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,0.25); }
.step__n { font-family: var(--f-mono); font-weight: 700; color: var(--bg); background: var(--red); width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 0.85rem; }
.step h4 { font-size: 0.98rem; }
.step p { color: var(--muted); font-size: 0.86rem; margin-top: 0.15rem; }

/* ---------- Contact / footer ---------- */
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 0.9rem; }
.social {
  display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.015);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.social:hover { border-color: var(--red-line); transform: translateY(-3px); background: rgba(225,29,42,0.05); }
.social__ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,0.04); color: var(--text); }
.social__ic svg { width: 19px; height: 19px; }
.social__k { font-weight: 600; font-size: 0.92rem; }
.social__v { font-family: var(--f-mono); font-size: 0.74rem; color: var(--dim); }

.footer { border-top: 1px solid var(--line); padding-block: 2.6rem; margin-top: var(--sp-section); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between; }
.footer p { font-family: var(--f-mono); font-size: 0.8rem; color: var(--dim); }
.footer__links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__links a { font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted); }
.footer__links a:hover { color: var(--red); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"]{ transition-delay: 0.08s; }
.reveal[data-delay="2"]{ transition-delay: 0.16s; }
.reveal[data-delay="3"]{ transition-delay: 0.24s; }
.reveal[data-delay="4"]{ transition-delay: 0.32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .terminal { order: 2; }
  .about__grid, .join__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .nav__links, .nav__cta .btn--ghost { display: none; }
  .nav__burger { display: flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.2rem;
    background: #0a0a0e; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -20px rgba(0,0,0,0.9);
    padding: 0.8rem clamp(1.1rem,4vw,2.2rem) 1.4rem;
  }
  .nav.open .nav__links a { padding: 0.75rem 0.8rem; }
}
@media (max-width: 560px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.2rem 1.6rem; }
  .event { grid-template-columns: 70px 1fr; }
  .event__type { display: none; }
  .ach { grid-template-columns: auto 1fr; }
  .ach__pts { display: none; }
}

/* ============================================================
   Extended components
   ============================================================ */

/* meeting chip — the recurring when/where, reused in hero + join + footer */
.meet-chip {
  display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--red-line); border-radius: 100px;
  padding: 0.45rem 0.95rem; background: rgba(225,29,42,0.06);
}
.meet-chip b { color: var(--text); font-weight: 600; }
.meet-chip .k { color: var(--red-glow); }

/* status pills */
.pill {
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 100px; border: 1px solid transparent; white-space: nowrap;
}
.pill--open  { color: var(--term); background: rgba(74,222,128,0.1); border-color: rgba(74,222,128,0.3); }
.pill--tryout{ color: var(--red-glow); background: rgba(225,29,42,0.1); border-color: var(--red-line); }
.pill--soon  { color: var(--muted); background: rgba(255,255,255,0.04); border-color: var(--line); }

/* beginner-friendly banner */
.beginner {
  display: grid; grid-template-columns: auto 1fr; gap: 1.3rem; align-items: center;
  border: 1px solid var(--red-line); border-radius: var(--radius);
  background: radial-gradient(500px 200px at 0% 0%, rgba(225,29,42,0.1), transparent 60%), rgba(255,255,255,0.015);
  padding: 1.5rem 1.7rem; margin-top: 1.6rem;
}
.beginner__badge {
  font-family: var(--f-mono); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--red-glow); writing-mode: vertical-rl; transform: rotate(180deg);
  border-right: 2px solid var(--red); padding-right: 0.9rem;
}
.beginner p { color: var(--muted); }
.beginner b { color: var(--text); }
@media (max-width: 560px) {
  .beginner { grid-template-columns: 1fr; }
  .beginner__badge { writing-mode: horizontal-tb; transform: none; border-right: none; border-bottom: 2px solid var(--red); padding: 0 0 0.5rem; }
}

/* division meta row */
.track__meta { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; font-family: var(--f-mono); font-size: 0.74rem; color: var(--dim); }
.track__meta .slot { color: var(--muted); }

/* NarXploit Academy */
.academy { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px,1fr)); gap: 0.9rem; }
.week {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  transition: border-color 0.25s, transform 0.25s;
}
.week:hover { border-color: var(--red-line); transform: translateY(-3px); }
.week__n { font-family: var(--f-mono); font-size: 0.72rem; color: var(--red-glow); letter-spacing: 0.1em; }
.week h4 { font-size: 1rem; margin: 0.35rem 0 0.3rem; }
.week p { color: var(--muted); font-size: 0.84rem; }

.flagship__prizes { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.15rem; }
.flagship__prize { padding: 0.38rem 0.65rem; border: 1px solid var(--red-line); border-radius: 7px; color: var(--muted); font-family: var(--f-mono); font-size: 0.76rem; }
.flagship__prize b { color: var(--red-glow); margin-right: 0.3rem; }


/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 780px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.015);
  padding: 0 1.1rem; transition: border-color 0.25s;
}
.faq details[open] { border-color: var(--red-line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 0; font-weight: 600; font-size: 0.98rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--red); font-size: 1.2rem; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); font-size: 0.92rem; padding: 0 0 1.1rem; }

/* sponsors */
.sponsors { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.sponsor {
  font-family: var(--f-mono); font-size: 0.9rem; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
  padding: 1rem 1.6rem; background: rgba(255,255,255,0.015);
  min-width: 150px; text-align: center;
}
.sponsor--live { border-style: solid; color: var(--text); }

/* generic two-column split used by academy/sponsors intro */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* no-js notice */
.nojs { display: none; }
.no-js .nojs {
  display: block; text-align: center; font-family: var(--f-mono); font-size: 0.85rem;
  color: var(--red-glow); background: rgba(225,29,42,0.08); border-block: 1px solid var(--red-line);
  padding: 0.7rem 1rem;
}

/* section anchor offset for sticky nav */
:target { scroll-margin-top: 84px; }
.section[id] { scroll-margin-top: 68px; }

/* skip link a11y */
.skip { position: absolute; left: -999px; top: 0; z-index: 100; }
.skip:focus { left: 12px; top: 12px; padding: 0.6rem 1rem; background: var(--red); color: #fff; border-radius: 8px; font-family: var(--f-mono); font-size: 0.85rem; }

/* focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--red-glow); outline-offset: 3px; border-radius: 4px;
}
