/* 5Gringos-Qween - shared design system. One stylesheet for every page. */
:root {
  --bg: #07060f;
  --bg-2: #0b0a1a;
  --panel: #100e25;
  --panel-2: #181535;
  --line: #29245a;
  --line-2: #3b3580;
  --text: #ecebff;
  --muted: #a3a0cf;
  --cyan: #19f0ff;
  --pink: #ff2e9a;
  --lime: #b6ff3b;
  --amber: #ffb627;
  --r: 12px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: Bahnschrift, "DIN Alternate", "Franklin Gothic Medium", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 520px at 90% -8%, rgba(255, 46, 154, .16), transparent 62%),
    radial-gradient(820px 520px at -6% 4%, rgba(25, 240, 255, .11), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text); font: 400 1rem/1.65 var(--font); -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--cyan); }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-transform: uppercase; letter-spacing: .03em; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--cyan); color: #04030c; font-weight: 700; }
.skip:focus { top: 12px; }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--cyan); --ink: #04030c;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border: 0; cursor: pointer; text-decoration: none;
  font: 700 .85rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--c);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn.pink { --c: var(--pink); --ink: #fff; }
.btn.lime { --c: var(--lime); }
.btn.ghost { background: rgba(255, 255, 255, .02); color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.btn.sm { padding: 11px 18px; font-size: .76rem; }
.btn.block { width: 100%; }

/* ---------- Navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 6, 15, .84); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--text); text-decoration: none; font: 800 1.12rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(25, 240, 255, .45)) brightness(1.15); }
.brand b { color: var(--cyan); font-weight: 800; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu a:not(.btn) { position: relative; display: block; padding: 10px 14px; color: var(--muted); text-decoration: none; font: 600 .84rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; transition: color .15s; }
.menu a:not(.btn):hover, .menu a[aria-current="page"]:not(.btn) { color: var(--text); }
.menu a[aria-current="page"]:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.menu .btn { margin-left: 10px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--text); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(115deg, transparent 0 30px, rgba(25, 240, 255, .035) 30px 31px), linear-gradient(100deg, transparent 45%, rgba(255, 46, 154, .1)); }
.kicker { font: 700 .76rem/1 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--pink); }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 900; }
.page-hero h1 em, .accent { font-style: normal; color: var(--cyan); text-shadow: 0 0 28px rgba(25, 240, 255, .4); }
.page-hero p.lead { max-width: 62ch; margin: 0; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.sec-head h2 { margin-top: 12px; font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.sec-head p { max-width: 56ch; margin: 10px 0 0; color: var(--muted); }
.note { margin: 0 0 22px; padding: 10px 14px; border-left: 3px solid var(--amber); background: rgba(255, 182, 39, .07); color: var(--muted); font-size: .88rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card {
  --a: var(--cyan);
  position: relative; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card::before, .card::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--a); opacity: .85; pointer-events: none; }
.card::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.card::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }
.card:hover { transform: translateY(-4px); border-color: var(--a); box-shadow: 0 18px 40px -22px var(--a); }
.card.cyan { --a: var(--cyan); } .card.pink { --a: var(--pink); } .card.lime { --a: var(--lime); } .card.amber { --a: var(--amber); }
.card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: .96rem; }
.card-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: auto; padding-top: 6px; }
.ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 18px; border-radius: 12px; background: color-mix(in srgb, var(--a, var(--cyan)) 14%, transparent); color: var(--a, var(--cyan)); font-size: 1.5rem; }

/* ---------- Tags, meters ---------- */
.tag { --c: var(--cyan); display: inline-block; padding: 6px 9px; border: 1px solid var(--c); border-radius: 4px; background: color-mix(in srgb, var(--c) 10%, transparent); color: var(--c); font: 700 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.tag.cs2 { --c: var(--amber); } .tag.dota { --c: var(--pink); } .tag.open { --c: var(--lime); } .tag.hot { --c: var(--pink); } .tag.muted { --c: var(--muted); }
.soon { display: inline-block; color: var(--muted); font: 700 .7rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), var(--pink)); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); }
.stat { padding: 26px 18px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); text-align: center; }
.stat strong { display: block; color: var(--c, var(--cyan)); font: 800 clamp(1.8rem, 4vw, 2.7rem)/1 var(--mono); font-variant-numeric: tabular-nums; text-shadow: 0 0 18px color-mix(in srgb, var(--c, var(--cyan)) 45%, transparent); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font: 600 .74rem/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(52px, 8vw, 104px) 0 clamp(96px, 11vw, 150px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 20px 0 22px; font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 900; line-height: .95; }
.hero .lead { max-width: 52ch; margin: 0; color: var(--muted); font-size: 1.15rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid color-mix(in srgb, var(--lime) 50%, transparent); border-radius: 99px; background: rgba(182, 255, 59, .07); color: var(--lime); font: 700 .74rem/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.grid-floor { position: absolute; left: -50%; right: -50%; bottom: 0; z-index: -1; height: 48%; opacity: .4; background-image: linear-gradient(var(--cyan) 2px, transparent 2px), linear-gradient(90deg, var(--cyan) 2px, transparent 2px); background-size: 64px 64px; transform: perspective(360px) rotateX(58deg); transform-origin: 50% 100%; animation: scroll-grid 2.4s linear infinite; -webkit-mask-image: linear-gradient(to top, #000 15%, transparent 95%); mask-image: linear-gradient(to top, #000 15%, transparent 95%); }
@keyframes scroll-grid { to { background-position: 0 64px; } }
.glitch { position: relative; display: inline-block; text-shadow: 0 0 30px rgba(25, 240, 255, .4); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: var(--pink); transform: translate(3px, 0); mix-blend-mode: screen; animation: glitch-a 3.2s infinite steps(1); }
.glitch::after { color: var(--cyan); transform: translate(-3px, 0); mix-blend-mode: screen; animation: glitch-b 3.2s infinite steps(1); }
@keyframes glitch-a { 0%, 88%, 100% { clip-path: inset(0 0 100% 0); } 90% { clip-path: inset(20% 0 55% 0); transform: translate(6px, 0); } 94% { clip-path: inset(62% 0 8% 0); transform: translate(-4px, 0); } }
@keyframes glitch-b { 0%, 90%, 100% { clip-path: inset(0 0 100% 0); } 92% { clip-path: inset(48% 0 30% 0); transform: translate(-6px, 0); } 96% { clip-path: inset(8% 0 72% 0); transform: translate(4px, 0); } }

.ticket { --a: var(--pink); position: relative; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); box-shadow: 0 30px 60px -30px rgba(255, 46, 154, .45); }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--a); pointer-events: none; }
.ticket::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.ticket::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.ticket h2 { margin: 12px 0 6px; font-size: 1.7rem; }
.ticket .meta { margin: 0 0 20px; color: var(--muted); font-size: .92rem; }
.prize { color: var(--amber); font: 800 2.1rem/1 var(--mono); text-shadow: 0 0 18px rgba(255, 182, 39, .4); }
.prize small { display: block; margin-bottom: 6px; color: var(--muted); font: 600 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; text-shadow: none; }
.count { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 0; }
.count div { padding: 12px 4px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .25); text-align: center; }
.count b { display: block; font: 800 1.6rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--cyan); }
.count span { color: var(--muted); font: 600 .62rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.live-now { margin: 20px 0; color: var(--lime); font: 800 1.3rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; color: var(--muted); font-size: .86rem; }

/* ---------- Events / tournaments ---------- */
.event { --c: var(--cyan); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); transition: border-color .2s; }
.event + .event { margin-top: 14px; }
.event:hover { border-color: var(--c); }
.date { display: grid; place-items: center; width: 74px; padding: 10px 0 8px; border: 1px solid var(--c); border-radius: 8px; background: color-mix(in srgb, var(--c) 8%, transparent); color: var(--c); font-family: var(--mono); text-align: center; line-height: 1; }
.date b { font-size: 1.7rem; }
.date small { margin-top: 5px; font-size: .68rem; letter-spacing: .22em; }
.event h3 { margin: 0 0 6px; font-size: 1.25rem; }
.event p { margin: 0; color: var(--muted); font-size: .92rem; }
.event .side { display: flex; align-items: center; gap: 18px; }

