/* ZectorZero landing page: the game's menu look (dark panels, Halden-Voss red, condensed type). */

@font-face {
	font-family: "Zero Cool";
	src: url("/fonts/zero_cool.woff2") format("woff2");
	font-display: swap;
}

:root {
	--bg: #060708;
	--panel: rgba(8, 9, 10, 0.88);
	--line: rgba(255, 255, 255, 0.08);
	--text: #dbe3e6;
	--dim: #808a8f;
	--accent: #e61f24;
	--accent-soft: rgba(230, 31, 36, 0.14);
	--paper: #e9e6dc;
	--ink: #1a2138;
	--condensed: "Bahnschrift", "DIN Condensed", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
	--body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	/* Nothing may ever push a sideways scrollbar in (shake, splats, grain). */
	overflow-x: clip;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, .label, .button, nav {
	font-family: var(--condensed);
	font-stretch: condensed;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }

/* Top bar */
nav {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px max(16px, (100% - 1180px) / 2);
	background: linear-gradient(rgba(0, 0, 0, 0.85), transparent);
	font-size: 15px;
}
nav .mark { font-weight: 700; font-size: 20px; letter-spacing: 0.12em; text-decoration: none; }
nav .links { display: flex; gap: 22px; }
nav .links a { color: var(--dim); text-decoration: none; }
nav .links a:hover { color: var(--text); }
nav .links .download { color: var(--accent); }

/* Hero */
.hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	padding-bottom: 12vh;
	overflow: hidden;
	background: #0b0b0d url("/img/hero_poster.webp") center / cover no-repeat;
}
.hero .art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Clicks and the right-click menu go to the hero, not the video (no "save video" in the menu). */
	pointer-events: none;
}
.hero .art.still { visibility: hidden; }
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.3) 60%, transparent),
		linear-gradient(0deg, var(--bg) 0%, transparent 40%),
		radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.55) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.js .hero { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg stroke='%23fff' stroke-width='2'%3E%3Cpath d='M16 3v8M16 21v8M3 16h8M21 16h8'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='1.5' fill='%23e61f24'/%3E%3C/svg%3E") 16 16, crosshair; }
.hero a, .hero button { cursor: pointer; }

/* Emergency light, scanlines and film grain over the footage */
.alarm, .scanlines, .grain { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.alarm { background: radial-gradient(ellipse at 70% 0%, rgba(230, 31, 36, 0.35), transparent 60%); mix-blend-mode: screen; animation: alarm 2.4s ease-in-out infinite; }
@keyframes alarm { 0%, 100% { opacity: 0.15; } 45% { opacity: 0.85; } 55% { opacity: 0.6; } }
.scanlines { background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.grain {
	inset: -50%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
	opacity: 0.12;
	animation: grain 0.6s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -7%); } 75% { transform: translate(-3%, -4%); } 100% { transform: translate(4%, 6%); } }

/* The logo comes in like a bad video signal: it flickers on while a cyan and a red channel tear
   sideways in slices and snap back; then a short twitch every few seconds. */
.glitch { position: relative; animation: glitch-flicker 1.2s steps(1) both; }
.glitch::before, .glitch::after {
	content: attr(data-text);
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
	mix-blend-mode: screen;
}
.glitch::before { color: #23e3ff; animation: glitch-tear-a 1.2s steps(1), glitch-a 7s 2s infinite; }
.glitch::after { color: var(--accent); animation: glitch-tear-b 1.2s steps(1), glitch-b 7s 2s infinite; }
@keyframes glitch-flicker {
	0% { opacity: 0; }
	6% { opacity: 1; transform: translateX(-4px) skewX(10deg); }
	12% { opacity: 0.15; transform: none; }
	18% { opacity: 1; transform: translateX(5px); }
	30% { transform: translateX(-2px) skewX(-6deg); }
	38% { opacity: 0.6; transform: none; }
	44% { opacity: 1; transform: translateX(2px); }
	60% { transform: none; }
	72% { transform: translateX(-1px); }
	80%, 100% { opacity: 1; transform: none; }
}
@keyframes glitch-tear-a {
	0% { opacity: 0.9; clip-path: inset(8% 0 78% 0); transform: translateX(-14px); }
	9% { clip-path: inset(42% 0 36% 0); transform: translateX(10px); }
	18% { clip-path: inset(70% 0 12% 0); transform: translateX(-8px); }
	27% { clip-path: inset(18% 0 58% 0); transform: translateX(7px); }
	36% { clip-path: inset(55% 0 26% 0); transform: translateX(-5px); }
	45% { clip-path: inset(0 0 88% 0); transform: translateX(4px); }
	54% { clip-path: inset(82% 0 2% 0); transform: translateX(-3px); }
	63% { opacity: 0.6; clip-path: inset(30% 0 52% 0); transform: translateX(2px); }
	75% { opacity: 0.35; clip-path: inset(62% 0 20% 0); transform: translateX(-1px); }
	88%, 100% { opacity: 0; }
}
@keyframes glitch-tear-b {
	0% { opacity: 0.9; clip-path: inset(60% 0 22% 0); transform: translateX(13px); }
	9% { clip-path: inset(12% 0 70% 0); transform: translateX(-9px); }
	18% { clip-path: inset(35% 0 44% 0); transform: translateX(8px); }
	27% { clip-path: inset(76% 0 6% 0); transform: translateX(-6px); }
	36% { clip-path: inset(4% 0 80% 0); transform: translateX(5px); }
	45% { clip-path: inset(48% 0 30% 0); transform: translateX(-4px); }
	54% { clip-path: inset(22% 0 60% 0); transform: translateX(3px); }
	63% { opacity: 0.6; clip-path: inset(66% 0 14% 0); transform: translateX(-2px); }
	75% { opacity: 0.35; clip-path: inset(10% 0 74% 0); transform: translateX(1px); }
	88%, 100% { opacity: 0; }
}
@keyframes glitch-a { 0%, 91%, 100% { opacity: 0; } 92% { opacity: 0.8; transform: translate(-6px, 2px); clip-path: inset(12% 0 60% 0); } 95% { opacity: 0.8; transform: translate(4px, -2px); clip-path: inset(55% 0 20% 0); } }
@keyframes glitch-b { 0%, 92%, 100% { opacity: 0; } 93% { opacity: 0.8; transform: translate(6px, -1px); clip-path: inset(30% 0 40% 0); } 96% { opacity: 0.8; transform: translate(-5px, 2px); clip-path: inset(70% 0 8% 0); } }

/* The in-game HUD in the corner */
.hud { position: absolute; z-index: 2; right: max(16px, (100% - 1180px) / 2); top: 96px; text-align: right; pointer-events: none; font-family: var(--condensed); font-stretch: condensed; text-transform: uppercase; }
.hud-wave .label { display: block; color: var(--dim); font-size: 14px; letter-spacing: 0.3em; }
.hud-wave b { display: inline-block; font-size: 64px; line-height: 1; color: #fff; }
.hud-wave b.bump { animation: bump 0.5s ease-out; }
@keyframes bump { 0% { transform: scale(1.5); color: var(--accent); } 100% { transform: none; } }
.hud-line { color: var(--dim); font-size: 14px; letter-spacing: 0.08em; margin-top: 6px; }
.hud-line .dot { display: inline-block; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: blink 1.2s steps(2) infinite; }
.hud-hint { margin-top: 18px; color: rgba(255, 255, 255, 0.45); font-size: 13px; letter-spacing: 0.2em; }

/* Shooting the hero */
/* The footage and the text shake, not the hero: it would stick out of the window for a moment. */
.hero.kick .art, .hero.kick > .wrap { animation: kick 0.18s ease-out; }
@keyframes kick { 30% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, 1px); } }
.splat {
	position: absolute;
	z-index: 1;
	width: 70px;
	height: 70px;
	margin: -35px 0 0 -35px;
	pointer-events: none;
	transform: rotate(var(--turn)) scale(var(--size));
	background:
		radial-gradient(circle at 50% 50%, rgba(120, 0, 4, 0.9) 0 22%, transparent 23%),
		radial-gradient(circle at 20% 30%, rgba(140, 4, 8, 0.85) 0 9%, transparent 10%),
		radial-gradient(circle at 78% 64%, rgba(120, 0, 4, 0.85) 0 11%, transparent 12%),
		radial-gradient(circle at 70% 18%, rgba(150, 6, 10, 0.8) 0 6%, transparent 7%),
		radial-gradient(circle at 30% 80%, rgba(110, 0, 4, 0.8) 0 7%, transparent 8%);
	animation: splat 0.25s ease-out, fade-out 6s 2s forwards;
}
@keyframes splat { from { transform: rotate(var(--turn)) scale(0.2); } }
@keyframes fade-out { to { opacity: 0; } }
.hitmarker { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px 0 0 -13px; pointer-events: none; animation: hitmarker 0.35s ease-out forwards; }
.hitmarker::before, .hitmarker::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; background: linear-gradient(#fff 0 35%, transparent 35% 65%, #fff 65%); transform: rotate(45deg); }
.hitmarker::after { transform: rotate(-45deg); }
.hitmarker.head::before, .hitmarker.head::after { background: linear-gradient(var(--accent) 0 35%, transparent 35% 65%, var(--accent) 65%); }
@keyframes hitmarker { from { transform: scale(1.6); } to { transform: scale(1); opacity: 0; } }
.popup { position: absolute; z-index: 3; pointer-events: none; margin: -40px 0 0 14px; font-family: var(--condensed); font-stretch: condensed; font-weight: 700; font-size: 22px; color: #ffd84a; text-shadow: 0 2px 6px #000; animation: popup 0.9s ease-out forwards; }
.popup.head { color: var(--accent); font-size: 26px; }
@keyframes popup { to { transform: translateY(-40px); opacity: 0; } }

/* Credits in the top bar, like the in-game wallet */
.wallet { font-family: var(--condensed); font-stretch: condensed; color: #ffd84a; font-size: 18px; min-width: 80px; text-align: right; opacity: 0; transition: opacity 0.3s; }
.wallet .label { color: var(--dim); font-size: 13px; }
.wallet.earned { opacity: 1; }

.button.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230, 31, 36, 0.55); } 50% { box-shadow: 0 0 0 14px rgba(230, 31, 36, 0); } }

.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 13px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* M.O.T.H.E.R. over the PA */
.pa { background: #0d0607; border-top: 1px solid rgba(230, 31, 36, 0.35); border-bottom: 1px solid rgba(230, 31, 36, 0.35); padding: 16px 0; font-size: 18px; }
.pa-who { color: var(--accent); font-family: var(--condensed); font-stretch: condensed; font-weight: 700; letter-spacing: 0.08em; margin-right: 14px; }
.pa-who span { color: var(--dim); font-weight: 400; }
.pa-text { color: #fff; }
.caret { display: inline-block; width: 9px; height: 1.1em; margin-left: 3px; vertical-align: text-bottom; background: var(--accent); animation: blink 1s steps(2) infinite; }

/* Numbers next to the memo */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.stats div { background: var(--bg); padding: 22px 24px; }
.stats b { display: block; font-family: var(--condensed); font-stretch: condensed; font-size: 56px; line-height: 1; color: #fff; }
.stats span { color: var(--dim); font-family: var(--condensed); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; }
.stats div:last-child b { color: var(--accent); }

/* Revealing on scroll (only with JavaScript: without it everything just shows) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js [data-reveal].shown { opacity: 1; transform: none; }

/* Hover life */
.card { transition: background 0.2s, transform 0.2s; }
.card:hover { transform: translateY(-3px); }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width 0.35s; }
.card:hover::after { width: 100%; }
.element { position: relative; overflow: hidden; transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s; }
.element:hover { transform: translateY(-4px); border-color: var(--tint); box-shadow: 0 0 36px color-mix(in srgb, var(--tint) 30%, transparent); }
/* Element icons in a glowing badge, each with its own motion */
.glyph {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin-bottom: 16px;
	border-radius: 50%;
	color: var(--tint);
	border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent);
	background: radial-gradient(circle, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%);
	box-shadow: 0 0 22px color-mix(in srgb, var(--tint) 25%, transparent), inset 0 0 14px color-mix(in srgb, var(--tint) 20%, transparent);
}
.glyph svg { width: 34px; height: 34px; overflow: visible; filter: drop-shadow(0 0 5px var(--tint)); }
/* Only the moving parts pivot on the middle: a pivot on every path shifted the rotated snowflake arms. */
.glyph .spin-slow, .glyph .spin-in, .glyph .zap, .glyph .flicker { transform-box: view-box; transform-origin: 12px 12px; }
.spin-slow { animation: spin 14s linear infinite; }
.spin-in { animation: spin 3.5s linear infinite reverse; }
.glyph .flicker { transform-origin: 12px 21px; animation: flicker 1.1s ease-in-out infinite; }
.zap { animation: zap 2.6s steps(1) infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(0.96, 1.07); } 55% { transform: scale(1.03, 0.95); } 80% { transform: scale(0.98, 1.04); } }
@keyframes zap { 0%, 100% { opacity: 1; } 82% { opacity: 0.35; } 85% { opacity: 1; } 88% { opacity: 0.5; } 90% { opacity: 1; } }
.element:hover .glyph { box-shadow: 0 0 34px color-mix(in srgb, var(--tint) 55%, transparent), inset 0 0 18px color-mix(in srgb, var(--tint) 35%, transparent); }
.file { position: relative; overflow: hidden; transition: transform 0.25s; }
.file:hover { transform: rotate(-0.8deg) translateY(-4px); }
.classified { position: absolute; right: -36px; top: 18px; padding: 3px 40px; background: var(--accent); color: #fff; font-family: var(--condensed); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(35deg); opacity: 0; transition: opacity 0.25s; }
.file:hover .classified { opacity: 1; }

/* Hazard stripes rolling past between the sections */
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, #e8a91a 0 18px, #111 18px 36px); background-size: 51px 14px; animation: hazard 1.5s linear infinite; opacity: 0.85; }
@keyframes hazard { to { background-position: 51px 0; } }

/* Gallery as CCTV */
.gallery figure { aspect-ratio: 16 / 9; }
.gallery figure::after { content: "● REC"; position: absolute; right: 12px; top: 10px; color: var(--accent); font-family: var(--condensed); font-size: 13px; letter-spacing: 0.1em; animation: blink 1.4s steps(2) infinite; }
.gallery a { display: block; height: 100%; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 0, 0, 0.92); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; box-shadow: 0 0 80px rgba(0, 0, 0, 0.8); }
.lightbox button { position: absolute; right: 18px; top: 12px; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; }

/* The final call */
.deploy { background: radial-gradient(ellipse at 20% 50%, rgba(230, 31, 36, 0.12), transparent 60%); }
.countdown { font-family: var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin: 0 0 24px; }
.countdown b { color: #fff; font-size: 28px; margin-left: 8px; }
.countdown b.urgent { color: var(--accent); }

.kicker { color: var(--dim); font-size: 16px; margin: 0 0 6px; }

.logo {
	margin: 0;
	font-size: clamp(64px, 12vw, 150px);
	line-height: 0.9;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
}
.logo .z { color: var(--accent); }

.tick { width: 72px; height: 4px; background: var(--accent); margin: 26px 0 22px; }

.tagline { font-size: clamp(19px, 2.2vw, 24px); max-width: 640px; margin: 0 0 8px; }
.facts { color: var(--dim); margin: 0 0 30px; font-family: var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.06em; }

.buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
	display: inline-block;
	padding: 14px 28px;
	border: 1px solid var(--accent);
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	text-decoration: none;
	transition: background 0.15s, transform 0.15s;
}
.button:hover { background: #ff3036; transform: translateY(-1px); }
.button.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.35); }
.button.ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.button small { display: block; font-size: 13px; font-weight: 400; opacity: 0.8; }

