:root {
  --ink: #1f342c;
  --ink-soft: #506158;
  --sage: #8fae91;
  --sage-deep: #4f745d;
  --sage-pale: #dfe7dc;
  --pearl: #f6f4ed;
  --paper: #eef1e9;
  --white: #fffef9;
  --line: rgba(51, 83, 67, 0.18);
  --signal: 0.38;
  --signal-x: 50%;
  --signal-y: 50%;
  --max-width: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at var(--signal-x) var(--signal-y), rgba(150, 184, 156, calc(var(--signal) * 0.17)), transparent 30%),
    linear-gradient(135deg, #fbfaf5 0%, #eef2e9 52%, #dfe8de 100%);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

button,
a,
input {
  font: inherit;
}

a {
  color: inherit;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 99;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.signal-cursor {
  position: fixed;
  width: 320px;
  aspect-ratio: 1;
  left: var(--signal-x);
  top: var(--signal-y);
  z-index: -1;
  border: 1px solid rgba(96, 137, 111, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: width 400ms ease, opacity 400ms ease;
  box-shadow: 0 0 0 50px rgba(96, 137, 111, 0.025), 0 0 0 110px rgba(96, 137, 111, 0.018);
}

.topbar {
  width: min(calc(100% - 48px), var(--max-width));
  height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(48, 78, 61, 0.18));
}

.nav {
  display: flex;
  gap: 32px;
  color: var(--ink-soft);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 12px 0;
  text-decoration: none;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mini-cta {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
}

.hero {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: clamp(28px, 4vw, 80px);
  padding: 52px 0 64px;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.eyebrow {
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage-deep);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6faf74;
  box-shadow: 0 0 0 6px rgba(111, 175, 116, 0.12);
  animation: breathe 1.8s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(64px, 7.1vw, 116px);
  font-weight: 760;
  line-height: 0.78;
  letter-spacing: -0.085em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 .light-line {
  margin-bottom: 0.18em;
  color: transparent;
  font-weight: 380;
  -webkit-text-stroke: 1.5px rgba(31, 52, 44, 0.82);
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 590px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button-primary {
  color: var(--pearl);
  background: var(--ink);
  box-shadow: 0 12px 30px rgba(31, 52, 44, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 34px rgba(31, 52, 44, 0.25);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(10px);
}

.ca-strip {
  max-width: 630px;
  min-height: 55px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.33);
  backdrop-filter: blur(12px);
}

.ca-label {
  height: 100%;
  padding: 0 16px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--sage-deep);
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.ca-strip code {
  padding: 0 16px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-strip button {
  height: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.microcopy {
  margin: 13px 0 0;
  color: rgba(31, 52, 44, 0.55);
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  min-height: min(760px, calc(100svh - 130px));
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  border: 1px solid rgba(78, 116, 93, 0.14);
  border-radius: 42% 4% 36% 7% / 14% 41% 8% 38%;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.92), transparent 30%),
    radial-gradient(circle at 52% 66%, rgba(132, 169, 139, 0.22), transparent 38%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.38), rgba(188, 207, 188, 0.25));
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.6), 0 30px 90px rgba(45, 72, 58, 0.09);
  overflow: hidden;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(73, 111, 88, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 111, 88, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 58% 48%, black, transparent 74%);
}

.orb {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(79, 116, 93, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.7), 0 0 0 22px rgba(255, 255, 255, 0.06);
}

.orb-one {
  width: 68%;
  right: -4%;
  top: 8%;
  animation: spin 28s linear infinite;
}

.orb-two {
  width: 40%;
  left: 3%;
  bottom: 18%;
  border-style: dashed;
  animation: spin 19s linear infinite reverse;
}

.hero-character {
  width: min(74%, 590px);
  position: relative;
  z-index: 4;
  transform: translate3d(calc((var(--signal-x) - 50%) * 0.04), calc((var(--signal-y) - 50%) * 0.03), 0) rotate(-1deg);
  transform-origin: 50% 70%;
  filter: drop-shadow(0 30px 40px rgba(46, 70, 58, 0.18));
  animation: hover 6s ease-in-out infinite;
}

.float-glyph {
  position: absolute;
  z-index: 2;
  object-fit: contain;
  opacity: 0.28;
  filter: blur(0.2px) drop-shadow(0 12px 15px rgba(45, 78, 59, 0.16));
}

.glyph-one {
  width: 17%;
  right: 5%;
  top: 8%;
  transform: rotate(28deg);
  animation: drift 8s ease-in-out infinite;
}

.glyph-two {
  width: 11%;
  left: 7%;
  top: 30%;
  transform: rotate(-38deg);
  animation: drift 11s ease-in-out -3s infinite reverse;
}

.signal-readout {
  position: absolute;
  z-index: 7;
  padding: 10px 12px;
  border-left: 2px solid var(--sage-deep);
  background: rgba(246, 244, 237, 0.62);
  backdrop-filter: blur(10px);
  font-family: Consolas, monospace;
}

.signal-readout span,
.signal-readout strong {
  display: block;
}

.signal-readout span {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.signal-readout strong {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.readout-top {
  top: 7%;
  left: 7%;
}

.readout-side {
  right: 5%;
  top: 43%;
}

.tuner {
  width: min(88%, 620px);
  min-height: 150px;
  position: absolute;
  right: 6%;
  bottom: 5%;
  z-index: 8;
  padding: 17px 18px 13px;
  border: 1px solid rgba(48, 77, 62, 0.22);
  background: rgba(244, 245, 238, 0.8);
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 20px 50px rgba(36, 61, 48, 0.14);
}

.tuner-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: Consolas, monospace;
}

.tuner-head > div span,
.tuner-head > div strong {
  display: block;
}

.tuner-kicker {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.tuner-head strong {
  margin-top: 4px;
  font-size: 14px;
}

#lockLabel {
  align-self: start;
  padding: 4px 7px;
  color: var(--sage-deep);
  border: 1px solid rgba(79, 116, 93, 0.28);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

#signalCanvas {
  width: 100%;
  height: 44px;
  display: block;
  margin: 6px 0 4px;
}

.range-wrap {
  display: block;
}

input[type="range"] {
  width: 100%;
  height: 4px;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sage-deep) calc(var(--signal) * 100%), rgba(48, 77, 62, 0.16) 0);
  cursor: ew-resize;
}

input[type="range"]::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  appearance: none;
  border: 3px solid var(--pearl);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 3px 10px rgba(31, 52, 44, 0.22);
}

input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border: 3px solid var(--pearl);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 3px 10px rgba(31, 52, 44, 0.22);
}

