:root {
  color-scheme: light;
  --ink: #171713;
  --paper: #f1eadb;
  --acid: #e8ff51;
  --orange: #ed4c2b;
  --blue: #17225e;
  --sky: #9fcef1;
  --line: rgba(23, 23, 19, 0.22);
  --pad: clamp(1.15rem, 3.2vw, 3.8rem);
  --header-h: 5.25rem;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button,
input,
a {
  font: inherit;
}

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

a {
  color: inherit;
}

button {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 4px;
}

.page-relay :focus-visible {
  outline-color: #ff633f;
}

.page-epoch :focus-visible {
  outline-color: #087d75;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  background: var(--acid);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.world-canvas,
.static-world {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.world-canvas {
  opacity: 0;
  transition: opacity 500ms ease;
}

.is-enhanced .world-canvas {
  opacity: 1;
}

.is-enhanced .static-world {
  opacity: 0;
}

.static-world {
  z-index: -3;
  transition: opacity 500ms ease;
}

.static-world-index {
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(23, 23, 19, 0.95) 42.1% 42.5%, transparent 42.6%),
    repeating-linear-gradient(115deg, transparent 0 7.5rem, rgba(23, 23, 19, 0.08) 7.6rem 7.7rem),
    radial-gradient(ellipse at 78% 36%, transparent 0 17%, rgba(23, 23, 19, 0.14) 17.2% 17.5%, transparent 17.7% 24%, rgba(23, 23, 19, 0.09) 24.2% 24.5%, transparent 24.7%),
    var(--acid);
}

.static-world-strata {
  background:
    repeating-radial-gradient(ellipse at 73% 55%, transparent 0 3.2rem, rgba(255, 238, 206, 0.26) 3.28rem 3.42rem),
    repeating-linear-gradient(74deg, transparent 0 4.8rem, rgba(255, 235, 199, 0.12) 4.85rem 4.95rem),
    #a92e1b;
}

.static-world-relay {
  background:
    repeating-linear-gradient(96deg, transparent 0 3.5rem, rgba(150, 207, 244, 0.18) 3.58rem 3.68rem),
    linear-gradient(14deg, transparent 0 43%, #ff633f 43.1% 46%, transparent 46.1%),
    repeating-linear-gradient(14deg, transparent 0 5.5rem, rgba(255, 255, 255, 0.08) 5.55rem 5.65rem),
    #111b54;
}

.static-world-epoch {
  background:
    radial-gradient(circle at 72% 51%, transparent 0 12%, #171713 12.15% 12.45%, transparent 12.6% 21%, #087d75 21.15% 21.5%, transparent 21.65% 30%, rgba(23, 23, 19, 0.65) 30.15% 30.4%, transparent 30.55%),
    repeating-linear-gradient(90deg, transparent 0 5rem, rgba(23, 23, 19, 0.08) 5.05rem 5.1rem),
    #f2ead8;
}

.static-world-404 {
  background:
    repeating-linear-gradient(127deg, transparent 0 6rem, rgba(232, 255, 81, 0.12) 6.05rem 6.12rem),
    linear-gradient(127deg, transparent 0 63%, rgba(232, 255, 81, 0.85) 63.1% 63.5%, transparent 63.6%),
    #171713;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  align-items: center;
  min-height: var(--header-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1.15rem;
  line-height: 1;
  transition: color 250ms ease, background 250ms ease, transform 400ms var(--ease-out);
}

.wordmark:hover .wordmark-mark {
  color: var(--acid);
  background: var(--ink);
  transform: rotate(25deg);
}

.header-meta {
  display: flex;
  gap: 1.5rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.motion-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid currentColor;
  border-radius: 100vw;
  color: inherit;
  background: transparent;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.motion-icon {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.motion-icon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: currentColor;
  animation: pulse 1.8s ease-in-out infinite;
}

.motion-toggle[aria-pressed="true"] .motion-icon::after {
  inset: 3px auto 3px 3px;
  width: 1px;
  border-radius: 0;
  box-shadow: 3px 0 currentColor;
  animation: none;
}

@keyframes pulse {
  50% { opacity: 0.18; transform: scale(0.5); }
}

.eyebrow,
.section-label {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.64rem, 0.9vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.eyebrow span {
  display: inline-block;
  padding: 0.28rem 0.48rem;
  color: var(--acid);
  background: var(--ink);
}

.eyebrow.light span {
  color: var(--orange);
  background: #fff1d5;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  font-size: clamp(3.8rem, 8.2vw, 9.2rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.primary-link,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.2rem;
  min-width: 15.5rem;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--ink);
  color: var(--acid);
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms var(--ease-out);
}

.primary-link:hover,
.primary-button:hover {
  color: var(--ink);
  background: var(--acid);
  transform: translateY(-3px);
}

.primary-link span,
.primary-button span {
  font-size: 1rem;
}

.text-link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.5rem 0;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.text-link span {
  transition: transform 240ms var(--ease-out);
}

.text-link:hover span {
  transform: translateX(0.3rem);
}

.noscript-note {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  max-width: 24rem;
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Switchboard */

.page-index {
  background: var(--acid);
}

.index-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  grid-template-rows: minmax(calc(100svh - var(--header-h)), auto) auto;
  min-height: calc(100svh - var(--header-h));
}

.index-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(4rem, 8vh, 7rem) var(--pad);
  border-right: 1px solid var(--line);
}

.index-intro h1 {
  max-width: 12ch;
  margin: clamp(2rem, 5vh, 4.5rem) 0 2rem;
}

.index-deck {
  max-width: 37rem;
  margin: 0;
  padding-left: clamp(2rem, 12vw, 12rem);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.5;
}

.index-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vh, 4rem);
}

.seed-monument {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-h));
  place-items: center;
  overflow: hidden;
  padding: var(--pad);
}

.seed-number {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100%, 28rem);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  text-align: center;
}

