:root {
  --bg: #0a0806;
  --bg-deep: #050403;
  --ink: #f5ede0;
  --ink-soft: #d8cfc1;
  --muted: #9c9486;
  --dim: #5a5246;
  --line: rgba(245, 237, 224, 0.1);
  --line-strong: rgba(245, 237, 224, 0.22);
  --ember: #f5b85a;
  --ember-warm: #ff9d3c;
  --steel: #6e8a96;
  --rust: #c2542d;

  --pad: clamp(20px, 4vw, 56px);
  --display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Fraunces", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(245, 184, 90, 0.32);
  color: #fffaf0;
}

/* ==== Background canvases ==== */
#shader-canvas,
#overlay-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
}
#shader-canvas { z-index: 0; }
#overlay-canvas { z-index: 2; mix-blend-mode: screen; }

/* ==== Boot sequence overlay ==== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #050403;
  pointer-events: none;
  opacity: 1;
  transition: opacity 480ms ease 100ms, visibility 0s 580ms;
  display: grid;
  align-content: end;
  padding: 6vh 6vw;
}
.boot-log {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.65;
  letter-spacing: 0.04em;
  color: var(--ember);
  white-space: pre-wrap;
  text-shadow: 0 0 8px rgba(245, 184, 90, 0.4);
  max-width: 720px;
}
body:not(.is-booting) .boot {
  opacity: 0;
  visibility: hidden;
}

/* ==== Main shell ==== */
.shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100dvh;
  padding: var(--pad);
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0, 0, 0, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(245, 184, 90, 0.04), transparent 70%);
}

/* ==== Layered effects ==== */
.grain {
  position: fixed;
  inset: -25%;
  z-index: 9;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.6) 0 0.5px, transparent 0.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 0.4px, transparent 0.55px);
  background-size: 31px 37px, 43px 47px;
  background-position: 0 0, 13px 19px;
  animation: grainDrift 1.4s steps(6) infinite;
  mix-blend-mode: overlay;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: 0.45;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 3px;
  mix-blend-mode: soft-light;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.45) 85%, rgba(0, 0, 0, 0.92) 100%);
}

/* ==== Top + bottom chrome ==== */
.chrome {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.chrome.top { align-self: start; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
}
.brand-mark { font-weight: 700; letter-spacing: 0.14em; }
.brand-meta { color: var(--dim); letter-spacing: 0.16em; }

.ember {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px rgba(245, 184, 90, 0.8), 0 0 24px rgba(255, 157, 60, 0.4);
  animation: emberFlicker 3.6s ease-in-out infinite;
}

.top-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.ticker {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  width: 200px;
  height: 14px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--dim);
  white-space: nowrap;
}
.ticker > span {
  display: inline-block;
  animation: tickerSlide 14s linear infinite;
}

@media (max-width: 740px) { .ticker { display: none; } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: rgba(10, 8, 6, 0.5);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px rgba(245, 184, 90, 0.8);
  animation: statusPulse 2.4s ease-in-out infinite;
}

/* ==== Hero ==== */
.hero {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: clamp(12px, 2vh, 32px) 0;
}

.prelude {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
}
.prelude-bullet {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--ember);
  border-radius: 50%;
  animation: preludePulse 1.8s ease-in-out infinite;
}
.prelude-sep { opacity: 0.45; margin: 0 4px; }

/* ==== Wordmark ==== */
h1 {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(72px, 17vw, 240px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  text-transform: lowercase;
  color: var(--ink);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.5),
    0 0 36px rgba(245, 184, 90, 0.10);
}

h1 .word {
  background: linear-gradient(180deg, #fffaf0 0%, #c8bfb1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

h1 .char {
  display: inline-block;
  transform-origin: 50% 100%;
  animation: charWake 900ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
h1 .char:nth-child(1) { animation-delay: 60ms; }
h1 .char:nth-child(2) { animation-delay: 120ms; }
h1 .char:nth-child(3) { animation-delay: 180ms; }
h1 .char:nth-child(4) { animation-delay: 240ms; }
h1 .char:nth-child(5) { animation-delay: 300ms; }
h1 .char:nth-child(6) { animation-delay: 360ms; }
h1 .char:nth-child(7) { animation-delay: 420ms; }

h1 .dot-tld {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  animation: charWake 900ms cubic-bezier(0.22, 1, 0.36, 1) 520ms backwards;
}

h1::before, h1::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  opacity: 0;
  pointer-events: none;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}
h1::before { color: rgba(110, 138, 150, 0.7); transform: translateX(-2px); mix-blend-mode: screen; }
h1::after  { color: rgba(245, 184, 90, 0.75); transform: translateX(2px); mix-blend-mode: screen; }
.is-glitching h1::before, .is-glitching h1::after { animation: titleGlitch 480ms steps(3, end); }

/* ==== Tagline ==== */
.tagline {
  position: relative;
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 620px;
}
.tagline-strike {
  display: inline;
  position: relative;
  color: var(--dim);
}
.tagline-strike::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 51%;
  height: 1px;
  background: var(--dim);
  transform-origin: left;
  animation: strikeIn 700ms cubic-bezier(0.22, 1, 0.36, 1) 1.6s backwards;
}
.tagline-real {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-style: italic;
  opacity: 0;
  animation: fadeIn 700ms ease 2.0s forwards;
}

/* ==== Hero grid ==== */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: clamp(8px, 1.6vh, 18px);
}

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

