:root {
  --void: #090b08;
  --panel: #121610;
  --acid: #d8f54a;
  --copper: #c56a32;
  --fog: #d5ddd0;
  --mute: #8a9386;
  --ink: #eef3ea;
  --line: rgba(216, 245, 74, 0.16);
  --spine: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--void);
  color: var(--ink);
  font-family: Syne, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background:
    linear-gradient(180deg, transparent 0%, transparent 50%, rgba(9, 11, 8, 0.08) 50.5%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 72px,
      rgba(216, 245, 74, 0.035) 72px,
      rgba(216, 245, 74, 0.035) 73px
    );
  background-size: 100% 4px, 100% 100%;
  mix-blend-mode: soft-light;
}

::selection {
  background: var(--acid);
  color: var(--void);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070806;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--acid), var(--copper));
}

.site-root {
  padding-left: var(--spine);
}

.spine {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: var(--spine);
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(9, 11, 8, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 1.4rem;
}

.spine-mark {
  width: 11px;
  height: 11px;
  background: var(--acid);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 16px var(--acid);
}

.spine-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: Unbounded, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--acid);
  text-transform: uppercase;
}

.spine-code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  color: var(--mute);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.18em;
}

.hud-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.4rem 0.85rem 1.1rem;
  background: linear-gradient(180deg, rgba(9, 11, 8, 0.96), rgba(9, 11, 8, 0.72) 70%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: Unbounded, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.brand span {
  color: var(--acid);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  color: var(--mute);
}

.nav-links a:hover,
.nav-links a.is-live {
  color: var(--acid);
}

.nav-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--copper);
  text-transform: uppercase;
}

.burger {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--acid);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 82% 100%, 0 100%);
}

.mobile-drawer {
  display: none;
}

.cut-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--void);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: 0.2s transform, 0.2s box-shadow;
}

.cut-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--copper);
}

.cut-btn.ghost {
  background: transparent;
  color: var(--acid);
}

.frame {
  position: relative;
  overflow: hidden;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--acid);
  z-index: 2;
  pointer-events: none;
}

.frame::before {
  top: 8px;
  left: 8px;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  right: 8px;
  bottom: 8px;
  border-left: 0;
  border-top: 0;
}

.slash-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.12) hue-rotate(-8deg);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 4.2rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
}

.hero-copy {
  padding: 2.2rem 2.2rem 3rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
}

h1,
.h1 {
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-height: 72vh;
}

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  filter: saturate(0.65) contrast(1.18);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--void) 0%, transparent 22%),
    linear-gradient(180deg, transparent 50%, rgba(9, 11, 8, 0.72)),
    repeating-linear-gradient(
      135deg,
      transparent 0 10px,
      rgba(216, 245, 74, 0.04) 10px 11px
    );
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hud-chip {
  position: absolute;
  z-index: 3;
  padding: 0.55rem 0.7rem;
  background: rgba(9, 11, 8, 0.78);
  border: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--acid);
}

.tape {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #0e120d;
}