.tcard { --c: var(--cyan); position: relative; display: grid; grid-template-columns: 1fr 250px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tcard + .tcard { margin-top: 20px; }
.tcard:hover { border-color: var(--c); box-shadow: 0 18px 44px -26px var(--c); }
.tcard::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.tcard-main { padding: 26px 28px 26px 32px; }
.tcard-main h3 { margin: 14px 0 18px; font-size: 1.6rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px 24px; margin: 0; }
.specs dt { color: var(--muted); font: 700 .66rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.specs dd { margin: 6px 0 0; font-weight: 600; }
.tcard-side { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 26px 26px 26px 22px; border-left: 1px dashed var(--line-2); background: rgba(0, 0, 0, .18); }
.tcard-side .btn { align-self: stretch; }

/* ---------- Teams ---------- */
.layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 88px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.filters h2 { font-size: 1.15rem; }
.filters fieldset { margin: 20px 0 0; padding: 0; border: 0; min-width: 0; }
.filters legend { padding: 0; margin-bottom: 10px; color: var(--muted); font: 700 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; color: var(--text); font-size: .95rem; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 2px solid var(--line-2); border-radius: 5px; background: var(--bg); cursor: pointer; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.check input:hover { border-color: var(--cyan); }
.check input:checked { border-color: var(--cyan); background: var(--cyan); }
.check input:checked::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid #04030c; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.filters .btn { margin-top: 22px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--muted); font: 600 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.badge { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: color-mix(in srgb, var(--a) 16%, var(--bg)); border: 1px solid var(--a); color: var(--a); font: 900 1.25rem/1 var(--display); letter-spacing: .04em; }
.team-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.team-head h3 { margin: 0 0 6px; }
.chips-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.chips-meta li { padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--muted); font: 600 .7rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.empty { padding: 44px 24px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; color: var(--muted); }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); color: var(--muted); cursor: pointer; font: 700 .76rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; transition: color .15s, border-color .15s, background .15s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { border-color: var(--cyan); background: var(--cyan); color: #04030c; }

/* ---------- Community ---------- */
.threads { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.thread { --c: var(--cyan); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid rgba(41, 36, 90, .7); transition: background .15s; }
.thread:last-child { border-bottom: 0; }
.thread:hover { background: rgba(25, 240, 255, .04); }
.thread .ico { width: 42px; height: 42px; margin: 0; font-size: 1.15rem; --a: var(--c); }
.thread h3 { margin: 0 0 4px; font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.thread p { margin: 0; color: var(--muted); font-size: .84rem; }
.thread .stats-inline { display: flex; align-items: center; gap: 14px; color: var(--muted); font: 600 .78rem/1 var(--mono); white-space: nowrap; }
.cat-card { cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.cat-card .nums { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; color: var(--muted); font: 600 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Guides rows ---------- */
.rows { margin: 0; padding: 0; list-style: none; counter-reset: row; }
.row { --c: var(--cyan); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.row + .row { margin-top: 12px; }
.row::before { counter-increment: row; content: counter(row, decimal-leading-zero); color: var(--c); font: 800 1.1rem/1 var(--mono); }
.row h3 { margin: 0 0 4px; font-family: var(--font); font-size: 1.02rem; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.3; }
.row p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Prose / terms ---------- */
.doc { display: grid; grid-template-columns: 250px minmax(0, 74ch); justify-content: center; gap: 48px; align-items: start; }
.toc { position: sticky; top: 88px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.toc h2 { margin-bottom: 12px; font-size: .95rem; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: .88rem; }
.toc a:hover { color: var(--cyan); }
.prose section { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.prose section:last-of-type { border-bottom: 0; }
.prose h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; font-size: 1.5rem; }
.prose h2 span { color: var(--pink); font: 800 1rem/1 var(--mono); }
.prose p, .prose li { color: #cfcdf0; }
.prose ul { padding-left: 1.2em; }
.prose strong { color: var(--text); }
.callout { margin: 18px 0; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--pink) 55%, transparent); border-left: 4px solid var(--pink); border-radius: 8px; background: rgba(255, 46, 154, .07); }
.callout h3 { margin-bottom: 10px; font-size: 1.05rem; }
.callout ul { margin: 0; }

/* ---------- FAQ ---------- */
details { border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
details + details { margin-top: 12px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan); font: 800 1.4rem/1 var(--mono); transition: transform .2s; }
details[open] { border-color: var(--line-2); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.form { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--r); background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; color: var(--muted); font: 700 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6f6b9e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 240, 255, .18); }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { margin: 0 auto 0 0; color: var(--lime); font: 600 .86rem/1.4 var(--mono); }
.side-stack { display: grid; gap: 18px; }
.side-stack .card p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; padding: clamp(26px, 5vw, 52px); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: linear-gradient(120deg, rgba(25, 240, 255, .09), rgba(255, 46, 154, .13)), var(--panel); }
.cta-band .mark { flex: none; width: 112px; height: 112px; background: linear-gradient(160deg, var(--cyan), var(--pink)); -webkit-mask: url(/images/mark.svg) center / contain no-repeat; mask: url(/images/mark.svg) center / contain no-repeat; filter: drop-shadow(0 0 16px rgba(25, 240, 255, .35)); }
.cta-band .copy { flex: 1 1 320px; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band p { max-width: 50ch; margin: 10px 0 0; color: var(--muted); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */
.footer { margin-top: auto; padding: 44px 0 30px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: .9rem; }
.footer .top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 28px; }
.footer .brand { margin: 0 0 12px; }
.footer .top p { max-width: 38ch; margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer nav a { color: var(--text); text-decoration: none; font: 600 .8rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.footer nav a:hover { color: var(--cyan); }
.footer .bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .layout, .doc { grid-template-columns: 1fr; }
  .filters, .toc { position: static; }
  .filters fieldset { display: flex; flex-wrap: wrap; gap: 0 22px; }
  .filters legend { width: 100%; }
  .tcard { grid-template-columns: 1fr; }
  .tcard-side { border-left: 0; border-top: 1px dashed var(--line-2); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: rgba(7, 6, 15, .97); }
  .nav.open .menu { display: flex; }
  .menu a:not(.btn) { padding: 15px 4px; border-bottom: 1px solid var(--line); }
  .menu a[aria-current="page"]:not(.btn)::after { display: none; }
  .menu .btn { margin: 14px 0 0; }
}
@media (max-width: 640px) {
  .eyebrow { font-size: .64rem; letter-spacing: .12em; padding: 8px 12px; }
  .event { grid-template-columns: auto 1fr; }
  .event .side { grid-column: 1 / -1; justify-content: space-between; }
  .thread { grid-template-columns: auto 1fr; }
  .thread .stats-inline { grid-column: 1 / -1; padding-left: 58px; }
  .row { grid-template-columns: auto 1fr; }
  .row .tag { grid-column: 2; justify-self: start; }
  .form .two { grid-template-columns: 1fr; gap: 0; }
  .cta-band .mark { width: 84px; height: 84px; }
  .brand { font-size: 1rem; letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