.seed-number::before,
.seed-number::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.seed-number::before {
  top: 50%;
  left: -12%;
  width: 124%;
  height: 1px;
}

.seed-number::after {
  top: -12%;
  left: 50%;
  width: 1px;
  height: 124%;
}

.seed-number small {
  position: relative;
  z-index: 1;
  padding: 0.25rem;
  background: var(--acid);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.seed-number strong {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.7;
  letter-spacing: -0.08em;
}

.seed-number strong span {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
}

.seed-orbit {
  position: absolute;
  inset: 12%;
  animation: orbit 42s linear infinite;
}

.seed-orbit span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink);
  transform-origin: 0 0;
}

.seed-orbit span:nth-child(1) { transform: rotate(18deg) translateX(13rem); }
.seed-orbit span:nth-child(2) { transform: rotate(142deg) translateX(11rem); }
.seed-orbit span:nth-child(3) { transform: rotate(268deg) translateX(14rem); }

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

.switchboard {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(15rem, 0.6fr) 1.4fr;
  min-height: 70svh;
  border-top: 1px solid var(--ink);
  background: rgba(232, 255, 81, 0.92);
}

.switchboard-heading {
  padding: clamp(3rem, 7vw, 7rem) var(--pad);
  border-right: 1px solid var(--ink);
}