.tape-track {
  display: flex;
  gap: 2.4rem;
  white-space: nowrap;
  animation: tape 32s linear infinite;
  padding: 0.7rem 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.tape-track span {
  color: var(--acid);
}

@keyframes tape {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: 4.5rem 1.6rem 4.8rem;
  position: relative;
}

.section-title {
  font-family: Unbounded, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.dossier {
  display: grid;
  gap: 1.1rem;
}

.dossier-card {
  display: grid;
  grid-template-columns: 7.2rem 1fr auto;
  gap: 1.2rem;
  align-items: stretch;
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: 0.2s border-color, 0.2s transform;
}

.dossier-card:hover {
  border-color: var(--acid);
  transform: translateX(6px);
}

.dossier-code {
  font-family: Unbounded, sans-serif;
  color: var(--acid);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.grid-odd {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.1rem;
}

.stat-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-cell {
  padding: 1.3rem 1rem;
  border-right: 1px solid var(--line);
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-n {
  font-family: Unbounded, sans-serif;
  font-size: 1.8rem;
  color: var(--acid);
  letter-spacing: -0.05em;
}

.profile-bar {
  height: 8px;
  background: #1c2218;
  position: relative;
  overflow: hidden;
}

.profile-bar > i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--copper), var(--acid));
}

.legal-sheet {
  max-width: 52rem;
  background: #10140f;
  border: 1px solid var(--line);
  padding: 2rem 1.6rem 2.6rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

.legal-sheet h2 {
  font-family: Unbounded, sans-serif;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 2rem 0 0.7rem;
  color: var(--acid);
}

.legal-sheet p,
.legal-sheet li {
  color: var(--fog);
  line-height: 1.7;
  font-size: 0.95rem;
}

.site-foot {
  margin-left: 0;
  border-top: 1px solid var(--line);
  padding: 2.4rem 1.6rem 2.8rem;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.1fr;
  gap: 2rem;
  background: #0b0e0a;
}

.foot-brand {
  font-family: Unbounded, sans-serif;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
}

.cookie-hud {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: min(28rem, calc(100vw - 2rem));
  background: #10150e;
  border: 1px solid var(--acid);
  padding: 1.15rem 1.15rem 1.2rem;
  clip-path: polygon(0 18px, 18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
  box-shadow: 0 0 0 8px rgba(216, 245, 74, 0.06);
  display: none;
}

.cookie-hud.is-open {
  display: block;
}

.cookie-hud h2 {
  font-family: Unbounded, sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
}

.cookie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.switch {
  appearance: none;
  width: 2.4rem;
  height: 1.15rem;
  background: #242a20;
  border: 1px solid var(--mute);
  position: relative;
  cursor: pointer;
}

.switch:checked {
  background: var(--acid);
  border-color: var(--acid);
}

.switch::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--void);
}

.switch:checked::after {
  left: 1.45rem;
}

.form-cut input,
.form-cut textarea,
.form-cut select {
  width: 100%;
  background: #0c100b;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.8rem 0.85rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  outline: none;
}

.form-cut input:focus,
.form-cut textarea:focus {
  border-color: var(--acid);
}

.pass-stack {
  display: grid;
  gap: 0.7rem;
}

.pass-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 5.5rem;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}

.orbit-ring {
  width: min(28rem, 90vw);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px dashed rgba(216, 245, 74, 0.35);
  border-radius: 50%;
  position: relative;
}

.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(197, 106, 50, 0.5);
  border-radius: 50%;
}

.orbit-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--acid);
  transform: translate(-50%, -50%);
}

.night-veil .slash-img,
.night-veil img {
  filter: saturate(0.3) contrast(1.3) brightness(0.78);
}

.prose-kn p {
  color: var(--fog);
  line-height: 1.78;
  font-size: 1.05rem;
  margin-bottom: 1.05rem;
}

.prose-kn h3 {
  font-family: Unbounded, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
  margin: 1.8rem 0 0.7rem;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.95rem 0;
}

.faq-list summary {
  cursor: pointer;
  font-family: Unbounded, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--acid);
  font-family: "IBM Plex Mono", monospace;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  color: var(--fog);
  line-height: 1.7;
  margin: 0.75rem 0 0.2rem;
  max-width: 46rem;
}

.crumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0.4rem 1.6rem 0;
}

.crumb a:hover {
  color: var(--acid);
}

.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

@media (max-width: 980px) {
  :root {
    --spine: 0px;
  }

  .spine {
    display: none;
  }

  .hero-stage,
  .grid-odd,
  .dossier-card,
  .stat-rail,
  .site-foot,
  .pass-row,
  .rel-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .burger {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
  }

  .mobile-drawer.is-open {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0c100b;
    border-bottom: 1px solid var(--acid);
    padding: 1.1rem 1.2rem 1.4rem;
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
  }

  .hero-visual {
    min-height: 42vh;
  }

  .hero-visual img,
  .hero-visual::after {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
  }
}
