/* headcrash.games - Head Crash Game Studio / LAWLESS - Malta 2050
   Palette and type follow the game: src/game/ui_style.h and src/engine/ui.cpp */

@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("../fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #06080c;
  --bg-2: #0b0f16;
  --panel: rgba(12, 18, 28, .62);
  --line: rgba(255, 255, 255, .1);
  --white: #f5f7fc;      /* kWhite */
  --dim: #9aa8b8;
  --magenta: #ff3373;    /* kAccent */
  --cyan: #4ce6ff;       /* kCyan */
  --amber: #ffc242;      /* kAmber */
  --green: #59fa99;      /* kGreen */
  --red: #ff4766;        /* kRed */
  --lens: #47b8ff;       /* contact-lens HUD blue */
  --studio: #f7941d;     /* Head Crash logo orange */
  --display: "Chakra Petch", "Bahnschrift", system-ui, sans-serif;
  --ui: "Barlow Condensed", "Bahnschrift", system-ui, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --wrap: min(1320px, 100% - 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; color: var(--white); background: var(--bg);
  font: 500 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--magenta); color: #fff; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain + scanlines over everything, like the game's post */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0) } 20% { transform: translate(-3%, 2%) } 40% { transform: translate(2%, -4%) } 60% { transform: translate(-4%, -1%) } 80% { transform: translate(3%, 3%) } 100% { transform: translate(0, 0) } }

/* ------------------------------------------------------------------ type */
.eyebrow {
  font: 700 13px/1 var(--ui); letter-spacing: .32em; text-transform: uppercase; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.eyebrow.magenta { color: var(--magenta); }
.eyebrow.amber { color: var(--amber); }
.eyebrow.studio { color: var(--studio); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(38px, 5.4vw, 76px); text-transform: uppercase; margin: 18px 0 22px; }
h2 em { font-style: normal; color: var(--magenta); text-shadow: 0 0 24px rgba(255, 51, 115, .45); }
h3 { font-size: 26px; text-transform: uppercase; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #c9d3de; max-width: 62ch; }
p { margin: 0 0 1em; }
.muted { color: var(--dim); }
.mono-ui { font: 600 14px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------------------ buttons */
.btn {
  --c: var(--magenta);
  position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 15px 28px 14px;
  font: 700 16px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--c); border: 0; cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .25s var(--ease), box-shadow .25s, filter .25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn.ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: rgba(76, 230, 255, .14); box-shadow: inset 0 0 0 1px var(--cyan); }
.btn.cyan { --c: #0fb8d6; }
.btn svg { width: 18px; height: 18px; }
.keycap {
  display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; margin-right: 6px;
  font: 700 12px/1 var(--ui); letter-spacing: .06em; color: #0a0d12; background: #e8edf3; border-radius: 4px;
  box-shadow: 0 2px 0 #7d8896;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, backdrop-filter .4s, transform .4s var(--ease);
}
.site-header.scrolled { background: rgba(6, 8, 12, .72); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.site-header.hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; width: min(1480px, 100% - 40px); margin: auto; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 0 14px rgba(247, 148, 29, .25)); }
.nav a.link {
  position: relative; font: 700 15px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: #cfd8e2; padding: 8px 0; transition: color .2s;
}
.nav a.link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta); transition: right .3s var(--ease);
}
.nav a.link:hover, .nav a.link[aria-current="page"] { color: #fff; }
.nav a.link:hover::after, .nav a.link[aria-current="page"]::after { right: 0; }
.radio-btn {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: rgba(255, 255, 255, .05); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 40px; font: 700 12px/1 var(--ui); letter-spacing: .18em;
  text-transform: uppercase; color: #cfd8e2; transition: border-color .2s, color .2s;
}
.radio-btn:hover { border-color: var(--cyan); color: #fff; }
.radio-btn .eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.radio-btn .eq i { width: 3px; height: 30%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.radio-btn.on .eq i { animation: eq .9s ease-in-out infinite alternate; }
.radio-btn.on .eq i:nth-child(2) { animation-delay: -.3s; } .radio-btn.on .eq i:nth-child(3) { animation-delay: -.6s; } .radio-btn.on .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0% { height: 20% } 50% { height: 100% } 100% { height: 45% } }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: #fff; transition: transform .3s; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -4%; z-index: -3; }
.hero-media .slide {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  transform: scale(1.08); transition: opacity 1.6s ease, transform 9s linear;
}
.hero-media .slide.on { opacity: 1; transform: scale(1.0); }
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, .92) 0%, rgba(6, 8, 12, .55) 38%, rgba(6, 8, 12, 0) 68%),
    linear-gradient(0deg, var(--bg) 0%, rgba(6, 8, 12, 0) 38%),
    linear-gradient(180deg, rgba(6, 8, 12, .6) 0%, rgba(6, 8, 12, 0) 22%);
}
.hero canvas.fx { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { width: min(1480px, 100% - 48px); margin: 0 auto; padding: 140px 0 90px; }
.hero .presents { font: 700 14px/1 var(--ui); letter-spacing: .4em; text-transform: uppercase; color: var(--studio); margin-bottom: 18px; }
.hero .tagline { font: 600 clamp(18px, 1.7vw, 23px)/1.5 var(--body); color: #d9e1ea; max-width: 34ch; margin: 26px 0 34px; }
.hero .tagline b { color: var(--magenta); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 46px; align-items: center; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font: 700 11px/1 var(--ui); letter-spacing: .4em;
  color: var(--dim); display: grid; justify-items: center; gap: 10px;
}
.scroll-cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--cyan), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0) } 50% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }

/* the LAWLESS wordmark: white with magenta glow, cyan/magenta split copies and the slanted magenta bar (menus.cpp) */
.wordmark {
  --size: clamp(54px, 12.5vw, 196px);
  position: relative; display: inline-block; padding-left: calc(var(--size) * .26);
  font: 700 var(--size)/.86 var(--display); letter-spacing: .02em; text-transform: uppercase; color: #fff;
  text-shadow: 0 0 calc(var(--size) * .12) rgba(255, 51, 102, .55);
}
.wordmark::before {
  content: ""; position: absolute; left: 0; top: 8%; width: calc(var(--size) * .09); height: 84%;
  background: var(--magenta); box-shadow: 0 0 22px rgba(255, 51, 115, .8); transform: skewX(-6deg);
}
.wordmark .ghost { position: absolute; left: calc(var(--size) * .26); top: 0; pointer-events: none; mix-blend-mode: screen; text-shadow: none; }
.wordmark .ghost.c { color: rgba(38, 230, 255, .5); transform: translateX(calc(4px + var(--jx, 0px))); }
.wordmark .ghost.m { color: rgba(255, 38, 115, .5); transform: translateX(calc(-4px - var(--jx, 0px))); }
.wordmark.glitching .ghost { opacity: 1; }
.wordmark .slice { position: absolute; left: calc(var(--size) * .26); top: 0; color: #fff; pointer-events: none; opacity: 0; }
.wordmark.glitching .slice { opacity: 1; }
.subtitle-2050 {
  display: block; margin: 18px 0 0 calc(var(--wm, 196px) * .03); font: 700 clamp(17px, 2vw, 28px)/1 var(--ui);
  letter-spacing: .62em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 18px rgba(76, 230, 255, .6);
}

/* release + platforms */
.release { display: flex; align-items: center; gap: 18px; }
.release .when { font: 700 34px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.release .when small { display: block; font: 700 12px/1 var(--ui); letter-spacing: .3em; color: var(--amber); margin-bottom: 8px; }
.platforms { display: flex; gap: 10px; }
.platform {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .18);
  font: 700 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; background: rgba(6, 8, 12, .4); backdrop-filter: blur(6px);
}
.platform svg { width: 16px; height: 16px; fill: currentColor; }

/* ------------------------------------------------------------------ ticker (MaltaNet news crawl) */
.ticker {
  position: relative; overflow: hidden; border-block: 1px solid rgba(255, 51, 115, .35);
  background: linear-gradient(90deg, rgba(255, 51, 115, .14), rgba(76, 230, 255, .08));
  font: 700 15px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
.ticker .track { display: inline-flex; gap: 46px; padding: 16px 0; animation: crawl 60s linear infinite; }
.ticker .track span::before { content: "+++"; color: var(--magenta); margin-right: 46px; }
.ticker:hover .track { animation-play-state: paused; }
@keyframes crawl { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
section.block { position: relative; isolation: isolate; padding: clamp(90px, 12vw, 170px) 0; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.rev > :first-child { order: 2; }
.section-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(1.2); }
.section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(6, 8, 12, .4) 30%, rgba(6, 8, 12, .4) 70%, var(--bg)); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 60px; }
.stat { background: var(--bg); padding: 28px 26px; }
.stat b { display: block; font: 700 clamp(34px, 4vw, 54px)/1 var(--display); color: #fff; }
.stat b.mag { color: var(--magenta); } .stat b.cy { color: var(--cyan); } .stat b.am { color: var(--amber); }
.stat span { display: block; margin-top: 10px; font: 600 14px/1.35 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* HUD panel (chamfered frosted glass with lens brackets) */
.hud {
  position: relative; background: var(--panel); backdrop-filter: blur(14px) saturate(1.3);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  box-shadow: inset 0 0 0 1px rgba(71, 184, 255, .22);
}
.hud::before, .hud::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--lens); pointer-events: none; filter: drop-shadow(0 0 6px var(--lens)); }
.hud::before { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.hud::after { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }

/* featured game card */
.feature-card { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.cover-tilt { perspective: 1100px; }
.cover {
  position: relative; aspect-ratio: 2 / 3; transform-style: preserve-3d; transition: transform .5s var(--ease);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); border-radius: 6px; overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: 0; transition: opacity .4s;
  background:
    radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), transparent 42%),
    linear-gradient(115deg, transparent 20%, rgba(255, 51, 115, .35) 40%, rgba(76, 230, 255, .35) 55%, transparent 75%);
  background-size: 100% 100%, 250% 250%; background-position: center, var(--hx, 50%) var(--hy, 50%);
}
.cover-tilt:hover .glare { opacity: .7; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 12px; }
.feature-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: #d3dbe5; }
.feature-list li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border: 2px solid var(--cyan); transform: rotate(45deg); box-shadow: 0 0 8px rgba(76, 230, 255, .6); }