.switchboard-heading h2 {
  max-width: 8ch;
  margin: 1.25rem 0 0;
  font-size: clamp(2.5rem, 5.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.portal-list {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.portal {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 1fr) minmax(8rem, 0.8fr) 2rem;
  gap: 1.5rem;
  align-items: center;
  min-height: 11rem;
  padding: 1.5rem var(--pad);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: color 250ms ease, background 250ms ease;
}

.portal:last-child {
  border-bottom: 0;
}

.portal::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--portal-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 600ms var(--ease-out);
}

.portal:hover::before,
.portal:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

.portal-one { --portal-color: var(--orange); }
.portal-two { --portal-color: var(--sky); }
.portal-three { --portal-color: #f2ead8; }

.portal-index,
.portal-copy small {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.portal-copy {
  display: flex;
  flex-direction: column;
}

.portal-copy strong {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.portal-glyph {
  position: relative;
  height: 4rem;
}

.portal-glyph::before,
.portal-glyph::after {
  content: "";
  position: absolute;
}

.portal-one .portal-glyph::before {
  inset: 0;
  border: 1px solid currentColor;
  border-radius: 48% 52% 63% 37% / 38% 46% 54% 62%;
  transform: rotate(-8deg);
}

.portal-one .portal-glyph::after {
  inset: 0.8rem 1.8rem;
  border: 1px solid currentColor;
  border-radius: 63% 37% 46% 54% / 51% 58% 42% 49%;
}

.portal-two .portal-glyph::before {
  top: 48%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -0.8rem currentColor, 0 0.8rem currentColor;
  transform: skewY(-8deg);
}

.portal-two .portal-glyph::after {
  top: 0;
  left: 37%;
  width: 0.6rem;
  height: 100%;
  border-right: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: skewX(-12deg);
}

.portal-three .portal-glyph::before {
  inset: -0.3rem 24%;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.portal-three .portal-glyph::after {
  top: 50%;
  left: 50%;
  width: 75%;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-28deg);
}

.portal-arrow {
  font-size: 1.3rem;
  transition: transform 300ms var(--ease-out);
}

.portal:hover .portal-arrow {
  transform: translate(0.35rem, -0.35rem);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 1rem var(--pad);
  border-top: 1px solid var(--ink);
  color: var(--acid);
  background: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer p {
  margin: 0;
}

/* Shared hero structure */

.hero-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
}

.hero-nav {
  display: flex;
  gap: clamp(0.8rem, 2.2vw, 2.2rem);
  align-items: center;
}

.hero-nav a {
  position: relative;
  padding: 0.6rem 0;
  font-size: 0.67rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 220ms ease;
}

.hero-nav a:hover::after,
.hero-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero-nav span {
  margin-right: 0.25rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.55rem;
}

.hero-main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--pad) 2rem;
}

.hero-deck {
  max-width: 35rem;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.5;
}

/* Strata */

.page-strata {
  color: #fff1d5;
  background: #a92e1b;
}

.page-strata ::selection {
  color: var(--orange);
  background: #fff1d5;
}

.page-strata .site-header {
  border-color: rgba(255, 241, 213, 0.34);
}

.page-strata .wordmark:hover .wordmark-mark {
  color: var(--orange);
  background: #fff1d5;
}

.strata-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.strata-copy {
  align-self: center;
  padding-top: 3vh;
}

.strata-copy h1 {
  max-width: 10ch;
  margin: clamp(2rem, 5vh, 4rem) 0 2.5rem;
  font-size: clamp(4rem, 8.7vw, 9.8rem);
}

.strata-copy .hero-deck {
  margin-left: clamp(0rem, 11vw, 11rem);
  padding-left: 1.25rem;
  border-left: 1px solid rgba(255, 241, 213, 0.5);
}

.strata-copy .hero-actions {
  margin-left: clamp(0rem, 11vw, 11rem);
}

.light-button {
  border-color: #fff1d5;
  color: var(--orange);
  background: #fff1d5;
}

.light-button:hover {
  color: #fff1d5;
  background: transparent;
}

.light-link {
  color: #fff1d5;
}

.survey-panel {
  position: relative;
  justify-self: end;
  display: grid;
  width: min(100%, 26rem);
  aspect-ratio: 0.82;
  grid-template-rows: 1fr auto;
  padding: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 241, 213, 0.6);
  background: rgba(109, 24, 15, 0.2);
  backdrop-filter: blur(1px);
}

.survey-panel::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px dashed rgba(255, 241, 213, 0.36);
  border-radius: 49% 51% 41% 59% / 57% 39% 61% 43%;
  animation: survey-turn 28s linear infinite;
}

@keyframes survey-turn {
  to { transform: rotate(360deg); }
}

.survey-crosshair {
  position: absolute;
  inset: 15%;
}

.survey-crosshair span {
  position: absolute;
  background: rgba(255, 241, 213, 0.3);
}

.survey-crosshair span:first-child {
  top: 50%;
  left: -20%;
  width: 140%;
  height: 1px;
}

.survey-crosshair span:last-child {
  top: -20%;
  left: 50%;
  width: 1px;
  height: 140%;
}

.survey-reading {
  position: relative;
  z-index: 1;
  align-self: center;
  text-align: center;
}