.copy-block {
  display: grid;
  gap: clamp(12px, 1.8vh, 18px);
  color: var(--ink-soft);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.65;
}

.copy-block .lede {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.015em;
}

.negation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 4px 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.negation li {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(6px);
  animation: listArrival 700ms ease forwards;
}
.negation .num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ember);
  font-variant-numeric: tabular-nums;
}
.negation .txt {
  letter-spacing: 0.02em;
}
.negation li:nth-child(1) { animation-delay: 240ms; }
.negation li:nth-child(2) { animation-delay: 320ms; }
.negation li:nth-child(3) { animation-delay: 400ms; }
.negation li:nth-child(4) { animation-delay: 480ms; }
.negation li:nth-child(5) { animation-delay: 560ms; }
.negation li:nth-child(6) { animation-delay: 640ms; }

.final-line {
  margin: 4px 0 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 0 28px rgba(245, 184, 90, 0.18);
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.final-prefix {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dim);
  align-self: center;
  position: relative;
  top: -3px;
}
.final-emph {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, #fffaf0 0%, var(--ember) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==== Flicker word ==== */
.flicker-word {
  position: relative;
  display: inline-block;
  color: var(--ink);
  outline: none;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}
.flicker-word::before, .flicker-word::after {
  position: absolute;
  inset: 0;
  content: attr(data-alt);
  opacity: 0;
  pointer-events: none;
}
.flicker-word::before { color: rgba(110, 138, 150, 0.85); transform: translateX(-1px); clip-path: inset(0 0 54% 0); }
.flicker-word::after  { color: rgba(245, 184, 90, 0.95); transform: translateX(1px); clip-path: inset(44% 0 0 0); }
.flicker-word.is-haunted::before, .flicker-word.is-haunted::after,
.flicker-word:hover::before, .flicker-word:hover::after,
.flicker-word:focus-visible::before, .flicker-word:focus-visible::after {
  animation: wordGlitch 540ms steps(2, end);
}

/* ==== Aside panel ==== */
.aside-panel {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(14, 11, 8, 0.55), rgba(8, 6, 4, 0.7));
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.aside-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16px;
  width: 22px;
  height: 1px;
  background: var(--bg);
}
.aside-panel::after {
  content: "machine · readout";
  position: absolute;
  top: -7px;
  left: 22px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  background: var(--bg);
  padding: 0 8px;
}
.aside-block { display: grid; gap: 8px; }
.aside-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.aside-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}
.aside-log li {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aside-log li:first-child {
  color: var(--ink);
}
.aside-quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ==== CTA row ==== */
.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(10px, 1.8vh, 22px);
  flex-wrap: wrap;
}

