:root {
  --background: #05070a;
  --foreground: #effff4;
  --primary: #9cf9c8;
  --primary-foreground: #06140e;
  --secondary: #111b20;
  --secondary-foreground: #effff4;
  --muted: #11181d;
  --muted-foreground: #9eafb0;
  --border: rgba(175, 255, 222, 0.16);
  --ring: #80ffcf;
  --mint: #8dffc4;
  --cyan: #4de2ec;
  --blue: #4596ff;
  --violet: #8d52ff;
  --ink: #05070a;
  --panel: #0a1014;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}

::selection {
  background: var(--mint);
  color: var(--ink);
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(77, 226, 236, 0.14), transparent 25rem),
    radial-gradient(circle at 12% 42%, rgba(141, 82, 255, 0.08), transparent 32rem),
    var(--background);
}

.ambient-grid {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(140, 255, 208, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 255, 208, 0.1) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 7, 10, 0.74);
  backdrop-filter: blur(18px);
}

.wordmark,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.wordmark img,
.footer-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
}

.site-header nav a,
.header-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #aebdbc;
  transition: color 180ms ease;
}

.site-header nav a::after {
  position: absolute;
  content: '';
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--mint);
  transition: transform 180ms ease;
}

.site-header nav a:hover,
.header-link:hover {
  color: white;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}

.header-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 0.45rem;
}

.header-link svg {
  width: 14px;
  height: 14px;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: clamp(4.5rem, 8vw, 8.5rem) 4vw 6rem;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  position: absolute;
  z-index: -1;
  content: '';
  width: 58vw;
  height: 58vw;
  right: -18vw;
  top: -20vw;
  border-radius: 50%;
  background: conic-gradient(from 140deg, rgba(141, 82, 255, 0.16), rgba(77, 226, 236, 0.2), transparent 52%);
  filter: blur(25px);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 900px;
}

.eyebrow,
.section-index,
.micro-label {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(141, 255, 196, 0.1), 0 0 22px var(--mint);
  animation: blink 1.5s steps(2, end) infinite;
}

.hero h1,
.origin-content h2,
.section-heading h2,
.archive-intro h2,
.principles-heading h2,
.final-section h2 {
  margin: 1.45rem 0 0;
  font-family: Arial Black, Impact, var(--font-sans);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(3.75rem, 7.2vw, 8rem);
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(96deg, var(--mint), var(--cyan) 48%, var(--violet));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lede {
  max-width: 675px;
  margin: 1.8rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.7;
  color: #aebdbc;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0 1.15rem;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 170ms ease, filter 170ms ease, color 170ms ease, background 170ms ease;
}

.primary-action {
  color: #03100b;
  background: linear-gradient(100deg, var(--mint), var(--cyan));
  box-shadow: 0 10px 34px rgba(77, 226, 236, 0.14);
}

.secondary-action {
  color: #d6e2df;
  background: #10171b;
  box-shadow: inset 0 0 0 1px rgba(213, 255, 237, 0.18);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.primary-action svg,
.secondary-action svg {
  width: 16px;
  height: 16px;
}

.contract-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 680px);
  min-height: 56px;
  margin-top: 1rem;
  padding: 0;
  border: 1px solid var(--border);
  color: #d8e5e1;
  background: rgba(8, 13, 17, 0.82);
  text-align: left;
  cursor: pointer;
}

.contract-bar:disabled {
  cursor: default;
  opacity: 0.72;
}

.contract-label {
  display: grid;
  align-self: stretch;
  place-items: center;
  padding: 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--mint);
  border-right: 1px solid var(--border);
}

.contract-bar code {
  overflow: hidden;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-state {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #97aaa8;
}

.copy-state svg {
  width: 14px;
  height: 14px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(39vw, 610px);
  aspect-ratio: 1;
}

.hero-visual::before {
  position: absolute;
  content: '';
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 255, 196, 0.18), rgba(77, 226, 236, 0.06) 38%, transparent 68%);
  filter: blur(10px);
}

