/* ============================================================
   ZOMBI — survival arcade directory
   Aesthetic: abandoned-mall directory board. Emergency-lit,
   toxic-green glow, blood-red exit signage, caution-yellow
   leasing tape, scanlines + grain over near-black.
   ============================================================ */

:root {
  --void:    #070907;
  --void-2:  #0b0e0b;
  --panel:   #0e120e;
  --panel-2: #11160f;
  --line:    #1d241c;

  --toxic:   #5dff8f;  /* primary accent / ONLINE */
  --toxic-d: #2fae5d;
  --blood:   #ff4438;  /* danger / exit */
  --caution: #f4d03f;  /* warning / leasing */

  --bone:    #e9e6dc;  /* primary text */
  --ash:     #8f8a7f;  /* muted text */
  --ash-d:   #5f5b52;

  --display: "Anton", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* layered atmosphere: emergency-green ceiling glow + cold floor */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(93,255,143,.07), transparent 55%),
    radial-gradient(90% 60% at 50% 120%, rgba(255,68,56,.05), transparent 60%);
  background-attachment: fixed;
}

/* ---------- atmosphere overlays ---------- */
.grain, .scanlines, .vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 9;
}
.grain {
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanlines {
  opacity: .35;
  background: repeating-linear-gradient(
    0deg, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.45) 2px 3px);
  z-index: 8;
}
.vignette {
  z-index: 7;
  background: radial-gradient(120% 100% at 50% 40%, transparent 55%, rgba(0,0,0,.7) 100%);
}

::selection { background: var(--toxic); color: #04210f; }

/* ---------- status bar ---------- */
.statusbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2.4rem);
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ash);
  background: rgba(7,9,7,.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.sb-brand { color: var(--bone); font-weight: 600; }
.sb-brand em { color: var(--ash); font-style: normal; font-weight: 400; }
.sb-status { display: inline-flex; align-items: center; gap: .5rem; color: var(--toxic); }

/* status LED */
.led {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--toxic);
  box-shadow: 0 0 6px var(--toxic), 0 0 12px var(--toxic);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--toxic), 0 0 12px var(--toxic); }
  50%      { opacity: .45; box-shadow: 0 0 2px var(--toxic); }
}

/* ---------- layout shell ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.4rem); }

/* ---------- hero ---------- */
.hero {
  padding: clamp(3.5rem, 11vh, 7rem) 0 clamp(2.5rem, 7vh, 4.5rem);
  text-align: center;
  position: relative;
}
.hero-kicker {
  margin: 0 0 1.4rem;
  font-size: 12px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ash-d);
  animation: rise .8s both;
}
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  margin: 0;
  font-size: clamp(5.5rem, 26vw, 17rem);
  line-height: .82;
  letter-spacing: .02em;
  color: var(--bone);
  position: relative;
  text-shadow:
    0 0 18px rgba(93,255,143,.28),
    0 0 48px rgba(93,255,143,.18);
  animation: flicker 6s linear infinite, rise .8s .05s both;
}
/* glitch echoes */
.wordmark::before, .wordmark::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.wordmark::before { color: var(--blood); mix-blend-mode: screen; animation: glitchA 5.5s steps(1) infinite; }
.wordmark::after  { color: var(--toxic); mix-blend-mode: screen; animation: glitchB 5.5s steps(1) infinite; }

@keyframes flicker {
  0%, 19%, 21%, 55%, 57%, 100% { opacity: 1; }
  20%, 56% { opacity: .82; }
  20.5% { opacity: .55; }
}
@keyframes glitchA {
  0%, 92%, 100% { transform: none; opacity: 0; }
  93% { transform: translate(-3px, 1px); opacity: .6; }
  95% { transform: translate(2px, -1px); opacity: 0; }
  97% { transform: translate(-2px, 0); opacity: .5; }
}
@keyframes glitchB {
  0%, 92%, 100% { transform: none; opacity: 0; }
  94% { transform: translate(3px, -1px); opacity: .55; }
  96% { transform: translate(-2px, 1px); opacity: 0; }
  98% { transform: translate(2px, 0); opacity: .45; }
}

.hero-sub {
  max-width: 36ch; margin: 1.8rem auto 0;
  font-size: clamp(.95rem, 1.4vw, 1.08rem);
  color: var(--ash);
  animation: rise .8s .15s both;
}
.hl { color: var(--toxic); }
.hl-blood { color: var(--blood); }

.hero-meta {
  margin-top: 1.6rem;
  display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ash-d);
  animation: rise .8s .25s both;
}
.hero-meta b { color: var(--bone); }
.hero-meta .dot { color: var(--line); }