.silence-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line-strong);
  padding: 14px 22px 14px 18px;
  background: rgba(10, 8, 6, 0.55);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition:
    color 220ms ease,
    border-color 260ms ease,
    background 260ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.silence-button .sb-arrow {
  display: inline-block;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.silence-button .sb-trace {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(245, 184, 90, 0.16) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.silence-button:hover, .silence-button:focus-visible {
  border-color: rgba(245, 184, 90, 0.55);
  background: rgba(245, 184, 90, 0.08);
  color: #fffaf0;
  transform: translateY(-2px);
}
.silence-button:hover .sb-arrow, .silence-button:focus-visible .sb-arrow { transform: translateX(4px); }
.silence-button:hover .sb-trace, .silence-button:focus-visible .sb-trace { transform: translateX(100%); }

.cta-hint {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ==== Bottom instruments ==== */
.chrome.bottom {
  align-self: end;
  gap: clamp(14px, 2.4vw, 28px);
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.readout {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.readout-label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--dim);
}
.readout-value {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.readout-value small {
  margin-left: 2px;
  font-size: 9px;
  color: var(--ember);
  font-weight: 500;
}

@media (max-width: 740px) {
  .readout.uptime { display: none; }
  .chrome.bottom { gap: 10px 16px; font-size: 9px; }
}
@media (max-width: 480px) {
  .status-label { display: none; }
  .status { padding: 6px 8px; }
}

/* ==== Modal ==== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 320ms ease, visibility 320ms ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.92) 90%);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(92vw, 580px);
  max-height: 92vh;
  overflow: auto;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(14, 11, 8, 0.92), rgba(8, 6, 4, 0.94));
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    0 0 80px rgba(245, 184, 90, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(24px) scale(0.97);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.is-open .modal-card { transform: translateY(0) scale(1); }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.modal-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ember);
}
.modal-close {
  border: 0;
  padding: 0 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: color 200ms ease, transform 220ms ease;
}
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }

.modal-title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, var(--ember) 0%, var(--ember-warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-right: 6px;
}
.modal-sub {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--muted);
}

form { display: grid; gap: 14px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
}
.label-meta { color: var(--muted); font-weight: 500; letter-spacing: 0.18em; }

input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--ink);
  outline: none;
  resize: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.01em;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}
textarea {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.55;
  min-height: 120px;
}
input::placeholder, textarea::placeholder { color: var(--dim); font-style: italic; }
input:focus, textarea:focus {
  border-color: rgba(245, 184, 90, 0.55);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 184, 90, 0.08);
}

.trap-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
@media (max-width: 480px) {
  .form-foot { flex-direction: column-reverse; align-items: stretch; }
  .form-foot .submit-button { width: 100%; }
}

.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ember);
  padding: 13px 18px;
  background: var(--ember);
  color: #1a0e02;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background 220ms ease,
    border-color 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}
.submit-button:hover, .submit-button:focus-visible {
  background: #ffd17a;
  border-color: #ffd17a;
  box-shadow: 0 0 32px rgba(245, 184, 90, 0.4);
  transform: translateY(-1px);
}
.submit-button[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.sb-spinner {
  display: none;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}
.submit-button[disabled] .sb-spinner { display: inline-block; }
.submit-button[disabled] .sb-arrow { display: none; }

.form-state {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  flex: 1;
}
.form-state[data-state="ok"] { color: var(--ember); }
.form-state[data-state="err"] { color: var(--rust); }

/* ==== Easter egg ==== */
.easter-egg .final-line::after {
  display: block;
  margin-top: 14px;
  font-family: var(--mono);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  content: "// sometimes silence is intentional.";
  text-shadow: 0 0 18px rgba(245, 184, 90, 0.5);
}

/* ==== Animations ==== */
@keyframes grainDrift {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-2%, 1%, 0); }
  40% { transform: translate3d(1%, -2%, 0); }
  60% { transform: translate3d(2%, 2%, 0); }
  80% { transform: translate3d(-1%, -1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes emberFlicker {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px rgba(245, 184, 90, 0.8), 0 0 24px rgba(255, 157, 60, 0.4); }
  42% { opacity: 0.78; }
  58% { opacity: 1; box-shadow: 0 0 16px rgba(245, 184, 90, 0.9), 0 0 32px rgba(255, 157, 60, 0.55); }
  64% { opacity: 0.55; }
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes preludePulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); box-shadow: 0 0 8px rgba(245, 184, 90, 0.6); }
}

@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@keyframes charWake {
  from { opacity: 0; transform: translateY(0.5em) skewY(2deg); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) skewY(0); filter: blur(0); }
}

@keyframes titleGlitch {
  0%, 100% { opacity: 0; clip-path: inset(0 0 0 0); }
  20% { opacity: 0.74; clip-path: inset(0 0 64% 0); }
  44% { opacity: 0.36; clip-path: inset(38% 0 24% 0); }
  68% { opacity: 0.82; clip-path: inset(70% 0 0 0); }
}

@keyframes strikeIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes fadeIn { to { opacity: 1; } }

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

@keyframes wordGlitch {
  0%, 100% { opacity: 0; transform: translateX(0); }
  18% { opacity: 0.92; transform: translateX(1px); }
  38% { opacity: 0.2; transform: translateX(-1px); }
  62% { opacity: 0.84; transform: translateX(2px); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ==== Reduced motion + tiny screens ==== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #shader-canvas, #overlay-canvas { display: none; }
  .boot { display: none; }
  body.is-booting { /* no-op */ }
}

@media (max-width: 740px) {
  h1 { font-size: clamp(60px, 18vw, 140px); }
  .negation { grid-template-columns: 1fr; }
}