.tuner-secret {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-rail {
  width: 1px;
  height: 120px;
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 70;
  transform: translateY(-50%);
  background: rgba(31, 52, 44, 0.12);
}

.scroll-rail span {
  width: 3px;
  height: 0;
  position: absolute;
  top: 0;
  left: -1px;
  background: var(--sage-deep);
  transition: height 100ms linear;
}

.section-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.section-index {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: Consolas, monospace;
}

.section-index span {
  padding: 18px 0;
  border-right: 1px solid var(--line);
  color: var(--sage-deep);
  font-size: 13px;
  font-weight: 800;
}

.section-index p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.section-index.invert {
  border-color: rgba(244, 244, 236, 0.18);
  color: rgba(244, 244, 236, 0.58);
}

.section-index.invert span {
  border-color: rgba(244, 244, 236, 0.18);
  color: #adc5ad;
}

.origin {
  padding: 110px 0 140px;
}

.origin-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  padding-top: 74px;
}

.origin-visual {
  min-height: 690px;
  position: relative;
  background: linear-gradient(150deg, #e7eadf, #cdd8cb);
  overflow: hidden;
}

.origin-visual::before {
  content: "";
  width: 78%;
  aspect-ratio: 1;
  position: absolute;
  right: -18%;
  top: -14%;
  border: 1px solid rgba(55, 90, 68, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.11), 0 0 0 80px rgba(255, 255, 255, 0.07);
}

.origin-visual img {
  width: 132%;
  height: 100%;
  position: absolute;
  right: -25%;
  bottom: -2%;
  object-fit: cover;
  object-position: 48% 54%;
  mix-blend-mode: multiply;
}

.image-stamp {
  position: absolute;
  left: 22px;
  bottom: 22px;
  padding: 12px 15px;
  border: 1px solid rgba(31, 52, 44, 0.26);
  background: rgba(248, 248, 241, 0.5);
  backdrop-filter: blur(10px);
  font-family: Consolas, monospace;
}

.image-stamp span,
.image-stamp strong {
  display: block;
}

.image-stamp span {
  color: var(--ink-soft);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.image-stamp strong {
  margin-top: 4px;
  font-size: 14px;
}

.vertical-note {
  margin: 0;
  position: absolute;
  right: 17px;
  bottom: 24px;
  color: rgba(31, 52, 44, 0.55);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.chapter-label {
  margin: 0 0 24px;
  color: var(--sage-deep);
  font-family: Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.origin-copy h2,
.archive-head h2,
.signal-heading h2 {
  margin: 0;
  font-size: clamp(46px, 5.2vw, 84px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.origin-copy h2 em {
  color: var(--sage-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.story-prose {
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 42px;
  color: var(--ink-soft);
}

.story-prose p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
}

.story-prose strong {
  color: var(--ink);
  font-weight: 780;
}

.incident-log {
  margin-top: 58px;
  border-top: 1px solid var(--line);
}

.incident-log > div {
  min-height: 84px;
  display: grid;
  grid-template-columns: 64px 145px 1fr;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.incident-log time,
.incident-log span {
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.11em;
}

.incident-log time {
  color: var(--sage-deep);
  font-weight: 800;
}

.incident-log span {
  color: var(--ink);
  font-weight: 700;
}

.incident-log p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.broadcast {
  color: var(--pearl);
  background:
    radial-gradient(circle at 10% 20%, rgba(135, 174, 144, 0.21), transparent 26%),
    radial-gradient(circle at 90% 78%, rgba(135, 174, 144, 0.13), transparent 32%),
    #1f342c;
  overflow: hidden;
}

.broadcast-marquee {
  padding: 15px 0;
  border-top: 1px solid rgba(244, 244, 236, 0.16);
  border-bottom: 1px solid rgba(244, 244, 236, 0.16);
  overflow: hidden;
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.broadcast-marquee > div {
  width: max-content;
  display: flex;
  gap: 28px;
  align-items: center;
  animation: marquee 24s linear infinite;
}

.broadcast-marquee i {
  color: #a8c5a9;
  font-style: normal;
}

.signal-shell {
  padding: 0 0 130px;
}

.signal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
  gap: 70px;
  align-items: end;
  padding: 88px 0 72px;
}

.signal-heading h2 span {
  color: #aac3ab;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.signal-heading > p {
  margin: 0 0 8px;
  color: rgba(244, 244, 236, 0.62);
  font-size: 15px;
  line-height: 1.7;
}

.signal-laws {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.law {
  min-height: 380px;
  position: relative;
  padding: 28px;
  border: 1px solid rgba(244, 244, 236, 0.18);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: transform 250ms ease, background 250ms ease, border-color 250ms ease;
}

.law:hover {
  z-index: 2;
  border-color: rgba(173, 197, 173, 0.5);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-8px) rotate(0deg);
}

.law-one { transform: rotate(-1.3deg); }
.law-two { transform: translateY(18px) rotate(0.7deg); }
.law-three { transform: rotate(-0.5deg); }

.law::after {
  content: "";
  width: 230px;
  aspect-ratio: 1;
  position: absolute;
  right: -120px;
  bottom: -120px;
  border: 1px solid rgba(173, 197, 173, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(173, 197, 173, 0.025), 0 0 0 58px rgba(173, 197, 173, 0.018);
}

.law-number {
  display: block;
  color: #a8c5a9;
  font-family: Georgia, serif;
  font-size: 54px;
}

.law h3 {
  margin: 80px 0 16px;
  font-size: 27px;
  letter-spacing: -0.045em;
}

.law p {
  max-width: 340px;
  margin: 0;
  color: rgba(244, 244, 236, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.law small {
  position: absolute;
  left: 28px;
  bottom: 25px;
  color: rgba(173, 197, 173, 0.72);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
}

.secret-frequency {
  min-height: 118px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 16px 20px;
  border: 1px solid rgba(244, 244, 236, 0.17);
  background: rgba(0, 0, 0, 0.12);
}

.secret-frequency img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  opacity: 0.7;
}

.secret-frequency span {
  color: #9ab49d;
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.secret-frequency p {
  margin: 7px 0 0;
  font-size: 17px;
  filter: blur(7px);
  opacity: 0.38;
  transition: filter 500ms ease, opacity 500ms ease;
  user-select: none;
}

.signal-locked .secret-frequency p {
  filter: blur(0);
  opacity: 1;
  user-select: auto;
}

.secret-frequency button {
  padding: 12px 14px;
  border: 1px solid rgba(244, 244, 236, 0.22);
  color: var(--pearl);
  background: transparent;
  cursor: pointer;
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.archive {
  padding: 120px 0 140px;
}

.archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.5fr);
  gap: 70px;
  align-items: end;
  padding: 70px 0 52px;
}

.archive-head h2 {
  max-width: 820px;
}

.archive-head p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.transmissions {
  display: grid;
  grid-template-columns: 1fr 0.86fr 1fr;
  gap: 16px;
}

.transmission {
  min-height: 390px;
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.transmission-meta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: var(--sage-deep);
  font-family: Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.transmission > p {
  max-width: 360px;
  margin: 136px 0 0;
  position: relative;
  z-index: 2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.7vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.mini-wave {
  height: 72px;
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  opacity: 0.38;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 600 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 C30 10 50 70 80 40 S130 10 160 40 S210 70 240 40 S290 10 320 40 S370 70 400 40 S450 10 480 40 S530 70 600 40' fill='none' stroke='%234f745d' stroke-width='2'/%3E%3C/svg%3E") center / cover no-repeat;
}

.wave-alt {
  transform: scaleY(-1);
}

.transmission-image {
  background: linear-gradient(160deg, #d5ded2, #eef0e7);
}

.transmission-image::before {
  content: "";
  width: 90%;
  aspect-ratio: 1;
  position: absolute;
  left: 5%;
  top: 12%;
  border: 1px solid rgba(51, 83, 67, 0.17);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.11);
}

.transmission-image img {
  width: 125%;
  max-width: none;
  position: absolute;
  left: -10%;
  bottom: -19%;
  filter: drop-shadow(0 26px 26px rgba(38, 68, 50, 0.14));
}

.token {
  padding-bottom: 130px;
}

.token-panel {
  min-height: 700px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 60px;
  align-items: center;
  padding: clamp(42px, 6vw, 90px);
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #edf0e7, #d9e2d8);
  overflow: hidden;
}

.token-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(56, 87, 68, 0.2) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, black 75%);
  opacity: 0.35;
}

.token-copy {
  position: relative;
  z-index: 3;
}

.token-copy h2 {
  margin: 0;
  font-size: clamp(70px, 9.5vw, 150px);
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.token-lead {
  max-width: 650px;
  margin: 36px 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.token-specs {
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}

.token-specs > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.token-specs dt,
.token-specs dd {
  margin: 0;
  font-family: Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.token-specs dt {
  color: var(--sage-deep);
  font-weight: 800;
}

.token-specs dd {
  color: var(--ink-soft);
}

.ca-strip-large {
  background: rgba(255, 255, 255, 0.52);
}

.token-orbit {
  min-height: 520px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
}

.token-orbit > img {
  width: 52%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 28px 26px rgba(44, 73, 56, 0.22));
  animation: hover 5.5s ease-in-out infinite;
}

.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(62, 96, 74, 0.23);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 82%;
  aspect-ratio: 1;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.08), 0 0 0 70px rgba(255, 255, 255, 0.05);
}

.ring-b {
  width: 55%;
  aspect-ratio: 1;
  border-style: dashed;
  animation: spin 25s linear infinite;
}

.orbit-label {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid rgba(62, 96, 74, 0.22);
  background: rgba(246, 244, 237, 0.6);
  font-family: Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.label-a { left: 0; top: 31%; }
.label-b { right: 1%; bottom: 24%; }

.final-call {
  min-height: 760px;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  color: var(--pearl);
  background: #1c3028;
  overflow: hidden;
}

.final-call::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(235, 239, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 239, 230, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.final-glow {
  width: 70vw;
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(172, 200, 173, 0.21);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 80px rgba(172, 200, 173, 0.035), 0 0 0 170px rgba(172, 200, 173, 0.02), inset 0 0 180px rgba(172, 200, 173, 0.08);
}

.final-copy {
  position: relative;
  z-index: 4;
  text-align: center;
}

.final-copy > p {
  margin: 0 0 24px;
  color: #a9c3aa;
  font-family: Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.final-copy h2 {
  margin: 0;
  font-size: clamp(62px, 9.5vw, 150px);
  line-height: 0.78;
  letter-spacing: -0.08em;
}

.final-button {
  margin-top: 44px;
  border-color: rgba(244, 244, 236, 0.55);
  color: var(--ink);
  background: #e8ede3;
}

.final-call > img {
  width: min(36vw, 500px);
  position: absolute;
  right: -9%;
  bottom: -23%;
  z-index: 2;
  opacity: 0.46;
  transform: rotate(-18deg);
  filter: blur(0.4px) drop-shadow(0 22px 28px rgba(0, 0, 0, 0.2));
}

.footer {
  min-height: 112px;
  padding: 24px max(24px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr minmax(260px, 1.2fr) 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #eef1e9;
}

.footer p,
.footer > span {
  margin: 0;
  color: var(--ink-soft);
  font-family: Consolas, monospace;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer p {
  text-align: center;
}

.footer > span {
  justify-self: end;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.signal-locked .hero-visual {
  box-shadow: inset 0 0 100px rgba(255, 255, 255, 0.7), 0 30px 110px rgba(65, 112, 79, 0.17);
}

.signal-locked .signal-cursor {
  width: 460px;
  opacity: 0.72;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes breathe {
  50% { box-shadow: 0 0 0 10px rgba(111, 175, 116, 0); }
}

@keyframes hover {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes drift {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -18px; }
}

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

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

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    min-height: 700px;
  }

  .origin-grid,
  .token-panel {
    grid-template-columns: 1fr;
  }

  .origin-visual {
    min-height: 600px;
  }

  .signal-heading,
  .archive-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .token-orbit {
    min-height: 430px;
  }
}

@media (max-width: 720px) {
  .topbar {
    width: min(calc(100% - 28px), var(--max-width));
    height: 68px;
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    width: min(calc(100% - 28px), var(--max-width));
    min-height: auto;
    padding: 50px 0 34px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .copy-label {
    display: none;
  }

  .hero-visual {
    min-height: 580px;
    border-radius: 120px 12px 100px 14px;
  }

  .hero-character {
    width: 92%;
    margin-top: -70px;
  }

  .readout-side,
  .glyph-two {
    display: none;
  }

  .tuner {
    width: calc(100% - 28px);
    right: 14px;
    bottom: 14px;
  }

  .scroll-rail {
    display: none;
  }

  .origin,
  .archive {
    padding: 82px 0;
  }

  .origin-grid {
    padding-top: 44px;
  }

  .origin-visual {
    min-height: 470px;
  }

  .origin-copy h2,
  .archive-head h2,
  .signal-heading h2 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .story-prose {
    grid-template-columns: 1fr;
  }

  .incident-log > div {
    grid-template-columns: 50px 1fr;
    padding: 16px 0;
  }

  .incident-log p {
    grid-column: 2;
  }

  .signal-shell {
    padding-bottom: 84px;
  }

  .signal-heading {
    padding: 64px 0 48px;
  }

  .signal-laws,
  .transmissions {
    grid-template-columns: 1fr;
  }

  .law,
  .law-one,
  .law-two,
  .law-three {
    min-height: 330px;
    transform: none;
  }

  .law h3 {
    margin-top: 48px;
  }

  .secret-frequency {
    grid-template-columns: 52px 1fr;
  }

  .secret-frequency img {
    width: 46px;
    height: 46px;
  }

  .secret-frequency button {
    grid-column: 1 / -1;
  }

  .archive-head {
    padding: 48px 0 36px;
  }

  .transmission {
    min-height: 340px;
  }

  .token {
    width: 100%;
    padding-bottom: 0;
  }

  .token-panel {
    min-height: auto;
    padding: 72px 14px;
    border-right: 0;
    border-left: 0;
  }

  .token-copy {
    width: min(calc(100% - 28px), var(--max-width));
    margin: 0 auto;
  }

  .token-copy h2 {
    font-size: clamp(62px, 20vw, 92px);
  }

  .token-specs > div {
    grid-template-columns: 100px 1fr;
  }

  .token-orbit {
    min-height: 360px;
  }

  .final-call {
    min-height: 650px;
    padding: 80px 16px;
  }

  .final-call > img {
    width: 66vw;
    right: -28%;
    opacity: 0.26;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer .brand,
  .footer > span {
    justify-self: center;
  }
}

@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;
  }
}
