/* ORDNIX - ordnix.ca. One stylesheet, no framework. Dark tactical HUD: the lockup's orange rule as the accent,
   phosphor green as the systems colour, hostile red only for warnings. Motion respects prefers-reduced-motion. */
@import url("fonts.css");

:root {
  --bg: #05080a;
  --bg2: #091014;
  --panel: rgba(9, 17, 20, .80);
  --panel2: rgba(14, 24, 27, .92);
  --line: rgba(126, 232, 190, .12);
  --line2: rgba(126, 232, 190, .30);
  --text: #dde8e3;
  --dim: #9db1a8;
  --faint: #62756d;
  --accent: #e8a33d;
  --accent-hi: #ffc56e;
  --accent-ink: #1a0f02;
  --phos: #5cf2b2;
  --phos-dim: rgba(92, 242, 178, .55);
  --hostile: #ff5a4a;
  --steel: #a9bccd;
  --r: 3px;
  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --head: 'Chakra Petch', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --glow: 0 0 0 1px rgba(232, 163, 61, .35), 0 0 28px rgba(232, 163, 61, .22);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 16px/1.62 var(--head); color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(1200px 700px at 78% -10%, rgba(232, 163, 61, .10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(92, 242, 178, .06), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  background-attachment: fixed;
}
body::before { /* scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply; opacity: .55;
}
body::after { /* vignette */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
img, video, canvas { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a svg, button svg, span svg { width: 1.1em; height: 1.1em; flex: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(232, 163, 61, .35); color: #fff; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.22rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--accent); color: var(--accent-ink);
  padding: 10px 14px; font-weight: 700; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); }
.kicker {
  display: inline-flex; align-items: center; gap: .6em; font: 600 .78rem/1 var(--mono); letter-spacing: .22em;
  text-transform: uppercase; color: var(--phos); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--dim); max-width: 60ch; }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  --cut: 12px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; font: 700 .92rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase;
  color: var(--text); background: rgba(255, 255, 255, .03); border: 0; cursor: pointer;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px var(--line2); transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); color: #fff; box-shadow: inset 0 0 0 1px var(--phos-dim); background: rgba(92, 242, 178, .06); }
.btn-primary { color: var(--accent-ink); background: linear-gradient(180deg, var(--accent-hi), var(--accent)); box-shadow: var(--glow); }
.btn-primary:hover { color: var(--accent-ink); background: linear-gradient(180deg, #ffd694, var(--accent-hi)); box-shadow: 0 0 0 1px rgba(255, 197, 110, .6), 0 0 36px rgba(232, 163, 61, .38); }
.btn-lg { padding: 1.1em 2em; font-size: 1rem; }
.btn-sm { padding: .62em 1.05em; font-size: .78rem; --cut: 8px; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; padding: .35em .75em; font: 600 .74rem/1 var(--mono);
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line2); border-radius: 2px;
  background: rgba(0, 0, 0, .25);
}
button.chip { cursor: pointer; }
button.chip:hover { color: var(--text); border-color: var(--phos-dim); }
.chip.on, .chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 10px var(--phos); animation: pulse 2.4s infinite; }
.dot.amber { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------------------------------------------------------- header + nav */
.site-header {
  position: sticky; top: 0; z-index: 900; backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(180deg, rgba(5, 8, 10, .92), rgba(5, 8, 10, .72));
  border-bottom: 1px solid var(--line); transition: background .3s;
}
.site-header.scrolled { background: rgba(5, 8, 10, .96); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 40% 100%;
  background-repeat: no-repeat; animation: sweep 7s linear infinite; opacity: .7;
}
@keyframes sweep { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.nav { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 30px; width: auto; }
.brand .ver { font: 600 .62rem/1 var(--mono); color: var(--faint); letter-spacing: .18em; padding-top: 12px; }
.menu { display: flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > button {
  display: flex; align-items: center; gap: .45em; padding: 10px 14px; font: 600 .86rem/1 var(--head);
  letter-spacing: .16em; text-transform: uppercase; color: var(--dim); background: none; border: 0; cursor: pointer;
  border-radius: 2px; transition: color .2s, background .2s;
}
.menu > li > a:hover, .menu > li > button:hover, .menu > li > button[aria-expanded="true"], .menu > li.active > a,
.menu > li.active > button { color: var(--text); background: rgba(92, 242, 178, .06); }
.menu > li.active > a, .menu > li.active > button { box-shadow: inset 0 -2px 0 var(--accent); }
.caret { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
button[aria-expanded="true"] .caret { transform: rotate(225deg) translate(-2px, 0); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -10px; min-width: 250px; padding: 10px; list-style: none; margin: 0;
  background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.dropdown::before { content: ""; position: absolute; top: -1px; left: 18px; width: 44px; height: 2px; background: var(--accent); }
.dropdown.open { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: var(--text);
  font: 500 .92rem/1.2 var(--head); letter-spacing: .04em; border-radius: 2px;
}
.dropdown a::after { content: "›"; color: var(--faint); font-family: var(--mono); transition: transform .2s, color .2s; }
.dropdown a:hover { background: rgba(232, 163, 61, .09); color: #fff; }
.dropdown a:hover::after { color: var(--accent); transform: translateX(3px); }
.dropdown .dd-label { padding: 6px 12px 8px; font: 600 .66rem/1 var(--mono); letter-spacing: .2em; color: var(--faint); text-transform: uppercase; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.icon-link { display: grid; place-items: center; width: 38px; height: 38px; color: var(--dim); border: 1px solid var(--line); border-radius: 2px; transition: color .2s, border-color .2s; }
.icon-link:hover { color: var(--text); border-color: var(--line2); }
.icon-link svg { width: 18px; height: 18px; }
.cmd-btn { font: 600 .72rem/1 var(--mono); letter-spacing: .12em; color: var(--phos); background: rgba(92, 242, 178, .06); border: 1px solid rgba(92, 242, 178, .3); padding: 10px 11px; cursor: pointer; border-radius: 2px; }
.cmd-btn:hover { background: rgba(92, 242, 178, .14); }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line2); color: var(--text); cursor: pointer; border-radius: 2px; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(5, 8, 10, .35) 0%, rgba(5, 8, 10, .15) 40%, rgba(5, 8, 10, .82) 78%, var(--bg) 100%),
              linear-gradient(90deg, rgba(5, 8, 10, .78) 0%, rgba(5, 8, 10, .1) 60%); }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .55; mix-blend-mode: screen; pointer-events: none; }
.hero-content { position: relative; width: 100%; padding-bottom: clamp(56px, 10vh, 110px); }
.hero-logo { width: min(620px, 82vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); margin: 0 0 18px -6px; }
.hero h1 { margin: 0; }
.tagline { font: 700 clamp(1.4rem, 3.2vw, 2.4rem)/1.1 var(--head); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.tagline em { font-style: normal; color: var(--accent); text-shadow: 0 0 24px rgba(232, 163, 61, .45); }
.hero .lead { color: #c7d5cf; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-hud { position: absolute; top: 22px; right: var(--gut); display: grid; gap: 6px; text-align: right; font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; }
.hero-hud b { color: var(--phos); font-weight: 600; }
.hero-hud .row { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.hero-corner { position: absolute; width: 28px; height: 28px; border: 2px solid var(--accent); opacity: .6; }
.hero-corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.hero-corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 600 .66rem/1 var(--mono); letter-spacing: .3em; color: var(--faint); display: grid; justify-items: center; gap: 8px; }
.scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: drip 2.2s infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------------------------------------------------------------- ticker */
.ticker { border-block: 1px solid var(--line); background: rgba(0, 0, 0, .35); overflow: hidden; position: relative; }
.ticker-track { display: flex; gap: 0; width: max-content; padding: 13px 0; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font: 600 .8rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); white-space: nowrap; display: flex; align-items: center; gap: 48px; padding-right: 48px; }
.ticker span::after { content: "◆"; color: var(--accent); font-size: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections, panels */
.section { padding: clamp(72px, 11vw, 132px) 0; position: relative; }
.section.tight { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); display: grid; gap: 6px; }
.section-head.center { text-align: center; justify-items: center; }
.section-head.center .lead { margin-inline: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line2), transparent); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); padding: 26px;
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--accent); opacity: .7; transition: width .25s, height .25s, opacity .25s; }
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
a.panel, .panel.hover { color: var(--text); }
a.panel:hover, .panel.hover:hover { border-color: var(--line2); transform: translateY(-3px); background: var(--panel2); }
a.panel:hover::before, a.panel:hover::after, .panel.hover:hover::before, .panel.hover:hover::after { width: 24px; height: 24px; opacity: 1; }
.panel h3 { margin-bottom: .55em; }
.panel p { color: var(--dim); margin: 0; font-size: .98rem; }
.panel .tag { font: 600 .68rem/1 var(--mono); letter-spacing: .2em; color: var(--phos); text-transform: uppercase; display: block; margin-bottom: 14px; }
.icon { width: 42px; height: 42px; margin-bottom: 18px; color: var(--accent); }
.icon svg { width: 100%; height: 100%; }
.feature-num { position: absolute; top: 18px; right: 20px; font: 600 .7rem/1 var(--mono); color: var(--faint); letter-spacing: .14em; }

/* split: text + media */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.frame { position: relative; border: 1px solid var(--line2); background: #000; overflow: hidden; }
.frame img, .frame video { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.03); }
.frame .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; font: 500 .74rem/1.3 var(--mono); letter-spacing: .08em; color: #cfe; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
button.frame { display: block; width: 100%; padding: 0; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.frame .cap svg { width: 1em; height: 1em; display: inline-block; vertical-align: -2px; margin-right: 6px; color: var(--accent); }
.play-badge { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%;
  background: rgba(5, 8, 10, .55); border: 1px solid rgba(232, 163, 61, .75); box-shadow: 0 0 30px rgba(232, 163, 61, .35); color: var(--accent); transition: transform .25s var(--ease), background .25s; }
.play-badge svg { width: 26px; height: 26px; margin-left: 4px; }
button.frame:hover .play-badge, button.frame:focus-visible .play-badge { transform: translate(-50%, -50%) scale(1.08); background: rgba(232, 163, 61, .22); }
.frame .hud-tag { position: absolute; top: 12px; left: 12px; font: 600 .66rem/1 var(--mono); letter-spacing: .2em; color: var(--phos); background: rgba(0, 0, 0, .55); padding: 6px 8px; border: 1px solid rgba(92, 242, 178, .3); }
.bullets { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 12px; }
.bullets li { position: relative; padding-left: 26px; color: var(--dim); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.bullets b { color: var(--text); font-weight: 600; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: rgba(0, 0, 0, .3); }
.stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font: 700 clamp(1.8rem, 3.6vw, 2.8rem)/1 var(--head); color: var(--text); letter-spacing: .02em; }
.stat span { display: block; margin-top: 8px; font: 600 .7rem/1.3 var(--mono); letter-spacing: .18em; color: var(--dim); text-transform: uppercase; }

/* nations */
.nations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.nation { padding: 20px 20px 18px; }
.nation .code { font: 700 2.1rem/1 var(--head); letter-spacing: .06em; color: var(--text); }
.nation .name { font: 600 .74rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--phos); margin: 8px 0 12px; }
.nation p { font-size: .9rem; }

/* ranked tiers */
.tiers { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; }
.tier { text-align: center; padding: 16px 6px 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); position: relative; }
.tier b { display: block; font: 700 .92rem/1 var(--head); letter-spacing: .12em; }
.tier span { display: block; margin-top: 8px; font: 600 .7rem/1 var(--mono); color: var(--dim); }
.tier .bar { height: var(--h); margin: 0 auto 12px; width: 12px; background: linear-gradient(180deg, var(--c), transparent); box-shadow: 0 0 16px var(--c); }

