/* ETCH — etchgame.com
   Visual law per VISUAL_STYLE_CONTRACT.md:
   pure black bg, neon-on-dark, Exo 2 + Share Tech Mono, flat 1-2px borders,
   radius <= 4, no gradients/soft shadows, glow does the work, CRT overlay. */

@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/exo2-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sharetechmono-latin.woff2') format('woff2');
}

:root {
  --bg: #000000;
  --card: #0A0A14;
  --card-hover: #12122A;
  --line: #1A1A30;
  --text: #E0E8F0;
  --muted: #8090A8;
  --disabled: #505868;
  --gold: #FFE000;
  --blue: #00DDFF;
  --green: #00FF66;
  --red: #FF2E4C;
  --display: 'Exo 2', sans-serif;
  --mono: 'Share Tech Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- CRT overlay: scanlines + vignette, always on top, never interactive ---- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background:
    repeating-linear-gradient(0deg,
      rgba(0,0,0,0)    0px,
      rgba(0,0,0,0)    2px,
      rgba(0,0,0,.14)  3px,
      rgba(0,0,0,0)    4px),
    radial-gradient(ellipse at center,
      rgba(0,0,0,0) 58%,
      rgba(0,0,0,.42) 100%);
}

::selection { background: var(--gold); color: #000; }

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-shadow: 0 0 8px var(--blue); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.12;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- terminal eyebrow: "> SECTOR 02 // FOUR PROTOCOLS" ---- */
.prompt {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .12em;
  color: var(--green);
  margin-bottom: 14px;
}
.prompt::before { content: '> '; }
.prompt .path { color: var(--muted); }

/* ---- buttons: flat, 1px neon border, dark fill; hover = filled + halo ---- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .09em;
  padding: 14px 30px;
  border-radius: 3px;
  border: 1px solid;
  background: rgba(10,10,20,.85);
  transition: background .12s, color .12s, box-shadow .12s;
}
.btn-gold  { color: var(--gold);  border-color: var(--gold); }
.btn-green { color: var(--green); border-color: var(--green); }
.btn-blue  { color: var(--blue);  border-color: var(--blue); }
.btn-gold:hover  { background: var(--gold);  color: #000; box-shadow: 0 0 22px rgba(255,224,0,.55);  text-shadow: none; }
.btn-green:hover { background: var(--green); color: #000; box-shadow: 0 0 22px rgba(0,255,102,.5);   text-shadow: none; }
.btn-blue:hover  { background: var(--blue);  color: #000; box-shadow: 0 0 22px rgba(0,221,255,.5);   text-shadow: none; }
.btn-lg { font-size: 19px; padding: 17px 40px; }

/* ---- top bar ---- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 24px;
  background: rgba(0,0,0,.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.topbar .logo img { height: 30px; width: auto; }
.topbar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.topbar nav a { color: var(--muted); }
.topbar nav a:hover { color: var(--blue); }
.topbar .btn { padding: 8px 18px; font-size: 13px; }

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 24px 64px;
  overflow: hidden;
}
.hero video, .hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
  z-index: -1;
}
.hero-logo { width: min(560px, 82vw); height: auto; filter: drop-shadow(0 0 34px rgba(0,120,255,.5)); }
.hero-tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 26px);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 26px;
}
.hero-sub {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
}
.hero-sub b { color: var(--text); font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 38px; }
.hero-press { margin-top: 26px; font-size: 14px; letter-spacing: .1em; }

/* ---- next fest strip ---- */
.fest {
  border-top: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  background: rgba(0,255,102,.05);
  padding: 14px 24px;
  text-align: center;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fest b { color: var(--green); font-weight: 400; }
.fest .blink { animation: pulse 2.2s ease-in-out infinite; display: inline-block; color: var(--green); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* ---- sections ---- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section.no-line { border-top: none; }
h2 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 18px; }
.lede { color: var(--muted); max-width: 640px; }
.lede em { color: var(--text); font-style: italic; }

.split {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 54px;
  align-items: center;
}
.split.flip .media { order: -1; }

/* HUD corner brackets on framed media/cards */
.hud {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
}
.hud::before, .hud::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  pointer-events: none;
}
.hud::before { top: -1px; left: -1px; border-top: 2px solid var(--blue); border-left: 2px solid var(--blue); }
.hud::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--blue); border-right: 2px solid var(--blue); }
.hud video, .hud img { border-radius: 2px; }