.survey-reading p,
.survey-reading small {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.survey-reading strong {
  display: block;
  margin: 0.15rem 0 -0.1rem;
  font-size: clamp(4.8rem, 8vw, 8.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.1em;
}

.survey-scale {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.survey-scale i {
  height: 2px;
  background: linear-gradient(90deg, #fff1d5 0 62%, rgba(255, 241, 213, 0.22) 62%);
}

.strata-caption {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 241, 213, 0.3);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* Relay */

.page-relay {
  color: #eef7ff;
  background: #111b54;
}

.page-relay ::selection {
  color: #111b54;
  background: var(--sky);
}

.page-relay .site-header {
  border-color: rgba(238, 247, 255, 0.25);
}

.page-relay .wordmark:hover .wordmark-mark {
  color: #111b54;
  background: var(--sky);
}

.relay-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  grid-template-rows: 1fr auto;
  gap: 2rem clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.relay-copy {
  padding-top: 4vh;
}

.relay-eyebrow span {
  color: #111b54;
  background: var(--sky);
}

.relay-copy h1 {
  max-width: 11ch;
  margin: clamp(2rem, 6vh, 5rem) 0 2rem;
  font-size: clamp(3.9rem, 8.1vw, 9rem);
}

.relay-copy h1 em {
  color: #ff633f;
}

.relay-copy .hero-deck {
  margin-left: clamp(0rem, 8vw, 8rem);
}

.relay-copy .hero-actions {
  margin-left: clamp(0rem, 8vw, 8rem);
}

.relay-primary {
  border-color: var(--sky);
  color: #111b54;
  background: var(--sky);
}

.relay-primary:hover {
  color: #111b54;
  background: #ff633f;
}

.relay-link {
  color: #eef7ff;
}

.signal-tuner {
  position: relative;
  align-self: end;
  margin-bottom: 5vh;
  padding: clamp(1.25rem, 2.2vw, 2rem);
  border-top: 1px solid rgba(238, 247, 255, 0.6);
  border-bottom: 1px solid rgba(238, 247, 255, 0.6);
  background: rgba(17, 27, 84, 0.48);
}

.signal-tuner::before,
.signal-tuner::after {
  content: "";
  position: absolute;
  top: -0.3rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid #eef7ff;
  border-radius: 50%;
  background: #111b54;
}

.signal-tuner::before { left: 0; }
.signal-tuner::after { right: 0; }

.tuner-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.tuner-heading h2 {
  max-width: 12rem;
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.frequency-readout {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  margin: 2rem 0 1.25rem;
}

.frequency-readout strong {
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.1em;
}

.frequency-readout span {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}

.frequency-control,
.duration-control {
  display: grid;
  gap: 0.65rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

input[type="range"] {
  width: 100%;
  height: 1.5rem;
  margin: 0;
  accent-color: #ff633f;
  cursor: ew-resize;
}

.mode-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.4rem;
  border: 1px solid rgba(238, 247, 255, 0.55);
}

.mode-buttons button {
  padding: 0.65rem 0.4rem;
  border: 0;
  border-right: 1px solid rgba(238, 247, 255, 0.55);
  color: inherit;
  background: transparent;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.mode-buttons button:last-child {
  border-right: 0;
}

.mode-buttons button[aria-pressed="true"] {
  color: #111b54;
  background: #ff633f;
}

.relay-stamp {
  position: absolute;
  right: var(--pad);
  bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0 0.5rem;
  align-items: baseline;
  color: rgba(238, 247, 255, 0.68);
  font-family: "Courier New", Courier, monospace;
}

.relay-stamp span {
  color: #ff633f;
  font-size: 0.68rem;
}

.relay-stamp strong {
  font-size: 1.4rem;
}

.relay-stamp small {
  grid-column: 1 / -1;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Epoch */

.page-epoch {
  color: var(--ink);
  background: #f2ead8;
}

.page-epoch .site-header {
  border-color: rgba(23, 23, 19, 0.28);
}

.page-epoch .wordmark:hover .wordmark-mark {
  color: #f2ead8;
  background: #087d75;
}

.epoch-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(21rem, 0.85fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 2rem clamp(2rem, 6vw, 6rem);
}

.epoch-copy {
  padding-top: 4vh;
}

.epoch-copy h1 {
  max-width: 10ch;
  margin: clamp(2rem, 5vh, 4rem) 0 2rem;
  font-size: clamp(3.9rem, 8.2vw, 9.2rem);
}

.epoch-copy h1 em {
  color: #087d75;
}

.epoch-copy .hero-deck {
  max-width: 32rem;
  margin-left: clamp(0rem, 8vw, 8rem);
}

.epoch-copy .hero-actions {
  margin-left: clamp(0rem, 8vw, 8rem);
}

.epoch-button {
  color: #f2ead8;
  background: #087d75;
  border-color: #087d75;
}

.epoch-button:hover {
  color: #f2ead8;
  background: var(--ink);
  border-color: var(--ink);
}

.epoch-console {
  align-self: end;
  margin-bottom: 7vh;
  padding: clamp(1.4rem, 2.6vw, 2.5rem);
  color: #f2ead8;
  background: var(--ink);
  box-shadow: 0.8rem 0.8rem 0 #087d75;
}

.epoch-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(242, 234, 216, 0.3);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.epoch-console-top span {
  color: #a8e5cf;
}

.epoch-console h2 {
  margin: 2rem 0 3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}

.epoch-console h2 span {
  color: #a8e5cf;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.duration-control input {
  accent-color: #a8e5cf;
}

.epoch-marks {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.55rem;
}

.epoch-marks i {
  height: 0.35rem;
  border-right: 1px solid rgba(242, 234, 216, 0.35);
}

.epoch-seal {
  position: absolute;
  right: var(--pad);
  bottom: 1.5rem;
  display: grid;
  width: 7rem;
  height: 7rem;
  place-content: center;
  border: 1px solid rgba(23, 23, 19, 0.55);
  border-radius: 50%;
  text-align: center;
  transform: rotate(7deg);
}

.epoch-seal span,
.epoch-seal small {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.epoch-seal strong {
  font-size: 1.35rem;
}

/* 404 */

.page-404 {
  color: #f1eadb;
  background: var(--ink);
}

.page-404 .site-header {
  grid-template-columns: 1fr auto;
  border-color: rgba(241, 234, 219, 0.25);
}

.error-coordinate {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.error-main {
  display: flex;
  min-height: calc(100svh - var(--header-h));
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--pad);
}

.error-main h1 {
  max-width: 10ch;
  margin: clamp(2rem, 5vh, 4rem) 0 2rem;
}

.error-main h1 em {
  color: var(--acid);
}

.error-main > p:not(.eyebrow) {
  max-width: 30rem;
  margin: 0 0 2rem clamp(0rem, 14vw, 14rem);
  font-size: 1.1rem;
}

.error-return {
  margin-left: clamp(0rem, 14vw, 14rem);
}

/* Entry choreography */

.is-enhanced .index-intro > *,
.is-enhanced .strata-copy > *,
.is-enhanced .relay-copy > *,
.is-enhanced .epoch-copy > *,
.is-enhanced .error-main > * {
  opacity: 0;
  transform: translateY(1.4rem);
  animation: reveal 850ms var(--ease-out) forwards;
}

.is-enhanced .index-intro > :nth-child(2),
.is-enhanced .strata-copy > :nth-child(2),
.is-enhanced .relay-copy > :nth-child(2),
.is-enhanced .epoch-copy > :nth-child(2),
.is-enhanced .error-main > :nth-child(2) { animation-delay: 90ms; }

.is-enhanced .index-intro > :nth-child(3),
.is-enhanced .strata-copy > :nth-child(3),
.is-enhanced .relay-copy > :nth-child(3),
.is-enhanced .epoch-copy > :nth-child(3),
.is-enhanced .error-main > :nth-child(3) { animation-delay: 170ms; }

.is-enhanced .index-intro > :nth-child(4),
.is-enhanced .strata-copy > :nth-child(4),
.is-enhanced .relay-copy > :nth-child(4),
.is-enhanced .epoch-copy > :nth-child(4),
.is-enhanced .error-main > :nth-child(4) { animation-delay: 240ms; }

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

/* Tablet and mobile */

@media (max-width: 900px) {
  :root {
    --header-h: 4.6rem;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-meta {
    display: none;
  }

  .hero-header {
    grid-template-columns: 1fr auto;
  }

  .hero-nav {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    min-height: 3.5rem;
    border-top: 1px solid currentColor;
    background: inherit;
  }

  .hero-nav a {
    display: grid;
    min-height: 3.5rem;
    place-items: center;
    border-right: 1px solid currentColor;
  }

  .hero-nav a:last-child {
    border-right: 0;
  }

  .hero-nav a::after {
    top: 0;
    bottom: auto;
    height: 3px;
  }

  .page-strata .hero-nav { background: #a92e1b; }
  .page-relay .hero-nav { background: #111b54; }
  .page-epoch .hero-nav { background: #f2ead8; }

  .hero-main {
    min-height: auto;
    padding-bottom: 6rem;
  }

  .index-main {
    grid-template-columns: 1fr;
  }

  .index-intro {
    border-right: 0;
  }

  .seed-monument {
    min-height: 70svh;
    border-top: 1px solid var(--ink);
  }

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

  .switchboard-heading {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .strata-main,
  .relay-main,
  .epoch-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding-top: calc(var(--header-h) + 4rem);
  }

  .strata-copy,
  .relay-copy,
  .epoch-copy {
    padding-top: 0;
  }

  .survey-panel,
  .signal-tuner,
  .epoch-console {
    justify-self: end;
    width: min(100%, 31rem);
    margin: 2rem 0 3rem;
  }

  .strata-caption {
    grid-row: 3;
  }

  .relay-stamp,
  .epoch-seal {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --pad: 1.15rem;
  }

  .site-header {
    min-height: var(--header-h);
  }

  .wordmark {
    font-size: 0.67rem;
  }

  .wordmark-mark {
    width: 1.65rem;
    height: 1.65rem;
  }

  .motion-toggle {
    width: 2.2rem;
    height: 2.2rem;
    justify-content: center;
    padding: 0;
  }

  .motion-toggle [data-motion-label] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
    line-height: 0.86;
  }

  .index-intro {
    justify-content: flex-end;
    min-height: calc(100svh - var(--header-h));
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .index-intro h1 {
    margin: 2rem 0 1.6rem;
  }

  .index-deck,
  .strata-copy .hero-deck,
  .relay-copy .hero-deck,
  .epoch-copy .hero-deck {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    font-size: 0.98rem;
  }

  .index-actions,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2rem;
  }

  .primary-link,
  .primary-button {
    width: 100%;
    min-width: 0;
  }

  .seed-monument {
    min-height: 82svh;
  }

  .seed-number {
    width: min(92vw, 23rem);
  }

  .seed-number strong {
    font-size: 3.6rem;
  }

  .seed-orbit {
    display: none;
  }

  .switchboard {
    min-height: auto;
  }

  .switchboard-heading {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .switchboard-heading h2 {
    font-size: 3.2rem;
  }

  .portal {
    grid-template-columns: 2rem 1fr 1.3rem;
    gap: 0.8rem;
    min-height: 8.5rem;
    padding: 1rem var(--pad);
  }

  .portal-glyph {
    display: none;
  }

  .portal-copy strong {
    font-size: 2.5rem;
  }

  .site-footer {
    gap: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-main {
    padding-top: calc(var(--header-h) + 3rem);
  }

  .strata-copy h1,
  .relay-copy h1,
  .epoch-copy h1 {
    margin: 2.2rem 0 1.5rem;
    font-size: clamp(3.25rem, 16vw, 5.1rem);
  }

  .strata-copy .hero-actions,
  .relay-copy .hero-actions,
  .epoch-copy .hero-actions {
    margin-left: 0;
  }

  .survey-panel {
    width: 88%;
    min-height: 25rem;
    aspect-ratio: auto;
  }

  .survey-reading strong {
    font-size: 5rem;
  }

  .strata-caption {
    gap: 1rem;
  }

  .signal-tuner,
  .epoch-console {
    width: 94%;
  }

  .tuner-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .frequency-readout strong {
    font-size: 5.5rem;
  }

  .epoch-console h2 {
    font-size: 2.7rem;
  }

  .page-404 .site-header {
    grid-template-columns: 1fr auto;
  }

  .error-main > p:not(.eyebrow),
  .error-return {
    margin-left: 0;
  }
}

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

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