:root {
  --ink: #020304;
  --paper: #f4f7fb;
  --muted: rgba(244, 247, 251, 0.58);
  --line: rgba(244, 247, 251, 0.18);
  --blue: #80d6ff;
  --gold: #e0ad52;
  --red: #ec6c5d;
  --green: #65cf9f;
  --progress: 0;
  --ease: cubic-bezier(0.2, 0.72, 0.2, 1);
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

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

.world {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #020304;
  pointer-events: none;
}

.world-image,
.memory-backdrop,
#tunnel-canvas,
.world-shade,
.world-grid,
.memory-pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-image {
  object-fit: cover;
  opacity: 0.24;
  transform: scale(calc(1.04 + (var(--progress) * 0.08)));
  filter: saturate(0.8) contrast(1.18);
  transition: opacity 900ms ease;
}

body.is-entered .world-image {
  opacity: 0.34;
}

.memory-backdrop {
  object-fit: cover;
  opacity: 0.58;
  transform: scale(calc(1.01 + (var(--progress) * 0.035)));
  filter: saturate(0.92) contrast(1.08);
  transition: opacity 420ms var(--ease), transform 1.2s var(--ease);
}

body.is-entered .memory-backdrop {
  opacity: 0.22;
}

.memory-backdrop.is-changing {
  opacity: 0;
}

.world-shade {
  background:
    linear-gradient(90deg, rgba(2, 3, 4, 0.9) 0%, rgba(2, 3, 4, 0.15) 50%, rgba(2, 3, 4, 0.84) 100%),
    linear-gradient(0deg, rgba(2, 3, 4, 0.88) 0%, rgba(2, 3, 4, 0.08) 48%, rgba(2, 3, 4, 0.75) 100%);
}

.world-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(128, 214, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 214, 255, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.memory-pulse {
  z-index: 4;
  opacity: 0;
}

.memory-pulse::before,
.memory-pulse::after {
  position: absolute;
  background: rgba(128, 214, 255, 0.78);
  box-shadow: 0 0 30px rgba(128, 214, 255, 0.5);
  content: "";
}

.memory-pulse::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.memory-pulse::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.memory-pulse.is-firing {
  animation: memoryPulse 620ms var(--ease) both;
}

@keyframes memoryPulse {
  0% { opacity: 0; transform: scale(0.74); }
  36% { opacity: 0.72; }
  100% { opacity: 0; transform: scale(1.12); }
}

.tunnel-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 26px;
  border-bottom: 1px solid rgba(244, 247, 251, 0.14);
  background: rgba(2, 3, 4, 0.72);
  backdrop-filter: blur(18px);
}

.back-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.back-link span {
  color: var(--blue);
  font-size: 22px;
}

.back-link strong,
.time-rail,
.sound-toggle,
.entry-date,
.entry-proof,
.threshold-kicker,
.threshold-aside,
.threshold-visual figcaption,
.threshold-proof-wall figcaption,
.force-list,
.proof-list,
.final-actions,
.future-mark,
.signal-caption {
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link strong {
  font-size: 11px;
}

.time-rail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 9px;
}

.time-rail span {
  color: var(--blue);
}

.time-rail strong {
  min-width: 96px;
  color: rgba(244, 247, 251, 0.72);
}

.sound-toggle {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: rgba(244, 247, 251, 0.68);
  cursor: pointer;
  font-size: 9px;
}

.sound-toggle:disabled {
  cursor: default;
  opacity: 0.35;
}

.sound-bars {
  display: inline-flex;
  height: 14px;
  align-items: end;
  gap: 2px;
}

.sound-bars i {
  width: 2px;
  height: 5px;
  background: currentColor;
  animation: soundBar 800ms ease-in-out infinite alternate;
}

.sound-bars i:nth-child(2) {
  height: 12px;
  animation-delay: -250ms;
}

.sound-bars i:nth-child(3) {
  height: 8px;
  animation-delay: -500ms;
}

.sound-toggle.is-muted .sound-bars i,
.sound-toggle:disabled .sound-bars i {
  height: 2px;
  animation: none;
}

@keyframes soundBar {
  to { height: 3px; }
}

.entry {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 104px 24px 48px;
  background: rgba(2, 3, 4, 0.62);
  transition: opacity 900ms var(--ease), visibility 900ms;
}

body.is-entered .entry {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.entry-copy {
  width: min(980px, 100%);
  text-align: center;
}

.entry-date {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 10px;
}

.entry h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 0.9;
}

.entry h1 em {
  display: inline-block;
  margin-left: 0.12em;
  color: var(--blue);
  font-family: "Yu Mincho", "Noto Serif CJK JP", Georgia, serif;
  font-size: 0.42em;
  font-style: normal;
  vertical-align: 0.28em;
}

.entry-line {
  margin: 28px auto 34px;
  color: rgba(244, 247, 251, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.enter-button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border: 1px solid rgba(128, 214, 255, 0.72);
  border-radius: 2px;
  background: rgba(2, 3, 4, 0.72);
  color: var(--paper);
  cursor: pointer;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  background: var(--blue);
  color: var(--ink);
  transform: translateY(-2px);
}

.enter-icon {
  font-size: 10px;
}

.entry-proof {
  margin: 24px 0 0;
  color: rgba(244, 247, 251, 0.34);
  font-size: 8px;
}

.signal-caption {
  position: fixed;
  z-index: 15;
  right: 28px;
  bottom: 32px;
  width: min(430px, calc(100% - 56px));
  color: rgba(244, 247, 251, 0.76);
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.signal-caption.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.journey-progress {
  position: fixed;
  z-index: 31;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: rgba(244, 247, 251, 0.08);
}

.journey-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.time-map {
  position: fixed;
  z-index: 29;
  top: 50%;
  right: 16px;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(16px);
  transition: opacity 500ms ease, transform 500ms var(--ease);
}

.time-map::before {
  position: absolute;
  z-index: -1;
  top: 20px;
  bottom: 20px;
  right: 8px;
  width: 1px;
  background: rgba(244, 247, 251, 0.16);
  content: "";
}

body.is-entered .time-map {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.time-map button {
  display: grid;
  width: 118px;
  height: 32px;
  grid-template-columns: 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(244, 247, 251, 0.42);
  cursor: pointer;
  text-align: right;
}

.time-map-label {
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  opacity: 0;
  transform: translateX(6px);
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.time-map-dot {
  display: block;
  width: 7px;
  height: 7px;
  justify-self: center;
  border: 1px solid rgba(244, 247, 251, 0.5);
  background: var(--ink);
  transform: rotate(45deg);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.time-map button:hover .time-map-label,
.time-map button:focus-visible .time-map-label,
.time-map button.is-active .time-map-label {
  color: var(--paper);
  opacity: 1;
  transform: translateX(0);
}

.time-map button:hover .time-map-dot,
.time-map button:focus-visible .time-map-dot,
.time-map button.is-active .time-map-dot {
  border-color: var(--blue);
  background: var(--blue);
  transform: rotate(45deg) scale(1.35);
}

.journey {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 700ms ease 300ms;
}

body.is-entered .journey {
  opacity: 1;
}

.threshold {
  position: relative;
  display: grid;
  scroll-margin-top: 72px;
  min-height: 110svh;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: 7vw;
  padding: 120px max(6vw, 34px) 88px;
  border-bottom: 1px solid var(--line);
}

.threshold-copy,
.threshold-visual,
.threshold-proof-wall,
.future-mark {
  opacity: 0.28;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.threshold.is-active .threshold-copy,
.threshold.is-active .threshold-visual,
.threshold.is-active .threshold-proof-wall,
.threshold.is-active .future-mark {
  opacity: 1;
  transform: translateY(0);
}

.threshold-copy {
  max-width: 720px;
}

.threshold-kicker {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 9px;
}

.threshold h2 {
  margin: 0 0 30px;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 68px;
  font-weight: 900;
  line-height: 0.9;
}

.threshold-copy > p:not(.threshold-kicker, .threshold-aside) {
  max-width: 620px;
  margin: 0;
  color: rgba(244, 247, 251, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.65;
}

.threshold-copy > p strong {
  color: var(--paper);
}

.threshold blockquote {
  display: grid;
  max-width: 560px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 42px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.threshold blockquote span {
  color: var(--gold);
  font-size: 11px;
}

.threshold blockquote strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.threshold-number {
  position: absolute;
  right: max(3vw, 24px);
  bottom: 22px;
  margin: 0;
  color: rgba(244, 247, 251, 0.14);
  font-size: 64px;
  font-weight: 900;
}

.threshold-visual {
  position: relative;
  margin: 0;
  border: 1px solid rgba(244, 247, 251, 0.2);
  background: #030405;
}

.threshold-visual::before {
  position: absolute;
  z-index: 1;
  top: -1px;
  right: 12%;
  width: 20%;
  height: 3px;
  background: var(--blue);
  content: "";
}

.threshold-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.08);
}

.threshold-visual figcaption,
.threshold-proof-wall figcaption {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  color: rgba(244, 247, 251, 0.52);
  font-size: 8px;
}

.threshold-aside {
  margin: 32px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
  color: rgba(244, 247, 251, 0.55);
  font-size: 9px;
  line-height: 1.6;
}

.threshold-freedom,
.threshold-world,
.threshold-open {
  background: rgba(2, 3, 4, 0.35);
}

.threshold-visual--wide img {
  aspect-ratio: 16 / 9;
}

.threshold-archive {
  display: block;
  min-height: auto;
  padding-top: 142px;
  padding-bottom: 142px;
  background: rgba(2, 3, 4, 0.5);
}

.archive-intro {
  display: grid;
  max-width: 1260px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
  column-gap: 9vw;
  align-items: end;
  margin: 0 auto 70px;
  opacity: 0.28;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.threshold-archive.is-active .archive-intro {
  opacity: 1;
  transform: translateY(0);
}

.archive-intro .threshold-kicker,
.archive-intro h2 {
  grid-column: 1;
}

.archive-intro h2 {
  margin-bottom: 0;
}

.archive-intro > p:not(.threshold-kicker, .archive-count) {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: end;
  margin: 0;
  color: rgba(244, 247, 251, 0.7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

.archive-count {
  grid-column: 1 / -1;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: rgba(244, 247, 251, 0.42);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.memory-mosaic {
  display: grid;
  max-width: 1420px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(190px, 28vh));
  gap: 12px;
  margin: 0 auto;
}

.memory-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(244, 247, 251, 0.2);
  background: #030405;
  color: var(--paper);
  cursor: zoom-in;
  overflow: hidden;
  opacity: 0.3;
  text-align: left;
  transform: translateY(24px);
  transition: border-color 220ms ease, opacity 800ms var(--ease), transform 800ms var(--ease);
}

.threshold-archive.is-active .memory-tile {
  opacity: 1;
  transform: translateY(0);
}

.threshold-archive.is-active .memory-tile:nth-child(2) { transition-delay: 70ms; }
.threshold-archive.is-active .memory-tile:nth-child(3) { transition-delay: 120ms; }
.threshold-archive.is-active .memory-tile:nth-child(4) { transition-delay: 170ms; }
.threshold-archive.is-active .memory-tile:nth-child(5) { transition-delay: 220ms; }
.threshold-archive.is-active .memory-tile:nth-child(6) { transition-delay: 270ms; }

.memory-tile::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(transparent, rgba(2, 3, 4, 0.92));
  content: "";
}

.memory-tile:hover,
.memory-tile:focus-visible {
  border-color: var(--blue);
}

.memory-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.08);
  transition: filter 300ms ease, transform 700ms var(--ease);
}

.memory-tile:hover img,
.memory-tile:focus-visible img {
  filter: saturate(1) contrast(1.04);
  transform: scale(1.025);
}

.memory-tile > span {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  gap: 4px;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
}

.memory-tile strong {
  font-size: 10px;
  letter-spacing: 0;
}

.memory-tile small {
  color: rgba(244, 247, 251, 0.56);
  font-size: 8px;
  letter-spacing: 0;
}

.memory-tile--flame { grid-column: 1 / 8; grid-row: 1 / 3; }
.memory-tile--shared { grid-column: 8 / 13; grid-row: 1; }
.memory-tile--value { grid-column: 8 / 13; grid-row: 2; }
.memory-tile--simulation { grid-column: 1 / 5; grid-row: 3; }
.memory-tile--interior { grid-column: 5 / 9; grid-row: 3; }
.memory-tile--eye { grid-column: 9 / 13; grid-row: 3; }

.memory-viewer {
  width: min(1180px, calc(100% - 48px));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 1px solid rgba(128, 214, 255, 0.42);
  background: #020304;
  color: var(--paper);
  overflow: auto;
}

.memory-viewer::backdrop {
  background: rgba(2, 3, 4, 0.9);
  backdrop-filter: blur(12px);
}

.memory-viewer[open] {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.6fr);
  align-items: stretch;
}

.memory-viewer > img {
  display: block;
  width: 100%;
  height: min(78svh, 820px);
  object-fit: contain;
  background: #000;
}

.memory-viewer-copy {
  display: grid;
  align-content: end;
  gap: 20px;
  padding: 72px 36px 38px;
  border-left: 1px solid var(--line);
}

.memory-viewer-copy p {
  margin: 0;
  color: var(--blue);
  font-size: 8px;
  font-weight: 800;
}

.memory-viewer-copy h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-size: 44px;
  line-height: 0.95;
}

.memory-viewer-copy span {
  color: rgba(244, 247, 251, 0.66);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
}

.memory-viewer-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(244, 247, 251, 0.38);
  background: rgba(2, 3, 4, 0.78);
  color: var(--paper);
  cursor: pointer;
  font-size: 26px;
}

.memory-viewer-close:hover,
.memory-viewer-close:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.world-doors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.world-doors > * {
  display: grid;
  min-height: 92px;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-content: center;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 3, 4, 0.38);
  text-decoration: none;
  transition: background 220ms ease, border-color 220ms ease;
}

.world-doors span {
  grid-row: 1 / 3;
  color: var(--blue);
  font-size: 9px;
}

.world-doors strong {
  align-self: end;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.world-doors small {
  color: rgba(244, 247, 251, 0.42);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0;
}

.force-list,
.proof-list {
  display: grid;
  margin: 38px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.force-list li {
  display: grid;
  min-height: 58px;
  grid-template-columns: 34px 120px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.force-list span {
  color: var(--blue);
}

.force-list li:nth-child(2) span { color: var(--red); }
.force-list li:nth-child(3) span { color: var(--gold); }
.force-list li:nth-child(4) span { color: var(--green); }

.force-list small {
  color: rgba(244, 247, 251, 0.42);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.threshold-body {
  grid-template-columns: minmax(480px, 1fr) minmax(0, 0.82fr);
}

.threshold-proof-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.threshold-proof-wall figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #030405;
}

.threshold-proof-wall figure:nth-child(2) {
  margin-top: 72px;
}

.threshold-proof-wall img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.76) contrast(1.08);
}

.proof-list li {
  display: grid;
  min-height: 60px;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  color: rgba(244, 247, 251, 0.62);
  font-size: 9px;
  line-height: 1.4;
}

.proof-list span {
  color: var(--green);
}

.proof-list li:nth-child(2) span { color: var(--blue); }
.proof-list li:nth-child(3) span { color: var(--gold); }

.threshold-open {
  min-height: 120svh;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 38px;
}

.final-actions a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border: 1px solid rgba(244, 247, 251, 0.32);
  border-radius: 2px;
  font-size: 9px;
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.final-actions a:hover,
.final-actions a:focus-visible {
  border-color: var(--blue);
  background: rgba(128, 214, 255, 0.1);
}

.future-mark {
  display: grid;
  min-height: 440px;
  place-items: center;
  align-content: center;
  gap: 16px;
  border: 1px solid rgba(224, 173, 82, 0.35);
  background: rgba(2, 3, 4, 0.54);
  text-align: center;
  overflow: hidden;
}

.future-mark img {
  width: min(540px, 100%);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid rgba(224, 173, 82, 0.35);
  filter: saturate(0.78) contrast(1.08);
}

.future-mark span,
.future-mark small {
  color: rgba(244, 247, 251, 0.42);
  font-size: 9px;
}

.future-mark strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 980px) {
  .threshold,
  .threshold-body {
    scroll-margin-top: 62px;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 132px;
    padding-bottom: 108px;
  }

  .threshold-gate .threshold-visual,
  .threshold-economy .threshold-visual,
  .threshold-body .threshold-proof-wall {
    order: 2;
  }

  .threshold h2 {
    font-size: 56px;
  }

  .threshold-visual {
    width: min(720px, 100%);
  }

  .threshold-proof-wall {
    width: min(760px, 100%);
  }

  .archive-intro {
    grid-template-columns: 1fr;
    margin-bottom: 52px;
  }

  .archive-intro .threshold-kicker,
  .archive-intro h2,
  .archive-intro > p:not(.threshold-kicker, .archive-count),
  .archive-count {
    grid-column: 1;
    grid-row: auto;
  }

  .archive-intro > p:not(.threshold-kicker, .archive-count) {
    max-width: 720px;
    margin-top: 28px;
  }

  .memory-mosaic {
    grid-template-rows: repeat(3, minmax(180px, 24vh));
  }

  .memory-viewer[open] {
    grid-template-columns: 1fr;
  }

  .memory-viewer > img {
    height: min(62svh, 640px);
  }

  .memory-viewer-copy {
    padding: 28px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .tunnel-header {
    height: 62px;
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
  }

  .back-link strong,
  .sound-toggle #sound-label {
    display: none;
  }

  .time-rail {
    justify-self: center;
  }

  .entry {
    padding-right: 18px;
    padding-left: 18px;
  }

  .entry h1 {
    font-size: 58px;
  }

  .entry h1 em {
    display: block;
    margin: 14px 0 0;
    font-size: 0.44em;
    vertical-align: 0;
  }

  .entry-line {
    font-size: 18px;
  }

  .entry-proof {
    max-width: 280px;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.6;
  }

  .signal-caption {
    right: 18px;
    bottom: 74px;
    width: calc(100% - 36px);
    font-size: 9px;
  }

  .threshold,
  .threshold-body {
    gap: 38px;
    padding: 110px 20px 96px;
  }

  .time-map {
    top: auto;
    right: auto;
    bottom: 12px;
    left: 50%;
    width: calc(100% - 28px);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0;
    padding: 0 8px;
    border: 1px solid rgba(244, 247, 251, 0.16);
    background: rgba(2, 3, 4, 0.82);
    backdrop-filter: blur(14px);
    transform: translate(-50%, 12px);
  }

  body.is-entered .time-map {
    transform: translate(-50%, 0);
  }

  .time-map::before,
  .time-map-label {
    display: none;
  }

  .time-map button {
    width: auto;
    height: 42px;
    grid-template-columns: 1fr;
    place-items: center;
  }

  .threshold-archive {
    padding: 110px 20px 104px;
  }

  .archive-intro h2 {
    font-size: 42px;
  }

  .archive-intro > p:not(.threshold-kicker, .archive-count) {
    font-size: 17px;
  }

  .memory-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 180px;
  }

  .memory-tile--flame,
  .memory-tile--shared,
  .memory-tile--value,
  .memory-tile--simulation,
  .memory-tile--interior,
  .memory-tile--eye {
    grid-column: auto;
    grid-row: auto;
  }

  .memory-tile--flame {
    grid-column: 1 / -1;
    grid-row: span 2;
  }

  .memory-tile--eye {
    grid-column: 1 / -1;
  }

  .memory-viewer {
    width: calc(100% - 24px);
    max-height: calc(100svh - 24px);
  }

  .memory-viewer > img {
    height: 54svh;
  }

  .memory-viewer-copy h2 {
    font-size: 34px;
  }

  .threshold h2 {
    font-size: 42px;
  }

  .threshold-copy > p:not(.threshold-kicker, .threshold-aside) {
    font-size: 17px;
  }

  .threshold blockquote {
    gap: 14px;
  }

  .threshold blockquote strong {
    font-size: 26px;
  }

  .force-list li {
    grid-template-columns: 28px 96px 1fr;
  }

  .world-doors {
    grid-template-columns: 1fr;
  }

  .threshold-proof-wall {
    grid-template-columns: 1fr;
  }

  .threshold-proof-wall figure:nth-child(2) {
    margin-top: 0;
  }

  .threshold-proof-wall img {
    aspect-ratio: 4 / 3;
  }

  .proof-list li {
    grid-template-columns: 78px 1fr;
  }

  .final-actions {
    display: grid;
  }

  .future-mark {
    min-height: 360px;
  }

  .future-mark img {
    width: 100%;
  }

  .future-mark strong {
    font-size: 38px;
  }
}

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

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

  #tunnel-canvas {
    display: none;
  }

  .world-image {
    transform: none;
  }

  .memory-backdrop {
    transform: none;
  }
}
