@font-face {
  font-family: Silkscreen;
  src: url("assets/silkscreen-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("assets/space-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #e3f6ed;
  --muted: #9ab2ab;
  --faint: #86a79e;
  --mint: #88f6d2;
  --night: #090e12;
  --panel: #0e171c;
  --line: #2a4847;
  --line-light: #49736b;
  --mono: "Space Mono", "Courier New", monospace;
  --pixel: Silkscreen, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 82% 10%, #132629b3, transparent 37rem),
    radial-gradient(ellipse at 2% 48%, #19243a53, transparent 37rem),
    radial-gradient(#8ed9be21 .7px, transparent .9px) 0 0 / 24px 24px,
    var(--night);
}
figure, h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
::selection { color: #0a1919; background: var(--mint); }

.frame { width: min(100% - 6rem, 1280px); margin-inline: auto; }
.pixel { font-family: var(--pixel); font-weight: 700; line-height: 1.04; letter-spacing: -.075em; }
.skip {
  position: fixed;
  z-index: 20;
  top: .8rem;
  left: .8rem;
  transform: translateY(-160%);
  background: var(--mint);
  color: var(--night);
  padding: .5rem 1rem;
}
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); background: #090e12dc; }
.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-size: 1.17rem; white-space: nowrap; }
.brand img { border: 1px solid var(--line); border-radius: 50%; }
.navigation { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem); }
.navigation a { display: grid; align-items: center; min-height: 44px; color: var(--muted); font-size: .88rem; }
.navigation a:hover, .footer-links a:hover { color: var(--mint); }
.bare {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: .45rem .8rem;
  font-size: .875rem;
  min-height: 44px;
}
.bare:hover, .tools button:hover { color: var(--mint); border-color: var(--mint); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4.25rem);
  padding-block: 3.5rem 2rem;
}
.hero-copy { padding: .2rem 0 1.1rem; }
.kicker {
  color: var(--mint);
  font-size: .84rem;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.led { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; background: var(--mint); box-shadow: 0 0 12px #80f5d399; }
.hero-title {
  width: max-content;
  max-width: 100%;
  margin: 1.15rem 0 1.35rem -.065em;
  font-size: clamp(3.12rem, 7.85vw, 7.1rem);
  line-height: .80;
  color: #d7ffee;
  text-shadow: 3px 4px #204a45, 0 0 33px #75eac945;
}
.intro { margin-top: .95rem; max-width: 53ch; color: var(--muted); }
.inline-link { color: var(--mint); text-decoration: underline; text-underline-offset: .22em; }
.inline-link:hover { color: #e7fff5; }
.field-copy strong { color: var(--ink); font-weight: 400; }
.hero-contract {
  margin-top: 1.5rem;
  padding: .95rem 1rem;
  border: 1px solid var(--line-light);
  border-left: 3px solid #73cbb0;
  background: linear-gradient(135deg, #152a2b, #101b20 75%);
  box-shadow: 4px 4px #142628;
}
.relaunch-notice { margin-bottom: .85rem; color: var(--ink); font-size: .875rem; line-height: 1.5; }
.hero-contract-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem .85rem; }
.hero-contract-fields dt { color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.hero-contract-fields dd { color: var(--ink); line-height: 1.4; }
.hero-contract-fields .hero-address { grid-column: 1 / -1; padding-top: .48rem; border-top: 1px solid var(--line); }
[data-contract-address] { color: var(--mint); font: inherit; overflow-wrap: anywhere; user-select: all; }
.contract-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .72rem; }
.copy-status:not(:empty) { margin-top: .55rem; font-size: .82rem; color: var(--mint); }
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.05rem;
  border: 1px solid var(--line-light);
  font-size: .9rem;
  transition: background .16s, color .16s, border-color .16s;
}
.button-main { background: var(--mint); border-color: var(--mint); color: #0a2321; box-shadow: 3px 3px 0 #225f55; }
.button-main:hover { background: #c1ffea; }
.button-quiet { color: var(--ink); background: #121b21; }
.button-quiet:hover { border-color: var(--mint); color: var(--mint); }
.button:disabled { cursor: default; color: #a4b9b3; border-color: var(--line); background: #19272a; box-shadow: none; }

.viewer { min-width: 0; border: 1px solid var(--line-light); background: #0c151b; box-shadow: 7px 7px #122428, 0 18px 55px #0007; }
.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  min-height: 41px;
  padding: .45rem .85rem;
  color: #c5e0d8;
  background: #15252b;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.window-title { display: inline-flex; align-items: center; gap: .65rem; }
.file-icon { width: 10px; height: 11px; display: inline-block; border: 1px solid var(--mint); background: linear-gradient(135deg, var(--mint) 30%, transparent 32%); }
.window-decoration { display: flex; gap: .38rem; }
.window-decoration i { display: block; width: 9px; height: 9px; border: 1px solid #638680; }
.window-decoration i:last-child { background: #83dcc1; border-color: #83dcc1; }
.viewport { position: relative; aspect-ratio: 1.42; isolation: isolate; overflow: hidden; background: #101b29; }
.scene-fallback { position: absolute; inset: 0; margin: auto; width: 52%; height: auto; border-radius: 50%; box-shadow: 0 0 90px #6afed13d; }
.viewport.ready .scene-fallback { visibility: hidden; }
#signal-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: none; cursor: grab; image-rendering: pixelated; touch-action: pan-y; }
.viewport.ready #signal-scene { display: block; }
#signal-scene:active { cursor: grabbing; }
#signal-scene:focus-visible { outline-offset: -3px; }
.crt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, #060d1843 0px, #060d1843 1px, transparent 1px, transparent 4px);
  box-shadow: inset 0 0 60px #060f2480, inset 0 0 16px #02070b85;
}
.hud { position: absolute; top: .9rem; left: 1.25rem; right: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .65rem; color: #d6fff1; pointer-events: none; font-size: clamp(.65rem, 1.2vw, .76rem); letter-spacing: .105em; text-shadow: 0 1px #071a21, 0 0 8px #081026; }
.hud span { display: inline-flex; align-items: center; gap: .5rem; }
.hud .led { width: 5px; height: 5px; }
.viewport:not(.ready) .hud > span:last-child { visibility: hidden; }
.window-end { color: var(--muted); font-size: .8rem; }
.corner { width: 14px; height: 14px; border: solid #b7ffe699; position: absolute; pointer-events: none; }
.top-left { top: .5rem; left: .5rem; border-width: 1px 0 0 1px; }
.bottom-right { bottom: .5rem; right: .5rem; border-width: 0 1px 1px 0; }
.viewer-controls { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .45rem; min-height: 49px; padding: 2px .65rem 2px .85rem; color: var(--muted); font-size: .8rem; }
.scene-hint { visibility: hidden; }
.viewer:has(.ready) .scene-hint { visibility: visible; }
.tools { display: flex; gap: .42rem; }
.tools button { color: var(--ink); padding: .15rem .65rem; min-height: 44px; border: 1px solid var(--line); background: #172229; }
.tools button[aria-pressed="true"] { border-color: var(--mint); color: var(--mint); background: #14332d; }

.signal-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1.15rem;
  border: 1px solid var(--line);
  background: #101b20;
  color: #b7d0c9;
  font-size: .77rem;
  letter-spacing: .105em;
}
.signal-strip b, .strip-track, .strip-last { color: var(--mint); font-weight: 400; }
.strip-track { color: #5da393; white-space: nowrap; }
.strip-last { border-left: 1px solid var(--line-light); padding-left: 1rem; }

.section { margin-top: 5.2rem; }
.section-heading { margin-bottom: 1.55rem; }
.section-heading .kicker { margin-bottom: .48rem; }
.prompt { margin-right: .42rem; color: var(--mint); }
.section-heading h2 { font-size: clamp(2.25rem, 5vw, 4.15rem); margin-left: -.07em; }
.section-heading > p:not(.kicker) { color: var(--muted); max-width: 65ch; margin-top: .63rem; }
.section-heading .reboot-summary { color: var(--ink); }
.section-heading .reboot-note { font-size: .9rem; }
.archive-window { border: 1px solid var(--line-light); background: #0e181e; }
.archive-grid { display: grid; grid-template-columns: minmax(235px, .34fr) minmax(0, 1fr); }
.timeline { display: none; }
.timeline.is-ready { display: grid; align-content: start; border-right: 1px solid var(--line); }
.timeline button {
  display: grid;
  grid-template-columns: 5.3rem 1fr;
  align-items: center;
  gap: .5rem;
  min-height: 48px;
  padding: .65rem .85rem;
  color: #bed4ce;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #283f44;
  border-left: 3px solid transparent;
  text-align: left;
  font-size: .85rem;
  line-height: 1.38;
}
.timeline button:last-child { border-bottom-color: transparent; }
.timeline button span { color: #91b6ab; font-size: .78rem; }
.timeline button:hover { background: #172b31; }
.timeline button[aria-selected="true"] { background: #193732; border-left-color: var(--mint); color: #edfff8; }
.timeline button[aria-selected="true"] span { color: var(--mint); }
.timeline button:focus-visible { outline-offset: -3px; }
.timeline-content { min-width: 0; }
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(125px, 17vw, 215px);
  gap: 1.65rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2.8rem);
  min-height: 100%;
  background: radial-gradient(ellipse at 89% 45%, #1b3c3a, transparent 65%), #101b23;
}
.entry + .entry { border-top: 1px solid var(--line); }
.timeline.is-ready + .timeline-content .entry { border-top: 0; }
.entry .kicker { color: #9ed5c4; }
.entry h3, .field-copy h3 { font-size: clamp(1.6rem, 3.55vw, 3rem); margin: .52rem 0 .75rem; }
.entry p:not(.kicker), .field-copy p:not(.kicker) { color: var(--muted); }
.archive-art { width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--line-light); }
.elysium-art {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(0deg, #0b142947 0 1px, transparent 1px 4px),
    radial-gradient(#28474e, #101b25 72%);
}
.elysium-mark { position: relative; width: 65%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.elysium-mark img { position: absolute; max-width: none; width: 590.4%; height: auto; left: -244.4%; top: -29.6%; }
.text-link { display: inline-block; color: var(--mint); font-size: .88rem; text-decoration: underline; text-underline-offset: .26em; padding-block: .55rem; }
.text-link:hover { color: #e7fff5; }
.entry .text-link { margin-top: .6rem; }

.field-note { display: grid; grid-template-columns: 1fr 1.15fr; margin-top: 1.45rem; min-width: 0; border: 1px solid var(--line); background: #101b22; }
.field-copy { padding: clamp(1.25rem, 3vw, 2.8rem); align-self: center; }
.field-copy .text-link { margin-top: .6rem; }
.field-note img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 63% center; image-rendering: pixelated; border-left: 1px solid var(--line); }

.reboot-route {
  display: grid;
  grid-template-columns: 1fr auto 1.08fr;
  align-items: stretch;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 80% 130%, #26395a, transparent 60%), #101a21;
}
.route-node { padding: clamp(1.25rem, 3vw, 2.55rem); }
.route-node h3 { font-size: clamp(1.55rem, 4vw, 3.55rem); margin-block: .47rem; }
.route-node p:last-child { color: var(--muted); }
.route-old .kicker { color: var(--muted); }
.route-new h3 { color: var(--mint); }
.relay { display: flex; gap: .55rem; align-items: center; font-size: 1.3rem; color: var(--mint); }
.relay span:nth-child(1) { opacity: .35; }
.relay span:nth-child(2) { opacity: .55; }
.relay span:nth-child(3) { opacity: .75; }
.contract { display: grid; grid-template-columns: .8fr 1.2fr; margin-top: 1rem; border: 1px solid var(--line-light); background: #101b20; }
.contract-title { padding: 1.4rem 1.6rem; border-right: 1px solid var(--line); background: #16272b; }
.contract-title h3 { font-size: clamp(1.3rem, 2.4vw, 2.2rem); margin-top: .45rem; }
.contract dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contract dl div { padding: 1.35rem 1.55rem; min-width: 0; }
.contract dl div + div { border-left: 1px solid var(--line); }
.contract dt { color: var(--muted); font-size: .88rem; }
.contract dd { color: var(--mint); margin-top: .3rem; }
.contract .button { margin-top: .65rem; min-height: 44px; }

.site-footer { margin-top: 5.25rem; background: #090e13d9; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.75rem; padding-block: 1.8rem 2.2rem; }
.footer-inner p { margin-top: .8rem; max-width: 73ch; font-size: .84rem; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; white-space: nowrap; }

dialog { color: var(--ink); }
dialog::backdrop { background: #05090ced; }
.boot { width: min(31.5rem, 100% - 2rem); padding: 0; border: 1px solid var(--line-light); background: #0d181b; box-shadow: 6px 6px #193535, 0 0 65px #55f3bf22; }
.boot-window { padding: 0 1.25rem 1.3rem; }
.boot-top { margin: 0 -1.25rem 1.35rem; padding: .3rem .6rem .3rem 1.25rem; display: flex; justify-content: space-between; align-items: center; color: var(--mint); border-bottom: 1px solid var(--line); background: #142329; }
.boot-window img { margin: 1rem auto .7rem; }
#boot-title { text-align: center; font-size: clamp(1.3rem, 6vw, 2.1rem); }
.boot-track { height: 13px; margin: 1.15rem 0 .5rem; border: 1px solid var(--line-light); padding: 2px; }
.boot-fill { width: 100%; height: 100%; transform-origin: left; background: repeating-linear-gradient(90deg, var(--mint) 0 10px, #142827 10px 12px); animation: boot-progress 1.62s steps(11) both; }
@keyframes boot-progress { from { transform: scaleX(.04); } to { transform: scaleX(1); } }

@media (max-width: 1100px) {
  .frame { width: min(100% - 4rem, 1280px); }
  .hero { gap: 1.65rem; }
  .hero-title { font-size: clamp(3.25rem, 8.25vw, 6rem); }
  .archive-grid { grid-template-columns: minmax(215px, .38fr) minmax(0, 1fr); }
}

@media (max-width: 790px) {
  .frame { width: calc(100% - 2.5rem); }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 2.15rem 1.35rem; }
  .hero-copy { padding-bottom: 0; }
  .hero-title { font-size: clamp(3.5rem, 13vw, 6rem); margin-block: 1rem; }
  .viewport { aspect-ratio: 1.48; }
  .crt { opacity: .63; }
  .viewer { box-shadow: 4px 4px #142628; }
  .section { margin-top: 3.65rem; }
  .contract { grid-template-columns: 1fr; }
  .contract-title { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { margin-top: 3.65rem; }
}

@media (max-width: 580px) {
  .frame { width: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr; gap: 0; padding-top: .35rem; }
  .header-inner .brand { font-size: 1.05rem; gap: .48rem; }
  .navigation { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; gap: .5rem; border-top: 1px solid #284040; margin-top: .35rem; }
  .navigation a { padding-inline: .3rem; }
  .hero-title { font-size: clamp(2.65rem, 14vw, 4.9rem); }
  .hero { padding-top: 1.5rem; }
  .intro { font-size: .95rem; margin-top: .6rem; }
  .hero-contract { margin-top: 1rem; padding: .65rem .75rem; }
  .button { padding-inline: .65rem; font-size: .86rem; }
  .viewer-controls { padding-left: .55rem; }
  .hud { left: .95rem; right: .95rem; }
  .signal-strip { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; padding: .6rem .7rem; font-size: .71rem; }
  .strip-track { display: none; }
  .strip-last { border-left: 0; padding: 0; }
  .archive-grid { grid-template-columns: 1fr; }
  .timeline.is-ready { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .timeline button { grid-template-columns: 1fr; gap: .1rem; padding-block: .38rem; min-height: 52px; }
  .timeline button:nth-child(odd) { border-right: 1px solid var(--line); }
  .entry { min-height: 0; grid-template-columns: 1fr; gap: 1rem; }
  .archive-art { width: 9.2rem; }
  .field-note { grid-template-columns: 1fr; }
  .field-note img { height: auto; border-left: 0; border-top: 1px solid var(--line); }
  .reboot-route { grid-template-columns: 1fr; }
  .route-old { padding-bottom: .6rem; }
  .route-new { padding-top: .6rem; }
  .relay { gap: .4rem; font-size: 1rem; padding-inline: 1.25rem; }
  .contract-title, .contract dl div { padding: .9rem .8rem; }
  .contract dt { font-size: .82rem; }
  .contract dd { font-size: .88rem; }
  .contract .button { font-size: .78rem; line-height: 1.35; }
  .footer-inner { flex-direction: column; gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
