:root {
  --bg: #020202;
  --bg-soft: #090909;
  --panel: rgba(8, 8, 8, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f3f0eb;
  --text-dim: rgba(243, 240, 235, 0.68);
  --danger: #f15a4b;
  --ok: #dcd6c5;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font-main: "DS-Digital", "IBM Plex Mono", monospace;
  --font-tilt: "DS-Digital Italic", "DS-Digital", "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(180, 180, 180, 0.06), transparent 28%),
    linear-gradient(180deg, #020202 0%, #090909 38%, #040404 100%);
  color: var(--text);
  font-family: var(--font-main);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

button,
a,
summary,
input,
textarea {
  cursor: pointer;
  font-family: inherit;
}

.noise,
.scanlines,
.cursor-square {
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.13;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px);
  background-size: 120px 120px, 160px 160px, 180px 180px;
  mix-blend-mode: screen;
  animation: noiseDrift 0.28s steps(3) infinite;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 49;
  opacity: 0.14;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 2px,
      rgba(255, 255, 255, 0.07) 3px
    );
}

.cursor-square {
  display: none;
}

.site-shell {
  position: relative;
}

.top-nav {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  pointer-events: none;
}

.top-nav-left,
.top-nav-right {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: auto;
}

.top-nav-right {
  justify-content: flex-end;
}

.protocol {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.94);
}

.protocol.active {
  display: flex;
}

.protocol-panel {
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow);
  text-align: center;
}

.protocol-label,
.panel-label,
.eyebrow {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-family: var(--font-tilt);
}

.boot-copy,
.question-block,
.status-copy,
.final-gate,
.hold-button,
.hold-meter,
.oath-lines,
.symbol-grid {
  max-width: 560px;
  margin-inline: auto;
}

.boot-copy p,
.question-block p,
.final-gate p,
.terminal-block p {
  margin: 0 0 14px;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.protocol-button,
.hold-button,
.symbol-card,
.link-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 140ms ease,
    transform 140ms ease,
    border-color 140ms ease,
    color 140ms ease;
}

.protocol-button,
.link-button {
  padding: 16px 22px;
}

.top-link,
.wl-trigger {
  min-height: 50px;
  padding: 14px 18px;
  background: transparent;
  backdrop-filter: blur(8px);
}

.protocol-button:hover,
.protocol-button:focus-visible,
.hold-button:hover,
.hold-button:focus-visible,
.symbol-card:hover,
.symbol-card:focus-visible,
.link-button:hover,
.link-button:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.66);
  transform: translateY(-2px);
  outline: none;
}

.hold-button {
  width: min(360px, 100%);
  padding: 22px 18px;
  margin-top: 24px;
  font-size: 1rem;
}

.hold-button.is-holding {
  background: rgba(255, 255, 255, 0.14);
}

.hold-meter {
  overflow: hidden;
  height: 10px;
  margin-top: 16px;
  border: 1px solid var(--line);
}

.hold-meter-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.82));
}

.oath-lines {
  min-height: 180px;
  padding-top: 28px;
}

.oath-line {
  margin: 0 0 12px;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(8px);
  animation: lineIn 400ms ease forwards;
}

.status-copy {
  margin-top: 24px;
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: pre-line;
  font-family: var(--font-tilt);
}

.status-copy.danger {
  color: var(--danger);
}

.status-copy.ok {
  color: var(--ok);
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.symbol-card {
  padding: 26px 18px;
  display: grid;
  gap: 10px;
}

.symbol-card .symbol {
  font-size: 2rem;
}

.symbol-card.is-wrong {
  border-color: var(--danger);
  color: var(--danger);
}

.symbol-card.is-right {
  border-color: rgba(255, 255, 255, 0.86);
}

.main-site {
  position: relative;
  z-index: 5;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.main-site.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero,
.content-grid,
.specimen-section,
.transmission,
.faq-section {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.22fr 0.78fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 140px 0 56px;
}

.hero-copy h1,
.text-panel h2,
.section-head h2 {
  margin: 0;
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  font-size: clamp(1.9rem, 4.1vw, 4.5rem);
  max-width: 16ch;
}

.lead,
.text-panel p,
.signal-list li,
.specimen-copy span {
  color: var(--text-dim);
  line-height: 1.7;
  font-family: var(--font-tilt);
}

.lead {
  max-width: 58ch;
  margin: 26px 0 0;
  font-size: 1.02rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.link-button-muted {
  background: transparent;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #121212;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.24), transparent 30%);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.08), transparent 18%);
  mix-blend-mode: screen;
}

.portrait-main {
  width: min(480px, 100%);
  aspect-ratio: 4 / 5;
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.44)),
    url("./assets/5051-hoodie.png");
  background-position: center, center top;
  cursor: pointer;
}

.portrait-main:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 6px;
}

.cartel-gate-hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(243, 240, 235, 0.72);
  font-family: var(--font-tilt);
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  letter-spacing: 0.18em;
  line-height: 1.1;
  opacity: 0;
  text-align: center;
  text-transform: uppercase;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.24);
}

.cartel-gate-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portrait-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manifesto-strip {
  overflow: hidden;
  margin: 0 0 32px;
  background: rgba(255, 255, 255, 0.08);
}

