/* ════════════════════════════════════════════════════════════════
   Ashes Studios design system
   Soulslike · dark fantasy · philosophy-heavy.
   Hand-authored CSS. The only ornament is a single ember.
   ════════════════════════════════════════════════════════════════ */

:root {
  --void: oklch(0.12 0.006 50);
  --void-2: oklch(0.145 0.007 48);
  --panel: oklch(0.168 0.008 48);
  --ink: oklch(0.925 0.008 78);
  --ash: oklch(0.66 0.012 62);
  --ash-dim: oklch(0.47 0.012 58);
  --line: oklch(0.265 0.01 52);
  --line-2: oklch(0.205 0.009 50);
  --copper: oklch(0.66 0.105 50);
  --copper-hi: oklch(0.76 0.095 64);
  --maxw: 1180px;
  --gutter: clamp(22px, 6vw, 96px);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
:target {
  scroll-margin-top: 6rem;
}
body {
  background: var(--void);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--copper);
  color: var(--void);
}
a {
  color: inherit;
  text-decoration: none;
}

/* custom scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--void);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ash-dim);
}

/* ---- voices ---- */
.serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0.005em;
}
.mono {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
}
.label {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  color: var(--copper);
}
.marker {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ash-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
}
.marker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line);
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.section {
  position: relative;
  padding: clamp(96px, 16vh, 200px) var(--gutter);
}
.rule {
  height: 1px;
  background: var(--line-2);
  border: 0;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* sigil: a single ember dot, the only ornament */
.sigil {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ash-dim);
}
.sigil .ln {
  width: clamp(40px, 12vw, 140px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.sigil .ln.r {
  background: linear-gradient(90deg, var(--line), transparent);
}
.sigil .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 14px 1px color-mix(in srgb, var(--copper) 70%, transparent);
  animation: breathe 5.5s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    box-shadow: 0 0 10px 0 color-mix(in srgb, var(--copper) 50%, transparent);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px 2px color-mix(in srgb, var(--copper) 85%, transparent);
  }
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition:
    padding 0.4s ease,
    background 0.4s ease,
    border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: color-mix(in srgb, var(--void) 80%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-2);
  padding: 15px var(--gutter);
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--ink);
}
.nav-links {
  display: flex;
  gap: 38px;
}
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  width: 100%;
}
@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px var(--gutter) 110px;
  overflow: hidden;
}
#ember {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 120vw;
  height: 75vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--copper) 16%, transparent),
    transparent 72%
  );
  animation: breathe 9s ease-in-out infinite;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background: radial-gradient(
    140% 130% at 50% 0%,
    transparent 55%,
    oklch(0.09 0.005 50 / 0.8)
  );
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.hero .label {
  opacity: 0;
  animation: fade 1s 0.2s forwards;
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(64px, 13vw, 184px);
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 26px 0 0;
  text-transform: uppercase;
}
.hero h1 .ln1,
.hero h1 .ln2 {
  display: block;
  overflow: hidden;
}
.hero h1 span span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .em {
  color: transparent;
  background: linear-gradient(174deg, var(--ink) 40%, var(--copper-hi) 96%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lead {
  max-width: 600px;
  margin-top: 42px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.4;
  color: var(--ash);
  opacity: 0;
  animation: fade 1.1s 1s forwards;
}
@media (max-width: 420px) {
  .hero-lead {
    margin-top: 0 !important;
  }
}
@media (max-width: 820px) {
  .hero-lead {
    margin-top: 84px;
  }
}
@media (max-width: 820px) {
  .hero-lead {
    margin-top: 84px;
  }
}
.hero-lead b {
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: clamp(48px, 8vh, 96px);
  opacity: 0;
  animation: fade 1.1s 1.2s forwards;
}
.hero-foot .meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hero-foot .meta span {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ash-dim);
}
.hero-foot .meta span b {
  color: var(--ash);
  font-weight: 400;
}
.scrollcue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.scrollcue .v {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--line), transparent);
  position: relative;
  overflow: hidden;
}
.scrollcue .v::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--copper);
  animation: drop 2.4s infinite;
}
@keyframes drop {
  0% {
    top: -12px;
  }
  65%,
  100% {
    top: 40px;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}
@keyframes rise {
  to {
    transform: translateY(0);
  }
}

/* ---- reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d="1"] {
  transition-delay: 0.1s;
}
.reveal[data-d="2"] {
  transition-delay: 0.2s;
}
.reveal[data-d="3"] {
  transition-delay: 0.3s;
}

/* ---------- GAME ---------- */
.game {
  background: var(--void-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.game-head {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: clamp(56px, 9vw, 104px);
}
.game-head h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(44px, 8vw, 116px);
  line-height: 0.94;
  letter-spacing: 0.015em;
  margin-top: 6px;
}
.creed {
  max-width: 18ch;
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(28px, 4.4vw, 60px);
  line-height: 1.16;
  color: var(--ink);
  letter-spacing: 0.004em;
}
.creed .q {
  color: var(--copper);
  font-style: normal;
}
.creed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  margin: clamp(60px, 8vw, 96px) 0;
}
@media (max-width: 820px) {
  .creed-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}
.creed-note p {
  color: var(--ash);
  max-width: 46ch;
  margin-bottom: 18px;
}
.creed-note p:last-child {
  margin-bottom: 0;
}
.creed-note .first {
  color: var(--ink);
  font-size: 20px;
}

/* pillars */
.pillars {
  border-top: 1px solid var(--line-2);
}
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(34px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
  transition: background 0.4s ease;
}
.pillar:hover {
  background: color-mix(in srgb, var(--copper) 4%, transparent);
}
.pillar .rn {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 64px);
  color: var(--copper);
  line-height: 1;
  opacity: 0.85;
}
.pillar-body {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 1.5fr;
  gap: clamp(18px, 4vw, 60px);
  align-items: baseline;
}
@media (max-width: 740px) {
  .pillar-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.pillar h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.03em;
  line-height: 1.02;
}
.pillar p {
  color: var(--ash);
  max-width: 48ch;
}
.first-look {
  margin-top: clamp(48px, 7vw, 80px);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.first-look .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--copper) 60%, transparent);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--copper) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 11px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ---------- STUDIO ---------- */
