/* ZERQOR LABS — cinematic noir */
:root {
  --bg: #0a0a0c;
  --panel: #111114;
  --panel-2: #16161a;
  --line: #1e1e24;
  --red: #e10600;
  --red-hot: #ff2b1f;
  --ink: #eceae4;
  --muted: #9a9aa2;
  --dim: #5c5c64;
  --max: 1080px;
  --measure: 680px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* film grain + vignette */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 1px, transparent 1px 3px);
}

::selection { background: var(--red); color: #fff; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red-hot); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,12,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 1.5rem;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand .mark {
  width: 14px; height: 14px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(225,6,0,.8);
  transform: rotate(45deg);
  flex: none;
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav a.active { border-bottom: 2px solid var(--red); padding-bottom: 2px; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 40%, rgba(225,6,0,.06) 55%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(225,6,0,.08), transparent 60%);
  pointer-events: none;
}
.kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red-hot);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 44px; height: 2px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(225,6,0,.9);
}
.hero h1 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(4.2rem, 15vw, 10.5rem);
  line-height: .92;
  letter-spacing: .02em;
  font-weight: 400;
}
.hero h1 .red { color: var(--red); text-shadow: 0 0 34px rgba(225,6,0,.45); }
.tagline {
  margin-top: 20px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
}
.tagline strong { color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
section.block { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 2rem;
  letter-spacing: .06em;
  font-weight: 400;
}
.section-head .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--dim);
  text-transform: uppercase;
}

/* featured card */
.featured {
  display: block;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  padding: 40px 36px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.featured:hover {
  transform: translateY(-3px);
  border-color: #2c2c34;
  border-left-color: var(--red-hot);
  box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 40px rgba(225,6,0,.08);
}
.featured .f-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-bottom: 14px;
}
.featured h3 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: .03em;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 14px;
}
.featured p { color: var(--muted); max-width: 640px; margin-bottom: 18px; }
.featured .cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
}
.featured .cta span { color: var(--red-hot); }

/* lab list */
.lab-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 6px;
  border-bottom: 1px solid var(--line);
  transition: padding .2s ease, background .2s ease;
}
.lab-row:hover { background: rgba(225,6,0,.03); padding-left: 14px; }
.lab-row .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: var(--dim);
  width: 34px;
  flex: none;
}
.lab-row .t { flex: 1; }
.lab-row .t h3 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 1.7rem;
  letter-spacing: .04em;
  font-weight: 400;
  line-height: 1.05;
}
.lab-row .t p { color: var(--dim); font-size: .9rem; margin-top: 4px; }
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red-hot);
  border: 1px solid rgba(225,6,0,.5);
  padding: 5px 10px;
  flex: none;
}
.badge.live {
  color: #0a0a0c;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(225,6,0,.5);
}
.lab-row .arrow { color: var(--dim); flex: none; font-size: 1.2rem; }
.lab-row:hover .arrow { color: var(--red-hot); }

/* ---------- article ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--red);
  box-shadow: 0 0 10px rgba(225,6,0,.9);
  width: 0%;
  z-index: 300;
}
.article-head { padding: 72px 0 40px; max-width: var(--measure); margin: 0 auto; }
.article-head .kicker { margin-bottom: 18px; }
.article-head h1 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: .95;
  letter-spacing: .02em;
  font-weight: 400;
  margin: 16px 0 20px;
}
.article-head .dek { color: var(--muted); font-size: 1.1rem; }
.prose {
  max-width: var(--measure);
  margin: 0 auto;
  padding-bottom: 40px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: #d8d6d0;
}
.prose p { margin-bottom: 1.5em; }
.prose p:first-of-type::first-letter {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 3.4em;
  float: left;
  line-height: .82;
  padding-right: 10px;
  padding-top: 4px;
  color: var(--red);
}
.prose em { color: var(--ink); }
.prose strong { color: #fff; }
.prose a { color: var(--red-hot); border-bottom: 1px solid rgba(225,6,0,.4); }
.prose a:hover { border-bottom-color: var(--red-hot); }
.prose hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5em auto;
  max-width: 220px;
  position: relative;
}
.prose hr::after {
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  width: 44px; height: 3px;
  transform: translateX(-50%);
  background: var(--red);
}
.prose ul { margin: 0 0 1.5em 1.2em; }
.prose li { margin-bottom: .6em; color: var(--muted); }
.prose li a { font-size: .95rem; }
.sources {
  max-width: var(--measure);
  margin: 0 auto 60px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.sources h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.sources li { font-size: .85rem; margin-bottom: 8px; list-style: none; }
.sources a { color: var(--muted); border-bottom: 1px dotted var(--dim); }
.sources a:hover { color: var(--red-hot); }
.article-nav {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 30px 0 70px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.article-nav a {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 45%;
}
.article-nav a:hover { color: var(--red-hot); }
.article-nav .next { text-align: right; }

/* ---------- about ---------- */
.about-body { max-width: var(--measure); margin: 0 auto; padding: 72px 0; }
.about-body h1 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  letter-spacing: .02em;
  margin: 18px 0 26px;
}
.about-body p { color: #d8d6d0; font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.4em; }
.about-body p strong { color: #fff; }
.about-body .sign {
  font-family: 'JetBrains Mono', monospace;
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red-hot);
  margin-top: 2em;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .f-brand {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 1.3rem;
  letter-spacing: .12em;
}
footer .f-brand span { color: var(--red); }
footer p {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--dim);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .brand { font-size: 1.15rem; letter-spacing: .1em; }
  .hero { padding: 64px 0 48px; }
  .featured { padding: 28px 22px; }
  .lab-row .t p { display: none; }
  .nav { gap: 16px; }
  .article-nav { flex-direction: column; }
  .article-nav a { max-width: 100%; }
  .article-nav .next { text-align: left; }
}

/* ---- article imagery ---- */
.feat-img { margin-bottom: 26px; }
.feat-img img {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--line);
}
.lab-row .thumb {
  width: 168px; flex: none; aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--line); display: block;
}
.hero-img { margin: 30px 0 6px; }
.hero-img img {
  display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--line);
}
.meme { margin: 2.4em auto; max-width: 560px; }
.meme img { display: block; width: 100%; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .lab-row .thumb { width: 104px; }
  .lab-row { gap: 14px; }
}