.hero-visual > img {
  position: absolute;
  z-index: 3;
  inset: 1% 3% 5%;
  width: 94%;
  height: 94%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(18px 24px 0 rgba(0, 0, 0, 0.22)) drop-shadow(0 0 32px rgba(113, 255, 197, 0.08));
  animation: float 5.6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(141, 255, 196, 0.19);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  content: '';
  width: 7px;
  height: 7px;
  background: var(--mint);
  box-shadow: 0 0 16px var(--mint);
}

.orbit-one {
  inset: 8%;
  animation: spin 18s linear infinite;
}

.orbit-one::before {
  top: 15%;
  right: 10%;
}

.orbit-one::after {
  bottom: 12%;
  left: 16%;
  background: var(--violet);
}

.orbit-two {
  inset: 20%;
  border-style: dashed;
  animation: spin-reverse 12s linear infinite;
}

.orbit-two::before {
  right: -4px;
  top: 50%;
  background: var(--cyan);
}

.orbit-two::after {
  display: none;
}

.pixel-cluster {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  box-shadow: 16px 0 var(--mint), 32px 16px var(--blue), 0 32px var(--violet), 16px 48px rgba(141, 255, 196, 0.5);
}

.cluster-one {
  left: 6%;
  top: 24%;
}

.cluster-two {
  right: 16%;
  bottom: 17%;
  transform: rotate(90deg);
}

.character-tag {
  position: absolute;
  z-index: 5;
  right: -1rem;
  bottom: 10%;
  display: grid;
  min-width: 184px;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--mint);
  background: rgba(7, 12, 15, 0.9);
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
}

.character-tag span,
.character-tag small {
  font-size: 0.57rem;
  letter-spacing: 0.13em;
  color: #81928f;
}

.character-tag strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 4vw;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #748785;
}

.scroll-cue svg {
  width: 14px;
  height: 14px;
  animation: nudge 1.8s ease-in-out infinite;
}

.origin-section {
  position: relative;
  z-index: 2;
  min-height: 710px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.origin-image,
.origin-shade {
  position: absolute;
  inset: 0;
}

.origin-image {
  background: url('assets/unrendered-layer.png') center right / cover no-repeat;
  image-rendering: pixelated;
  transform: scale(1.015);
}

.origin-shade {
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.98) 0%, rgba(5, 7, 10, 0.88) 37%, rgba(5, 7, 10, 0.22) 72%, rgba(5, 7, 10, 0.05));
}

.origin-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 710px;
  width: min(690px, 58vw);
  padding: 6rem 4vw;
}

.origin-content h2,
.section-heading h2,
.archive-intro h2,
.principles-heading h2,
.final-section h2 {
  font-size: clamp(3rem, 5.5vw, 6.8rem);
}

.origin-content p,
.section-heading p,
.archive-intro p {
  max-width: 620px;
  margin: 1.8rem 0 0;
  font-size: 1.03rem;
  line-height: 1.75;
  color: #afbfbc;
}

.origin-quote {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: fit-content;
  margin-top: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(141, 255, 196, 0.28);
  color: var(--mint);
  background: rgba(4, 8, 12, 0.72);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.origin-quote svg {
  width: 17px;
  height: 17px;
}

.signal-section,
.archive-section,
.principles-section {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 9vw, 10rem) 4vw;
  border-bottom: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  column-gap: 8vw;
}

.section-heading .section-index {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin-top: 1.4rem;
}

.section-heading p {
  margin-bottom: 0.45rem;
}

.signal-console {
  margin-top: 4rem;
  border: 1px solid rgba(141, 255, 196, 0.22);
  background: rgba(8, 13, 17, 0.9);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.03);
}

.console-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #7e928f;
}

.console-topline span:last-child {
  color: var(--mint);
}

.signal-stage {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(340px, 1.08fr);
  min-height: 520px;
}