.studio-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
@media (max-width: 820px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}
.studio h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.015em;
  margin-top: 18px;
}
.studio-body p {
  color: var(--ash);
  margin-bottom: 24px;
  max-width: 54ch;
}
.studio-body p:last-child {
  margin-bottom: 0;
}
.studio-body .lead {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 34px;
  max-width: 24ch;
}
.founder {
  color: var(--ink);
  border-bottom: 1px solid var(--copper);
  padding-bottom: 1px;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.founder:hover {
  color: var(--copper-hi);
  border-color: var(--copper-hi);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--void);
  padding: clamp(80px, 10vw, 120px) var(--gutter) 44px;
}
.foot-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.foot-mark .brand {
  font-size: 26px;
  display: block;
}
.foot-mark .tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ash-dim);
  margin-top: 16px;
  text-transform: uppercase;
}
.foot-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
}
.contact {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 34px);
  color: var(--ink);
  transition: color 0.25s;
}
.contact:hover {
  color: var(--copper-hi);
}
.socials {
  display: flex;
  gap: 12px;
}
.socials a {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ash);
  transition:
    border-color 0.25s,
    color 0.25s,
    transform 0.3s;
}
.socials a:hover {
  border-color: var(--copper);
  color: var(--copper-hi);
  transform: translateY(-3px);
}
.socials a.soon {
  position: relative;
}
.socials a.soon::after {
  content: "SOON";
  position: absolute;
  bottom: -17px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--ash-dim);
}
.socials svg {
  width: 18px;
  height: 18px;
}
.status {
  max-width: var(--maxw);
  margin: clamp(48px, 7vw, 76px) auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 2.6s infinite;
}
.foot-bottom {
  max-width: var(--maxw);
  margin: 34px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash-dim);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter);
}
.notfound .code {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: clamp(96px, 22vw, 260px);
  line-height: 0.9;
  color: transparent;
  background: linear-gradient(174deg, var(--line) 30%, var(--copper) 130%);
  -webkit-background-clip: text;
  background-clip: text;
}
.notfound h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.02em;
  margin-top: 18px;
}
.notfound p {
  color: var(--ash);
  max-width: 40ch;
  margin: 22px auto 40px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ash);
  border: 1px solid var(--line);
  padding: 16px 26px;
  transition:
    border-color 0.25s,
    color 0.25s;
}
.back:hover {
  border-color: var(--copper);
  color: var(--copper-hi);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
  .hero .label,
  .hero-lead,
  .hero-foot {
    opacity: 1;
  }
  .hero h1 span span {
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- MODELZERO PAGE ---------- */

/* game CTA on home */
.game-cta {
  margin-top: clamp(48px, 7vw, 80px);
}

/* tilt gauge: the page's one instrument. Scroll = tilt; the bottom flips it. */
.tilt-gauge {
  position: fixed;
  right: clamp(10px, 2vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.tg-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash-dim);
  writing-mode: vertical-rl;
}
.tg-track {
  width: 3px;
  height: clamp(120px, 22vh, 220px);
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.tg-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--copper-hi), var(--copper));
  box-shadow: 0 0 8px color-mix(in srgb, var(--copper) 60%, transparent);
}
.tg-read {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ash-dim);
  min-height: 14px;
}
.tilt-gauge.wiped .tg-read {
  color: var(--copper-hi);
}
.tilt-gauge.wiped .tg-fill {
  background: var(--copper-hi);
}
@media (max-width: 820px) {
  .tilt-gauge {
    display: none;
  }
}