/* spec table */
.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec th, .spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 26%; font: 600 .72rem/1.4 var(--mono); letter-spacing: .16em; color: var(--dim); text-transform: uppercase; }
.spec thead th { color: var(--accent); border-bottom-color: var(--line2); }
.spec td { color: var(--text); }

/* ---------------------------------------------------------------- media */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { font: 600 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 12px 16px; color: var(--dim); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); cursor: pointer; border-radius: 2px; }
.tab[aria-selected="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.player { position: relative; border: 1px solid var(--line2); background: #000; }
.player video { width: 100%; aspect-ratio: 16/9; background: #000; }
.player-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; font: 500 .74rem/1.4 var(--mono); letter-spacing: .08em; color: var(--dim); border-top: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot { position: relative; padding: 0; border: 1px solid var(--line); background: #000; cursor: zoom-in; overflow: hidden; aspect-ratio: 16/9; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; filter: saturate(.92); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0 48%, rgba(92, 242, 178, .16) 50%, transparent 52%); background-size: 100% 220%; background-position: 0 -120%; opacity: 0; transition: opacity .3s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); filter: saturate(1.08); }
.shot:hover::after { opacity: 1; animation: scan 1.4s linear infinite; }
@keyframes scan { to { background-position: 0 120%; } }
.shot .num { position: absolute; left: 10px; bottom: 10px; font: 600 .66rem/1 var(--mono); color: var(--phos); background: rgba(0, 0, 0, .6); padding: 5px 7px; letter-spacing: .14em; }
.gallery.small { grid-template-columns: repeat(6, 1fr); }
.gallery.small .shot { aspect-ratio: 16/10; }

/* lightbox + modal (dialog) */
dialog { padding: 0; border: 0; background: transparent; color: var(--text); max-width: 100vw; max-height: 100vh; }
dialog::backdrop { background: rgba(2, 4, 5, .9); backdrop-filter: blur(6px); }
.lb { width: 100vw; height: 100vh; }
.lb-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; padding: 56px clamp(12px, 5vw, 80px) 20px; }
.lb-img { display: grid; place-items: center; min-height: 0; }
.lb-img img { max-height: 100%; max-width: 100%; object-fit: contain; border: 1px solid var(--line2); }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; font: 500 .8rem/1.4 var(--mono); color: var(--dim); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; font: 400 1.6rem/1 var(--mono); color: var(--text); background: rgba(0, 0, 0, .5); border: 1px solid var(--line2); cursor: pointer; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.close-btn { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; font: 400 1.3rem/1 var(--mono); color: var(--text); background: rgba(0, 0, 0, .55); border: 1px solid var(--line2); cursor: pointer; z-index: 2; }
.close-btn:hover { color: var(--accent); border-color: var(--accent); }
.modal-video { width: min(1200px, 94vw); }
.modal-video .player video { max-height: 78vh; }

/* ---------------------------------------------------------------- FAQ, support */
.faq-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.search { position: relative; flex: 1 1 320px; }
.search input { width: 100%; padding: 14px 16px 14px 44px; font: 500 1rem/1 var(--head); color: var(--text); background: rgba(0, 0, 0, .4); border: 1px solid var(--line2); border-radius: 2px; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--line2); background: var(--panel2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font: 600 1.02rem/1.35 var(--head); letter-spacing: .02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 1.4rem/1 var(--mono); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .ans { padding: 0 20px 20px; color: var(--dim); font-family: var(--body); font-size: .98rem; line-height: 1.65; }
.faq .ans p:last-child { margin-bottom: 0; }
.faq .cat { font: 600 .64rem/1 var(--mono); letter-spacing: .18em; color: var(--phos); margin-right: 10px; text-transform: uppercase; }
.faq-empty { display: none; padding: 20px; color: var(--dim); border: 1px dashed var(--line2); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); color: var(--dim); font-family: var(--body); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 16px; top: 14px; font: 700 1.1rem/1 var(--mono); color: var(--accent); }
.steps b, .ui { color: var(--text); }
.ui { font: 600 .86em/1 var(--mono); letter-spacing: .06em; padding: 2px 6px; background: rgba(92, 242, 178, .08); border: 1px solid rgba(92, 242, 178, .22); border-radius: 2px; white-space: nowrap; }
.note { padding: 14px 16px; border-left: 3px solid var(--accent); background: rgba(232, 163, 61, .07); color: var(--dim); font-family: var(--body); font-size: .95rem; }
.note.warn { border-left-color: var(--hostile); background: rgba(255, 90, 74, .07); }
.note b { color: var(--text); }
.support-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.support-nav a { padding: 18px; }
.support-nav a h3 { font-size: 1rem; margin: 0 0 6px; }
.support-nav a p { font-size: .88rem; }
.prose { font-family: var(--body); color: var(--dim); max-width: 74ch; }
.prose h3 { font-family: var(--head); color: var(--text); margin-top: 1.6em; }
.prose b { color: var(--text); }

/* eligibility checker */
.checker { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); cursor: pointer; }
.check + .check { margin-top: 10px; }
.check input { appearance: none; width: 46px; height: 24px; border-radius: 12px; background: #1b2528; border: 1px solid var(--line2); position: relative; cursor: pointer; transition: background .2s; margin-top: 2px; }
.check input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--faint); transition: transform .2s var(--ease), background .2s; }
.check input:checked { background: rgba(92, 242, 178, .25); border-color: var(--phos); }
.check input:checked::after { transform: translateX(22px); background: var(--phos); box-shadow: 0 0 10px var(--phos); }
.check > span > b { display: block; color: var(--text); font-weight: 600; }
.check small b { color: var(--text); }
.check small { display: block; color: var(--dim); font-family: var(--body); font-size: .88rem; margin-top: 4px; line-height: 1.5; }
.verdict { position: sticky; top: 90px; padding: 24px; text-align: center; }
.verdict .state { font: 700 1.5rem/1.1 var(--head); letter-spacing: .08em; text-transform: uppercase; margin: 12px 0; }
.verdict .state.ok { color: var(--phos); text-shadow: 0 0 20px rgba(92, 242, 178, .5); }
.verdict .state.no { color: var(--accent); }
.meter { height: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); margin: 14px 0; }
.meter i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--accent), var(--phos)); transition: width .4s var(--ease); }