.scan-window {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 500px;
  border-right: 1px solid var(--border);
  background:
    linear-gradient(rgba(141, 255, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 255, 196, 0.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(77, 226, 236, 0.12), transparent 58%);
  background-size: 32px 32px, 32px 32px, auto;
}

.scan-window img {
  z-index: 2;
  width: min(78%, 430px);
  height: min(78%, 430px);
  object-fit: contain;
  image-rendering: pixelated;
  filter: saturate(0.75) contrast(1.04) drop-shadow(12px 16px 0 rgba(0, 0, 0, 0.28));
  transition: filter 350ms ease, transform 350ms ease;
}

.crosshair {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid rgba(141, 255, 196, 0.1);
}

.crosshair::before,
.crosshair::after {
  position: absolute;
  content: '';
  background: rgba(141, 255, 196, 0.1);
}

.crosshair::before {
  width: 1px;
  height: 120%;
  left: 50%;
  top: -10%;
}

.crosshair::after {
  width: 120%;
  height: 1px;
  top: 50%;
  left: -10%;
}

.scan-line {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  box-shadow: 0 0 18px var(--mint);
  animation: scan 3s linear infinite;
}

.signal-controls {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 5rem);
}

.signal-message {
  min-height: 3.4em;
  margin: 0.75rem 0 0;
  max-width: 610px;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  font-weight: 800;
  line-height: 1.5;
  color: #e9fff3;
}

.signal-progress {
  width: 100%;
  gap: 0;
}

.signal-progress [data-slot='progress-track'] {
  height: 10px;
  border-radius: 0;
  background: #172126;
}

.signal-progress [data-slot='progress-indicator'] {
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(77, 226, 236, 0.34);
}

.bit-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.45rem;
}

.bit-row span {
  height: 24px;
  border: 1px solid rgba(141, 255, 196, 0.12);
  background: #0f171b;
  transition: background 170ms steps(2, end), box-shadow 170ms ease;
}

.bit-row span.is-on {
  background: var(--mint);
  box-shadow: 0 0 14px rgba(141, 255, 196, 0.28);
}

.sync-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  min-height: 52px;
  padding: 0 1.25rem;
  border: 1px solid rgba(141, 255, 196, 0.42);
  border-radius: 0;
  color: var(--mint);
  background: rgba(141, 255, 196, 0.06);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.sync-button svg {
  width: 16px;
  height: 16px;
}

.sync-button:hover {
  color: var(--ink);
  background: var(--mint);
}

.is-synced .scan-window img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.05) drop-shadow(0 0 22px rgba(141, 255, 196, 0.38));
}

.is-synced .signal-console {
  box-shadow: 0 0 0 1px var(--mint), 0 36px 100px rgba(77, 226, 236, 0.13);
}

.archive-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  align-items: center;
  min-height: 760px;
  background:
    radial-gradient(circle at 90% 35%, rgba(141, 82, 255, 0.16), transparent 33rem),
    #070b0e;
}

.archive-intro h2 {
  margin-top: 1.4rem;
}

.archive-browser {
  display: grid;
  grid-template-columns: 76px 1fr;
  min-height: 440px;
  border: 1px solid var(--border);
  background: #080e12;
  box-shadow: 18px 18px 0 rgba(0, 0, 0, 0.22);
}

.archive-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.archive-tabs button {
  display: grid;
  flex: 1;
  place-items: center;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: #6f817f;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
  transition: color 170ms ease, background 170ms ease;
}

.archive-tabs button:last-child {
  border-bottom: 0;
}

.archive-tabs button:hover,
.archive-tabs button.is-active {
  color: var(--ink);
  background: var(--mint);
}

.archive-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4.5rem);
}