/* footer founder link */
.foot-bottom a {
  color: var(--ash);
  border-bottom: 1px solid var(--line);
  transition:
    color 0.25s,
    border-color 0.25s;
}
.foot-bottom a:hover {
  color: var(--copper-hi);
  border-color: var(--copper);
}

/* ════════════════════════════════════════════════════════════════
   MODELZERO (body.mz) — the game's own design language.
   Machine schematic: cold graphite, phosphor signal, blueprint grid,
   corner-ticked panels, industrial display type. The nav wordmark,
   the voice, and the page bones are the Ashes thread; everything
   else belongs to the machine world.
   ════════════════════════════════════════════════════════════════ */
.mz {
  /* remap the shared chrome onto a monochrome machine palette */
  --void: oklch(0.13 0 0);
  --void-2: oklch(0.155 0 0);
  --panel: oklch(0.175 0 0);
  --ink: oklch(0.92 0 0);
  --ash: oklch(0.63 0 0);
  --ash-dim: oklch(0.45 0 0);
  --line: oklch(0.28 0 0);
  --line-2: oklch(0.215 0 0);
  --copper: oklch(0.86 0 0); /* signal: near-white */
  --copper-hi: oklch(0.97 0 0);
  --mz-warn: oklch(1 0 0); /* wipeout: pure white */
}

/* hero: field record */
.mz-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 150px var(--gutter) 110px;
  overflow: hidden;
}
.mz-gridbg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 63px,
      var(--line-2) 63px,
      var(--line-2) 64px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 63px,
      var(--line-2) 63px,
      var(--line-2) 64px
    );
  mask-image: radial-gradient(120% 110% at 50% 40%, #000 30%, transparent 78%);
}
.mz-hero-inner {
  position: relative;
  z-index: 2;
}
.mz-tag {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--copper);
}
.mz-title {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.98;
  letter-spacing: 0.015em;
  margin: 22px 0 0;
  color: var(--ink);
}
.mz-title .sig {
  color: var(--copper);
}
.mz-lead {
  max-width: 600px;
  margin-top: 34px;
  font-size: clamp(19px, 2.1vw, 25px);
  line-height: 1.5;
  color: var(--ash);
}
.mz-lead b {
  color: var(--ink);
  font-weight: 500;
}
.mz-meta {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vh, 72px);
}
.mz-meta dt {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash-dim);
  margin-bottom: 7px;
}
.mz-meta dd {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ash);
}
.mz-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(36px, 5vh, 60px);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.mz-cue .v {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--line), transparent);
  position: relative;
  overflow: hidden;
}
.mz-cue .v::after {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--copper);
  animation: drop 2.4s infinite;
}