/* ---- protocols ---- */
.protocols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.proto {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  padding: 24px 20px 26px;
  border-top: 2px solid var(--c, var(--blue));
  transition: background .12s, box-shadow .12s;
}
.proto:hover { background: var(--card-hover); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 30%, transparent); }
.proto h3 {
  font-size: 19px;
  color: var(--c, var(--blue));
  margin-bottom: 10px;
}
.proto .key {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .14em;
  display: block;
  margin-bottom: 14px;
}
.proto p { font-size: 14.5px; color: var(--muted); }

/* ---- tracer roster ---- */
.tracers { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
.tracers li {
  list-style: none;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.tracers b { color: var(--red); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }

/* ---- lore ---- */
.lore { text-align: center; }
.lore .frame { max-width: 760px; margin: 44px auto 0; }
.lore blockquote {
  max-width: 560px;
  margin: 40px auto 0;
  font-size: 17px;
  color: var(--muted);
  border: none;
}
.lore blockquote .sig { display: block; margin-top: 18px; color: var(--blue); font-size: 14px; letter-spacing: .14em; }

/* ---- screenshots ---- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.shots a { display: block; }
.shots img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: border-color .12s, box-shadow .12s;
}
.shots a:hover img { border-color: var(--blue); box-shadow: 0 0 16px rgba(0,221,255,.35); }

/* ---- features readout ---- */
.features { margin-top: 40px; max-width: 720px; }
.features li {
  list-style: none;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  position: relative;
  font-size: 15.5px;
}
.features li::before {
  content: '+';
  position: absolute;
  left: 4px;
  color: var(--green);
}
.features li b { color: var(--text); font-weight: 400; }

/* ---- video embeds ---- */
.player { position: relative; }
.player video { width: 100%; border-radius: 2px; }

/* ---- final cta ---- */
.endcta { text-align: center; }
.endcta h2 { font-size: clamp(26px, 3.8vw, 38px); }
.endcta .hero-cta { margin-top: 34px; }
.endcta .whisper { margin-top: 34px; color: var(--disabled); font-size: 14px; font-style: italic; }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 60px;
  font-size: 14px;
  color: var(--muted);
}
footer .cols {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
}
footer .studio { letter-spacing: .1em; text-transform: uppercase; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border: 1px solid var(--line); }

/* ---- press page ---- */
.press-head { padding: 150px 0 60px; }
.press-head h1 { font-size: clamp(32px, 5vw, 52px); }
.press-head .lede { margin-top: 14px; }

.factsheet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 40px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.factsheet div { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.factsheet dt { color: var(--disabled); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.factsheet dd { color: var(--text); margin-top: 3px; }

.dl-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.press-body p { max-width: 720px; color: var(--muted); margin-bottom: 18px; }
.press-body p b { color: var(--text); font-weight: 400; }
.press-note {
  border: 1px solid var(--line);
  border-left: 2px solid var(--green);
  border-radius: 3px;
  background: var(--card);
  padding: 20px 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 15px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.asset-grid figure { border: 1px solid var(--line); border-radius: 3px; background: var(--card); }
.asset-grid img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; border-radius: 2px 2px 0 0; }
.asset-grid figcaption {
  font-size: 12px;
  color: var(--muted);
  padding: 9px 12px;
  letter-spacing: .06em;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.asset-grid figcaption a { white-space: nowrap; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .protocols { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.flip .media { order: 0; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .tracers { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .protocols { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .topbar nav { gap: 14px; }
  .topbar nav a.hide-s { display: none; }
}