/* Sections */
section { padding: 110px 0; }
section + section { border-top: 1px solid var(--line); }

.label { color: var(--accent); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
h2 { font-size: clamp(36px, 5vw, 56px); line-height: 1; margin: 0 0 18px; color: #fff; }
.lead { color: var(--dim); max-width: 720px; margin: 0 0 48px; font-size: 19px; }

/* Briefing: the company memo next to the numbers */
.briefing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.memo {
	background: var(--paper);
	color: #2a2c2f;
	padding: 34px 38px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
	transform: rotate(-0.6deg);
}
.memo header {
	font-family: var(--condensed);
	font-stretch: condensed;
	text-transform: uppercase;
	display: flex;
	justify-content: space-between;
	border-bottom: 2px solid #2a2c2f;
	padding-bottom: 8px;
	margin-bottom: 18px;
	font-size: 14px;
	letter-spacing: 0.06em;
}
.memo h3 { font-size: 26px; margin: 0 0 12px; color: #111; }
.memo p { margin: 0 0 12px; }
.memo .stamp {
	display: inline-block;
	margin-top: 8px;
	border: 3px solid var(--accent);
	color: var(--accent);
	padding: 2px 12px;
	font-family: var(--condensed);
	font-weight: 700;
	text-transform: uppercase;
	transform: rotate(-4deg);
	letter-spacing: 0.1em;
}

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 30px 28px 34px; position: relative; }
.card:hover { background: #0b0c0e; }
.card .no { color: var(--accent); font-family: var(--condensed); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; }
.card h3 { color: #fff; font-size: 26px; margin: 6px 0 10px; line-height: 1.05; }
.card p { color: var(--dim); margin: 0; }

/* Anomalies */
.elements { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.element { border: 1px solid var(--line); padding: 22px 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 16%, transparent), transparent 70%); }
.element h3 { margin: 0 0 6px; font-size: 26px; color: var(--tint); }
.element p { margin: 0; color: var(--dim); font-size: 15px; }
.reactions { margin-top: 22px; color: var(--dim); font-size: 15px; }
.reactions b { color: var(--text); font-weight: 600; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; overflow: hidden; background: #111; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 10px 16px;
	background: rgba(0, 0, 0, 0.7);
	font-family: var(--condensed);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 14px;
}

/* Personnel files */
.files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.file { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 22px 22px 26px; }
.file .rank { color: var(--dim); font-family: var(--condensed); text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; }
.file h3 { color: #fff; margin: 2px 0 8px; font-size: 28px; }
.file p { margin: 0; color: var(--dim); font-size: 15px; }
.file .note { font-family: "Zero Cool", var(--condensed); color: #c23a35; margin-top: 12px; font-size: 15px; }

/* Access */
.access { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: 30px 32px; }
.panel ul { margin: 0; padding-left: 18px; color: var(--dim); }
.panel li { margin: 4px 0; }
.panel h3 { color: #fff; margin: 0 0 12px; font-size: 22px; }

footer { padding: 40px 0 60px; color: var(--dim); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Download page */
.page { padding: 140px 0 80px; min-height: 100svh; background: radial-gradient(ellipse at top, #1a0b0c, var(--bg) 60%); }
.builds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 30px 0 46px; }
.build { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); padding: 26px 28px; transition: border-color 0.15s, transform 0.15s; }
.build:hover { border-color: var(--accent); transform: translateY(-2px); }
.build .os { font-family: var(--condensed); font-stretch: condensed; text-transform: uppercase; font-size: 32px; font-weight: 700; color: #fff; }
.build .meta { color: var(--dim); font-size: 15px; }
.build .go { color: var(--accent); font-family: var(--condensed); text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em; margin-top: 10px; display: block; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.releases { display: grid; gap: 14px; }
.release { background: var(--panel); border: 1px solid var(--line); padding: 20px 26px 22px; }
.release h3 { margin: 0 0 8px; color: #fff; font-size: 22px; }
.release h3 span { color: var(--accent); font-size: 14px; margin-left: 8px; letter-spacing: 0.08em; }
.release ul { margin: 0; padding-left: 18px; color: var(--dim); }
.release li { margin: 4px 0; }
.warning { border-left: 3px solid var(--accent); padding-left: 18px; color: var(--dim); margin-top: 40px; }

/* Contractor access (download gate) */
.gate { display: flex; align-items: center; }
.terminal {
	width: min(520px, 100%);
	margin: 0 auto;
	background: var(--panel);
	border: 1px solid var(--line);
	border-top: 3px solid var(--accent);
	padding: 0 34px 34px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}
.terminal header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 -34px 30px;
	padding: 12px 34px;
	border-bottom: 1px solid var(--line);
	color: var(--dim);
	font-family: var(--condensed);
	font-stretch: condensed;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 14px;
}
.terminal .lamp { width: 10px; height: 10px; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.terminal h2 { font-size: 44px; margin-bottom: 10px; }
.terminal .hint { color: var(--dim); margin: 0 0 26px; }
.terminal input[type="password"] {
	display: block;
	width: 100%;
	margin: 6px 0 18px;
	padding: 14px 16px;
	background: #020203;
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #fff;
	font: 22px Consolas, "SF Mono", monospace;
	letter-spacing: 0.2em;
	outline: none;
}
.terminal input[type="password"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.terminal .button { width: 100%; cursor: pointer; font-family: var(--condensed); }
.terminal .button:disabled { opacity: 0.6; cursor: progress; }
.status { min-height: 1.6em; margin: 16px 0 0; font-family: var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: 0.06em; }
.status.checking { color: var(--dim); }
.status.granted { color: #59e68a; }
.status.denied, .status.limited, .status.broken, .status.offline { color: var(--accent); }
.shake { animation: shake 0.35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

@media (max-width: 960px) {
	.briefing, .access { grid-template-columns: 1fr; }
	.grid { grid-template-columns: 1fr 1fr; }
	.elements { grid-template-columns: 1fr 1fr; }
	.files { grid-template-columns: 1fr 1fr; }
	.gallery { grid-template-columns: 1fr 1fr; }
	.stats b { font-size: 44px; }
	.builds, .steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	nav .links a:not(.download) { display: none; }
	section { padding: 72px 0; }
	.grid, .elements, .files { grid-template-columns: 1fr; }
	.memo { padding: 26px 22px; }
	.gallery { grid-template-columns: 1fr; }
	.hud { top: 74px; }
	.hud-wave b { font-size: 40px; }
	.hud-line, .hud-hint { display: none; }
	.pa { font-size: 16px; }
	.pa-who { display: block; margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
	.alarm, .grain, .glitch, .glitch::before, .glitch::after, .button.pulse, .glyph *, .hazard, .scroll-cue span, .caret { animation: none; }
	html { scroll-behavior: auto; }
}