/* ---------- section heads ---------- */
.section-head { display: flex; align-items: center; gap: 1.1rem; margin: 0 0 2rem; }
.section-head h2 {
  margin: 0; font-family: var(--mono); font-weight: 600;
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--toxic);
  white-space: nowrap;
}
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* ---------- directory grid ---------- */
.directory { padding: 1rem 0 4rem; }
.grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
}

.placard {
  position: relative;
  display: flex; flex-direction: column;
  background:
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none; color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s, box-shadow .25s;
  animation: rise .7s both;
}
.placard:nth-child(1) { animation-delay: .30s; }
.placard:nth-child(2) { animation-delay: .40s; }
.placard:nth-child(3) { animation-delay: .50s; }

/* accent rail on the left edge */
.placard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); opacity: .55; z-index: 3;
  transition: opacity .25s, box-shadow .25s;
}
a.placard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 18px 40px -22px var(--accent), 0 0 0 1px rgba(0,0,0,.3) inset;
}
a.placard:hover::before { opacity: 1; box-shadow: 0 0 14px var(--accent); }

.unit-no {
  position: absolute; top: .7rem; right: .85rem; z-index: 4;
  font-size: 10.5px; letter-spacing: .22em; color: var(--ash-d);
}

/* thumbnail window */
.shot {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #04210f;
  border-bottom: 1px solid var(--line);
}
.shot img, .shot svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(.92) contrast(1.04);
}
.shot::after { /* darken toward bottom for label legibility */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,9,7,.85));
  pointer-events: none;
}
a.placard:hover .shot img { transform: scale(1.05); transition: transform .6s ease; }
.shot img { transition: transform .6s ease; }

.badge {
  position: absolute; left: .7rem; bottom: .7rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .28rem .6rem;
  font-size: 10.5px; letter-spacing: .16em; font-weight: 600;
  background: rgba(7,9,7,.78); border: 1px solid var(--line);
  border-radius: 3px; color: var(--toxic);
  backdrop-filter: blur(4px);
}

/* chess SVG thumb pieces glow */
.shot-chess .pc { filter: drop-shadow(0 0 4px currentColor); }

/* leasing hazard thumb */
.shot-lease {
  display: grid; place-items: center;
  background: var(--void-2);
}
.shot-lease .hazard {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(244,208,63,.14) 0 22px, rgba(7,9,7,0) 22px 44px);
}
.lease-stamp {
  position: relative; z-index: 2;
  font-family: var(--display); font-size: 2.4rem; line-height: .9; text-align: center;
  color: var(--caution); letter-spacing: .04em;
  border: 3px solid var(--caution); padding: .4rem .9rem; border-radius: 4px;
  transform: rotate(-9deg); opacity: .85;
  text-shadow: 0 0 18px rgba(244,208,63,.3);
}

/* placard body */
.placard-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.placard-body h3 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: 1.75rem; letter-spacing: .01em; color: var(--bone);
}
.tagline { margin: .25rem 0 .7rem; color: var(--accent); font-size: 12.5px; letter-spacing: .04em; }
.blurb { margin: 0 0 1.1rem; color: var(--ash); font-size: 13.5px; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; }
.tags li {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ash); padding: .22rem .5rem;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.015);
}

.enter {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 12px; letter-spacing: .2em; font-weight: 600; text-transform: uppercase;
  color: var(--accent);
}
.enter b { transition: transform .25s; }
a.placard:hover .enter b { transform: translateX(5px); }
.enter.muted { color: var(--ash-d); }

.placard.leasing { border-style: dashed; }
.placard.leasing .placard-body h3 { color: var(--caution); }

/* ---------- about ---------- */
.about { padding: 2rem 0 4rem; }
.about-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}
.about-lead {
  margin: 0; font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.55; color: var(--bone);
}
.about-lead::first-line { color: var(--bone); }
.specs { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.specs li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--bone);
}
.specs li span { color: var(--ash-d); letter-spacing: .12em; font-size: 11px; text-transform: uppercase; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.4rem clamp(1rem, 4vw, 2.4rem) 3rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ash-d); letter-spacing: .1em;
}
.f-mark { font-family: var(--display); font-size: 1.4rem; color: var(--ash); letter-spacing: .05em; }
.f-links { display: flex; gap: 1.2rem; }
.f-links a { color: var(--ash); text-decoration: none; transition: color .2s; }
.f-links a:hover { color: var(--toxic); }
.f-note { margin-left: auto; text-transform: uppercase; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .f-note { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