/* ---------------------------------------------------------------- CTA band, footer */
.cta-band { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 110px) 0; border-block: 1px solid var(--line2); text-align: center;
  background-color: var(--bg2); background-size: cover; background-position: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 28px; }
.cta-band .cta-row { justify-content: center; }
/* inner-page hero */
.page-hero { position: relative; overflow: hidden; padding: clamp(78px, 11vw, 140px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line2);
  background-color: var(--bg2); background-size: cover; background-position: center 40%; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 55%); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); text-transform: uppercase; margin-bottom: .3em; text-shadow: 0 6px 30px rgba(0, 0, 0, .6); }
.page-hero .lead { margin: 0; color: #c7d5cf; }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 26px; font: 600 .7rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--accent); }
.tiers-note { color: var(--faint); font-size: .74rem; margin-top: 14px; letter-spacing: .14em; text-align: center; }
.site-footer { padding: 64px 0 28px; background: rgba(0, 0, 0, .45); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot-grid h4 { font: 600 .74rem/1 var(--mono); letter-spacing: .2em; color: var(--phos); text-transform: uppercase; margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--dim); font-size: .93rem; }
.foot-grid a:hover { color: var(--text); }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--accent-ink); }
.foot-brand img { height: 34px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--faint); font-size: .9rem; max-width: 36ch; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font: 500 .74rem/1.5 var(--mono); color: var(--faint); letter-spacing: .06em; }
.foot-bottom .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-bottom button { font: inherit; color: var(--dim); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 800; width: 46px; height: 46px; display: grid; place-items: center; color: var(--text); background: var(--panel2); border: 1px solid var(--line2); cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------------- legal documents */
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.toc h4 { font: 600 .7rem/1 var(--mono); letter-spacing: .2em; color: var(--phos); text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 8px; color: var(--dim); font-size: .86rem; line-height: 1.35; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--text); border-left-color: var(--accent); background: rgba(232, 163, 61, .07); }
.doc { font-family: var(--body); font-size: 1.02rem; line-height: 1.75; color: #c9d6d0; max-width: 78ch; }
.doc h2 { font: 700 1.3rem/1.25 var(--head); text-transform: none; letter-spacing: .02em; color: var(--text); margin: 2.2em 0 .7em; padding-top: .4em; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h2 .anchor, .doc h3 .anchor { color: var(--faint); margin-right: .4em; font-family: var(--mono); font-weight: 400; opacity: 0; transition: opacity .2s; }
.doc h2:hover .anchor { opacity: 1; }
.doc ul { padding-left: 1.3em; }
.doc li { margin: .35em 0; }
.doc blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--phos); background: rgba(92, 242, 178, .05); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 26px; }
.progress { position: fixed; left: 0; top: 0; height: 2px; width: var(--p, 0); z-index: 950; background: linear-gradient(90deg, var(--accent), var(--phos)); box-shadow: 0 0 10px var(--accent); }
.legal-cards a { padding: 22px; }