.archive-screen h3 {
  margin: 1rem 0 0;
  font-family: Arial Black, Impact, var(--font-sans);
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.archive-screen p {
  max-width: 660px;
  margin: 1.3rem 0 0;
  color: #a9bab7;
  font-size: 1rem;
  line-height: 1.72;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 88px;
  margin-top: 2.5rem;
}

.waveform span {
  width: 5px;
  height: var(--wave);
  background: linear-gradient(to top, var(--mint), var(--cyan));
  opacity: 0.75;
  animation: wave 1.7s steps(4, end) infinite alternate;
}

.waveform span:nth-child(3n) {
  animation-delay: -0.6s;
}

.waveform span:nth-child(4n) {
  animation-delay: -1.1s;
}

.principles-section {
  padding-bottom: clamp(6rem, 10vw, 11rem);
}

.principles-heading {
  max-width: 1000px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 4.5rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.principle-grid article {
  min-height: 310px;
  padding: clamp(1.8rem, 3vw, 3.4rem);
  background: #080d10;
  transition: background 180ms ease, transform 180ms ease;
}

.principle-grid article:hover {
  position: relative;
  transform: translateY(-8px);
  background: #0d1519;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.principle-grid article > span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 900;
  color: var(--mint);
}

.principle-grid h3 {
  max-width: 330px;
  margin: 5.5rem 0 0;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.principle-grid p {
  margin: 1.2rem 0 0;
  max-width: 360px;
  color: #8fa19f;
  line-height: 1.65;
}

.final-section {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3rem;
  min-height: 650px;
  padding: clamp(6rem, 10vw, 10rem) 4vw;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(141, 255, 196, 0.12), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(141, 82, 255, 0.21), transparent 32rem),
    #070b0e;
}

.final-section::after {
  position: absolute;
  z-index: -1;
  content: 'P';
  right: -1vw;
  bottom: -13vw;
  font-family: Arial Black, Impact, sans-serif;
  font-size: 48vw;
  line-height: 1;
  color: rgba(141, 255, 196, 0.025);
}

.final-section h2 em {
  font-style: normal;
  color: var(--mint);
}

.final-actions {
  flex-direction: column;
  align-items: stretch;
  width: min(100%, 290px);
  margin-bottom: 0.5rem;
}

footer {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 92px;
  padding: 1.2rem 4vw;
  border-top: 1px solid var(--border);
  color: #728481;
  background: #040608;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

footer p {
  text-align: center;
}

footer > span {
  justify-self: end;
}

@keyframes blink {
  50% { opacity: 0.35; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

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

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

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@keyframes scan {
  from { transform: translateY(-10px); }
  to { transform: translateY(520px); }
}

@keyframes wave {
  to { transform: scaleY(0.45); opacity: 0.34; }
}

@media (max-width: 1050px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  }

  .hero-visual {
    width: min(43vw, 520px);
  }

  .hero h1 {
    font-size: clamp(3.5rem, 7.6vw, 6.6rem);
  }

  .signal-stage {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .archive-section {
    grid-template-columns: 1fr;
  }

  .archive-intro {
    max-width: 760px;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 72px;
    padding: 0 1.2rem;
  }

  .header-link {
    font-size: 0;
  }

  .header-link::before {
    content: 'X';
    font-size: 0.7rem;
  }

  .wordmark {
    font-size: 0.68rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 5.5rem 1.2rem 5rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 15vw, 5.4rem);
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .contract-bar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .copy-state {
    display: none;
  }

  .hero-visual {
    align-self: center;
    width: min(92vw, 520px);
    margin-top: 2.5rem;
  }

  .character-tag {
    right: 0;
  }

  .scroll-cue {
    display: none;
  }

  .origin-section,
  .origin-content {
    min-height: 720px;
  }

  .origin-shade {
    background: linear-gradient(to bottom, rgba(5, 7, 10, 0.96), rgba(5, 7, 10, 0.65) 75%, rgba(5, 7, 10, 0.25));
  }

  .origin-image {
    background-position: 70% center;
  }

  .origin-content {
    justify-content: flex-start;
    width: 100%;
    padding: 5rem 1.2rem;
  }

  .origin-content h2,
  .section-heading h2,
  .archive-intro h2,
  .principles-heading h2,
  .final-section h2 {
    font-size: clamp(2.8rem, 12vw, 4.8rem);
  }

  .signal-section,
  .archive-section,
  .principles-section {
    padding: 5rem 1.2rem;
  }

  .section-heading {
    display: block;
  }

  .signal-stage {
    grid-template-columns: 1fr;
  }

  .scan-window {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .signal-controls {
    padding: 2rem 1.25rem;
  }

  .archive-browser {
    grid-template-columns: 58px 1fr;
    min-height: 480px;
  }

  .archive-screen {
    padding: 2rem 1.25rem;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: 250px;
  }

  .principle-grid h3 {
    margin-top: 3.8rem;
  }

  .final-section {
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 660px;
    padding: 6rem 1.2rem;
  }

  .final-actions {
    width: 100%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 1.2rem;
    text-align: left;
  }

  footer p {
    text-align: left;
  }

  footer > span {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