/* sections */
.mz-sec {
  position: relative;
  padding: clamp(96px, 15vh, 190px) var(--gutter);
}
.mz-sec.alt {
  background: var(--void-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.mz-marker {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  display: flex;
  align-items: center;
  gap: 16px;
}
.mz-marker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line);
  display: block;
}
.mz-h2 {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 22px 0 clamp(48px, 7vw, 84px);
}

/* corner-ticked schematic panel */
.mz-panel {
  position: relative;
  border: 1px solid var(--line);
}
.mz-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--copper), var(--copper)) 0 0/14px 2px,
    linear-gradient(var(--copper), var(--copper)) 0 0/2px 14px,
    linear-gradient(var(--copper), var(--copper)) 100% 0/14px 2px,
    linear-gradient(var(--copper), var(--copper)) 100% 0/2px 14px,
    linear-gradient(var(--copper), var(--copper)) 0 100%/14px 2px,
    linear-gradient(var(--copper), var(--copper)) 0 100%/2px 14px,
    linear-gradient(var(--copper), var(--copper)) 100% 100%/14px 2px,
    linear-gradient(var(--copper), var(--copper)) 100% 100%/2px 14px;
  background-repeat: no-repeat;
}

/* the world: recovered fragment + prose */
.mz-cols {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
@media (max-width: 820px) {
  .mz-cols {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}
.mz-frag {
  padding: clamp(26px, 3.5vw, 44px);
  background: var(--panel);
}
.mz-frag p {
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: 0.1em;
  color: var(--copper);
  margin-bottom: 14px;
  line-height: 1.7;
}
.mz-prose p {
  color: var(--ash);
  max-width: 52ch;
  margin-bottom: 20px;
}
.mz-prose p:last-child {
  margin-bottom: 0;
}
.mz-prose .first {
  color: var(--ink);
  font-size: 20px;
}

/* the fight: systems manifest */
.mz-manifest {
  list-style: none;
  border-top: 1px solid var(--line-2);
}
.mz-manifest li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(30px, 4.5vw, 50px) 0;
  border-bottom: 1px solid var(--line-2);
  align-items: baseline;
  transition: background 0.4s ease;
}
.mz-manifest li:hover {
  background: color-mix(in srgb, var(--copper) 4%, transparent);
}
.mz-manifest .no {
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: 0.12em;
  color: var(--copper);
}
.mz-manifest h3 {
  font-family: "Chakra Petch", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(19px, 2.3vw, 28px);
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: 12px;
}
.mz-manifest p {
  color: var(--ash);
  max-width: 62ch;
}

/* footage: monitor */
.mz-monitor {
  margin: 0;
  padding: clamp(10px, 1.6vw, 16px);
  background: var(--panel);
}
.mz-embed {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--void);
}
.mz-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mz-monitor figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash-dim);
  text-align: center;
}
.mz-nosignal {
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      color-mix(in srgb, var(--void-2) 70%, transparent) 3px,
      color-mix(in srgb, var(--void-2) 70%, transparent) 4px
    ),
    var(--void);
}
.mz-nosignal .nosig {
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--copper);
  animation: mzflicker 4s steps(1) infinite;
}
@keyframes mzflicker {
  0%,
  92%,
  96%,
  100% {
    opacity: 1;
  }
  94% {
    opacity: 0.35;
  }
}
.mz-nosignal .sub {
  color: var(--ash);
  max-width: 36ch;
  text-align: center;
  font-size: clamp(16px, 1.8vw, 19px);
}

/* the page instrument goes amber at wipeout */
.mz .tilt-gauge.wiped .tg-read {
  color: var(--mz-warn);
}
.mz .tilt-gauge.wiped .tg-fill {
  background: var(--mz-warn);
}