/* ---------------------------------------------------------------- consent, console, boot */
.consent { position: fixed; left: 18px; bottom: 18px; z-index: 1100; width: min(430px, calc(100vw - 36px)); padding: 20px; background: var(--panel2); border: 1px solid var(--line2); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); display: none; }
.consent.show { display: block; animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.consent h4 { font: 600 .74rem/1 var(--mono); letter-spacing: .2em; color: var(--phos); text-transform: uppercase; margin-bottom: 10px; }
.consent p { color: var(--dim); font-family: var(--body); font-size: .9rem; line-height: 1.55; }
.consent .cta-row { gap: 10px; }
.console { width: min(860px, 96vw); }
.console-inner { position: relative; background: rgba(3, 8, 8, .97); border: 1px solid rgba(92, 242, 178, .45); box-shadow: 0 0 0 1px rgba(92, 242, 178, .1), 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(92, 242, 178, .12); font: 500 .92rem/1.55 var(--mono); color: #b8f5d9; }
.console-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(92, 242, 178, .25); font-size: .72rem; letter-spacing: .2em; color: var(--phos); }
.console-out { height: min(52vh, 440px); overflow: auto; padding: 16px; white-space: pre-wrap; }
.console-out .sys { color: var(--faint); }
.console-out .hi { color: var(--accent); }
.console-out a { color: var(--accent-hi); text-decoration: underline; }
.console-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(92, 242, 178, .25); }
.console-in span { color: var(--accent); }
.console-in input { flex: 1; background: none; border: 0; color: #e6fff3; font: inherit; outline: none; caret-color: var(--phos); }
.boot { display: none; }
.js .boot { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: var(--bg); transition: opacity .45s ease, visibility .45s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner { width: min(520px, 86vw); font: 500 .8rem/1.8 var(--mono); color: var(--phos); letter-spacing: .12em; }
.boot-inner img { width: 60%; margin-bottom: 18px; }
.boot-bar { height: 2px; background: rgba(255, 255, 255, .08); margin-top: 16px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: load 1.05s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
.boot-skip { margin-top: 14px; color: var(--faint); font-size: .7rem; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* landing page (/play/) */
.landing .hero { min-height: 92vh; min-height: 92svh; }
.landing .site-header .menu, .landing .site-header .nav-toggle { display: none; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* 404 */
.lost { min-height: 72vh; display: grid; place-items: center; text-align: center; }
.lost .code { font: 700 clamp(4rem, 14vw, 9rem)/1 var(--head); color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: .06em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .g4, .nations, .support-nav { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .tiers { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .menu, .nav-actions .cmd-btn, .nav-actions .icon-link { display: none; }
  .nav-toggle { display: block; }
  .nav { gap: 12px; }
  .nav-actions { margin-left: auto; }
  .mobile-menu { position: fixed; inset: 68px 0 0 0; z-index: 890; overflow: auto; padding: 18px var(--gut) 40px; background: rgba(4, 7, 8, .98); border-top: 1px solid var(--line); }
  .mobile-menu.open { display: block; animation: rise .25s var(--ease); }
  .mobile-menu h4 { font: 600 .72rem/1 var(--mono); letter-spacing: .22em; color: var(--phos); margin: 22px 0 10px; text-transform: uppercase; }
  .mobile-menu a { display: block; padding: 12px 4px; font: 600 1.06rem/1.2 var(--head); color: var(--text); border-bottom: 1px solid var(--line); letter-spacing: .04em; }
  .mobile-menu .btn { width: 100%; margin-top: 22px; }
  .split, .checker, .doc-layout { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .g3, .proof { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery.small { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .toc { position: static; max-height: none; }
  .verdict { position: static; }
  .hero-hud { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .g2, .g3, .g4, .nations, .support-nav, .proof { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery.small { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .brand .ver { display: none; }
  .cta-row .btn { width: 100%; }
  .lb-btn { width: 42px; height: 42px; }
  .panel { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .boot { display: none; }
}
@media print {
  body { background: #fff; color: #000; }
  body::before, body::after, .site-header, .site-footer, .toc, .to-top, .consent { display: none !important; }
  .doc { color: #000; max-width: none; }
}