.manifesto-track {
  display: flex;
  width: max-content;
  animation: manifestoScroll 26s linear infinite;
}

.manifesto-group {
  display: flex;
  flex-shrink: 0;
}

.manifesto-strip p {
  margin: 0;
  min-width: 25vw;
  padding: 18px 24px;
  background: #060606;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 56px 0 20px;
}

.text-panel {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    rgba(7, 7, 7, 0.82);
}

.text-panel h2,
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  margin-bottom: 18px;
}

.text-panel p {
  margin: 0 0 16px;
}

.signal-list {
  margin: 0;
  padding-left: 18px;
}

.signal-list li + li {
  margin-top: 10px;
}

.specimen-section {
  padding: 72px 0 36px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.specimen-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 8, 0.84);
}

.specimen-card .portrait {
  aspect-ratio: 4 / 5;
}

.portrait-birch {
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42)),
    url("./assets/5051-hoodie.png");
  background-position: center, center top;
}

.portrait-transit {
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42)),
    url("./assets/bus.png");
  background-position: center, center top;
}

.portrait-rooftop {
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42)),
    url("./assets/check-mark.png");
  background-position: center, center top;
}

.portrait-border {
  background-image:
    linear-gradient(160deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.42)),
    url("./assets/girl-kiosk.jpg");
  background-position: center, center top;
}

.specimen-copy {
  padding: 16px;
}

.specimen-copy p {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.transmission {
  padding: 28px 0 54px;
}

.terminal-block {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.faq-section {
  padding: 20px 0 120px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    rgba(7, 7, 7, 0.82);
}

.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--text-dim);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-dim);
  line-height: 1.7;
  font-family: var(--font-tilt);
}

.cartel-page {
  min-height: 100vh;
}

.cartel-file {
  position: relative;
  z-index: 5;
  width: min(1100px, calc(100% - 32px));
  margin-inline: auto;
  padding: 96px 0 120px;
}

.cartel-file h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cartel-back {
  margin-bottom: 48px;
}

.cartel-empty {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-dim);
  font-family: var(--font-tilt);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cartel-empty p {
  margin: 0 0 12px;
}

.wl-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.wl-modal-panel {
  position: relative;
  width: min(680px, 100%);
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 28%),
    rgba(7, 7, 7, 0.94);
  box-shadow: var(--shadow);
}

.wl-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
}

.wl-modal-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wl-message,
.wl-label {
  display: block;
  margin: 0 0 18px;
  color: var(--text-dim);
  line-height: 1.7;
  font-family: var(--font-tilt);
}

.wl-loading {
  display: inline-grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.wl-loading-label {
  white-space: nowrap;
}

.wl-loading-status {
  min-height: 1.2em;
  color: rgba(243, 240, 235, 0.88);
  font-family: var(--font-tilt);
}

.wl-loading-dots {
  display: inline-flex;
  gap: 6px;
}

.wl-loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  animation: wlPulse 1s infinite ease-in-out;
}

.wl-loading-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.wl-loading-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

.wl-actions,
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wl-textarea,
.wl-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  padding: 16px 18px;
  resize: vertical;
}

.wl-textarea:focus,
.wl-input:focus {
  outline: 1px solid rgba(255, 255, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.42);
}

.wl-submit {
  width: fit-content;
}

.hidden {
  display: none;
}

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
}

.glitch::before {
  transform: translate(-1px, 0);
}

.glitch::after {
  transform: translate(1px, 0);
}

.protocol.is-flicker .protocol-panel,
.main-site.is-flicker {
  animation: flicker 260ms linear 3;
}

@keyframes noiseDrift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-1.2%, 0.8%);
  }
  100% {
    transform: translate(1.2%, -0.8%);
  }
}

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

@keyframes flicker {
  0%,
  100% {
    opacity: 1;
  }
  20% {
    opacity: 0.75;
  }
  40% {
    opacity: 0.96;
  }
  60% {
    opacity: 0.64;
  }
  80% {
    opacity: 0.88;
  }
}

@keyframes wlPulse {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes manifestoScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 180px;
  }

  .hero-copy h1 {
    max-width: 15ch;
  }

  .specimen-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body,
  button,
  a,
  summary {
    cursor: auto;
  }

  .top-nav {
    top: 10px;
    left: 10px;
    right: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .top-nav-left,
  .top-nav-right {
    display: contents;
  }

  .top-link,
  .wl-trigger {
    width: auto;
    justify-content: center;
    min-height: 40px;
    padding: 10px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .symbol-grid,
  .specimen-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .manifesto-strip p {
    min-width: 82vw;
  }

  .hero {
    min-height: auto;
    padding-top: 174px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2rem, 13vw, 4rem);
  }

  .protocol-panel,
  .text-panel,
  .faq-item summary,
  .faq-item p {
    padding-left: 18px;
    padding-right: 18px;
  }

  .wl-submit {
    width: 100%;
  }

  .faq-section {
    padding-bottom: 100px;
  }

  .cartel-file {
    padding-top: 42px;
  }

  .cartel-file h1 {
    max-width: none;
    font-size: clamp(3rem, 18vw, 5rem);
  }
}