/* reel */
.reel { position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer; background: #000; }
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .play {
  position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(0, 0, 0, .15), rgba(0, 0, 0, .55));
  transition: background .3s;
}
.reel .play i {
  width: 110px; height: 110px; display: grid; place-items: center; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8);
  background: rgba(255, 51, 115, .2); backdrop-filter: blur(6px); box-shadow: 0 0 40px rgba(255, 51, 115, .4); transition: transform .3s var(--ease);
}
.reel .play i::after { content: ""; margin-left: 8px; border-left: 30px solid #fff; border-block: 18px solid transparent; }
.reel:hover .play i { transform: scale(1.1); }
.reel .label { position: absolute; left: 22px; bottom: 18px; font: 700 13px/1 var(--ui); letter-spacing: .26em; text-transform: uppercase; }
.reel .label::before { content: "\25CF"; color: var(--red); margin-right: 10px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0 } }

/* strip gallery */
.strip { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 24px 26px; cursor: grab; scrollbar-width: thin; scrollbar-color: var(--magenta) transparent; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip figure { flex: 0 0 min(560px, 78vw); margin: 0; scroll-snap-align: center; }
.shot { position: relative; overflow: hidden; display: block; background: #0b0f16; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease), filter .5s; filter: saturate(.92); }
.shot:hover img { transform: scale(1.05); filter: saturate(1.15); }
.shot::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(76, 230, 255, .25) 50%, transparent 60%);
  background-size: 100% 300%; background-position: 0 -100%; opacity: 0; transition: opacity .2s;
}
.shot:hover::after { opacity: 1; animation: sweep 1.1s var(--ease); }
@keyframes sweep { from { background-position: 0 -100% } to { background-position: 0 200% } }
figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; font: 600 13px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
figcaption b { color: #fff; font-weight: 700; }
.tag { color: var(--cyan); }
.tag.art { color: var(--magenta); } .tag.game { color: var(--amber); }

/* gallery grid */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.filters button {
  padding: 11px 20px; font: 700 13px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  background: transparent; border: 1px solid rgba(255, 255, 255, .2); transition: all .2s;
}
.filters button[aria-pressed="true"] { background: var(--magenta); border-color: var(--magenta); box-shadow: 0 0 20px rgba(255, 51, 115, .4); }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.gallery figure { margin: 0; grid-column: span 4; transition: opacity .4s, transform .4s var(--ease); }
.gallery figure.out { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 40px 80px 24px;
  background: rgba(3, 4, 7, .94); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img, .lightbox video { max-height: calc(100vh - 140px); max-width: 100%; box-shadow: 0 0 0 1px var(--line), 0 30px 100px #000; }
.lightbox .cap { padding-top: 16px; font: 700 14px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.lightbox .cap b { color: #fff; margin-right: 14px; }
.lb-btn {
  position: absolute; top: 50%; width: 56px; height: 56px; transform: translateY(-50%); background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; font: 700 22px/1 var(--ui); transition: background .2s;
}
.lb-btn:hover { background: var(--magenta); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-close { top: 30px; right: 16px; transform: none; }

/* ------------------------------------------------------------------ feature tiles (game page) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 8, 12, .96) 8%, rgba(6, 8, 12, .3) 55%, rgba(6, 8, 12, .05)); }
.tile:hover img { transform: scale(1.06); }
.tile .body { padding: 28px; }
.tile h3 { margin: 10px 0 10px; }
.tile p { color: #c4cfda; font-size: 15.5px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.tile:hover p, .tile:focus-within p { max-height: 220px; opacity: 1; }
.tile.big { grid-column: span 2; }
.tile .num { position: absolute; top: 22px; right: 26px; font: 700 13px/1 var(--ui); letter-spacing: .24em; color: rgba(255, 255, 255, .5); }
@media (hover: none) { .tile p { max-height: none; opacity: 1; } }

/* MaltaNet terminal */
.terminal-wrap { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.t50 {
  position: relative; padding: 26px 26px 18px; border-radius: 22px;
  background: linear-gradient(160deg, #3b3f46, #23262b 40%, #18191d); box-shadow: 0 50px 90px -30px #000, inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 0 rgba(0, 0, 0, .5);
}
.t50 .tube { position: relative; border-radius: 18px / 22px; overflow: hidden; background: #000; box-shadow: inset 0 0 40px rgba(0, 0, 0, .9), 0 0 0 6px #0c0d10; }
.t50 canvas { width: 100%; height: auto; image-rendering: pixelated; filter: saturate(1.15) contrast(1.05); }
.t50 .tube::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); }
.t50 .tube::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .55)), linear-gradient(180deg, transparent 0 45%, rgba(255, 255, 255, .05) 50%, transparent 55% 100%);
  background-size: 100% 100%, 100% 400%; animation: refresh 7s linear infinite;
}
@keyframes refresh { from { background-position: 0 0, 0 -100% } to { background-position: 0 0, 0 230% } }
.t50 .bezel { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font: 700 11px/1 var(--ui); letter-spacing: .26em; color: #8b9098; }
.t50 .lamps { display: flex; gap: 16px; align-items: center; }
.t50 .lamp { display: inline-flex; align-items: center; gap: 6px; }
.t50 .lamp i { width: 8px; height: 8px; border-radius: 50%; background: #2a3b2a; }
.t50 .lamp.on i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.t50 .lamp.data i { background: #3b3220; }
.t50 .lamp.data.on i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.keypad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 26px; max-width: 460px; }
.keypad button {
  padding: 12px 0; cursor: pointer; font: 700 16px/1 var(--ui); letter-spacing: .1em; background: #1b1e24; border: 1px solid #2d323b;
  border-radius: 6px; box-shadow: 0 3px 0 #0a0b0e; transition: transform .1s, background .2s;
}
.keypad button:hover { background: #262b34; border-color: var(--cyan); }
.keypad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a0b0e; }
.keypad button.wide { grid-column: span 2; }
.page-index { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 22px 0 0; font: 600 15px/1.3 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.page-index dt { color: var(--amber); font-weight: 700; }
.page-index dd { margin: 0; color: #c9d3de; }

/* radio stations */
.stations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.station { padding: 30px 28px; }
.station .freq { font: 700 13px/1 var(--ui); letter-spacing: .26em; color: var(--cyan); }
.station h3 { margin: 12px 0 10px; font-size: 24px; }
.station p { color: #b9c5d1; font-size: 15.5px; margin: 0; }

/* CTA band */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 14vw, 200px) 0; isolation: isolate; }
.cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(6, 8, 12, .55), rgba(6, 8, 12, .94) 75%), linear-gradient(var(--bg), transparent 20%, transparent 80%, var(--bg)); }
.cta .platforms { justify-content: center; margin-top: 30px; }
.cta .big-date { font: 700 clamp(64px, 11vw, 168px)/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.cta .big-date span { color: var(--magenta); text-shadow: 0 0 40px rgba(255, 51, 115, .5); }

/* ------------------------------------------------------------------ team */
.crew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dossier { position: relative; padding: 0 0 26px; overflow: hidden; transition: transform .4s var(--ease); }
.dossier:hover { transform: translateY(-6px); }
.dossier .holo { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 85%, rgba(71, 184, 255, .22), transparent 60%), #070b12; overflow: hidden; }
.dossier .holo canvas { width: 100%; height: 100%; }
.dossier .holo::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(71, 184, 255, .06) 0 1px, transparent 1px 4px); pointer-events: none; }
.dossier .file { position: absolute; top: 14px; left: 16px; font: 700 11px/1 var(--ui); letter-spacing: .26em; color: var(--lens); z-index: 1; }
.dossier .status { position: absolute; top: 14px; right: 40px; font: 700 11px/1 var(--ui); letter-spacing: .26em; color: var(--green); z-index: 1; }
.dossier .meta { padding: 22px 26px 0; }
.dossier .role { font: 700 13px/1 var(--ui); letter-spacing: .28em; text-transform: uppercase; color: #d9ccb3; }
.dossier h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 12px 0 14px; letter-spacing: .04em; }
.dossier p { color: #b9c5d1; font-size: 15.5px; margin: 0; }
.recog { margin-top: 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; font: 700 11px/1 var(--ui); letter-spacing: .24em; color: var(--dim); }
.recog .bar { height: 4px; background: rgba(255, 255, 255, .08); position: relative; overflow: hidden; }
.recog .bar i { position: absolute; inset: 0 100% 0 0; background: linear-gradient(90deg, var(--amber), var(--red)); box-shadow: 0 0 8px var(--red); transition: right 1.6s var(--ease); }
.dossier:hover .recog .bar i, .dossier.scanned .recog .bar i { right: 0; }
.recog .state { color: var(--green); min-width: 9ch; text-align: right; }
.dossier.main { grid-column: span 3; display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; }
.dossier.main .holo { aspect-ratio: auto; min-height: 380px; }
.dossier.main .meta { padding: 46px 46px; align-self: center; }
.dossier.main h3 { font-size: clamp(38px, 4.4vw, 64px); }

.credits-roll { height: 70vh; min-height: 460px; position: relative; overflow: hidden; display: grid; place-items: center; text-align: left; }
.credits-roll .credit { position: absolute; left: 7.5%; top: 34%; opacity: 0; transition: opacity 1.1s ease; }
.credits-roll .credit.on { opacity: 1; }
.credits-roll .credit small { display: block; font: 600 clamp(14px, 1.3vw, 19px)/1 var(--ui); letter-spacing: .2em; color: #d9ccb3; margin-bottom: 18px; }
.credits-roll .credit b { font: 700 clamp(36px, 4.6vw, 64px)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.credits-roll::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), transparent 25%, transparent 75%, var(--bg)); z-index: 1; pointer-events: none; }
.credits-roll canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 50px; }
.values div { background: var(--bg); padding: 34px 30px; }
.values b { display: block; font: 700 20px/1.2 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.values span { color: #b9c5d1; font-size: 15.5px; }

/* ------------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 40px; background: linear-gradient(180deg, var(--bg), #030406); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.site-footer img { height: 54px; width: auto; margin-bottom: 18px; }
.site-footer h4 { font: 700 13px/1 var(--ui); letter-spacing: .28em; text-transform: uppercase; color: var(--dim); margin: 6px 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #d3dbe5; transition: color .2s; }
.site-footer a:hover { color: var(--cyan); }
.fine { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font: 600 13px/1.5 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #6d7a89; }

/* ------------------------------------------------------------------ boot sequence (boot_screen.cpp) */
.boot { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; cursor: pointer; transition: opacity .9s ease; }
.boot.done { opacity: 0; pointer-events: none; }
.boot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot .fine-print { position: relative; max-width: 560px; padding: 0 28px; text-align: center; font: 500 14px/1.7 var(--body); color: #8c96a3; transition: opacity .6s; }
.boot .logo { position: absolute; width: min(560px, 74vw); opacity: 0; transform: translateY(30px); transition: opacity 1.6s ease, transform 2.6s var(--ease); filter: drop-shadow(0 0 40px rgba(247, 148, 29, .25)); }
.boot.logo-in .logo { opacity: 1; transform: none; }
.boot.logo-in .fine-print { opacity: 0; }
.boot .skip { position: absolute; right: 26px; bottom: 22px; font: 700 12px/1 var(--ui); letter-spacing: .26em; color: #59616c; }

/* ------------------------------------------------------------------ contact-lens cursor */
.lens-cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .3s; }
.lens-cursor.on { opacity: 1; }
.lens-cursor .bracket { position: fixed; width: 14px; height: 14px; border: 2px solid var(--lens); filter: drop-shadow(0 0 5px var(--lens)); transition: transform .18s var(--ease); }
.lens-cursor .tl { border-right: 0; border-bottom: 0; } .lens-cursor .tr { border-left: 0; border-bottom: 0; }
.lens-cursor .bl { border-right: 0; border-top: 0; } .lens-cursor .br { border-left: 0; border-top: 0; }
.lens-cursor .dot { position: fixed; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--lens); border-radius: 50%; box-shadow: 0 0 8px var(--lens); }
.lens-cursor .readout { position: fixed; font: 700 10px/1 var(--ui); letter-spacing: .22em; color: var(--lens); white-space: nowrap; text-shadow: 0 0 6px rgba(71, 184, 255, .8); transition: opacity .2s; }
.lens-cursor.locked .bracket { border-color: var(--cyan); }
@media (pointer: fine) { body.lens-active, body.lens-active a, body.lens-active button { cursor: none; } }

/* ------------------------------------------------------------------ scroll reveal with ocular scan line */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.scan { position: relative; }
.reveal.scan::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 0; height: 2px; background: var(--cyan); box-shadow: 0 0 18px 2px var(--cyan);
  opacity: 0; pointer-events: none;
}
.reveal.scan.in::after { animation: scanline 1.3s var(--ease) .1s; }
@keyframes scanline { 0% { top: 0; opacity: 1 } 90% { opacity: .8 } 100% { top: 100%; opacity: 0 } }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }

/* modal video */
.modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 30px; background: rgba(0, 0, 0, .92); opacity: 0; pointer-events: none; transition: opacity .35s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal video { width: min(1400px, 100%); max-height: 86vh; background: #000; box-shadow: 0 0 0 1px rgba(255, 51, 115, .4), 0 0 80px rgba(255, 51, 115, .25); }

/* ------------------------------------------------------------------ 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.lost .code { font: 700 clamp(120px, 24vw, 320px)/.8 var(--display); color: transparent; -webkit-text-stroke: 2px var(--magenta); text-shadow: 0 0 60px rgba(255, 51, 115, .3); }
.stars { display: flex; justify-content: center; gap: 10px; margin: 26px 0; font-size: 30px; color: var(--amber); }
.stars span { animation: wanted 1s steps(2) infinite; }
.stars span:nth-child(even) { animation-delay: .5s; }
@keyframes wanted { 50% { opacity: .2 } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .split, .feature-card, .terminal-wrap { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; }
  .crew { grid-template-columns: 1fr 1fr; }
  .dossier.main { grid-column: span 2; grid-template-columns: 1fr; }
  .stations, .values { grid-template-columns: 1fr; }
  .gallery figure { grid-column: span 6; }
  .feature-card .cover-tilt { max-width: 380px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .brand img { height: 32px; }
  .menu-toggle { display: block; }
  .nav .links {
    position: fixed; inset: 64px 0 auto; display: grid; gap: 4px; padding: 18px 24px 26px; background: rgba(6, 8, 12, .97);
    transform: translateY(-120%); transition: transform .4s var(--ease); box-shadow: 0 1px 0 var(--line);
  }
  .nav.open .links { transform: none; }
  .nav .links a.link { padding: 14px 0; font-size: 17px; }
  .radio-btn .label { display: none; }
  .tiles, .crew, .footer-grid { grid-template-columns: 1fr; }
  .tile.big, .dossier.main { grid-column: auto; }
  .dossier.main .meta { padding: 26px 26px 0; }
  .dossier.main .holo { min-height: 300px; }
  .tile { min-height: 360px; }
  .gallery figure { grid-column: span 12; }
  .hero-inner { padding-bottom: 80px; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 4%, rgba(6, 8, 12, .62) 55%, rgba(6, 8, 12, .4)); }
  .lightbox { padding: 60px 12px 20px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .scroll-cue { display: none; }
}
@media (min-width: 761px) { .nav .links { display: flex; align-items: center; gap: 34px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
