:root {
  --ink: #050505;
  --paper: #f6f4ef;
  --quiet: #76716a;
  --line: rgba(5, 5, 5, .14);
  --atlas-progress: 0;
  --atlas-inverse: 1;
  --atlas-radial-y: 45%;
  --atlas-radial-alpha: .06;
  --atlas-abbr-y: 0px;
  --atlas-full-y: 10px;
  --atlas-kicker-opacity: 1;
  --atlas-instruction-opacity: 1;
  --atlas-full-opacity: 0;
  --atlas-full-name-y: 22px;
  --atlas-abg-scale: 1;
  --atlas-abg-y: 0vh;
  --atlas-map-opacity: 0;
  --atlas-map-y: 120px;
  --phase-progress: .5;
  --light-pan: 0vw;
  --landscape-shift: 0px;
  --water-shift: 0vw;
  --building-shadow: 0px;
  --sun-core-alpha: .95;
  --sun-halo-alpha: .28;
  --moon-core-alpha: 0;
  --building-window-opacity: .2;
  --bridge-light-opacity: .28;
  --city-primary: #b94d24;
  --city-secondary: #6b2a1a;
  --city-accent: #f2a348;
  --city-bg: #1c1110;
  --city-text: #fff7ed;
  --sky-top: #f0783f;
  --sky-mid: #c9492d;
  --sky-low: #371b38;
  --water: #7a3c2d;
  --light: rgba(255, 177, 96, .6);
  --shadow: rgba(12, 7, 8, .55);
  --window-glow: rgba(255, 190, 94, .75);
  --sun-x: 50%;
  --sun-y: 34%;
  --sun-opacity: 1;
  --moon-opacity: 0;
  --scene-brightness: 1;
  --scene-daylight: .5;
  --scene-exposure: 1;
  --scene-final-brightness: 1;
  --scene-saturation: 1;
  --scene-warm-light: .12;
  --scene-night: .5;
  --scene-light-opacity: .23;
  --scene-night-opacity: .36;
  --glitch-opacity: .05;
  --glitch-opacity-active: .05;
  --scene-background-color: #cf2f25;
  --grain-opacity: .16;
  --photo-focus-x: 50%;
  --photo-focus-y: 42%;
  --photo-night-low-opacity: 0;
  --city-scroll: 0;
  --room-light-opacity: 1;
  --title-opacity: 1;
  --title-scale: 1;
  --text-veil-opacity: .06;
  --after-text-opacity: 0;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.home-page {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  color: #fff;
  font-family: "SFMono-Regular", "Roboto Mono", "Menlo", "Consolas", monospace;
  --home-title-progress: 0;
  --home-title-exit: 0;
  --home-interface-opacity: 1;
}

.home-page {
  scrollbar-width: none;
}

.home-document {
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.home-page::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.home-document::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html.home-document.intro-locked,
html.home-document.intro-locked body.home-page {
  overflow: hidden;
}

.home-shell {
  position: relative;
  min-height: 510dvh;
  overflow: visible;
  isolation: isolate;
  background: #000;
}

.home-background-cycle,
.home-mask {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-background-cycle {
  z-index: 0;
  overflow: hidden;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transform: translateZ(0);
}

.home-page.mask-ready .home-background-cycle {
  opacity: 1;
  visibility: visible;
}

.home-background-cycle::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .28) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, .03), rgba(0, 0, 0, .14));
}

.home-cycle-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.026);
  filter: brightness(1.24) contrast(1.12) saturate(1.16) blur(.14px);
  animation: homeCycleImage 9s steps(1, end) infinite;
  will-change: opacity;
}

.home-cycle-image--mono {
  animation-delay: 0s;
}

.home-cycle-image--green {
  animation-delay: 3s;
}

.home-cycle-image--blue {
  animation-delay: 6s;
}

.home-mask {
  z-index: 2;
  pointer-events: none;
}

.home-interface {
  position: fixed;
  inset: 0;
  z-index: 4;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(20px, 3vw, 48px);
  pointer-events: none;
  opacity: var(--home-interface-opacity);
  transition: opacity 120ms linear;
}

.home-interface::before,
.home-interface::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-interface::before {
  opacity: .4;
  background:
    radial-gradient(ellipse at 50% 49%, rgba(255, 255, 255, .13), transparent 32vw),
    radial-gradient(ellipse at 50% 72%, rgba(255, 255, 255, .055), transparent 42vw),
    repeating-linear-gradient(180deg, transparent 0 12px, rgba(255, 255, 255, .012) 13px, transparent 15px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(0deg, rgba(255, 255, 255, .014) 1px, transparent 1px) 0 0 / 52px 52px,
    #030303;
  mix-blend-mode: screen;
}

body.motion-ready .home-interface::before {
  animation: homeFieldBreathe 6800ms ease-in-out infinite alternate;
}

.home-interface::after {
  inset: clamp(86px, 11vh, 118px) clamp(48px, 7vw, 120px) clamp(86px, 11vh, 124px);
  opacity: .22;
  background:
    linear-gradient(90deg, transparent 0 11%, rgba(255, 255, 255, .2) 11% 23%, transparent 23% 77%, rgba(255, 255, 255, .18) 77% 89%, transparent 89%) 0 45% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, .13) 22% 36%, transparent 36% 64%, rgba(255, 255, 255, .13) 64% 78%, transparent 78%) 0 58% / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 0 18%, rgba(255, 255, 255, .16) 18% 34%, transparent 34% 66%, rgba(255, 255, 255, .14) 66% 82%, transparent 82%) 50% 0 / 1px 100% no-repeat,
    linear-gradient(29deg, transparent 0 43%, rgba(255, 255, 255, .14) 43.05% 43.16%, transparent 43.22%),
    linear-gradient(-29deg, transparent 0 43%, rgba(255, 255, 255, .13) 43.05% 43.16%, transparent 43.22%),
    radial-gradient(circle, rgba(255, 255, 255, .56) 0 2px, transparent 3.25px) 18% 45% / 100% 100% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .46) 0 2px, transparent 3.25px) 82% 45% / 100% 100% no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .38) 0 1.5px, transparent 2.75px) 50% 18% / 100% 100% no-repeat,
    radial-gradient(ellipse at 50% 51%, rgba(255, 255, 255, .08), transparent 28vw);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .08));
  mask-image: radial-gradient(ellipse at 50% 51%, #000 0 64%, transparent 89%);
}

body.motion-ready .home-interface::after {
  animation: homeCircuitBreathe 5200ms ease-in-out infinite alternate;
}

.home-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-brand,
.home-menu a,
.home-menu .portal-login,
.home-reset {
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-brand,
.home-menu a,
.home-menu .portal-login {
  color: #fff;
  text-decoration: none;
  pointer-events: auto;
}

.home-brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.home-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  pointer-events: auto;
}

.home-menu a,
.home-menu .portal-login {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-menu a:hover,
.home-menu .portal-login:hover,
.home-menu .portal-login[aria-expanded="true"] {
  border-bottom-color: currentColor;
  transform: translateY(-1px);
}

.home-brand:focus-visible,
.home-menu a:focus-visible,
.home-menu .portal-login:focus-visible,
.home-reset:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

.home-type {
  clip-path: inset(0 100% 0 0);
  animation: homeTypeIn 1050ms steps(var(--type-steps, 12), end) forwards;
  animation-delay: var(--type-delay, 0ms);
}

.home-hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: calc(100dvh - 150px);
  pointer-events: none;
}

.home-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(560px, 45vw);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .28;
  transform: translate(-50%, -50%);
  background:
    repeating-radial-gradient(circle, transparent 0 48px, rgba(255, 255, 255, .16) 49px 50px, transparent 51px 88px),
    conic-gradient(from 88deg, transparent 0 12%, rgba(255, 255, 255, .16) 12% 12.35%, transparent 12.35% 37%, rgba(255, 255, 255, .12) 37% 37.35%, transparent 37.35% 69%, rgba(255, 255, 255, .14) 69% 69.35%, transparent 69.35% 100%);
  box-shadow:
    0 0 42px rgba(255, 255, 255, .08),
    inset 0 0 34px rgba(255, 255, 255, .05);
}

body.motion-ready .home-hero::before {
  animation: homeHubPulse 5400ms cubic-bezier(.2, .7, .2, 1) infinite alternate;
}

.home-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 14% 9% 10%;
  opacity: .2;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, .18) 16% 34%, transparent 34% 66%, rgba(255, 255, 255, .18) 66% 84%, transparent 84%) 0 50% / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 0 18%, rgba(255, 255, 255, .14) 18% 32%, transparent 32% 68%, rgba(255, 255, 255, .14) 68% 82%, transparent 82%) 50% 0 / 1px 100% no-repeat,
    linear-gradient(24deg, transparent 0 45%, rgba(255, 255, 255, .12) 45.05% 45.18%, transparent 45.24%),
    linear-gradient(-24deg, transparent 0 45%, rgba(255, 255, 255, .11) 45.05% 45.18%, transparent 45.24%);
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, .07));
}

body.motion-ready .home-hero::after {
  animation: homeTracePulse 4600ms ease-in-out infinite alternate;
}

.home-abg {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(1080px, calc(88vw - var(--rail-offset, 0px)));
  min-height: clamp(280px, 37vw, 470px);
  margin: 0;
  color: #fff;
  letter-spacing: 0;
  text-transform: uppercase;
  user-select: none;
  pointer-events: auto;
}

.home-abg-short,
.home-abg-full {
  grid-area: 1 / 1;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0;
  text-shadow:
    0 0 1px rgba(255, 255, 255, .92),
    0 0 18px rgba(255, 255, 255, .16);
  -webkit-text-stroke: 0;
  will-change: opacity, transform;
}

.home-abg-short {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(96px, 23.5vw, 380px);
  line-height: .72;
  opacity: calc(1 - var(--home-title-progress));
  transform: translateY(calc(var(--home-title-progress) * -7vh)) scale(calc(1 - var(--home-title-progress) * .48));
  perspective: 1200px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .46));
}

.home-letter {
  position: relative;
  z-index: 1;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .52) 0 15%, rgba(255, 255, 255, 1) 24% 38%, rgba(206, 209, 207, .82) 46%, rgba(255, 255, 255, .98) 58%, rgba(126, 130, 128, .72) 76%, rgba(255, 255, 255, .92) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  display: inline-block;
  padding: 0 .015em;
  transform-origin: 50% 52%;
  transform-style: preserve-3d;
  backface-visibility: visible;
  transform: translate3d(var(--letter-x, 0), var(--letter-y, 0), 0) scale(.96);
  opacity: 0;
  animation: homeLetterIn 1280ms cubic-bezier(.2, 1.05, .22, 1) forwards;
  animation-delay: var(--letter-delay, 180ms);
  -webkit-text-stroke: .012em rgba(255, 255, 255, .72);
  text-shadow:
    0 .012em 0 rgba(255, 255, 255, .62),
    .038em .064em 0 rgba(42, 44, 44, .42),
    0 0 28px rgba(255, 255, 255, .2);
  filter:
    drop-shadow(.045em .07em .035em rgba(0, 0, 0, .52));
  isolation: isolate;
  pointer-events: auto;
  cursor: pointer;
  transition: filter 180ms ease, text-shadow 180ms ease;
  will-change: transform, opacity;
}

.home-letter::before,
.home-letter::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.home-letter::before {
  z-index: -1;
  color: rgba(255, 255, 255, .09);
  -webkit-text-fill-color: rgba(255, 255, 255, .09);
  -webkit-text-stroke: .01em rgba(255, 255, 255, .16);
  transform: translate3d(.032em, .048em, -1px) skewX(-3deg);
  text-shadow:
    .052em .078em .035em rgba(0, 0, 0, .54);
}

.home-letter::after {
  z-index: 2;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    linear-gradient(108deg, transparent 0 19%, rgba(255, 255, 255, .92) 24%, rgba(255, 255, 255, .18) 31%, transparent 38% 100%),
    linear-gradient(18deg, rgba(255, 255, 255, .14), transparent 45%);
  background-size: 220% 100%, 100% 100%;
  background-position: 140% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: .48;
  mix-blend-mode: screen;
  transform: translate3d(-.012em, -.02em, 1px);
  transition: opacity 160ms ease, filter 160ms ease;
}

body.motion-ready .home-letter::after {
  animation: homeGlassSweep 6200ms cubic-bezier(.2, .6, .2, 1) infinite;
  animation-delay: calc(var(--letter-delay, 180ms) + 1400ms);
}

.home-letter:hover,
.home-letter:focus-visible,
.home-letter.is-spinning {
  text-shadow:
    0 .012em 0 rgba(255, 255, 255, .72),
    .038em .064em 0 rgba(38, 40, 40, .38),
    0 0 42px rgba(255, 255, 255, .36);
  filter:
    drop-shadow(.045em .07em .032em rgba(0, 0, 0, .46))
    drop-shadow(0 0 22px rgba(255, 255, 255, .2));
}

.home-letter:hover::after,
.home-letter:focus-visible::after,
.home-letter.is-spinning::after {
  opacity: 1;
  filter: drop-shadow(0 0 .022em rgba(255, 255, 255, .8));
  animation: homeGlassSweepActive 960ms cubic-bezier(.16, .72, .16, 1) both;
}

body.motion-ready .home-letter {
  animation: homeLetterIn 1280ms cubic-bezier(.2, 1.05, .22, 1) forwards;
  animation-delay: var(--letter-delay, 180ms);
}

.home-letter--a {
  --letter-y: -72vh;
  --letter-delay: 3120ms;
}

.home-letter--b {
  --letter-y: 72vh;
  --letter-delay: 3360ms;
}

.home-letter--g {
  --letter-x: 72vw;
  --letter-delay: 3600ms;
}

.home-abg-full {
  display: grid;
  gap: .015em;
  width: min(880px, 90vw);
  font-size: clamp(54px, 10.8vw, 178px);
  line-height: .78;
  text-align: center;
  opacity: calc(var(--home-title-progress) * (1 - var(--home-title-exit)));
  transform:
    translateY(calc((1 - var(--home-title-progress)) * 7vh - var(--home-title-exit) * 14vh))
    scale(calc(.9 + var(--home-title-progress) * .1 - var(--home-title-exit) * .12));
}

.home-abg-full span {
  position: relative;
  display: block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, .78), #fff 34%, rgba(188, 190, 189, .78) 58%, rgba(255, 255, 255, .95)),
    linear-gradient(106deg, transparent 0 42%, rgba(255, 255, 255, .98) 48%, rgba(255, 255, 255, .18) 54%, transparent 61% 100%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, 135% 0;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 .02em 0 rgba(255, 255, 255, .16),
    .032em .052em 0 rgba(0, 0, 0, .26),
    0 0 24px rgba(255, 255, 255, .12);
  pointer-events: auto;
  transition: filter 180ms ease, text-shadow 180ms ease;
}

.home-abg-full span:hover,
.home-abg-full span:focus-visible {
  animation: homeFullTitleShine 980ms cubic-bezier(.16, .72, .16, 1) both;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, .22));
  text-shadow:
    0 .02em 0 rgba(255, 255, 255, .22),
    .032em .052em 0 rgba(0, 0, 0, .2),
    0 0 40px rgba(255, 255, 255, .28);
}

body.home-page .home-section-tabs {
  position: absolute;
  left: 50%;
  bottom: clamp(70px, 8vh, 104px);
  z-index: 3;
  display: flex;
  align-items: stretch;
  min-height: 48px;
  color: #f4efe7;
  border: 1px solid rgba(255, 255, 255, .22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
    rgba(6, 6, 6, .62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .06),
    0 18px 44px rgba(0, 0, 0, .28);
  pointer-events: auto;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

body.home-page .home-section-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(122px, 12vw, 168px);
  padding: 0 18px;
  color: inherit;
  border-right: 1px solid rgba(255, 255, 255, .16);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .14em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

body.home-page .home-section-tabs a:last-child {
  border-right: 0;
}

body.home-page .home-section-tabs a::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 9px;
  height: 2px;
  opacity: 0;
  background: currentColor;
  transform: scaleX(.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

body.home-page .home-section-tabs a:hover,
body.home-page .home-section-tabs a:focus-visible,
body.home-page .home-section-tabs a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .075);
  outline: none;
}

body.home-page .home-section-tabs a:hover::after,
body.home-page .home-section-tabs a:focus-visible::after,
body.home-page .home-section-tabs a.is-active::after {
  opacity: .86;
  transform: scaleX(1);
}

body.home-page.intro-playing .home-section-tabs {
  display: none;
}

body.home-page.intro-playing .home-shell {
  min-height: 510dvh;
}

body.home-page.intro-playing .home-hero {
  display: grid !important;
}

body.home-page.intro-playing .home-light-atlas {
  display: none !important;
}

body.home-page.intro-playing .terminal-page {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

body.home-page.intro-playing .home-abg-short {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: none;
}

body.home-page.intro-playing .home-abg-full {
  display: none;
  opacity: 0;
  animation: none;
}

body.home-page.intro-complete .home-light-atlas {
  animation: homeAtlasAfterIntro 640ms cubic-bezier(.18, .78, .22, 1) both;
}

body.home-page[data-theme="light"].intro-playing .home-hero::before {
  background:
    repeating-radial-gradient(circle, transparent 0 48px, rgba(21, 18, 14, .15) 49px 50px, transparent 51px 88px),
    conic-gradient(from 88deg, transparent 0 12%, rgba(21, 18, 14, .16) 12% 12.35%, transparent 12.35% 37%, rgba(21, 18, 14, .12) 37% 37.35%, transparent 37.35% 69%, rgba(21, 18, 14, .14) 69% 69.35%, transparent 69.35% 100%);
  box-shadow:
    0 0 42px rgba(21, 18, 14, .08),
    inset 0 0 34px rgba(255, 255, 255, .34);
}

body.home-page[data-theme="light"].intro-playing .home-hero::after {
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(21, 18, 14, .16) 16% 34%, transparent 34% 66%, rgba(21, 18, 14, .16) 66% 84%, transparent 84%) 0 50% / 100% 1px no-repeat,
    linear-gradient(0deg, transparent 0 18%, rgba(21, 18, 14, .13) 18% 32%, transparent 32% 68%, rgba(21, 18, 14, .13) 68% 82%, transparent 82%) 50% 0 / 1px 100% no-repeat,
    linear-gradient(24deg, transparent 0 45%, rgba(21, 18, 14, .11) 45.05% 45.18%, transparent 45.24%),
    linear-gradient(-24deg, transparent 0 45%, rgba(21, 18, 14, .1) 45.05% 45.18%, transparent 45.24%);
  filter: none;
}

body.home-page[data-theme="light"].intro-playing .home-abg,
body.home-page[data-theme="light"].intro-playing .home-abg-short,
body.home-page[data-theme="light"].intro-playing .home-abg-full {
  color: var(--light-ink);
  text-shadow:
    0 0 1px rgba(21, 18, 14, .7),
    0 18px 30px rgba(56, 45, 31, .12);
}

body.home-page[data-theme="light"].intro-playing .home-letter {
  background:
    linear-gradient(118deg, rgba(21, 18, 14, .48) 0 15%, rgba(21, 18, 14, .98) 24% 38%, rgba(109, 103, 94, .82) 46%, rgba(21, 18, 14, .94) 58%, rgba(180, 171, 158, .72) 76%, rgba(21, 18, 14, .9) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .012em rgba(21, 18, 14, .72);
  text-shadow:
    0 .012em 0 rgba(255, 255, 255, .74),
    .038em .064em 0 rgba(189, 176, 155, .36),
    0 0 24px rgba(21, 18, 14, .1);
  filter: drop-shadow(.045em .07em .035em rgba(120, 101, 72, .18));
}

body.home-page[data-theme="light"].intro-playing .home-letter::before {
  color: rgba(21, 18, 14, .1);
  -webkit-text-fill-color: rgba(21, 18, 14, .1);
  -webkit-text-stroke: .01em rgba(21, 18, 14, .14);
  text-shadow: .052em .078em .035em rgba(177, 162, 138, .3);
}

body.home-page[data-theme="light"].intro-playing .home-letter::after {
  background:
    linear-gradient(108deg, transparent 0 19%, rgba(255, 255, 255, .86) 24%, rgba(21, 18, 14, .16) 31%, transparent 38% 100%),
    linear-gradient(18deg, rgba(21, 18, 14, .12), transparent 45%);
  -webkit-background-clip: text;
  background-clip: text;
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"].intro-playing .home-abg-full span {
  background:
    linear-gradient(118deg, rgba(21, 18, 14, .76), #15120e 34%, rgba(112, 106, 96, .8) 58%, rgba(21, 18, 14, .94)),
    linear-gradient(106deg, transparent 0 42%, rgba(255, 255, 255, .96) 48%, rgba(21, 18, 14, .14) 54%, transparent 61% 100%);
  background-size: 100% 100%, 260% 100%;
  background-position: 0 0, 135% 0;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    0 .02em 0 rgba(255, 255, 255, .72),
    .032em .052em 0 rgba(170, 154, 127, .2),
    0 0 22px rgba(21, 18, 14, .08);
}

.home-reset {
  position: relative;
  z-index: 2;
  justify-self: end;
  align-self: end;
  min-width: 108px;
  min-height: 50px;
  padding: 0 22px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)),
    rgba(10, 10, 10, .78);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .1),
    0 0 22px rgba(255, 255, 255, .18);
  pointer-events: auto;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.home-reset:hover {
  border-color: rgba(255, 255, 255, .82);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, .16),
    0 0 32px rgba(255, 255, 255, .3);
  transform: translateY(-1px);
}

@keyframes homeTypeIn {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes homeCycleImage {
  0%,
  32.99% {
    opacity: 1;
  }
  33%,
  100% {
    opacity: 0;
  }
}

@keyframes homeFieldBreathe {
  0% {
    opacity: .32;
    filter: contrast(1) brightness(.92);
  }
  52% {
    opacity: .46;
    filter: contrast(1.12) brightness(1.06);
  }
  100% {
    opacity: .38;
    filter: contrast(1.04) brightness(.98);
  }
}

@keyframes homeCircuitBreathe {
  0% {
    opacity: .16;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .05));
  }
  48% {
    opacity: .28;
    filter: drop-shadow(0 0 9px rgba(255, 255, 255, .08));
  }
  100% {
    opacity: .2;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, .06));
  }
}

@keyframes homeHubPulse {
  0% {
    opacity: .2;
    filter: brightness(.92);
  }
  55% {
    opacity: .34;
    filter: brightness(1.14);
  }
  100% {
    opacity: .26;
    filter: brightness(1);
  }
}

@keyframes homeTracePulse {
  0% {
    opacity: .14;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, .04));
  }
  50% {
    opacity: .24;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, .07));
  }
  100% {
    opacity: .17;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .05));
  }
}

@keyframes homeLetterIn {
  0% {
    opacity: 0;
    transform: translate3d(var(--letter-x, 0), var(--letter-y, 0), 0) scale(.94);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.045);
  }
  78% {
    transform: translate3d(0, 0, 0) scale(.975);
  }
  90% {
    transform: translate3d(0, 0, 0) scale(1.012);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes homeGlassSweep {
  0%, 34% {
    background-position: 140% 0, 0 0;
    opacity: .5;
  }
  52% {
    background-position: -35% 0, 0 0;
    opacity: .94;
  }
  72%, 100% {
    background-position: -90% 0, 0 0;
    opacity: .56;
  }
}

@keyframes homeGlassSweepActive {
  0% {
    background-position: 150% 0, 0 0;
    opacity: .46;
  }
  44% {
    background-position: 18% 0, 0 0;
    opacity: 1;
  }
  100% {
    background-position: -72% 0, 0 0;
    opacity: .74;
  }
}

@keyframes homeFullTitleShine {
  0% {
    background-position: 0 0, 135% 0;
  }
  46% {
    background-position: 0 0, 12% 0;
  }
  100% {
    background-position: 0 0, -80% 0;
  }
}

@keyframes homeAtlasAfterIntro {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.home-story,
.home-thesis-detail,
.home-projects {
  --page-presence: 1;
  --page-y: 0px;
  position: absolute;
  left: 0;
  z-index: 8;
  width: 100%;
  min-height: 100dvh;
  padding: 6px;
  color: #f2f2f2;
  background: #050505;
  box-shadow: 0 -40px 90px rgba(0, 0, 0, .55);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.motion-ready .terminal-page {
  opacity: calc(.06 + var(--page-presence) * .94);
  transform: translate3d(0, var(--page-y), 0) scale(calc(.965 + var(--page-presence) * .035));
  transform-origin: center top;
  filter: blur(calc((1 - var(--page-presence)) * 5px));
  transition: opacity 120ms linear, filter 160ms ease-out;
  will-change: transform, opacity, filter;
}

body.motion-ready .terminal-page:not(.is-active) {
  pointer-events: none;
}

.home-story {
  top: 210dvh;
}

.home-thesis-detail {
  top: 310dvh;
  z-index: 9;
}

.home-projects {
  top: 410dvh;
  z-index: 10;
}

.home-story::before,
.home-thesis-detail::before,
.home-projects::before {
  display: none;
}

.terminal-window {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 12px);
  overflow: hidden;
  border: 1px solid rgba(242, 242, 242, .22);
  background: #080909;
  box-shadow:
    inset 0 0 0 1px rgba(242, 242, 242, .06),
    0 0 50px rgba(255, 255, 255, .08);
}

.terminal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(255, 255, 255, .28) 49%, transparent 56%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  mix-blend-mode: screen;
  transform: translate3d(0, -105%, 0);
}

body.motion-ready .terminal-page.has-entered .terminal-window::before {
  animation: terminalPageSweep 1100ms cubic-bezier(.18, .78, .22, 1) 90ms both;
}

body.motion-ready .terminal-page.is-snap-bouncing .terminal-window {
  animation: terminalSnapBounce 680ms cubic-bezier(.2, .95, .2, 1) both;
}

.terminal-chrome {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  height: 39px;
  color: rgba(242, 242, 242, .66);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)),
    #181818;
  border-bottom: 1px solid rgba(242, 242, 242, .22);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}

.terminal-controls,
.terminal-actions {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.terminal-controls {
  border-right: 1px solid rgba(242, 242, 242, .18);
}

.terminal-controls span,
.terminal-actions span {
  position: relative;
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(242, 242, 242, .48);
}

.terminal-controls span:first-child {
  border: 0;
}

.terminal-controls span:first-child::before,
.terminal-controls span:first-child::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  background: rgba(242, 242, 242, .54);
}

.terminal-controls span:first-child::before {
  transform: rotate(45deg);
}

.terminal-controls span:first-child::after {
  transform: rotate(-45deg);
}

.terminal-actions span:first-child {
  height: 1px;
  border: 0;
  background: rgba(242, 242, 242, .5);
}

.terminal-actions span:last-child::before,
.terminal-actions span:last-child::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -1px;
  width: 15px;
  height: 2px;
  background: rgba(242, 242, 242, .52);
}

.terminal-actions span:last-child::before {
  transform: rotate(45deg);
}

.terminal-actions span:last-child::after {
  transform: rotate(-45deg);
}

.terminal-tabs {
  display: flex;
  min-width: 0;
  overflow: hidden;
}

.terminal-tabs a,
.terminal-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 clamp(136px, 14vw, 196px);
  min-width: 0;
  padding: 0 18px;
  color: inherit;
  appearance: none;
  background: transparent;
  border-right: 1px solid rgba(242, 242, 242, .14);
  border-radius: 0;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 170ms ease, background 170ms ease;
}

.terminal-tabs a:hover,
.terminal-tabs a:focus-visible {
  color: #fff;
  background: rgba(242, 242, 242, .08);
  outline: none;
}

.terminal-tabs .is-active {
  color: #fff;
  background: rgba(242, 242, 242, .13);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.terminal-screen {
  position: relative;
  min-height: calc(100dvh - 51px);
  padding: clamp(18px, 2vw, 26px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(0deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0 / 16px 16px,
    radial-gradient(circle at 70% 44%, rgba(242, 242, 242, .11), transparent 25vw),
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 24%),
    #080909;
}

.terminal-screen--signal,
.terminal-screen--detail {
  display: grid;
  align-items: center;
}

.terminal-screen::before,
.terminal-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.terminal-screen::before {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(242, 242, 242, .11) 89px, transparent 91px),
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, .025) 4px, transparent 6px);
  mix-blend-mode: screen;
  opacity: .28;
}

.terminal-screen::after {
  top: 0;
  right: 0;
  width: min(42vw, 540px);
  height: min(44vh, 330px);
  opacity: .34;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(242, 242, 242, .16) 10% 10.4%, transparent 10.4% 21%, rgba(242, 242, 242, .12) 21% 21.4%, transparent 21.4%),
    linear-gradient(180deg, transparent 0 18%, rgba(242, 242, 242, .16) 18% 18.5%, transparent 18.5% 36%, rgba(242, 242, 242, .12) 36% 36.5%, transparent 36.5%),
    radial-gradient(circle, rgba(242, 242, 242, .7) 0 1px, transparent 2px) 14px 18px / 76px 44px;
}

.terminal-query {
  position: absolute;
  top: 22px;
  right: clamp(18px, 2vw, 26px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(292px, 31vw);
  min-height: 36px;
  padding: 0 14px;
  color: rgba(242, 242, 242, .72);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(242, 242, 242, .24);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, .08);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.terminal-query i {
  width: 2px;
  height: 19px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, .8);
  animation: terminalCaret 900ms steps(1) infinite;
}

body.motion-ready .terminal-page:not(.has-entered) .terminal-chrome,
body.motion-ready .terminal-page:not(.has-entered) .terminal-query,
body.motion-ready .signal-page:not(.has-entered) .signal-hero-copy .thesis-kicker,
body.motion-ready .signal-page:not(.has-entered) .signal-hero-copy h2,
body.motion-ready .signal-page:not(.has-entered) .signal-hero-diagram,
body.motion-ready .signal-page:not(.has-entered) .manifesto-lede,
body.motion-ready .signal-page:not(.has-entered) .manifesto-actions,
body.motion-ready .signal-page:not(.has-entered) .mission-evidence,
body.motion-ready .home-thesis-detail:not(.has-entered) .detail-intro .thesis-kicker,
body.motion-ready .home-thesis-detail:not(.has-entered) .detail-intro h2,
body.motion-ready .home-thesis-detail:not(.has-entered) .detail-card,
body.motion-ready .home-thesis-detail:not(.has-entered) .model-signal-panel,
body.motion-ready .home-projects:not(.has-entered) .projects-intro .thesis-kicker,
body.motion-ready .home-projects:not(.has-entered) .project-feature {
  opacity: 0;
}

body.motion-ready .terminal-page.has-entered .terminal-chrome {
  animation: terminalChromeIn 420ms cubic-bezier(.2, .8, .2, 1) both;
}

body.motion-ready .terminal-page.has-entered .terminal-query {
  animation: terminalQueryIn 460ms cubic-bezier(.2, .8, .2, 1) 180ms both;
}

body.motion-ready .signal-page.has-entered .signal-hero-copy .thesis-kicker {
  animation: terminalTextIn 420ms cubic-bezier(.2, .8, .2, 1) 180ms both;
}

body.motion-ready .signal-page.has-entered .signal-hero-copy h2 {
  animation: terminalHeadlineIn 680ms cubic-bezier(.16, .84, .24, 1) 260ms both;
}

body.motion-ready .signal-page.has-entered .manifesto-lede {
  animation: terminalTextIn 420ms cubic-bezier(.2, .8, .2, 1) 340ms both;
}

body.motion-ready .signal-page.has-entered .manifesto-actions {
  animation: detailCardIn 420ms cubic-bezier(.18, .78, .22, 1) 420ms both;
}

body.motion-ready .signal-page.has-entered .mission-evidence {
  animation: signalDiagramIn 620ms cubic-bezier(.16, .84, .24, 1) 360ms both;
}

body.motion-ready .signal-page.has-entered .signal-hero-diagram {
  animation: signalDiagramIn 780ms cubic-bezier(.16, .84, .24, 1) 360ms both;
}

body.motion-ready .home-thesis-detail.has-entered .detail-intro .thesis-kicker {
  animation: terminalTextIn 420ms cubic-bezier(.2, .8, .2, 1) 120ms both;
}

body.motion-ready .home-thesis-detail.has-entered .detail-intro h2 {
  animation: detailHeadlineIn 560ms cubic-bezier(.18, .78, .22, 1) 190ms both;
}

body.motion-ready .home-thesis-detail.has-entered .detail-card {
  animation: detailCardIn 520ms cubic-bezier(.18, .78, .22, 1) both;
  animation-delay: var(--card-delay, 260ms);
}

body.motion-ready .home-thesis-detail.has-entered .model-signal-panel {
  animation: signalDiagramIn 680ms cubic-bezier(.16, .84, .24, 1) 320ms both;
}

body.motion-ready .home-projects.has-entered .projects-intro .thesis-kicker {
  animation: terminalTextIn 420ms cubic-bezier(.2, .8, .2, 1) 120ms both;
}

body.motion-ready .home-projects.has-entered .project-feature {
  animation: detailCardIn 620ms cubic-bezier(.18, .78, .22, 1) both;
  animation-delay: var(--project-delay, 320ms);
}

.detail-card:nth-child(1) { --card-delay: 260ms; }
.detail-card:nth-child(2) { --card-delay: 330ms; }
.detail-card:nth-child(3) { --card-delay: 400ms; }
.detail-card:nth-child(4) { --card-delay: 470ms; }

.project-feature:nth-child(1) { --project-delay: 320ms; }
.project-feature:nth-child(2) { --project-delay: 430ms; }

.signal-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(500px, .92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  width: min(1180px, 100%);
  min-height: calc(100dvh - 108px);
  margin: 0 auto;
  padding-top: clamp(18px, 3vh, 36px);
  padding-bottom: clamp(18px, 3vh, 34px);
}

.signal-hero-copy {
  align-self: center;
  max-width: 560px;
  padding-bottom: 0;
  transform: translateY(0);
}

.signal-page .thesis-hero-copy h2,
.terminal-content-page .thesis-hero-copy h1 {
  max-width: 10.8ch;
  margin: 0;
  font-size: clamp(54px, 6.35vw, 92px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
  text-transform: uppercase;
}

.thesis-diagram.signal-hero-diagram {
  align-self: center;
  width: min(570px, 100%);
  min-height: 388px;
  padding-top: 242px;
}

.signal-hero-diagram .thesis-arc,
.signal-hero-diagram.thesis-diagram .thesis-arc {
  height: 246px;
}

.thesis-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(430px, .9fr) minmax(470px, 1.1fr);
  grid-template-rows: minmax(360px, 1fr) auto;
  gap: clamp(14px, 1.55vw, 20px);
  width: min(1258px, 100%);
  min-height: calc(100dvh - 92px);
  margin: 0 auto;
}

.thesis-hero-copy {
  align-self: end;
  max-width: 560px;
  padding-bottom: 8px;
}

.thesis-kicker {
  display: block;
  color: rgba(242, 242, 242, .72);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.thesis-kicker {
  margin: 0 0 18px;
}

.thesis-hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(60px, 7.15vw, 104px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .82;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(242, 242, 242, .34),
    0 0 22px rgba(242, 242, 242, .18);
}

.thesis-hero-copy h2::selection,
.thesis-card::selection {
  color: #080909;
  background: #fff;
}

.thesis-diagram {
  position: relative;
  align-self: end;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  width: min(560px, 100%);
  min-height: 326px;
  padding: 206px 20px 0;
  border-bottom: 2px solid rgba(242, 242, 242, .78);
}

.thesis-diagram span {
  position: relative;
  z-index: 4;
  padding-bottom: 12px;
  color: rgba(242, 242, 242, .9);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(242, 242, 242, .5);
}

.thesis-arc {
  position: absolute;
  z-index: 3;
  left: 6%;
  right: 6%;
  bottom: -1px;
  height: 226px;
  border: 2px solid rgba(242, 242, 242, .72);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  box-shadow:
    0 0 18px rgba(242, 242, 242, .12),
    inset 0 0 24px rgba(242, 242, 242, .05);
}

.thesis-arc::before,
.thesis-arc::after {
  content: "";
  position: absolute;
  inset: 14% 12% auto;
  height: 62%;
  border-top: 1px solid rgba(242, 242, 242, .34);
  border-radius: 50%;
}

.thesis-arc::after {
  inset: 0;
  border-top: 0;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(242, 242, 242, .32) 50%, transparent 50.2%),
    linear-gradient(33deg, transparent 49.8%, rgba(242, 242, 242, .3) 50%, transparent 50.2%),
    linear-gradient(-33deg, transparent 49.8%, rgba(242, 242, 242, .3) 50%, transparent 50.2%),
    linear-gradient(18deg, transparent 49.8%, rgba(242, 242, 242, .2) 50%, transparent 50.2%),
    linear-gradient(-18deg, transparent 49.8%, rgba(242, 242, 242, .2) 50%, transparent 50.2%);
  opacity: .82;
  clip-path: inset(0 0 0 0 round 999px 999px 0 0);
}

.signal-network {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.signal-rain {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 24%;
  width: 210px;
  height: 164px;
  overflow: hidden;
  opacity: .44;
  filter: drop-shadow(0 0 10px rgba(242, 242, 242, .28));
}

.signal-rain span {
  position: absolute;
  top: -60px;
  width: 11px;
  height: 178px;
  background:
    repeating-linear-gradient(180deg, rgba(242, 242, 242, .86) 0 5px, transparent 5px 10px);
  animation: signalRain 2600ms linear infinite;
}

.signal-rain span:nth-child(1) { left: 12px; animation-delay: -300ms; }
.signal-rain span:nth-child(2) { left: 42px; animation-delay: -900ms; }
.signal-rain span:nth-child(3) { left: 76px; animation-delay: -1700ms; }
.signal-rain span:nth-child(4) { left: 112px; animation-delay: -500ms; }
.signal-rain span:nth-child(5) { left: 150px; animation-delay: -1300ms; }

.thesis-diagram::before,
.thesis-diagram::after {
  content: "";
  position: absolute;
  z-index: 4;
  bottom: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, .86);
}

.thesis-diagram::before {
  left: 4.8%;
}

.thesis-diagram::after {
  right: 4.8%;
}

.thesis-flow {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.thesis-card {
  position: relative;
  color: #f2f2f2;
}

.thesis-card {
  min-height: 126px;
  padding: 14px 15px 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(242, 242, 242, .14), transparent 24%),
    linear-gradient(180deg, rgba(242, 242, 242, .16), rgba(242, 242, 242, .06));
  border: 1px solid rgba(242, 242, 242, .34);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .045),
    0 0 22px rgba(255, 255, 255, .055);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.thesis-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(255, 255, 255, .035) 2px 4px),
    linear-gradient(135deg, transparent calc(100% - 18px), rgba(242, 242, 242, .32) calc(100% - 17px), transparent calc(100% - 16px));
  opacity: .62;
}

.thesis-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(15px, 1.28vw, 19px);
  font-weight: 860;
  letter-spacing: .01em;
  line-height: .94;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(242, 242, 242, .28);
}

.thesis-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(242, 242, 242, .8);
  font-size: clamp(9px, .78vw, 11px);
  font-weight: 640;
  line-height: 1.24;
}

.detail-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(22px, 3vw, 34px);
  width: min(1180px, 100%);
  min-height: calc(100dvh - 92px);
  margin: 0 auto;
  padding: clamp(8px, 1.2vw, 16px) 0;
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(250px, .58fr) minmax(420px, 1fr);
  align-items: end;
  gap: clamp(18px, 4vw, 72px);
  padding: 0 0 clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid rgba(242, 242, 242, .2);
}

.detail-intro .thesis-kicker {
  margin: 0;
}

.detail-intro h1,
.detail-intro h2 {
  max-width: 23ch;
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3.1vw, 46px);
  font-weight: 880;
  letter-spacing: 0;
  line-height: .94;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(242, 242, 242, .26),
    0 0 22px rgba(242, 242, 242, .12);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(150px, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
  min-height: min(462px, calc(100dvh - 214px));
}

.detail-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  min-height: 0;
  padding: clamp(19px, 2.05vw, 28px);
}

.detail-card-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin: 0 0 clamp(16px, 2vw, 24px);
  color: rgba(242, 242, 242, .56);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .18em;
  line-height: 1;
}

.detail-card-index::after {
  content: "";
  width: 46px;
  height: 1px;
  margin: 5px 0 0 12px;
  background: rgba(242, 242, 242, .38);
}

.detail-card h2,
.detail-card h3 {
  margin-bottom: 12px;
  font-size: clamp(19px, 1.75vw, 28px);
  line-height: .9;
}

.detail-card p {
  max-width: 58ch;
  font-size: clamp(11px, .92vw, 14px);
  line-height: 1.42;
}

.mission-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, .94fr) minmax(460px, .86fr);
  align-items: center;
  gap: clamp(24px, 3.2vw, 48px);
  width: min(1088px, 100%);
  min-width: 0;
  min-height: calc(100dvh - 108px);
  margin: 0 auto;
  padding-top: clamp(18px, 3vh, 36px);
  padding-bottom: clamp(18px, 3vh, 34px);
}

.mission-brief {
  align-self: center;
  max-width: 640px;
}

.mission-brief .manifesto-actions {
  margin-top: clamp(18px, 2vw, 26px);
}

.manifesto-lede {
  max-width: 42ch;
  margin: clamp(20px, 2.6vw, 34px) 0 0;
  color: rgba(242, 242, 242, .86);
  font-size: clamp(14px, 1.08vw, 18px);
  font-weight: 720;
  letter-spacing: .015em;
  line-height: 1.5;
}

.mission-evidence {
  align-self: center;
  justify-self: start;
  width: min(520px, 100%);
  min-width: 0;
  max-width: 520px;
  margin: 0;
}

.dark-signal-title .title-line {
  display: flex;
  align-items: baseline;
  gap: .38em;
  white-space: nowrap;
}

.manifesto-question {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  color: rgba(242, 242, 242, .78);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.manifesto-question::after {
  content: "";
  width: 64px;
  height: 1px;
  background: rgba(242, 242, 242, .34);
}

.manifesto-point-cards {
  grid-template-columns: 1fr;
  gap: clamp(10px, 1.15vw, 14px);
}

.manifesto-point-cards li {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(242, 242, 242, .16), transparent 28%),
    linear-gradient(180deg, rgba(242, 242, 242, .13), rgba(242, 242, 242, .045));
  border: 1px solid rgba(242, 242, 242, .26);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .035),
    0 18px 40px rgba(0, 0, 0, .22);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.manifesto-point-cards li::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .035) 3px 4px),
    linear-gradient(135deg, transparent calc(100% - 18px), rgba(242, 242, 242, .28) calc(100% - 17px), transparent calc(100% - 16px));
  opacity: .52;
}

.manifesto-point-cards li::before {
  top: clamp(18px, 1.8vw, 24px);
  left: clamp(18px, 1.8vw, 24px);
  content: counter(manifesto);
  color: rgba(242, 242, 242, .34);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .86;
}

.manifesto-toggle {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.manifesto-toggle summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 1.4vw, 20px);
  min-height: clamp(66px, 7vw, 86px);
  padding: clamp(16px, 1.45vw, 21px) clamp(16px, 1.6vw, 24px) clamp(16px, 1.45vw, 21px) clamp(74px, 6.2vw, 92px);
  cursor: pointer;
  list-style: none;
}

.manifesto-toggle summary::-webkit-details-marker {
  display: none;
}

.manifesto-toggle summary::after,
.mission-footer-toggle summary::after {
  content: "read";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 26px;
  padding: 0 10px;
  color: rgba(242, 242, 242, .72);
  border: 1px solid rgba(242, 242, 242, .28);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.manifesto-toggle[open] summary::after,
.mission-footer-toggle[open] summary::after {
  content: "hide";
}

.manifesto-toggle[open] summary {
  padding-bottom: clamp(12px, 1.1vw, 16px);
}

.manifesto-point-cards li strong {
  min-width: 0;
  padding-top: 0;
  font-size: clamp(13px, .98vw, 16px);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.manifesto-toggle-body {
  min-width: 0;
  margin: 0;
  padding: 0 clamp(16px, 1.6vw, 24px) clamp(17px, 1.5vw, 22px) clamp(74px, 6.2vw, 92px);
  color: rgba(242, 242, 242, .68);
  font-size: clamp(10px, .82vw, 12px);
  line-height: 1.38;
  overflow-wrap: break-word;
  animation: manifestoReveal 210ms ease both;
}

.mission-footer-strip {
  margin-top: clamp(4px, .6vw, 8px);
  padding: clamp(14px, 1.4vw, 18px) clamp(16px, 1.8vw, 24px);
  color: rgba(242, 242, 242, .72);
  background: rgba(242, 242, 242, .055);
  border: 1px solid rgba(242, 242, 242, .16);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, .025);
  line-height: 1.48;
}

.mission-footer-toggle {
  padding: 0;
}

.mission-footer-toggle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 clamp(14px, 1.5vw, 20px);
  color: rgba(242, 242, 242, .82);
  cursor: pointer;
  list-style: none;
  font-size: clamp(10px, .82vw, 12px);
  font-weight: 860;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mission-footer-toggle summary::-webkit-details-marker {
  display: none;
}

.mission-footer-toggle p {
  margin: 0;
  padding: 0 clamp(14px, 1.5vw, 20px) clamp(14px, 1.4vw, 18px);
  color: inherit;
  animation: manifestoReveal 210ms ease both;
}

@keyframes manifestoReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

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

.signal-page .signal-hero-shell,
.terminal-content-page[data-terminal-page="mission"] .signal-hero-shell {
  grid-template-columns: minmax(500px, 1.05fr) minmax(420px, .95fr);
  align-items: center;
}

.signal-page .signal-hero-copy,
.terminal-content-page[data-terminal-page="mission"] .signal-hero-copy {
  max-width: 700px;
}

.signal-page .thesis-hero-copy h2,
.terminal-content-page[data-terminal-page="mission"] .thesis-hero-copy h1 {
  max-width: 13ch;
  font-size: clamp(44px, 5.45vw, 80px);
}

.signal-page .terminal-screen--signal,
.terminal-content-page[data-terminal-page="mission"] .terminal-screen--signal {
  overflow: auto;
}

.manifesto-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(9px, 1.25vw, 14px);
  min-width: 0;
  max-width: 68ch;
  margin-top: clamp(18px, 2.2vw, 28px);
  color: rgba(242, 242, 242, .76);
  font-size: clamp(10px, .86vw, 13px);
  font-weight: 610;
  letter-spacing: .02em;
  line-height: 1.45;
}

.manifesto-copy p {
  margin: 0;
}

.manifesto-points {
  counter-reset: manifesto;
  display: grid;
  gap: clamp(8px, 1vw, 12px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.manifesto-points li {
  position: relative;
  counter-increment: manifesto;
  display: grid;
  gap: 4px;
  padding-left: 2.2em;
}

.manifesto-points li::before {
  content: counter(manifesto) ".";
  position: absolute;
  left: 0;
  top: .1em;
  color: rgba(242, 242, 242, .5);
  font-size: clamp(10px, .84vw, 12px);
  font-weight: 860;
  letter-spacing: .08em;
}

.manifesto-point-cards li::before {
  content: counter(manifesto);
  top: clamp(18px, 1.8vw, 24px);
  left: clamp(18px, 1.8vw, 24px);
  color: rgba(242, 242, 242, .34);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .86;
}

.manifesto-points strong {
  color: #fff;
  font-size: clamp(11px, .92vw, 14px);
  font-weight: 860;
  letter-spacing: .03em;
  line-height: 1.25;
}

.manifesto-points span {
  display: block;
  color: rgba(242, 242, 242, .68);
}

.manifesto-actions,
.node-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.manifesto-actions {
  margin-top: 4px;
}

.node-links {
  margin-top: clamp(18px, 2vw, 28px);
}

.node-links span {
  color: rgba(242, 242, 242, .72);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.manifesto-actions a,
.node-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid rgba(242, 242, 242, .32);
  text-decoration: none;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.manifesto-actions a:hover,
.manifesto-actions a:focus-visible,
.node-links a:hover,
.node-links a:focus-visible {
  background: rgba(242, 242, 242, .12);
  border-color: rgba(242, 242, 242, .64);
  outline: none;
  transform: translateY(-1px);
}

.model-card {
  width: min(940px, 100%);
  min-height: min(378px, calc(100dvh - 260px));
  justify-self: start;
  align-content: start;
  grid-template-rows: auto auto auto;
}

.model-card p {
  max-width: 78ch;
  font-size: clamp(13px, 1.04vw, 17px);
  line-height: 1.56;
}

.model-experience {
  display: grid;
  grid-template-columns: minmax(410px, .9fr) minmax(470px, 1.1fr);
  align-items: center;
  gap: clamp(22px, 3.6vw, 54px);
  min-height: min(520px, calc(100dvh - 214px));
}

.model-signal-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 430px;
  padding: clamp(18px, 2vw, 26px);
  overflow: hidden;
  color: #f2f2f2;
  background:
    radial-gradient(circle at 50% 45%, rgba(242, 242, 242, .1), transparent 34%),
    linear-gradient(180deg, rgba(242, 242, 242, .095), rgba(242, 242, 242, .035));
  border: 1px solid rgba(242, 242, 242, .24);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 22px 52px rgba(0, 0, 0, .28);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.model-signal-panel .thesis-kicker {
  margin: 0;
}

.model-signal-diagram {
  align-self: end;
  width: 100%;
  min-height: 340px;
  padding: 214px 16px 0;
}

.model-signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .56;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(242, 242, 242, .14) 50%, transparent 50.2%),
    radial-gradient(circle, rgba(242, 242, 242, .22) 0 1px, transparent 1.6px) 8px 10px / 52px 44px;
}

.terminal-screen--projects {
  min-height: calc(100dvh - 64px);
  padding: clamp(22px, 3.1vw, 44px);
  overflow: hidden;
}

.project-query {
  right: clamp(22px, 3.1vw, 44px);
}

.project-view-more {
  justify-content: center;
  width: auto;
  min-width: 148px;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-view-more::after {
  content: "";
  width: 22px;
  height: 1px;
  margin-left: 10px;
  background: currentColor;
  box-shadow: 0 0 10px rgba(255, 255, 255, .52);
}

.project-view-more:hover,
.project-view-more:focus-visible {
  border-color: rgba(255, 255, 255, .72);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, .12),
    0 0 22px rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}

.project-view-more:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.projects-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(10px, 1.3vw, 16px);
  width: min(1220px, 100%);
  min-height: calc(100dvh - 132px);
  margin: 0 auto;
}

.projects-intro {
  display: flex;
  align-items: center;
  min-height: 24px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(242, 242, 242, .18);
}

.projects-intro .thesis-kicker {
  margin: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  min-height: min(520px, calc(100dvh - 244px));
}

.project-feature {
  position: relative;
  display: grid;
  grid-template-rows: minmax(210px, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  color: #f2f2f2;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, .12), transparent 28%),
    linear-gradient(180deg, rgba(242, 242, 242, .12), rgba(242, 242, 242, .045));
  border: 1px solid rgba(242, 242, 242, .26);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .035),
    0 0 28px rgba(255, 255, 255, .055);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.project-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 22%, rgba(255, 255, 255, .16) 22% 22.2%, transparent 22.4%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .026) 3px 5px);
  opacity: .58;
  mix-blend-mode: screen;
}

.project-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, .22) 44%, transparent 56% 100%);
  transform: translateX(-72%);
  transition: opacity 180ms ease, transform 620ms cubic-bezier(.18, .78, .22, 1);
}

.project-feature:hover::after,
.project-feature:focus-within::after {
  opacity: 1;
  transform: translateX(72%);
}

.project-media {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 0;
  overflow: hidden;
  background: #020202;
  border-bottom: 1px solid rgba(242, 242, 242, .16);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: grayscale(.08) contrast(1.08) brightness(.86);
  transform: scale(1.01);
  transition: filter 260ms ease, transform 520ms cubic-bezier(.18, .78, .22, 1);
}

.project-feature:hover .project-media img,
.project-feature:focus-within .project-media img {
  filter: grayscale(0) contrast(1.04) brightness(1);
  transform: scale(1.045);
}

.project-copy {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.1vw, 28px);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  color: rgba(242, 242, 242, .74);
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 9px;
  font-weight: 820;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
}

.project-copy h1,
.project-copy h2,
.project-copy h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .86;
  text-transform: uppercase;
  text-shadow:
    0 0 9px rgba(242, 242, 242, .28),
    0 0 24px rgba(242, 242, 242, .12);
}

.project-tagline {
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 820;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.project-copy p:not(.project-tagline) {
  max-width: 62ch;
  margin: 0;
  color: rgba(242, 242, 242, .68);
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 620;
  line-height: 1.43;
}

.project-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin-top: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .48);
  transition: border-color 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.project-link::after {
  content: "";
  width: 20px;
  height: 1px;
  margin-left: 10px;
  background: currentColor;
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
}

.project-link:hover,
.project-link:focus-visible {
  border-color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, .44);
  transform: translateX(2px);
}

.project-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.terminal-content-page {
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: #f2f2f2;
  background:
    radial-gradient(circle at 6% 88%, rgba(214, 155, 24, .12), transparent 30vw),
    radial-gradient(circle at 94% 20%, rgba(47, 134, 200, .1), transparent 30vw),
    radial-gradient(circle at 92% 86%, rgba(213, 74, 61, .1), transparent 30vw),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .035) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(255, 255, 255, .03) 80px, transparent 81px),
    #050505;
  font-family: "SFMono-Regular", "Roboto Mono", "Menlo", "Consolas", monospace;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.terminal-page-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 42px) clamp(20px, 3.5vw, 52px) 0;
}

.terminal-page-brand,
.terminal-page-nav a,
.terminal-page-nav button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, transform 180ms ease;
}

.terminal-page-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
}

.terminal-page-nav a:hover,
.terminal-page-nav a:focus-visible,
.terminal-page-nav button:hover,
.terminal-page-nav button:focus-visible {
  border-bottom-color: currentColor;
  transform: translateY(-1px);
  outline: none;
}

.terminal-section-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 52px) clamp(10px, 2vw, 28px) clamp(34px, 5vw, 64px);
}

.terminal-content-window {
  min-height: calc(100dvh - clamp(128px, 13vw, 174px));
}

.terminal-content-window .terminal-screen {
  min-height: calc(100dvh - clamp(168px, 16vw, 216px));
}

.terminal-content-page .signal-hero-shell,
.terminal-content-page .detail-shell,
.terminal-content-page .projects-shell {
  min-height: calc(100dvh - clamp(230px, 23vw, 290px));
}

.terminal-content-page[data-theme="light"] {
  color: #15120e;
  background:
    radial-gradient(circle at 5% 89%, rgba(212, 154, 22, .18), transparent 28vw),
    radial-gradient(circle at 94% 22%, rgba(46, 121, 183, .105), transparent 30vw),
    radial-gradient(circle at 93% 83%, rgba(200, 66, 53, .115), transparent 30vw),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(21, 18, 14, .028) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(21, 18, 14, .024) 80px, transparent 81px),
    #fbf7ef;
}

.terminal-content-page[data-theme="light"] .terminal-page-brand,
.terminal-content-page[data-theme="light"] .terminal-page-nav a,
.terminal-content-page[data-theme="light"] .terminal-page-nav button {
  color: #15120e;
}

.terminal-content-page[data-theme="light"] .terminal-window {
  border-color: rgba(70, 61, 49, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(244, 238, 228, .14)),
    rgba(255, 252, 246, .42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .48),
    inset 0 0 82px rgba(85, 74, 59, .045);
}

.terminal-content-page[data-theme="light"] .terminal-chrome {
  color: rgba(21, 18, 14, .62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .18)),
    rgba(244, 238, 228, .62);
  border-bottom-color: rgba(21, 18, 14, .12);
}

.terminal-content-page[data-theme="light"] .terminal-tabs a {
  position: relative;
  padding-bottom: 12px;
  border-right-color: rgba(21, 18, 14, .14);
}

.terminal-content-page[data-theme="light"] .terminal-tabs a:hover,
.terminal-content-page[data-theme="light"] .terminal-tabs a:focus-visible {
  color: #15120e;
  background: rgba(21, 18, 14, .07);
}

.terminal-content-page[data-theme="light"] .terminal-tabs .is-active {
  color: #15120e;
  background: transparent;
  clip-path: none;
}

.terminal-content-page[data-theme="light"] .terminal-tabs .is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
}

.terminal-content-page[data-theme="light"] .terminal-screen {
  background: transparent;
}

.terminal-content-page[data-theme="light"] .terminal-screen::before {
  opacity: .58;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 53% 50%, transparent 0 70px, rgba(21, 18, 14, .09) 71px 72px, transparent 73px 142px, rgba(21, 18, 14, .07) 143px 144px, transparent 145px 214px, rgba(21, 18, 14, .055) 215px 216px, transparent 217px),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(21, 18, 14, .045) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(21, 18, 14, .04) 80px, transparent 81px),
    radial-gradient(circle, rgba(21, 18, 14, .22) 0 1px, transparent 1.7px) 28px 22px / 108px 92px;
}

.terminal-content-page[data-theme="light"] .terminal-query,
.terminal-content-page[data-theme="light"] .project-view-more {
  color: rgba(21, 18, 14, .62);
  background: rgba(255, 255, 255, .52);
  border-color: rgba(21, 18, 14, .16);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .62),
    0 12px 30px rgba(77, 66, 49, .08);
}

.terminal-content-page[data-theme="light"] .detail-intro,
.terminal-content-page[data-theme="light"] .projects-intro {
  border-bottom-color: rgba(21, 18, 14, .13);
}

.terminal-content-page[data-theme="light"] .thesis-kicker,
.terminal-content-page[data-theme="light"] .project-meta span,
.terminal-content-page[data-theme="light"] .thesis-card p,
.terminal-content-page[data-theme="light"] .project-copy p:not(.project-tagline) {
  color: rgba(21, 18, 14, .64);
}

.terminal-content-page[data-theme="light"] .dark-signal-title,
.terminal-content-page[data-theme="light"] .detail-intro h1,
.terminal-content-page[data-theme="light"] .detail-intro h2,
.terminal-content-page[data-theme="light"] .thesis-card h2,
.terminal-content-page[data-theme="light"] .thesis-card h3,
.terminal-content-page[data-theme="light"] .project-copy h1,
.terminal-content-page[data-theme="light"] .project-copy h2,
.terminal-content-page[data-theme="light"] .project-copy h3,
.terminal-content-page[data-theme="light"] .project-tagline {
  color: #15120e;
  text-shadow: 0 10px 24px rgba(43, 34, 23, .1), 0 1px 0 rgba(255, 255, 255, .78);
}

.terminal-content-page[data-theme="light"] .thesis-card,
.terminal-content-page[data-theme="light"] .project-feature {
  color: #15120e;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .64), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(232, 224, 211, .54));
  border-color: rgba(21, 18, 14, .18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .54),
    0 18px 42px rgba(58, 47, 33, .12);
}

.terminal-content-page[data-theme="light"] .detail-card-index {
  color: rgba(21, 18, 14, .64);
}

.terminal-content-page[data-theme="light"] .detail-card-index::after {
  background: rgba(21, 18, 14, .22);
}

.terminal-content-page[data-theme="light"] .project-meta span {
  background: rgba(255, 255, 255, .44);
  border-color: rgba(21, 18, 14, .14);
}

.terminal-content-page[data-theme="light"] .project-link {
  color: #15120e;
  border-color: rgba(21, 18, 14, .28);
}

/* ===========================================================================
   Access portal — a centred login dialog for signed-out visitors, and a
   persistent left rail holding the directory once they are through.
   =========================================================================== */

:root {
  --rail-w: 208px;
  --rail-h: 62px;                       /* narrow screens, where the rail docks to the bottom */
  /* width the rail takes away from the page — read by vw-sized layout below */
  --rail-offset: 0px;
}

body.portal-authed {
  --rail-offset: var(--rail-w);
}

/* --------------------------------------------------------- login dialog -- */

.portal-system {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  color: #fff;
  font-family: "SFMono-Regular", "Roboto Mono", "Menlo", "Consolas", monospace;
}

.portal-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.portal-modal {
  position: relative;
  width: min(408px, 100%);
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(255, 255, 255, .2);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .1), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(0deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 24px 24px,
    rgba(6, 6, 7, .97);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
  outline: none;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity 240ms ease, transform 320ms cubic-bezier(.18, .78, .22, 1);
}

body.portal-open {
  overflow: hidden;
}

body.portal-open .portal-system {
  pointer-events: auto;
}

body.portal-open .portal-scrim {
  opacity: 1;
}

body.portal-open .portal-modal {
  opacity: 1;
  transform: none;
}

.portal-modal-head {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.portal-kicker {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portal-modal h2 {
  margin: 0;
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.portal-auth {
  display: grid;
  gap: 15px;
}

.portal-auth.is-rejected {
  animation: portalReject 420ms cubic-bezier(.36, .07, .19, .97);
}

.portal-auth-note {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  line-height: 1.55;
}

.portal-field {
  display: grid;
  gap: 7px;
}

.portal-field span {
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.portal-field input {
  min-height: 46px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .045);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .14em;
  transition: border-color 180ms ease, background 180ms ease;
}

.portal-field input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .09);
}

.portal-auth-error {
  margin: 0;
  color: #ff9d8c;
  font-size: 11px;
  letter-spacing: .03em;
}

.portal-auth-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 6px;
}

.portal-cancel,
.portal-submit {
  min-height: 48px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 860;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease, color 180ms ease;
}

.portal-cancel {
  padding: 0 16px;
  color: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
}

.portal-cancel:hover,
.portal-cancel:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.portal-submit {
  color: #050505;
  border: 1px solid #fff;
  background: #fff;
}

.portal-submit:hover,
.portal-submit:focus-visible {
  opacity: .85;
}

body[data-theme="light"] .portal-system,
html[data-theme="light"] .portal-system {
  color: var(--light-ink);
}

body[data-theme="light"] .portal-scrim,
html[data-theme="light"] .portal-scrim {
  background: rgba(244, 238, 228, .66);
  backdrop-filter: blur(5px);
}

body[data-theme="light"] .portal-modal,
html[data-theme="light"] .portal-modal {
  color: var(--light-ink);
  border-color: rgba(21, 18, 14, .2);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, .84), transparent 36%),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(21, 18, 14, .035) 24px, transparent 25px),
    repeating-linear-gradient(180deg, transparent 0 23px, rgba(21, 18, 14, .03) 24px, transparent 25px),
    rgba(251, 247, 239, .98);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .64),
    0 38px 100px rgba(76, 62, 42, .22);
}

body[data-theme="light"] .portal-modal-head,
html[data-theme="light"] .portal-modal-head {
  border-bottom-color: rgba(21, 18, 14, .14);
}

body[data-theme="light"] .portal-kicker,
body[data-theme="light"] .portal-auth-note,
body[data-theme="light"] .portal-field span,
html[data-theme="light"] .portal-kicker,
html[data-theme="light"] .portal-auth-note,
html[data-theme="light"] .portal-field span {
  color: rgba(21, 18, 14, .6);
}

body[data-theme="light"] .portal-field input,
html[data-theme="light"] .portal-field input {
  color: var(--light-ink);
  border-color: rgba(21, 18, 14, .18);
  background: rgba(255, 255, 255, .58);
}

body[data-theme="light"] .portal-field input:focus,
html[data-theme="light"] .portal-field input:focus {
  border-color: rgba(21, 18, 14, .55);
  background: rgba(255, 255, 255, .82);
}

body[data-theme="light"] .portal-auth-error,
html[data-theme="light"] .portal-auth-error {
  color: #a53427;
}

body[data-theme="light"] .portal-cancel,
html[data-theme="light"] .portal-cancel {
  color: rgba(21, 18, 14, .68);
  border-color: rgba(21, 18, 14, .18);
}

body[data-theme="light"] .portal-cancel:hover,
body[data-theme="light"] .portal-cancel:focus-visible,
html[data-theme="light"] .portal-cancel:hover,
html[data-theme="light"] .portal-cancel:focus-visible {
  color: var(--light-ink);
  border-color: rgba(21, 18, 14, .54);
}

body[data-theme="light"] .portal-submit,
html[data-theme="light"] .portal-submit {
  color: var(--light-paper-2);
  border-color: var(--light-ink);
  background: var(--light-ink);
}

@keyframes portalReject {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* ------------------------------------------------------------- the rail -- */

.portal-rail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: var(--rail-w);
  height: 100dvh;
  padding: 18px 14px;
  overflow: auto;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(0deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 26px,
    rgba(6, 6, 7, .93);
  backdrop-filter: blur(18px);
  font-family: "SFMono-Regular", "Roboto Mono", "Menlo", "Consolas", monospace;
  animation: portalRailIn 420ms cubic-bezier(.18, .78, .22, 1) both;
}

@keyframes portalRailIn {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}

.portal-rail-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 8px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .26em;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.portal-rail-mark i {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .22);
}

.portal-rail-list {
  align-self: start;
  display: grid;
  gap: 2px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.portal-rail-list a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  color: rgba(255, 255, 255, .74);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.portal-rail-index {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .34);
  transition: color 160ms ease;
}

.portal-rail-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.portal-rail-out {
  font-size: 11px;
  color: rgba(255, 255, 255, .38);
}

.portal-rail-list a:hover,
.portal-rail-list a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-left-color: rgba(255, 255, 255, .45);
  outline: none;
}

.portal-rail-list a[aria-current="page"] {
  color: #050505;
  background: #fff;
  border-left-color: #fff;
}

.portal-rail-list a[aria-current="page"] .portal-rail-index {
  color: rgba(0, 0, 0, .46);
}

.portal-rail-foot {
  align-self: end;
  margin: 16px 0 0;
  padding: 12px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .42);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-rail-foot b {
  color: rgba(255, 255, 255, .78);
  font-weight: 800;
}

body[data-theme="light"] .portal-rail,
html[data-theme="light"] .portal-rail {
  color: var(--light-ink);
  border-right-color: rgba(21, 18, 14, .14);
  background:
    linear-gradient(0deg, rgba(21, 18, 14, .028) 1px, transparent 1px) 0 0 / 100% 26px,
    rgba(251, 247, 239, .92);
  box-shadow: 18px 0 54px rgba(74, 58, 37, .08);
}

body[data-theme="light"] .portal-rail-mark,
html[data-theme="light"] .portal-rail-mark {
  color: var(--light-ink);
  border-bottom-color: rgba(21, 18, 14, .14);
}

body[data-theme="light"] .portal-rail-mark i,
html[data-theme="light"] .portal-rail-mark i {
  background: rgba(21, 18, 14, .2);
}

body[data-theme="light"] .portal-rail-list a,
html[data-theme="light"] .portal-rail-list a {
  color: rgba(21, 18, 14, .68);
}

body[data-theme="light"] .portal-rail-index,
html[data-theme="light"] .portal-rail-index,
body[data-theme="light"] .portal-rail-out,
html[data-theme="light"] .portal-rail-out {
  color: rgba(21, 18, 14, .38);
}

body[data-theme="light"] .portal-rail-list a:hover,
body[data-theme="light"] .portal-rail-list a:focus-visible,
html[data-theme="light"] .portal-rail-list a:hover,
html[data-theme="light"] .portal-rail-list a:focus-visible {
  color: var(--light-ink);
  background: rgba(21, 18, 14, .055);
  border-left-color: rgba(21, 18, 14, .42);
}

body[data-theme="light"] .portal-rail-list a[aria-current="page"],
html[data-theme="light"] .portal-rail-list a[aria-current="page"] {
  color: var(--light-paper-2);
  background: var(--light-ink);
  border-left-color: var(--light-ink);
}

body[data-theme="light"] .portal-rail-list a[aria-current="page"] .portal-rail-index,
html[data-theme="light"] .portal-rail-list a[aria-current="page"] .portal-rail-index {
  color: rgba(255, 255, 255, .54);
}

body[data-theme="light"] .portal-rail-foot,
html[data-theme="light"] .portal-rail-foot {
  color: rgba(21, 18, 14, .46);
  border-top-color: rgba(21, 18, 14, .14);
}

body[data-theme="light"] .portal-rail-foot b,
html[data-theme="light"] .portal-rail-foot b {
  color: rgba(21, 18, 14, .78);
}

/* ----------------------------------------- room made for the rail, per page -- */

/* content pages: the rail pushes the layout across */
body.portal-authed .portal-page-topbar {
  padding-left: calc(var(--rail-w) + clamp(18px, 3vw, 34px));
}

body.portal-authed .portal-page-shell {
  padding-left: calc(var(--rail-w) + clamp(24px, 5vw, 72px));
}

/* home + city pages stay full-bleed; only their fixed furniture steps aside */
body.portal-authed .home-interface {
  padding-left: calc(var(--rail-w) + clamp(20px, 3vw, 48px));
}

body.portal-authed .home-story,
body.portal-authed .home-thesis-detail,
body.portal-authed .home-projects {
  padding-left: var(--rail-w);
}

body.portal-authed .scene-nav {
  padding-left: calc(var(--rail-w) + 22px);
}

body.portal-authed .weather-label {
  left: calc(var(--rail-w) + 22px);
}

body.portal-authed .control-dock {
  left: calc(50% + var(--rail-w) / 2);
  width: min(860px, calc(100vw - var(--rail-w) - 44px));
}

@media (prefers-reduced-motion: reduce) {
  .portal-rail { animation: none; }
}

/* narrow screens: the rail docks along the bottom as a scrolling strip */
@media (max-width: 900px) {
  .portal-rail {
    top: auto;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    height: auto;
    min-height: var(--rail-h);
    padding: 8px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, .16);
    animation-name: portalRailInBottom;
    scrollbar-width: none;
  }

  .portal-rail::-webkit-scrollbar { display: none; }

  .portal-rail-mark,
  .portal-rail-foot {
    display: none;
  }

  .portal-rail-list {
    display: flex;
    gap: 4px;
    margin: 0;
  }

  .portal-rail-list a {
    grid-template-columns: auto auto;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .portal-rail-index { display: none; }

  .portal-rail-list a:hover,
  .portal-rail-list a:focus-visible {
    border-bottom-color: rgba(255, 255, 255, .45);
  }

  .portal-rail-list a[aria-current="page"] {
    border-bottom-color: #fff;
  }

  /* nothing shifts sideways any more — it shifts up instead */
  body.portal-authed {
    --rail-offset: 0px;
  }

  body.portal-authed .portal-page-topbar,
  body.portal-authed .home-interface {
    padding-left: clamp(18px, 3vw, 34px);
  }

  body.portal-authed .portal-page-shell {
    padding-left: clamp(24px, 5vw, 72px);
    padding-bottom: calc(var(--rail-h) + 24px);
  }

  body.portal-authed .home-story,
  body.portal-authed .home-thesis-detail,
  body.portal-authed .home-projects {
    padding-left: 0;
  }

  body.portal-authed .scene-nav {
    padding-left: 22px;
  }

  body.portal-authed .weather-label {
    left: 22px;
    bottom: calc(var(--rail-h) + 14px);
  }

  body.portal-authed .intro-actions {
    bottom: calc(var(--rail-h) + 14px);
  }

  body.portal-authed .control-dock {
    left: 50%;
    width: min(860px, calc(100vw - 44px));
    bottom: calc(var(--rail-h) + 14px);
  }
}

@keyframes portalRailInBottom {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.portal-page {
  min-height: 100dvh;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, .1), transparent 34vw),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(0deg, rgba(255, 255, 255, .02) 1px, transparent 1px) 0 0 / 32px 32px,
    #030303;
  font-family: "SFMono-Regular", "Roboto Mono", "Menlo", "Consolas", monospace;
}

.portal-page-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  background: linear-gradient(180deg, rgba(3, 3, 3, .88), rgba(3, 3, 3, .36) 72%, transparent);
}

.portal-page-brand,
.portal-page-nav a,
.portal-page-nav button {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portal-page-brand,
.portal-page-nav a,
.portal-page-nav button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.portal-page-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 22px);
}

.portal-page-nav button {
  padding: 0;
  background: transparent;
}

.portal-page-nav a:hover,
.portal-page-nav a[aria-current="page"],
.portal-page-nav button:hover,
.portal-page-nav button[aria-expanded="true"] {
  text-decoration: underline;
  text-underline-offset: 8px;
}

.portal-page-shell {
  display: grid;
  min-height: calc(100dvh - 106px);
  place-items: center;
  padding: clamp(24px, 5vw, 72px);
}

.portal-page-panel {
  width: min(1040px, 100%);
  border: 1px solid rgba(255, 255, 255, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025)),
    rgba(8, 8, 8, .82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 28px 80px rgba(0, 0, 0, .42);
}

/* direct child only — the info page nests its own headers inside the panel */
.portal-page-panel > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 4vw, 54px);
  align-items: end;
  padding: clamp(22px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.portal-page-index {
  color: rgba(255, 255, 255, .58);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .18em;
}

.portal-page-panel h1 {
  margin: 0;
  font-size: clamp(58px, 12vw, 154px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .82;
  text-transform: uppercase;
}

.portal-page-body {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 68px);
  padding: clamp(22px, 4vw, 44px);
}

.portal-page-body p {
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(13px, 1.35vw, 18px);
  line-height: 1.55;
}

.portal-page-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-page-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .84);
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1.35;
}

.portal-page-list li::before {
  content: attr(data-index);
  color: rgba(255, 255, 255, .44);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
}

body.portal-page[data-theme="light"],
html[data-theme="light"] body.portal-page {
  color: var(--light-ink);
  background: var(--light-site-bg);
}

body.portal-page[data-theme="light"] .portal-page-topbar,
html[data-theme="light"] body.portal-page .portal-page-topbar {
  background: linear-gradient(180deg, rgba(251, 247, 239, .92), rgba(251, 247, 239, .68) 70%, transparent);
}

body.portal-page[data-theme="light"] .portal-page-brand,
body.portal-page[data-theme="light"] .portal-page-nav a,
body.portal-page[data-theme="light"] .portal-page-nav button,
html[data-theme="light"] body.portal-page .portal-page-brand,
html[data-theme="light"] body.portal-page .portal-page-nav a,
html[data-theme="light"] body.portal-page .portal-page-nav button {
  color: var(--light-ink);
}

body.portal-page[data-theme="light"] .portal-page-panel,
html[data-theme="light"] body.portal-page .portal-page-panel {
  border-color: rgba(21, 18, 14, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .58), rgba(244, 238, 228, .34)),
    rgba(251, 247, 239, .72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .5),
    0 26px 74px rgba(74, 58, 37, .14);
}

body.portal-page[data-theme="light"] .portal-page-panel > header,
html[data-theme="light"] body.portal-page .portal-page-panel > header {
  border-bottom-color: rgba(21, 18, 14, .14);
}

body.portal-page[data-theme="light"] .portal-page-index,
html[data-theme="light"] body.portal-page .portal-page-index {
  color: rgba(21, 18, 14, .55);
}

body.portal-page[data-theme="light"] .portal-page-body p,
html[data-theme="light"] body.portal-page .portal-page-body p {
  color: rgba(21, 18, 14, .68);
}

body.portal-page[data-theme="light"] .portal-page-list li,
html[data-theme="light"] body.portal-page .portal-page-list li {
  color: rgba(21, 18, 14, .78);
  border-bottom-color: rgba(21, 18, 14, .13);
}

body.portal-page[data-theme="light"] .portal-page-list li::before,
html[data-theme="light"] body.portal-page .portal-page-list li::before {
  color: rgba(21, 18, 14, .44);
}

.detail-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 44px;
  height: 18px;
  opacity: .32;
  background:
    linear-gradient(90deg, rgba(242, 242, 242, .9) 0 4px, transparent 4px 8px) 0 0 / 8px 2px repeat-x,
    linear-gradient(90deg, rgba(242, 242, 242, .65) 0 4px, transparent 4px 8px) 0 8px / 8px 2px repeat-x,
    linear-gradient(90deg, rgba(242, 242, 242, .4) 0 4px, transparent 4px 8px) 0 16px / 8px 2px repeat-x;
}

@keyframes signalRain {
  from { transform: translateY(-20px); opacity: .1; }
  18% { opacity: .72; }
  to { transform: translateY(210px); opacity: 0; }
}

@keyframes terminalCaret {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes terminalPageSweep {
  0% {
    opacity: 0;
    transform: translate3d(0, -105%, 0);
  }
  18% {
    opacity: .68;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, 105%, 0);
  }
}

@keyframes terminalSnapBounce {
  0% {
    transform: translateY(18px) scale(.992);
  }
  52% {
    transform: translateY(-8px) scale(1.004);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes terminalChromeIn {
  0% {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes terminalQueryIn {
  0% {
    opacity: 0;
    transform: translate3d(22px, -8px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes terminalTextIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes terminalHeadlineIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(.985);
    filter: blur(5px);
  }
  62% {
    opacity: 1;
    transform: translate3d(0, -3px, 0) scale(1.006);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes signalDiagramIn {
  0% {
    opacity: 0;
    transform: translate3d(38px, 18px, 0) scale(.96);
    filter: blur(5px);
  }
  72% {
    opacity: 1;
    transform: translate3d(-3px, 0, 0) scale(1.006);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes detailHeadlineIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes detailCardIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(.982);
    filter: blur(4px);
  }
  70% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.004);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.atlas-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% var(--atlas-radial-y), rgba(0, 0, 0, var(--atlas-radial-alpha)), transparent 36vw),
    var(--paper);
}

.atlas-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  color: var(--ink);
  mix-blend-mode: multiply;
}

.atlas-word-link {
  position: relative;
  display: inline-grid;
  min-width: 190px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.atlas-word-link__abbr,
.atlas-word-link__full {
  grid-area: 1 / 1;
  transition: opacity 380ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.atlas-word-link__abbr {
  opacity: var(--atlas-inverse);
  transform: translateY(var(--atlas-abbr-y));
}

.atlas-word-link__full {
  opacity: var(--atlas-full-opacity);
  transform: translateY(var(--atlas-full-y));
}

.atlas-city-links {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.atlas-city-links a {
  text-decoration: none;
  opacity: .62;
  transition: opacity 180ms ease;
}

.atlas-city-links a:hover {
  opacity: 1;
}

.atlas-scroll {
  height: 220vh;
  min-height: 1120px;
}

.atlas-stage {
  position: sticky;
  top: 0;
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(22px, 4vw, 54px);
  place-items: center;
}

.atlas-kicker,
.atlas-instruction,
.atlas-full-name {
  position: absolute;
  z-index: 3;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--quiet);
}

.atlas-kicker {
  top: clamp(72px, 11vh, 110px);
  left: clamp(22px, 5vw, 70px);
  opacity: var(--atlas-kicker-opacity);
}

.atlas-instruction {
  right: clamp(22px, 5vw, 70px);
  bottom: clamp(24px, 5vw, 62px);
  opacity: var(--atlas-instruction-opacity);
}

.atlas-full-name {
  top: calc(50% + clamp(60px, 9vw, 112px));
  opacity: var(--atlas-full-opacity);
  transform: translateY(var(--atlas-full-name-y));
  color: var(--ink);
}

.atlas-abg {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: 0;
  transform:
    translate(-50%, -50%)
    scale(var(--atlas-abg-scale))
    translateY(var(--atlas-abg-y));
  transform-origin: center center;
  font-size: clamp(94px, 28vw, 430px);
  font-weight: 950;
  line-height: .73;
  letter-spacing: 0;
  color: #000;
  transition: transform 80ms linear;
}

.atlas-map {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  align-items: end;
  gap: clamp(12px, 2.2vw, 34px);
  width: min(1180px, 94vw);
  margin-top: 18vh;
  opacity: var(--atlas-map-opacity);
  transform: translateY(var(--atlas-map-y));
}

.atlas-city {
  --hover-color: #c7621a;
  position: relative;
  min-height: clamp(230px, 32vw, 390px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  isolation: isolate;
  color: #020202;
  text-decoration: none;
  outline-offset: 8px;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1), color 420ms ease;
}

.atlas-city::before {
  content: "";
  position: absolute;
  inset: 12% -3% 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--hover-color) 40%, transparent), transparent 58%);
  opacity: 0;
  filter: blur(20px);
  transform: translateY(28px) scale(.86);
  transition: opacity 400ms ease, transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.atlas-city:hover,
.atlas-city:focus-visible {
  color: var(--hover-color);
  transform: translateY(-18px);
}

.atlas-city:hover::before,
.atlas-city:focus-visible::before {
  opacity: .48;
  transform: translateY(6px) scale(1);
}

.atlas-city--sf { --hover-color: #c7592f; }
.atlas-city--providence { --hover-color: #58708f; }
.atlas-city--boston { --hover-color: #9a4860; }

.atlas-city svg {
  display: block;
  width: 100%;
  max-height: 360px;
  overflow: visible;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, .18));
  transform: perspective(700px) rotateX(0deg);
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1), filter 520ms ease;
}

.atlas-city:hover svg,
.atlas-city:focus-visible svg {
  transform: perspective(700px) rotateX(4deg) translateY(-6px);
  filter: drop-shadow(0 36px 28px rgba(0, 0, 0, .22));
}

.atlas-photo-cutout {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(210px, 28vw, 340px);
  overflow: hidden;
  background: #000;
  clip-path: polygon(0 18%, 7% 18%, 7% 10%, 22% 10%, 22% 4%, 46% 4%, 46% 11%, 63% 11%, 63% 0, 88% 0, 88% 15%, 100% 15%, 100% 100%, 0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .28),
    0 24px 28px rgba(0, 0, 0, .18);
}

.atlas-photo-cutout::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 46%, rgba(246, 244, 239, .78) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .32) 0 1px, transparent 1px 18px);
  opacity: .34;
  mix-blend-mode: screen;
}

.atlas-photo-cutout img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(1) contrast(1.55) brightness(.62);
  transform: scale(1.1);
  transition: filter 520ms ease, transform 700ms cubic-bezier(.2, .8, .2, 1);
}

.atlas-city--sf .atlas-photo-cutout img {
  object-position: 50% 40%;
}

.atlas-city--providence .atlas-photo-cutout img,
.atlas-city--boston .atlas-photo-cutout img {
  object-position: 50% 42%;
}

.atlas-city:hover .atlas-photo-cutout img,
.atlas-city:focus-visible .atlas-photo-cutout img {
  filter: grayscale(.26) contrast(1.18) brightness(.88) saturate(.92);
  transform: scale(1.18);
}

.atlas-city svg path,
.atlas-city svg g {
  fill: currentColor;
  stroke: currentColor;
  transition: fill 420ms ease, stroke 420ms ease, opacity 420ms ease;
}

.paper-water {
  opacity: .13;
}

.paper-hills {
  opacity: .18;
}

.paper-bridge,
.paper-dome,
.paper-steeple {
  opacity: .95;
}

.paper-building {
  opacity: .82;
}

.paper-bridge-line,
.paper-brick {
  opacity: .5;
}

.atlas-city__label {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  padding: 9px 12px;
  background: rgba(246, 244, 239, .82);
  border: 1px solid rgba(0, 0, 0, .18);
  color: #000;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 300ms ease, transform 380ms ease;
  white-space: nowrap;
}

.atlas-city:hover .atlas-city__label,
.atlas-city:focus-visible .atlas-city__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.atlas-footer-panel {
  min-height: 42vh;
  display: grid;
  place-items: center;
  padding: 60px 24px;
  border-top: 1px solid var(--line);
}

.atlas-footer-panel p {
  width: min(720px, 92vw);
  margin: 0;
  font-size: clamp(25px, 5vw, 70px);
  font-weight: 820;
  line-height: .96;
  text-align: center;
}

.experience-page {
  /* the push-through consumes 160vh of scroll, plus a little runway after it */
  --scene-scroll-length: 290vh;
  min-height: var(--scene-scroll-length);
  overflow-x: hidden;
  overflow-y: auto;
  background: #09090b;
  color: var(--city-text);
}

/* the sticky scene can only stick for as long as its own container lasts */
.experience-page #city-app {
  min-height: var(--scene-scroll-length);
}

.static-fallback {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 32px;
  background: #09090b;
  color: #fff;
  text-align: center;
}

.static-fallback h1 {
  margin: 0;
  font-size: clamp(42px, 11vw, 150px);
  line-height: .85;
  text-transform: uppercase;
}

.static-fallback p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
}

.scene-shell {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  background: var(--city-bg);
  isolation: isolate;
}

.scene-shell::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .07) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 69%, rgba(0, 0, 0, .14) 0 1px, transparent 1.6px);
  background-size: 180px 150px, 220px 190px;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

.scene-shell.is-leaving {
  filter: grayscale(1) contrast(1.2);
  transition: filter 420ms ease, opacity 420ms ease;
  opacity: .76;
}

.scene-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--city-text);
  text-shadow: 0 1px 22px rgba(0, 0, 0, .55);
}

.scene-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.array-mark {
  position: relative;
  display: inline-flex;
  width: 54px;
  justify-content: space-between;
  color: var(--city-accent);
}

.array-mark::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1px;
  background: currentColor;
  opacity: .5;
}

.array-mark span {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.city-switcher {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 5, 7, .22);
  backdrop-filter: blur(12px);
}

.city-switcher a,
.city-login,
.intro-button,
.weather-button,
.live-time-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: inherit;
  background: transparent;
  text-decoration: none;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.city-switcher a:hover,
.city-switcher a[aria-current="page"],
.city-login:hover,
.city-login[aria-expanded="true"],
.intro-button:hover,
.weather-button:hover,
.weather-button[aria-pressed="true"],
.live-time-toggle[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--city-accent) 70%, white);
  background: color-mix(in srgb, var(--city-accent) 22%, transparent);
}

.window-scene {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 46%, color-mix(in srgb, var(--scene-background-color) 36%, transparent), transparent 54%),
    color-mix(in srgb, var(--scene-background-color) 32%, #020203);
  transition: background 900ms ease;
  perspective: 1200px;
}

.photo-world {
  position: absolute;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  background: #080607;
}

.photo-world::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: overlay;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .10) 0 1px, transparent 1px 3px);
}

.scene-shell.is-acquired .photo-world::before {
  animation: scanlineNoise 1.7s steps(2, end) infinite;
}

.scene-photographic-stack {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  transform-origin: 0 0;
  backface-visibility: hidden;
  will-change: transform;
}

.scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  backface-visibility: hidden;
  user-select: none;
  pointer-events: none;
}

.scene-photo--base {
  z-index: 1;
  filter:
    brightness(var(--scene-final-brightness, 1))
    contrast(var(--photo-contrast, 1))
    saturate(var(--scene-saturation, 1));
  will-change: filter;
}

.scene-photo--glitch {
  z-index: 5;
  opacity: var(--glitch-opacity-active, .16);
  mix-blend-mode: screen;
  filter: saturate(1.18) brightness(1.06) contrast(1.08);
  transform: translate3d(0, 0, 0);
  clip-path: inset(0);
  will-change: opacity, transform, clip-path;
}

.scene-photo--glitch-full {
  opacity: calc(var(--glitch-opacity-active, .16) * .92);
}

.scene-photo--glitch-fragment {
  opacity: 0;
  z-index: 6;
  mix-blend-mode: screen;
  filter: saturate(1.65) brightness(1.12) contrast(1.12);
}

.glitch-fragment--edge-left,
.glitch-fragment--edge-right,
.glitch-fragment--edge-top,
.glitch-fragment--edge-bottom {
  opacity: .24;
  z-index: 6;
  mix-blend-mode: plus-lighter;
  filter: saturate(2.1) brightness(1.24) contrast(1.24);
}

.glitch-fragment--edge-left { --edge-glitch-opacity: .34; clip-path: inset(0 85% 0 0); animation-delay: -1.1s; }
.glitch-fragment--edge-right { --edge-glitch-opacity: .34; clip-path: inset(0 0 0 85%); animation-delay: -4.4s; opacity: .34; }
.glitch-fragment--edge-top { --edge-glitch-opacity: .26; clip-path: inset(0 0 84% 0); animation-delay: -7.2s; opacity: .26; }
.glitch-fragment--edge-bottom { --edge-glitch-opacity: .28; clip-path: inset(84% 0 0 0); animation-delay: -10.1s; opacity: .28; }

.glitch-fragment--minor-a { clip-path: inset(11% 0 83% 0); animation-delay: -1.4s; }
.glitch-fragment--minor-b { clip-path: inset(37% 0 57% 0); animation-delay: -4.8s; }
.glitch-fragment--minor-c { clip-path: inset(72% 0 21% 0); animation-delay: -8.1s; }
.glitch-fragment--mid-a { clip-path: inset(42% 0 51% 0); animation-delay: -1.9s; filter: saturate(2.2) brightness(1.22) contrast(1.26); mix-blend-mode: screen; }
.glitch-fragment--mid-b { clip-path: inset(50% 0 43% 0); animation-delay: -5.7s; filter: saturate(2.4) brightness(1.26) contrast(1.3); mix-blend-mode: plus-lighter; }
.glitch-fragment--mid-c { clip-path: inset(58% 0 35% 0); animation-delay: -9.3s; filter: saturate(2.1) brightness(1.18) contrast(1.22); mix-blend-mode: screen; }
.glitch-fragment--major-a { clip-path: inset(18% 0 68% 0); animation-delay: -2.7s; }
.glitch-fragment--major-b { clip-path: inset(54% 0 32% 0); animation-delay: -10.6s; }
.glitch-fragment--channel-r { clip-path: inset(24% 0 70% 0); filter: hue-rotate(0deg) saturate(2.5) brightness(1.24); mix-blend-mode: screen; animation-delay: -5.2s; }
.glitch-fragment--channel-g { clip-path: inset(48% 0 46% 0); filter: hue-rotate(105deg) saturate(2.7) brightness(1.18); mix-blend-mode: screen; animation-delay: -9.4s; }
.glitch-fragment--channel-b { clip-path: inset(64% 0 29% 0); filter: hue-rotate(205deg) saturate(3) brightness(1.16); mix-blend-mode: screen; animation-delay: -12.3s; }

.scene-shell.is-acquired .scene-photo--glitch-full {
  animation: windowGlitchBase 7.4s steps(1, end) infinite;
}

.scene-shell.is-acquired .glitch-fragment--edge-left,
.scene-shell.is-acquired .glitch-fragment--edge-right,
.scene-shell.is-acquired .glitch-fragment--edge-top,
.scene-shell.is-acquired .glitch-fragment--edge-bottom {
  animation-name: windowGlitchEdge;
  animation-duration: 4.8s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.scene-shell.is-acquired .glitch-fragment--edge-right {
  animation-duration: 6.4s;
}

.scene-shell.is-acquired .glitch-fragment--edge-top {
  animation-duration: 7.6s;
}

.scene-shell.is-acquired .glitch-fragment--edge-bottom {
  animation-duration: 5.7s;
}

.scene-shell.is-acquired .glitch-fragment--minor-a,
.scene-shell.is-acquired .glitch-fragment--minor-b,
.scene-shell.is-acquired .glitch-fragment--minor-c {
  animation-name: windowGlitchMinor;
  animation-duration: 5.9s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.scene-shell.is-acquired .glitch-fragment--minor-b {
  animation-duration: 8.3s;
}

.scene-shell.is-acquired .glitch-fragment--minor-c {
  animation-duration: 11.2s;
}

.scene-shell.is-acquired .glitch-fragment--mid-a,
.scene-shell.is-acquired .glitch-fragment--mid-b,
.scene-shell.is-acquired .glitch-fragment--mid-c {
  animation-name: windowGlitchMidpage;
  animation-duration: 4.9s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.scene-shell.is-acquired .glitch-fragment--mid-b {
  animation-duration: 7.2s;
}

.scene-shell.is-acquired .glitch-fragment--mid-c {
  animation-duration: 9.4s;
}

.scene-shell.is-acquired .glitch-fragment--major-a,
.scene-shell.is-acquired .glitch-fragment--major-b {
  animation-name: windowGlitchMajor;
  animation-duration: 13.7s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.scene-shell.is-acquired .glitch-fragment--major-b {
  animation-duration: 18.6s;
}

.scene-shell.is-acquired .glitch-fragment--channel-r,
.scene-shell.is-acquired .glitch-fragment--channel-g,
.scene-shell.is-acquired .glitch-fragment--channel-b {
  animation-name: windowGlitchChannel;
  animation-duration: 9.6s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.photo-depth,
.reference-photo,
.scene-lighting,
.photo-grade,
.photo-window-light,
.photo-glass,
.photo-vignette {
  position: absolute;
  inset: 0;
}

.reference-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* the push-through sets an explicit translate + scale from measured
     geometry, so the origin has to stay at the element's top-left */
  transform-origin: 0 0;
  backface-visibility: hidden;
  user-select: none;
  pointer-events: none;
}

.reference-photo--back {
  filter: blur(26px) saturate(1.22) brightness(.7);
  opacity: .62;
}

.reference-photo--main {
  z-index: 2;
  filter:
    brightness(var(--scene-final-brightness, 1))
    contrast(var(--photo-contrast, 1))
    saturate(var(--scene-saturation, 1));
  will-change: transform, opacity, filter;
}

.reference-photo--inner {
  z-index: 3;
  opacity: 0;
  filter:
    brightness(var(--photo-brightness, 1))
    contrast(var(--photo-contrast, 1))
    saturate(1.06);
  will-change: transform, opacity, filter;
}

.scene-lighting {
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, color-mix(in srgb, var(--scene-background-color) 42%, transparent), transparent 52vw),
    linear-gradient(90deg, color-mix(in srgb, var(--scene-background-color) 22%, transparent), transparent 18% 80%, color-mix(in srgb, var(--scene-background-color) 30%, transparent)),
    radial-gradient(ellipse at var(--photo-focus-x) var(--photo-focus-y), rgba(255, 255, 255, .10), transparent 42vw),
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(226, 234, 240, .025) 48%, rgba(255, 255, 255, .01));
  opacity: var(--scene-light-opacity, .32);
  mix-blend-mode: screen;
  transition: opacity 900ms ease, background 900ms ease;
}

.scene-lighting::before,
.scene-lighting::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene-lighting::before {
  background:
    radial-gradient(ellipse at 34% 58%, rgba(255, 188, 112, .36), transparent 36vw),
    linear-gradient(110deg, rgba(255, 174, 95, .18), transparent 44% 100%);
  opacity: var(--scene-warm-light, .12);
  mix-blend-mode: screen;
}

.scene-lighting::after {
  background:
    radial-gradient(ellipse at 50% 58%, transparent 0 26vw, rgba(0, 0, 0, .30) 76vw),
    linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 42%, rgba(0, 0, 0, .42));
  opacity: var(--scene-night-opacity, .36);
  mix-blend-mode: multiply;
}

.photo-grade {
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(255, 241, 174, var(--sun-halo-alpha)) 0 11vw, transparent 22vw),
    radial-gradient(circle at var(--photo-focus-x) var(--photo-focus-y), rgba(255, 255, 255, .24), transparent 26vw),
    linear-gradient(to bottom, var(--sky-top), var(--sky-mid) 48%, var(--sky-low));
  opacity: var(--photo-time-opacity, .22);
  mix-blend-mode: overlay;
  transition: opacity 900ms ease, background 900ms ease;
}

.photo-grade::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 204, 118, var(--photo-warmth-opacity, .18)), transparent 34vw),
    linear-gradient(180deg, rgba(0, 0, 0, var(--photo-night-opacity, 0)), rgba(0, 0, 0, var(--photo-night-low-opacity, 0)));
  mix-blend-mode: multiply;
}

.photo-window-light {
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--photo-focus-x) var(--photo-focus-y), rgba(255, 255, 255, .34), transparent 22vw),
    linear-gradient(115deg, transparent 0 36%, rgba(255, 255, 255, .16) 45%, transparent 55%);
  opacity: calc(.34 * var(--room-light-opacity, 1));
  mix-blend-mode: screen;
  transform: translateX(var(--light-pan));
  transition: transform 900ms ease;
}

.photo-title {
  position: absolute;
  left: 50%;
  top: var(--title-top);
  z-index: 8;
  width: min-content;
  min-width: min(96vw, 900px);
  transform: translate(-50%, -50%) scale(var(--title-scale, 1));
  color: color-mix(in srgb, var(--city-text) 86%, var(--city-accent));
  font-size: clamp(48px, 10vw, 168px);
  font-weight: 940;
  line-height: .82;
  letter-spacing: .035em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .18),
    0 20px 64px rgba(0, 0, 0, .55);
  opacity: calc(.34 * var(--title-opacity, 1));
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.photo-title.title-solid {
  z-index: 3;
  color: rgba(255, 255, 255, .72);
  opacity: calc(.08 * var(--title-opacity, 1));
  mix-blend-mode: normal;
  filter: blur(.2px);
}

.photo-glass {
  z-index: 36;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 34%, rgba(255, 255, 255, .14) 46%, transparent 58%),
    radial-gradient(circle at 24% 80%, rgba(255, 255, 255, .1), transparent 18vw);
  opacity: calc(.3 * var(--room-light-opacity, 1));
  mix-blend-mode: screen;
  transform: translateX(var(--light-pan));
  transition: transform 900ms ease;
}

.photo-vignette {
  z-index: 40;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--photo-focus-x) var(--photo-focus-y), transparent 0 28vw, rgba(0, 0, 0, .24) 72vw),
    linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 22% 78%, rgba(0, 0, 0, .18));
}

.photo-vignette::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, .06), rgba(5, 5, 8, .62));
  opacity: var(--text-veil-opacity);
  transition: opacity 220ms linear;
}

.location-metadata,
.environmental-readout {
  position: absolute;
  top: clamp(82px, 10vh, 118px);
  z-index: 66;
  color: rgba(246, 246, 240, .86);
  font-family: "SFMono-Regular", "Roboto Mono", "Menlo", "Consolas", monospace;
  font-size: clamp(9px, .72vw, 11px);
  font-weight: 760;
  letter-spacing: .14em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0, 0, 0, .72);
  pointer-events: none;
}

.location-metadata {
  left: clamp(18px, 3vw, 44px);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 13px 0 10px;
  border-left: 1px solid rgba(255, 255, 255, .48);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), transparent);
}

.location-metadata::before {
  content: "";
  width: 30px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
  opacity: .62;
}

.location-metadata-short {
  display: none;
}

.environmental-readout {
  right: clamp(18px, 3vw, 44px);
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 130px;
  padding: 0 10px 9px 0;
  border-right: 1px solid rgba(255, 255, 255, .46);
  border-bottom: 1px solid rgba(255, 255, 255, .20);
  background: linear-gradient(270deg, rgba(0, 0, 0, .28), transparent);
}

.environmental-readout [data-local-time] {
  color: rgba(255, 255, 255, .94);
  font-size: clamp(14px, 1.15vw, 18px);
  letter-spacing: .08em;
}

.environmental-readout [data-environment-summary] {
  color: rgba(255, 255, 255, .68);
  font-size: clamp(8px, .62vw, 10px);
}

.scene-acquisition {
  position: absolute;
  inset: 0;
  z-index: 68;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 16% 82%, rgba(255, 255, 255, .04)),
    #000;
  opacity: 0;
}

.scene-shell.is-acquiring .scene-acquisition {
  animation: sceneAcquisitionBlink 980ms steps(1, end) forwards;
}

.scene-shell.intro-active .photo-title {
  animation: exactPhotoTitleDrift 6800ms cubic-bezier(.16, .82, .2, 1) forwards;
}

.scene-shell.intro-done .photo-title {
  top: 42%;
  transform: translate(-50%, -50%) scale(.82);
}

.world,
.interior,
.weather-system,
.window-title,
.window-frame,
.window-glass {
  position: absolute;
  inset: 0;
}

.world {
  z-index: 10;
  overflow: hidden;
  transform: translateZ(0);
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(255, 245, 181, var(--sun-core-alpha)) 0 3.6vw, rgba(255, 199, 108, var(--sun-halo-alpha)) 3.8vw 11vw, transparent 16vw),
    radial-gradient(circle at calc(100% - var(--sun-x)) calc(var(--sun-y) + 16%), rgba(225, 232, 255, var(--moon-core-alpha)) 0 2.2vw, transparent 2.35vw),
    linear-gradient(to bottom, var(--sky-top), var(--sky-mid) 48%, var(--sky-low));
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(255, 255, 255, .12) 46%, transparent 58%),
    radial-gradient(circle at 20% 75%, var(--light), transparent 34%);
  opacity: .36;
  mix-blend-mode: screen;
  transform: translateX(var(--light-pan));
  transition: transform 900ms ease, opacity 900ms ease;
}

.city-title {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 24;
  width: max-content;
  max-width: 94vw;
  transform: translate(-50%, -50%);
  color: color-mix(in srgb, var(--city-text) 88%, var(--city-accent));
  font-size: clamp(46px, 11vw, 178px);
  font-weight: 930;
  line-height: .82;
  letter-spacing: .03em;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .08),
    0 20px 60px rgba(0, 0, 0, .38);
  opacity: .92;
  mix-blend-mode: soft-light;
}

.title-solid {
  mix-blend-mode: normal;
  opacity: .3;
}

.landscape {
  position: absolute;
  inset: auto 0 0;
  z-index: 28;
  height: 56vh;
  min-height: 350px;
  transform: translateY(var(--landscape-shift));
  transition: transform 900ms ease;
}

.water {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 22vh;
  min-height: 120px;
  background:
    repeating-linear-gradient(174deg, rgba(255, 255, 255, .15) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, color-mix(in srgb, var(--water) 62%, transparent), color-mix(in srgb, var(--city-bg) 88%, black));
  opacity: .84;
  transform: translateX(var(--water-shift));
  transition: background 900ms ease, transform 900ms ease;
}

.haze-band {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 25vh;
  height: 20vh;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  filter: blur(28px);
  opacity: .38;
  transform: translateX(-4vw);
  animation: hazeDrift 16s ease-in-out infinite alternate;
}

.buildings,
.bridge,
.foreground-buildings,
.river-edges {
  position: absolute;
  inset: auto 0 0;
}

.building {
  position: absolute;
  bottom: 19vh;
  width: var(--w);
  height: var(--h);
  left: var(--x);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .13), transparent 28%),
    linear-gradient(135deg, color-mix(in srgb, var(--city-primary) 65%, black), color-mix(in srgb, var(--city-secondary) 70%, black));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--building-shadow) 18px 44px rgba(0, 0, 0, .28);
}

.building::after {
  content: "";
  position: absolute;
  inset: 12% 14%;
  background-image:
    radial-gradient(circle, var(--window-glow) 0 1.5px, transparent 2px);
  background-size: 18px 18px;
  opacity: var(--building-window-opacity);
  transition: opacity 900ms ease;
}

.hill {
  position: absolute;
  bottom: 20vh;
  width: 58vw;
  height: 28vh;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--city-secondary) 70%, black), color-mix(in srgb, var(--city-bg) 78%, black));
  opacity: .78;
}

.hill--left { left: -18vw; }
.hill--right { right: -12vw; transform: scaleY(.72); }

.sf-bridge {
  position: absolute;
  left: 19%;
  right: 12%;
  bottom: 22vh;
  height: 36vh;
  color: #2d0908;
  filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .32));
}

.sf-bridge .tower {
  position: absolute;
  bottom: 0;
  width: 44px;
  height: 100%;
  background: linear-gradient(#581a11, #240707);
}

.sf-bridge .tower::before,
.sf-bridge .tower::after {
  content: "";
  position: absolute;
  left: 21%;
  right: 21%;
  height: 22%;
  border: 6px solid rgba(255, 122, 60, .22);
}

.sf-bridge .tower::before { top: 17%; }
.sf-bridge .tower::after { top: 51%; }
.sf-bridge .tower--left { left: 18%; }
.sf-bridge .tower--right { right: 12%; height: 72%; bottom: 0; }

.sf-bridge .deck {
  position: absolute;
  left: 4%;
  right: 0;
  bottom: 16%;
  height: 8px;
  background: #250707;
  box-shadow: 0 0 18px rgba(255, 115, 54, .5);
}

.sf-bridge .cable {
  position: absolute;
  left: 5%;
  right: 3%;
  bottom: 16%;
  height: 74%;
  border-top: 3px solid rgba(45, 9, 8, .9);
  border-radius: 50% 50% 0 0;
}

.sf-bridge .light-row {
  position: absolute;
  left: 4%;
  right: 0;
  bottom: 18%;
  height: 3px;
  background-image: radial-gradient(circle, var(--window-glow) 0 1.5px, transparent 2px);
  background-size: 18px 3px;
  opacity: var(--bridge-light-opacity);
}

.providence-dome,
.boston-dome {
  position: absolute;
  bottom: 25vh;
  left: 55%;
  width: 18vw;
  max-width: 250px;
  min-width: 150px;
  height: 22vh;
  min-height: 150px;
  transform: translateX(-50%);
  background: linear-gradient(130deg, color-mix(in srgb, var(--city-accent) 52%, white), color-mix(in srgb, var(--city-secondary) 62%, black));
  clip-path: polygon(16% 45%, 30% 45%, 31% 30%, 40% 30%, 40% 18%, 47% 18%, 47% 4%, 53% 4%, 53% 18%, 60% 18%, 60% 30%, 70% 30%, 71% 45%, 86% 45%, 86% 100%, 16% 100%);
  box-shadow: 0 22px 45px rgba(0, 0, 0, .22);
}

.providence-river,
.boston-river {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 3vh;
  height: 24vh;
  background: linear-gradient(180deg, color-mix(in srgb, var(--water) 74%, white), color-mix(in srgb, var(--city-bg) 70%, black));
  clip-path: polygon(35% 0, 65% 0, 87% 100%, 13% 100%);
  opacity: .88;
}

.boston-dome {
  left: 28%;
  bottom: 24vh;
  width: 14vw;
  background: linear-gradient(130deg, #f4b858, #683829);
}

.brick-wall {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(96, 35, 28, .34) 1px, transparent 1px) 0 0 / 68px 30px,
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 100% 30px;
  opacity: .28;
  mix-blend-mode: multiply;
}

.window-glass {
  z-index: 35;
  pointer-events: none;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, .13) 43%, transparent 52%),
    linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 20% 78%, rgba(255, 255, 255, .12));
  opacity: .42;
  mix-blend-mode: screen;
}

.window-frame {
  z-index: 42;
  pointer-events: none;
  opacity: .92;
}

.window-frame::before,
.window-frame::after {
  content: "";
  position: absolute;
  inset: 11vh 14vw 15vh;
  border: clamp(12px, 2vw, 28px) solid color-mix(in srgb, var(--city-secondary) 74%, black);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    0 0 0 999px rgba(0, 0, 0, .14);
}

.window-frame::after {
  inset: 13vh 31vw 15vh;
  border-width: 0 clamp(5px, .8vw, 12px);
  box-shadow:
    -12vw 0 0 -5px color-mix(in srgb, var(--city-secondary) 72%, black),
    12vw 0 0 -5px color-mix(in srgb, var(--city-secondary) 72%, black);
}

.interior {
  z-index: 50;
  pointer-events: none;
  transform-origin: center bottom;
}

.shelves,
.desk,
.lamp,
.plant,
.books,
.camera-object,
.trolley-object,
.map-object {
  position: absolute;
}

.shelves {
  top: 8vh;
  bottom: 14vh;
  width: 17vw;
  min-width: 130px;
  border: 10px solid color-mix(in srgb, var(--city-secondary) 82%, black);
  background:
    repeating-linear-gradient(to bottom, transparent 0 24%, color-mix(in srgb, var(--city-secondary) 82%, black) 24% 26%),
    linear-gradient(135deg, color-mix(in srgb, var(--city-primary) 70%, black), color-mix(in srgb, var(--city-secondary) 80%, black));
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .32);
}

.shelves--left { left: 0; }
.shelves--right { right: 0; }

.books {
  left: 14%;
  right: 12%;
  top: 20%;
  height: 18%;
  background:
    linear-gradient(90deg, #2f2520 0 9%, #af6a36 9% 14%, #ded0b5 14% 21%, #6c2a22 21% 29%, #173345 29% 36%, #d8bb74 36% 44%, #2a261c 44% 58%, #81482c 58% 69%, #1d2a38 69% 80%, #b49b69 80% 100%);
}

.plant {
  right: 15%;
  bottom: 22%;
  width: 9vw;
  min-width: 82px;
  height: 16vh;
  background:
    radial-gradient(ellipse at 20% 40%, #406d46 0 18%, transparent 20%),
    radial-gradient(ellipse at 54% 23%, #699764 0 20%, transparent 22%),
    radial-gradient(ellipse at 74% 50%, #315d39 0 21%, transparent 23%),
    linear-gradient(#8f5630, #4b2417);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 72%, 64% 100%, 29% 100%, 22% 72%, 0 72%);
}

.desk {
  left: -4vw;
  right: -4vw;
  bottom: -4vh;
  height: 22vh;
  min-height: 135px;
  background:
    linear-gradient(95deg, rgba(255, 255, 255, .18), transparent 22% 72%, rgba(0, 0, 0, .18)),
    linear-gradient(120deg, color-mix(in srgb, var(--city-primary) 70%, black), color-mix(in srgb, var(--city-secondary) 84%, black));
  box-shadow: 0 -30px 70px rgba(0, 0, 0, .22);
}

.lamp {
  left: 23vw;
  bottom: 15vh;
  width: 8vw;
  min-width: 80px;
  height: 18vh;
  border-left: 7px solid color-mix(in srgb, var(--city-accent) 65%, black);
  transform: skewX(-8deg);
}

.lamp::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 10px;
  width: 90px;
  height: 38px;
  background: linear-gradient(90deg, #7d5125, #e6ad62);
  clip-path: polygon(0 18%, 100% 0, 86% 100%, 0 88%);
  box-shadow: 0 0 36px var(--light);
}

.camera-object {
  left: 26vw;
  bottom: 7vh;
  width: 110px;
  height: 58px;
  background: #151516;
  border-radius: 8px;
  box-shadow: inset 0 0 0 6px #312821;
}

.camera-object::after {
  content: "";
  position: absolute;
  left: 35px;
  top: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: radial-gradient(circle, #0b0b0c 0 34%, #8b623c 36% 48%, #111 51%);
}

.trolley-object {
  right: 26vw;
  bottom: 10vh;
  width: 145px;
  height: 46px;
  background: linear-gradient(#b05d32 0 18%, #ebc778 18% 28%, #8f3726 28% 100%);
  border: 3px solid #4d221a;
  border-radius: 7px 7px 2px 2px;
}

.map-object {
  right: 32vw;
  bottom: 5vh;
  width: 190px;
  height: 76px;
  background:
    linear-gradient(100deg, rgba(76, 48, 27, .16) 1px, transparent 1px) 0 0 / 18px 18px,
    #d6c3a5;
  transform: rotate(4deg);
  opacity: .9;
}

.weather-system {
  z-index: 38;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: var(--s);
  height: auto;
  max-width: none;
  left: var(--x);
  top: var(--y);
  border-radius: 0;
  filter: contrast(1.12) brightness(1.08) saturate(.72) blur(.15px);
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate3d(-12vw, 0, 0) scale(1);
  animation: cloudDrift var(--d) linear infinite;
  animation-delay: var(--delay);
  will-change: transform, opacity;
}

.fog-layer {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 36%;
  height: 38%;
  background:
    radial-gradient(ellipse at 22% 58%, rgba(255, 255, 255, .48), transparent 42%),
    radial-gradient(ellipse at 72% 45%, rgba(255, 255, 255, .34), transparent 46%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, .36), transparent);
  filter: blur(28px);
  opacity: 0;
  transform: translateX(-4vw);
  animation: fogSlide 18s ease-in-out infinite alternate;
}

.drop,
.flake {
  position: absolute;
  left: var(--x);
  top: -12vh;
  animation: fall var(--d) linear infinite;
  animation-delay: var(--delay);
}

.drop {
  width: 1px;
  height: var(--h);
  background: rgba(205, 226, 255, .66);
  transform: rotate(12deg);
  opacity: 0;
}

.flake {
  width: var(--s);
  height: var(--s);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  opacity: 0;
  filter: blur(.5px);
}

.weather-label {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 72;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 5, 7, .22);
  color: var(--city-text);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.control-dock {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 20px;
  z-index: 74;
  display: grid;
  grid-template-columns: minmax(240px, 420px) auto;
  gap: 10px;
  width: min(860px, calc(100vw - 44px));
  transform: translateX(-50%);
}

.time-panel,
.weather-panel {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 5, 7, .32);
  color: var(--city-text);
  backdrop-filter: blur(18px);
}

.time-panel {
  padding: 13px 14px 11px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.panel-label,
.time-readout {
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.time-readout {
  color: color-mix(in srgb, var(--city-accent) 82%, white);
}

.time-slider {
  width: 100%;
  accent-color: var(--city-accent);
}

.phase-ticks {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-top: 6px;
  color: rgba(255, 255, 255, .64);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.phase-ticks span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-panel {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px;
}

.intro-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 76;
  display: flex;
  gap: 8px;
}

.intro-button {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(5, 5, 7, .22);
  backdrop-filter: blur(12px);
}

.intro-skip {
  display: inline-flex;
}

.intro-active .intro-skip {
  display: inline-flex;
}

.intro-done .intro-skip {
  display: none;
}

.editorial-card {
  position: fixed;
  right: 22px;
  top: 82px;
  z-index: 62;
  width: min(330px, calc(100vw - 44px));
  padding: 16px;
  color: var(--city-text);
  background: rgba(5, 5, 7, .22);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
}

.editorial-card p {
  margin: 0;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  line-height: 1.5;
}

.editorial-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.scene-shell.intro-active .world {
  animation: cameraWorld 6200ms cubic-bezier(.16, .82, .2, 1) forwards;
}

.scene-shell.intro-active .interior {
  animation: cameraInterior 6200ms cubic-bezier(.16, .82, .2, 1) forwards;
}

.scene-shell.intro-active .window-frame {
  animation: cameraFrame 6200ms cubic-bezier(.16, .82, .2, 1) forwards;
}

.scene-shell.intro-done .interior {
  opacity: .26;
  transform: scale(1.22) translateY(22vh);
}

.scene-shell.intro-done .window-frame {
  opacity: .34;
  transform: scale(1.44);
}

.scene-shell[data-weather="cloudy"] .cloud {
  opacity: var(--op);
}

.scene-shell[data-weather="cloudy"] .sky::after {
  opacity: .16;
}

.scene-shell[data-weather="foggy"] .cloud {
  opacity: .13;
}

.scene-shell[data-weather="foggy"] .fog-layer {
  opacity: .72;
}

.scene-shell[data-weather="foggy"] .landscape {
  filter: saturate(.74) contrast(.86);
}

.scene-shell[data-city="san-francisco"][data-weather="foggy"] .fog-layer {
  opacity: .9;
  top: 29%;
}

.scene-shell[data-weather="rain"] .drop {
  opacity: .72;
}

.scene-shell[data-weather="rain"] .window-glass {
  background:
    repeating-linear-gradient(103deg, rgba(225, 235, 255, .2) 0 1px, transparent 1px 18px),
    linear-gradient(110deg, transparent 0 35%, rgba(255, 255, 255, .16) 45%, transparent 54%);
  opacity: .66;
}

.scene-shell[data-weather="snow"] .flake {
  opacity: .8;
}

.scene-shell[data-weather="snow"] .landscape {
  filter: saturate(.76) brightness(1.08);
}

body.reduced-motion .scene-shell.intro-active .world,
body.reduced-motion .scene-shell.intro-active .interior,
body.reduced-motion .scene-shell.intro-active .window-frame,
body.reduced-motion .scene-shell.intro-active .scene-photo--base,
body.reduced-motion .scene-shell.intro-active .reference-photo--back,
body.reduced-motion .scene-photo--glitch,
body.reduced-motion .scene-photo--glitch-fragment,
body.reduced-motion .photo-world::before,
body.reduced-motion .scene-acquisition,
body.reduced-motion .scene-shell.intro-active .photo-title,
body.reduced-motion .cloud,
body.reduced-motion .fog-layer,
body.reduced-motion .drop,
body.reduced-motion .flake {
  animation: none !important;
}



@keyframes sceneAcquisitionBlink {
  0% { opacity: 1; }
  18% { opacity: .18; }
  25% { opacity: .82; }
  31% { opacity: .10; }
  42% { opacity: .38; }
  53% { opacity: .04; }
  100% { opacity: 0; }
}

@keyframes scanlineNoise {
  0%, 100% {
    opacity: .08;
    transform: translate3d(0, 0, 0);
  }
  44% {
    opacity: .14;
    transform: translate3d(0, 1px, 0);
  }
  45% {
    opacity: .05;
    transform: translate3d(0, -1px, 0);
  }
}

@keyframes windowGlitchBase {
  0%, 37%, 39%, 68%, 70%, 100% {
    opacity: var(--glitch-opacity-active, .16);
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  37.4% {
    opacity: calc(var(--glitch-opacity-active, .16) * 1.42);
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  38% {
    opacity: calc(var(--glitch-opacity-active, .16) * .54);
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  68.5% {
    opacity: calc(var(--glitch-opacity-active, .16) * 1.55);
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scaleX(1);
  }
}

@keyframes windowGlitchEdge {
  0%, 12%, 12.45%, 30%, 30.5%, 58%, 58.6%, 83%, 83.5%, 100% {
    opacity: var(--edge-glitch-opacity, .2);
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  12.2% {
    opacity: .34;
    transform: translate3d(-1px, 0, 0) scaleX(1);
  }
  30.25% {
    opacity: .14;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  58.25% {
    opacity: .36;
    transform: translate3d(1px, 0, 0) scaleX(1);
  }
  83.2% {
    opacity: .10;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
}

@keyframes windowGlitchMinor {
  0%, 8%, 8.7%, 31%, 31.6%, 64%, 64.7%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  8.2% {
    opacity: .09;
    clip-path: inset(12% 0 82% 0);
    transform: translate3d(-1px, 0, 0) scaleX(1);
  }
  8.45% {
    opacity: .075;
    clip-path: inset(42% 0 53% 0);
    transform: translate3d(1px, 0, 0) scaleX(1);
  }
  31.2% {
    opacity: .11;
    clip-path: inset(67% 0 26% 0);
    transform: translate3d(1px, 0, 0) scaleX(1);
  }
  64.35% {
    opacity: .085;
    clip-path: inset(28% 0 66% 0);
    transform: translate3d(-1px, 0, 0) scaleX(1);
  }
}

@keyframes windowGlitchMidpage {
  0%, 11.8%, 15.8%, 34.8%, 39.2%, 59.8%, 64%, 82.8%, 87%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  12.2%, 14.6% {
    opacity: .24;
    clip-path: inset(40% 0 52% 0);
    transform: translate3d(-1px, 0, 0) scaleX(1.004);
  }
  13.1%, 15.2% {
    opacity: .36;
    clip-path: inset(47% 0 46% 0);
    transform: translate3d(1px, 0, 0) scaleX(.998);
  }
  35.4%, 37.8% {
    opacity: .23;
    clip-path: inset(55% 0 38% 0);
    transform: translate3d(0, 1px, 0) scaleX(1.002);
  }
  36.4%, 38.6% {
    opacity: .34;
    clip-path: inset(49% 0 44% 0);
    transform: translate3d(1px, 0, 0) scaleX(1.006);
  }
  60.4%, 63.2% {
    opacity: .32;
    clip-path: inset(44% 0 49% 0);
    transform: translate3d(-1px, -1px, 0) scaleX(.996);
  }
  83.4%, 86.2% {
    opacity: .40;
    clip-path: inset(52% 0 41% 0);
    transform: translate3d(1px, 0, 0) scaleX(1.004);
  }
}

@keyframes windowGlitchMajor {
  0%, 16%, 17.2%, 72%, 73.6%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  16.2% {
    opacity: .14;
    clip-path: inset(8% 0 74% 0);
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  16.45% {
    opacity: .20;
    clip-path: inset(8% 0 73% 0);
    transform: translate3d(-1px, 0, 0) scaleX(1);
  }
  16.8% {
    opacity: .10;
    clip-path: inset(61% 0 18% 0);
    transform: translate3d(1px, 0, 0) scaleX(1);
  }
  72.25% {
    opacity: .16;
    clip-path: inset(23% 0 49% 0);
    transform: translate3d(1px, 0, 0) scaleX(1);
  }
  72.75% {
    opacity: .11;
    clip-path: inset(74% 0 11% 0);
    transform: translate3d(-1px, 0, 0) scaleX(1);
  }
}

@keyframes windowGlitchChannel {
  0%, 21%, 21.8%, 49%, 49.6%, 86%, 86.8%, 100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  21.25% {
    opacity: .10;
    clip-path: inset(18% 0 77% 0);
    transform: translate3d(-1px, 0, 0) scaleX(1);
  }
  49.25% {
    opacity: .12;
    clip-path: inset(43% 0 51% 0);
    transform: translate3d(1px, 0, 0) scaleX(1);
  }
  86.3% {
    opacity: .11;
    clip-path: inset(58% 0 36% 0);
    transform: translate3d(-1px, 0, 0) scaleX(1);
  }
}

@keyframes exactPhotoTitleDrift {
  0% {
    opacity: .76;
    transform: translate(-50%, -50%) scale(1);
  }
  58% {
    opacity: .88;
  }
  100% {
    opacity: .82;
    transform: translate(-50%, -50%) scale(.82);
  }
}

@keyframes cameraWorld {
  0% { transform: scale(.78) translateY(2vh); filter: blur(.2px); }
  48% { transform: scale(.94) translateY(0); filter: blur(0); }
  100% { transform: scale(1.09) translateY(-1vh); filter: blur(0); }
}

@keyframes cameraInterior {
  0% { opacity: 1; transform: scale(.98) translateY(0); }
  62% { opacity: .92; transform: scale(1.08) translateY(6vh); }
  100% { opacity: .26; transform: scale(1.22) translateY(22vh); }
}

@keyframes cameraFrame {
  0% { opacity: 1; transform: scale(1); }
  62% { opacity: .8; transform: scale(1.16); }
  100% { opacity: .34; transform: scale(1.44); }
}

@keyframes cloudDrift {
  0% { transform: translate3d(-18vw, 0, 0) scale(.98); }
  50% { transform: translate3d(48vw, -1.4vh, 0) scale(1.015); }
  100% { transform: translate3d(118vw, .8vh, 0) scale(1.01); }
}

@keyframes fogSlide {
  from { transform: translateX(-7vw) translateY(0); }
  to { transform: translateX(7vw) translateY(-2vh); }
}

@keyframes hazeDrift {
  from { transform: translateX(-8vw); }
  to { transform: translateX(8vw); }
}

@keyframes fall {
  to { transform: translate3d(var(--drift), 118vh, 0) rotate(16deg); }
}

@media (max-width: 900px) {
  .home-shell {
    min-height: 535dvh;
  }

  .home-interface {
    padding: 18px;
  }

  .home-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-menu {
    flex-wrap: wrap;
  }

  .home-hero {
    align-content: center;
    justify-items: start;
    min-height: 70dvh;
  }

  .home-abg {
    width: min(760px, 94vw);
    min-height: clamp(240px, 62vw, 420px);
  }

  .home-abg-short {
    font-size: clamp(92px, 32vw, 220px);
  }

  .home-abg-full {
    width: min(620px, 92vw);
    font-size: clamp(48px, 14vw, 126px);
    text-align: left;
  }

  .home-story {
    padding: 6px;
  }

  .home-thesis-detail {
    top: 310dvh;
    padding: 6px;
  }

  .home-projects {
    top: 410dvh;
    padding: 6px;
  }

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

  .terminal-actions {
    display: none;
  }

  .terminal-tabs {
    overflow-x: auto;
  }

  .terminal-tabs a,
  .terminal-tabs span {
    flex-basis: 122px;
    padding: 0 14px;
  }

  .terminal-screen {
    min-height: 118dvh;
    padding: 20px;
  }

  .terminal-screen--signal,
  .terminal-screen--detail,
  .terminal-screen--projects {
    min-height: calc(100dvh - 51px);
  }

  .terminal-query {
    width: min(250px, 44vw);
  }

  .thesis-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
    gap: 24px;
  }

  .thesis-hero-copy {
    align-self: start;
    max-width: 680px;
  }

  .thesis-hero-copy h2 {
    max-width: 9ch;
  }

  .thesis-diagram {
    justify-self: center;
    width: min(560px, 100%);
    min-height: 300px;
    padding-top: 184px;
  }

  .signal-hero-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
    gap: 28px;
    align-content: center;
  }

  .signal-hero-copy {
    max-width: 680px;
    transform: translateY(0);
  }

  .signal-page .thesis-hero-copy h2,
  .terminal-content-page .thesis-hero-copy h1 {
    max-width: 9.2ch;
    line-height: 1.03;
  }

  .thesis-diagram.signal-hero-diagram {
    width: min(610px, 100%);
    min-height: 336px;
    padding-top: 210px;
  }

  .signal-hero-diagram .thesis-arc,
  .signal-hero-diagram.thesis-diagram .thesis-arc {
    height: 226px;
  }

  .thesis-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-shell {
    min-height: auto;
  }

  .detail-intro {
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
  }

  .detail-intro h1,
  .detail-intro h2 {
    max-width: 20ch;
  }

  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: auto;
  }

  .projects-shell {
    min-height: auto;
    gap: 18px;
  }

  .projects-intro {
    padding-bottom: 8px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-feature {
    grid-template-rows: auto auto;
  }

  .project-media img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .atlas-nav,
  .scene-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-city-links,
  .city-switcher {
    max-width: 100%;
    overflow-x: auto;
  }

  .atlas-map {
    grid-template-columns: 1fr;
    width: min(520px, 90vw);
    gap: 6px;
  }

  .atlas-city {
    min-height: 200px;
  }

  .atlas-full-name {
    top: calc(50% + 58px);
  }

  .window-scene {
    min-height: 760px;
  }

  .location-metadata,
  .environmental-readout {
    top: 132px;
    font-size: 9px;
  }

  .location-metadata {
    left: 14px;
    min-height: 26px;
    padding-right: 10px;
  }

  .location-metadata::before {
    width: 20px;
    margin-right: 8px;
  }

  .environmental-readout {
    right: 14px;
    min-width: 112px;
  }

  .window-frame::before {
    inset: 17vh 5vw 24vh;
  }

  .window-frame::after {
    inset: 18vh 35vw 24vh;
  }

  .shelves {
    width: 21vw;
    min-width: 92px;
  }

  .shelves--left {
    left: -9vw;
  }

  .shelves--right {
    right: -9vw;
  }

  .desk {
    height: 18vh;
  }

  .lamp {
    left: 12vw;
  }

  .camera-object {
    left: 22vw;
    transform: scale(.72);
    transform-origin: left bottom;
  }

  .trolley-object,
  .map-object {
    display: none;
  }

  .city-title {
    top: 42%;
    font-size: clamp(42px, 15vw, 96px);
  }

  .landscape {
    height: 52vh;
    min-height: 330px;
  }

  .control-dock {
    grid-template-columns: 1fr;
    bottom: 18px;
    width: min(520px, calc(100vw - 28px));
  }

  .weather-panel {
    overflow-x: auto;
  }

  .weather-label,
  .editorial-card {
    display: none;
  }

  .intro-actions {
    display: none;
  }
}

@media (max-width: 560px) {
  .home-shell {
    min-height: 555dvh;
  }

  .location-metadata-full {
    display: none;
  }

  .location-metadata-short {
    display: inline;
  }

  .location-metadata,
  .environmental-readout {
    top: 142px;
  }

  .home-brand,
  .home-menu a,
  .home-menu .portal-login,
  .home-reset {
    font-size: 10px;
  }

  .portal-modal h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .portal-page-topbar {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-page-nav {
    flex-wrap: wrap;
  }

  .portal-page-panel header,
  .portal-page-body {
    grid-template-columns: 1fr;
  }

  .portal-page-panel h1 {
    font-size: clamp(52px, 20vw, 96px);
  }

  .home-abg {
    width: calc(100vw - 36px);
    min-height: 52vh;
  }

  .home-abg-short {
    font-size: clamp(78px, 34vw, 150px);
  }

  .home-abg-full {
    width: calc(100vw - 36px);
    font-size: clamp(42px, 18vw, 82px);
  }

  .home-story {
    top: 220dvh;
    min-height: auto;
    padding: 6px;
  }

  .home-thesis-detail {
    top: 306dvh;
    min-height: auto;
    padding: 6px;
  }

  .home-projects {
    top: 408dvh;
    min-height: auto;
    padding: 6px;
  }

  .terminal-window {
    min-height: auto;
  }

  .terminal-chrome {
    height: 34px;
    font-size: 9px;
  }

  .terminal-controls {
    gap: 7px;
    padding: 0 9px;
  }

  .terminal-controls span {
    width: 10px;
    height: 10px;
  }

  .terminal-tabs a,
  .terminal-tabs span {
    flex-basis: 112px;
    padding: 0 10px;
  }

  .terminal-screen {
    min-height: auto;
    padding: 13px 12px 18px;
  }

  .terminal-screen--signal,
  .terminal-screen--detail,
  .terminal-screen--projects {
    min-height: auto;
  }

  .terminal-query {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    min-height: 32px;
    margin: 0 0 22px;
    font-size: 10px;
  }

  .thesis-shell {
    gap: 20px;
  }

  .thesis-kicker {
    font-size: 8px;
  }

  .thesis-hero-copy h2 {
    max-width: 9ch;
    font-size: clamp(42px, 15.5vw, 64px);
  }

  .thesis-diagram {
    min-height: 230px;
    padding: 143px 6px 0;
  }

  .thesis-diagram.signal-hero-diagram {
    width: 100%;
    min-height: 230px;
    padding-top: 143px;
  }

  .signal-hero-shell {
    gap: 20px;
  }

  .signal-page .thesis-hero-copy h2,
  .terminal-content-page .thesis-hero-copy h1 {
    max-width: 9.4ch;
    font-size: clamp(42px, 15.5vw, 64px);
    line-height: 1.02;
  }

  .thesis-arc {
    height: 154px;
  }

  .signal-hero-diagram .thesis-arc,
  .signal-hero-diagram.thesis-diagram .thesis-arc {
    height: 154px;
  }

  .thesis-diagram span {
    padding-bottom: 8px;
    font-size: 8px;
  }

  .signal-rain {
    right: 18%;
    width: 150px;
    height: 104px;
  }

  .signal-rain span {
    height: 126px;
  }

  .thesis-flow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-shell {
    gap: 20px;
    padding: 0;
  }

  .detail-intro {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 18px;
  }

  .detail-intro h1,
  .detail-intro h2 {
    max-width: 13ch;
    font-size: clamp(32px, 11vw, 52px);
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-card {
    min-height: 158px;
    padding: 18px;
  }

  .thesis-card h2,
  .thesis-card h3 {
    font-size: 16px;
  }

  .detail-card h2,
  .detail-card h3 {
    font-size: 20px;
  }

  .projects-shell {
    gap: 18px;
    min-height: auto;
  }

  .projects-intro {
    padding-bottom: 8px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-copy {
    padding: 18px;
  }

  .project-copy h1,
  .project-copy h2,
  .project-copy h3 {
    font-size: clamp(30px, 12vw, 48px);
  }

  .project-meta span {
    font-size: 8px;
  }

  .thesis-card p {
    font-size: 12px;
    line-height: 1.38;
  }

  .atlas-abg {
    font-size: clamp(86px, 38vw, 180px);
  }

  .atlas-kicker,
  .atlas-instruction {
    display: none;
  }

  .atlas-footer-panel p {
    text-align: left;
  }

  .phase-ticks {
    grid-template-columns: repeat(4, 1fr);
  }

  .weather-panel {
    flex-wrap: wrap;
    overflow: visible;
    align-items: stretch;
  }

  .weather-button {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
    padding: 0 8px;
  }

  .city-switcher a {
    padding: 0 10px;
  }

  .scene-brand span:last-child {
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 901px) {
  .signal-hero-shell {
    grid-template-columns: minmax(380px, .92fr) minmax(360px, 1.08fr);
    gap: clamp(20px, 3.4vw, 44px);
    padding-top: clamp(18px, 3vh, 32px);
  }

  .signal-page .thesis-hero-copy h2,
  .terminal-content-page .thesis-hero-copy h1 {
    max-width: 10.8ch;
    font-size: clamp(50px, 6.5vw, 76px);
    line-height: 1.03;
  }

  .thesis-diagram.signal-hero-diagram {
    width: min(520px, 100%);
    min-height: 344px;
    padding-top: 214px;
  }

  .signal-hero-diagram .thesis-arc,
  .signal-hero-diagram.thesis-diagram .thesis-arc {
    height: 220px;
  }

  .project-copy {
    padding: clamp(16px, 1.7vw, 22px);
  }

  .project-copy h1,
  .project-copy h2,
  .project-copy h3 {
    font-size: clamp(32px, 3.4vw, 50px);
  }
}

@media (max-width: 760px) {
  .home-interface {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: 16px;
  }

  .home-interface::after {
    inset: 18dvh 8vw 17dvh;
    opacity: .16;
  }

  .home-topbar {
    gap: 8px;
  }

  .home-brand {
    min-height: 32px;
  }

  .home-menu {
    gap: 8px 14px;
  }

  .home-menu a,
  .home-menu .portal-login {
    min-height: 30px;
  }

  .home-hero {
    align-content: center;
    justify-items: center;
    min-height: calc(100dvh - 120px);
  }

  .home-abg {
    width: min(100%, calc(100vw - 32px));
    min-height: clamp(260px, 56dvh, 480px);
  }

  .home-cycle-image {
    object-position: center top;
    transform: scale(1.08);
  }

  .home-reset {
    min-width: 92px;
    min-height: 40px;
    padding: 0 16px;
  }

  .terminal-tabs {
    scrollbar-width: none;
  }

  .terminal-tabs::-webkit-scrollbar {
    display: none;
  }

  .signal-hero-shell {
    justify-items: stretch;
  }

  .thesis-diagram.signal-hero-diagram {
    max-width: 520px;
    justify-self: center;
  }

  .detail-card p,
  .project-copy p:not(.project-tagline) {
    overflow-wrap: normal;
    hyphens: auto;
  }

  .project-query.project-view-more {
    justify-content: space-between;
    min-width: 0;
  }

  .project-media img {
    max-height: 44dvh;
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .home-interface {
    padding: 14px;
  }

  .home-topbar {
    align-items: stretch;
  }

  .home-menu {
    justify-content: space-between;
    gap: 4px 8px;
  }

  .home-menu a,
  .home-menu .portal-login {
    font-size: 9px;
  }

  .home-abg-short {
    font-size: clamp(74px, 31vw, 126px);
  }

  .home-abg-full {
    font-size: clamp(34px, 16vw, 64px);
  }

  .terminal-chrome {
    font-size: 8px;
  }

  .terminal-controls {
    gap: 6px;
    padding: 0 7px;
  }

  .terminal-tabs a,
  .terminal-tabs span {
    flex-basis: 100px;
    padding: 0 8px;
    letter-spacing: .03em;
  }

  .terminal-screen {
    padding: 12px 10px 16px;
  }

  .signal-page .thesis-hero-copy h2,
  .terminal-content-page .thesis-hero-copy h1 {
    font-size: clamp(37px, 14vw, 54px);
    line-height: 1.02;
  }

  .detail-intro h1,
  .detail-intro h2 {
    max-width: 14ch;
    font-size: clamp(27px, 10vw, 44px);
  }

  .thesis-diagram.signal-hero-diagram {
    min-height: 210px;
    padding-top: 132px;
  }

  .thesis-arc,
  .signal-hero-diagram .thesis-arc,
  .signal-hero-diagram.thesis-diagram .thesis-arc {
    height: 142px;
  }

  .signal-rain {
    right: 10%;
    width: 120px;
  }

  .thesis-diagram span {
    font-size: 7px;
    letter-spacing: .04em;
  }

  .project-copy h1,
  .project-copy h2,
  .project-copy h3 {
    font-size: clamp(28px, 11vw, 42px);
  }

  .project-meta {
    gap: 6px;
  }

  .project-meta span {
    max-width: 100%;
  }
}

@media (max-height: 720px) and (min-width: 700px) {
  .home-interface {
    padding: 18px 28px;
  }

  .home-hero {
    min-height: calc(100dvh - 112px);
  }

  .home-abg {
    min-height: 260px;
  }

  .home-abg-short {
    font-size: clamp(86px, 20vw, 260px);
  }

  .home-abg-full {
    font-size: clamp(48px, 9vw, 132px);
  }

  .signal-hero-shell {
    min-height: calc(100dvh - 86px);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .signal-hero-copy {
    transform: translateY(0);
  }

  .signal-page .thesis-hero-copy h2,
  .terminal-content-page .thesis-hero-copy h1 {
    font-size: clamp(46px, 5.7vw, 68px);
    line-height: 1.02;
  }

  .thesis-diagram.signal-hero-diagram {
    min-height: 300px;
    padding-top: 188px;
  }

  .signal-hero-diagram .thesis-arc,
  .signal-hero-diagram.thesis-diagram .thesis-arc {
    height: 194px;
  }

  .project-media img {
    min-height: 170px;
  }

  .project-copy {
    gap: 8px;
  }
}

.light-abg-title,
.light-tagline,
.light-city-map,
.home-light-atlas {
  display: none;
}

.home-menu .theme-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: #fff;
  background: transparent;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color 180ms ease, transform 180ms ease;
}

.home-menu .theme-toggle:hover,
.home-menu .theme-toggle[aria-pressed="true"] {
  border-bottom-color: currentColor;
  transform: translateY(-1px);
}

.home-menu .theme-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

body.home-page:not([data-theme="light"]) {
  --light-ink: #f4efe7;
  --light-muted: rgba(244, 239, 231, .66);
  --light-gold: #d69b18;
  --light-blue: #2f86c8;
  --light-red: #d54a3d;
  --light-site-bg:
    radial-gradient(circle at 6% 89%, rgba(214, 155, 24, .13), transparent 28vw),
    radial-gradient(circle at 93% 23%, rgba(47, 134, 200, .115), transparent 30vw),
    radial-gradient(circle at 92% 83%, rgba(213, 74, 61, .105), transparent 30vw),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .035) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(255, 255, 255, .03) 80px, transparent 81px),
    radial-gradient(circle, rgba(255, 255, 255, .13) 0 1px, transparent 1.8px) 24px 18px / 108px 92px,
    linear-gradient(120deg, #020202 0%, #060606 50%, #0a0907 100%);
  color-scheme: dark;
  color: var(--light-ink);
  background: #020202;
}

body.home-page:not([data-theme="light"]) .home-shell {
  background: #020202;
}

body.home-page:not([data-theme="light"]) .home-background-cycle {
  background: #010202;
}

body.home-page:not([data-theme="light"]) .home-background-cycle::after {
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .42) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .28));
}

body.home-page:not([data-theme="light"]) .home-interface::before {
  opacity: .96;
  background:
    radial-gradient(circle at 7% 92%, rgba(214, 155, 24, .16), transparent 28vw),
    radial-gradient(circle at 92% 23%, rgba(47, 134, 200, .14), transparent 30vw),
    radial-gradient(circle at 94% 84%, rgba(213, 74, 61, .12), transparent 30vw),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .05) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(255, 255, 255, .042) 80px, transparent 81px),
    radial-gradient(circle, rgba(255, 255, 255, .16) 0 1px, transparent 1.8px) 24px 18px / 108px 92px;
  mix-blend-mode: screen;
}

body.home-page:not([data-theme="light"]) .home-interface::after {
  opacity: .28;
  background:
    radial-gradient(circle at 53% 52%, transparent 0 72px, rgba(255, 255, 255, .13) 73px 74px, transparent 75px 150px, rgba(255, 255, 255, .1) 151px 152px, transparent 153px 230px, rgba(255, 255, 255, .075) 231px 232px, transparent 233px),
    linear-gradient(90deg, transparent 0 28%, rgba(255, 255, 255, .16) 28% 28.12%, transparent 28.3% 72%, rgba(255, 255, 255, .14) 72% 72.12%, transparent 72.3%),
    linear-gradient(0deg, transparent 0 21%, rgba(255, 255, 255, .14) 21% 21.12%, transparent 21.3% 78%, rgba(255, 255, 255, .12) 78% 78.12%, transparent 78.3%),
    linear-gradient(28deg, transparent 0 43%, rgba(255, 255, 255, .12) 43.05% 43.16%, transparent 43.22%),
    linear-gradient(-28deg, transparent 0 43%, rgba(255, 255, 255, .1) 43.05% 43.16%, transparent 43.22%);
  filter: none;
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at 52% 52%, #000 0 72%, transparent 94%);
}

body.home-page:not([data-theme="light"]) .home-hero {
  display: none;
}

body.home-page:not([data-theme="light"]) .home-light-atlas {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, .76fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  min-height: calc(100dvh - 150px);
  color: var(--light-ink);
  pointer-events: none;
}

body.home-page:not([data-theme="light"]) .home-light-copy {
  position: relative;
  z-index: 4;
  max-width: 660px;
  transform: translateY(-1.5vh);
  pointer-events: auto;
}

body.home-page:not([data-theme="light"]) .home-light-map {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
  min-height: clamp(430px, 52vh, 560px);
  justify-self: end;
  pointer-events: auto;
  filter: drop-shadow(0 22px 45px rgba(0, 0, 0, .34));
}

body.home-page:not([data-theme="light"]) .home-light-map::before,
body.home-page:not([data-theme="light"]) .home-light-map::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.home-page:not([data-theme="light"]) .home-light-map::before {
  left: -6%;
  top: 5%;
  width: 57%;
  height: 80%;
  border: 1px solid rgba(255, 255, 255, .11);
  border-left-color: transparent;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 52px rgba(255, 255, 255, .025),
    inset 0 0 0 104px rgba(255, 255, 255, .04),
    inset 0 0 0 156px rgba(255, 255, 255, .018);
}

body.home-page:not([data-theme="light"]) .home-light-map::after {
  right: 4%;
  top: 8%;
  width: 48%;
  height: 80%;
  opacity: .38;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, .18) 1px, transparent 1px) 0 28% / 100% 44px,
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, .14) 10% 10.3%, transparent 10.3% 28%, rgba(255, 255, 255, .12) 28% 28.3%, transparent 28.3% 43%, rgba(255, 255, 255, .11) 43% 43.3%, transparent 43.3% 60%, rgba(255, 255, 255, .1) 60% 60.3%, transparent 60.3%),
    linear-gradient(180deg, transparent 0 52%, rgba(255, 255, 255, .1) 52% 52.4%, transparent 52.6%),
    radial-gradient(circle, rgba(255, 255, 255, .22) 0 1.3px, transparent 2px) 0 0 / 52px 42px;
}

body.home-page:not([data-theme="light"]) .home-light-scroll {
  position: fixed;
  left: 50%;
  bottom: max(12px, calc(clamp(70px, 8vh, 104px) - 82px));
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(244, 239, 231, .62);
  font-size: 9px;
  font-weight: 640;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

body.home-page:not([data-theme="light"]) .home-light-scroll span {
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body.home-page:not([data-theme="light"]) .home-light-scroll p {
  margin: 0;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title {
  display: grid;
  gap: clamp(12px, 1.5vw, 22px);
  margin: 0;
  color: var(--light-ink);
  font-size: clamp(48px, 5.45vw, 82px);
  font-weight: 520;
  letter-spacing: .145em;
  line-height: .92;
  text-transform: uppercase;
  text-shadow:
    0 10px 24px rgba(0, 0, 0, .55),
    0 0 22px rgba(255, 255, 255, .08);
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title span {
  display: block;
  color: var(--light-ink);
  white-space: nowrap;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title b {
  display: inline-block;
  width: .78em;
  font: inherit;
  letter-spacing: 0;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title span:nth-child(1) b {
  color: var(--light-gold);
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title span:nth-child(2) b {
  color: var(--light-blue);
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title span:nth-child(3) b {
  color: var(--light-red);
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-tagline {
  display: block;
  margin: clamp(34px, 5vw, 62px) 0 0;
  color: var(--light-muted);
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 560;
  letter-spacing: .16em;
  line-height: 1.7;
  text-transform: uppercase;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-map-core {
  position: absolute;
  left: 13.5%;
  top: 49%;
  width: clamp(34px, 4.2vw, 48px);
  aspect-ratio: 1;
  border: 2px solid rgba(244, 239, 231, .84);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--light-blue) 0 20%, transparent 22%),
    rgba(5, 5, 5, .84);
  box-shadow:
    0 0 0 9px rgba(255, 255, 255, .08),
    0 11px 28px rgba(0, 0, 0, .36),
    0 0 24px rgba(47, 134, 200, .28);
  transform: translate(-50%, -50%);
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route {
  position: absolute;
  left: 13.5%;
  top: 49%;
  width: 80%;
  height: 1px;
  color: var(--route-color, var(--light-blue));
  text-decoration: none;
  transform-origin: left center;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route::after {
  content: "";
  position: absolute;
  left: var(--route-elbow-x, 175px);
  top: var(--route-elbow-y, 0);
  width: var(--route-elbow-width, 110px);
  height: 4px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-route-line {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: var(--route-width, 280px);
  height: 4px;
  padding: 0;
  color: inherit;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
  transform: rotate(var(--route-angle, 0deg));
  transform-origin: left center;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-card {
  position: absolute;
  left: var(--card-x, 260px);
  top: var(--card-y, -28px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(306px, 43vw);
  min-height: 56px;
  padding: 0 18px;
  color: var(--light-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025)),
    rgba(6, 6, 6, .76);
  border: 1px solid var(--route-color, rgba(255, 255, 255, .22));
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    0 16px 36px rgba(0, 0, 0, .36);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .12em;
  line-height: 1;
  text-align: left;
  text-shadow: none;
  text-transform: uppercase;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-card i {
  flex: 0 0 auto;
  width: 28px;
  aspect-ratio: 1;
  border: 2px solid var(--route-color, currentColor);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, .08),
    0 0 13px currentColor;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-card em {
  margin-left: auto;
  font-style: normal;
  letter-spacing: .16em;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-card em::before {
  content: "...";
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route--pvd {
  --route-color: var(--light-gold);
  --route-width: 225px;
  --route-angle: -58deg;
  --route-elbow-x: 120px;
  --route-elbow-y: -193px;
  --route-elbow-width: 118px;
  --card-x: 238px;
  --card-y: -223px;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route--sf {
  --route-color: var(--light-blue);
  --route-width: 316px;
  --route-angle: 0deg;
  --route-elbow-width: 0;
  --card-x: 292px;
  --card-y: -28px;
}

body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route--bos {
  --route-color: var(--light-red);
  --route-width: 206px;
  --route-angle: 58deg;
  --route-elbow-x: 110px;
  --route-elbow-y: 176px;
  --route-elbow-width: 140px;
  --card-x: 248px;
  --card-y: 148px;
}

body.home-page .home-light-atlas .light-city-route {
  z-index: 3;
}

body.home-page .home-light-atlas .light-map-core {
  z-index: 4;
}

body.home-page .home-city-outlines {
  position: absolute;
  inset: -12% -10% -12% -6%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}

body.home-page .home-city-outlines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 78% 12%, color-mix(in srgb, var(--light-gold) 28%, transparent), transparent 25%),
    radial-gradient(ellipse at 78% 50%, color-mix(in srgb, var(--light-blue) 24%, transparent), transparent 28%),
    radial-gradient(ellipse at 82% 82%, color-mix(in srgb, var(--light-red) 24%, transparent), transparent 30%);
  pointer-events: none;
}

body.home-page .home-city-outline {
  position: absolute;
  z-index: 1;
  display: block;
  width: var(--outline-width, 58%);
  aspect-ratio: 1320 / 743;
  color: var(--outline-color, currentColor);
  background: currentColor;
  opacity: var(--outline-opacity, .14);
  pointer-events: none;
  transform:
    translate3d(0, 0, 0)
    rotate(var(--outline-rotation, 0deg))
    scale(var(--outline-scale, 1));
  transform-origin: center;
  -webkit-mask: var(--outline-mask) center / contain no-repeat;
  mask: var(--outline-mask) center / contain no-repeat;
}

body.home-page .home-city-outline--pvd {
  --outline-mask: url("assets/home/city-outline-pvd.png");
  --outline-color: var(--light-gold);
  --outline-width: 56%;
  --outline-opacity: .24;
  --outline-rotation: -.5deg;
  left: 45%;
  top: -7%;
}

body.home-page .home-city-outline--sf {
  --outline-mask: url("assets/home/city-outline-sf.png");
  --outline-color: var(--light-blue);
  --outline-width: 72%;
  --outline-opacity: .22;
  --outline-rotation: -.8deg;
  left: 33%;
  top: 18%;
}

body.home-page .home-city-outline--bos {
  --outline-mask: url("assets/home/city-outline-bos.png");
  --outline-color: var(--light-red);
  --outline-width: 72%;
  --outline-opacity: .23;
  --outline-rotation: .5deg;
  left: 38%;
  top: 50%;
}

body.home-page:not([data-theme="light"]) .home-city-outlines::before {
  opacity: .24;
  mix-blend-mode: screen;
}

body.home-page:not([data-theme="light"]) .home-city-outline {
  opacity: calc(var(--outline-opacity, .14) * .72);
  mix-blend-mode: screen;
  filter:
    blur(.12px)
    drop-shadow(0 0 10px currentColor);
}

body.home-page[data-theme="light"],
html[data-theme="light"] body.home-page,
body.portal-page[data-theme="light"],
html[data-theme="light"] body.portal-page {
  --light-ink: #15120e;
  --light-muted: rgba(21, 18, 14, .58);
  --light-paper: #f4eee4;
  --light-paper-2: #fbf7ef;
  --light-metal: rgba(148, 140, 128, .28);
  --light-line: rgba(21, 18, 14, .16);
  --light-gold: #d49a16;
  --light-blue: #2e79b7;
  --light-red: #c84235;
  --light-site-bg:
    radial-gradient(circle at 5% 89%, rgba(212, 154, 22, .18), transparent 28vw),
    radial-gradient(circle at 94% 22%, rgba(46, 121, 183, .105), transparent 30vw),
    radial-gradient(circle at 93% 83%, rgba(200, 66, 53, .115), transparent 30vw),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(21, 18, 14, .028) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(21, 18, 14, .024) 80px, transparent 81px),
    radial-gradient(circle, rgba(21, 18, 14, .13) 0 1px, transparent 1.8px) 24px 18px / 108px 92px,
    linear-gradient(120deg, #fffdf8 0%, #fbf7ef 46%, #f3eadf 100%);
  color-scheme: light;
  color: var(--light-ink);
  background: var(--light-paper-2);
}

body.home-page[data-theme="light"] .home-shell,
html[data-theme="light"] body.home-page .home-shell {
  background: var(--light-paper-2);
}

body.home-page[data-theme="light"] .home-background-cycle,
html[data-theme="light"] body.home-page .home-background-cycle {
  background: var(--light-paper-2);
}

body.home-page[data-theme="light"] .home-cycle-image,
html[data-theme="light"] body.home-page .home-cycle-image {
  opacity: 0 !important;
  animation: none !important;
  filter: brightness(1.04) contrast(.98) saturate(.92) blur(.12px);
}

body.home-page[data-theme="light"] .home-background-cycle::after,
html[data-theme="light"] body.home-page .home-background-cycle::after {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0), rgba(251, 247, 239, .16) 78%),
    linear-gradient(180deg, rgba(255, 252, 246, .08), rgba(255, 252, 246, .24));
}

body.home-page[data-theme="light"] .home-mask {
  filter: invert(1) brightness(1.04);
}

body.home-page[data-theme="light"] .home-interface::before {
  opacity: .92;
  background:
    radial-gradient(circle at 7% 92%, rgba(212, 154, 22, .22), transparent 28vw),
    radial-gradient(circle at 92% 23%, rgba(46, 121, 183, .12), transparent 30vw),
    radial-gradient(circle at 94% 84%, rgba(200, 66, 53, .13), transparent 30vw),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(21, 18, 14, .04) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(21, 18, 14, .035) 80px, transparent 81px),
    radial-gradient(circle, rgba(21, 18, 14, .18) 0 1px, transparent 1.8px) 24px 18px / 108px 92px;
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"] .home-interface::after {
  opacity: .24;
  background:
    radial-gradient(circle at 53% 52%, transparent 0 72px, rgba(21, 18, 14, .13) 73px 74px, transparent 75px 150px, rgba(21, 18, 14, .1) 151px 152px, transparent 153px 230px, rgba(21, 18, 14, .075) 231px 232px, transparent 233px),
    linear-gradient(90deg, transparent 0 28%, rgba(21, 18, 14, .16) 28% 28.12%, transparent 28.3% 72%, rgba(21, 18, 14, .14) 72% 72.12%, transparent 72.3%),
    linear-gradient(0deg, transparent 0 21%, rgba(21, 18, 14, .14) 21% 21.12%, transparent 21.3% 78%, rgba(21, 18, 14, .12) 78% 78.12%, transparent 78.3%),
    linear-gradient(28deg, transparent 0 43%, rgba(21, 18, 14, .12) 43.05% 43.16%, transparent 43.22%),
    linear-gradient(-28deg, transparent 0 43%, rgba(21, 18, 14, .1) 43.05% 43.16%, transparent 43.22%);
  filter: none;
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse at 52% 52%, #000 0 72%, transparent 94%);
}

body.home-page[data-theme="light"] .home-brand,
body.home-page[data-theme="light"] .home-menu a,
body.home-page[data-theme="light"] .home-menu .portal-login,
body.home-page[data-theme="light"] .home-menu .theme-toggle {
  color: var(--light-ink);
}

body.home-page[data-theme="light"] .home-brand:focus-visible,
body.home-page[data-theme="light"] .home-menu a:focus-visible,
body.home-page[data-theme="light"] .home-menu .portal-login:focus-visible,
body.home-page[data-theme="light"] .home-menu .theme-toggle:focus-visible,
body.home-page[data-theme="light"] .home-reset:focus-visible {
  outline-color: var(--light-ink);
}

body.home-page[data-theme="light"] .home-hero {
  display: none;
}

body.home-page[data-theme="light"] .home-light-atlas {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, .76fr) minmax(520px, 1fr);
  align-items: center;
  gap: clamp(42px, 7vw, 104px);
  min-height: calc(100dvh - 150px);
  color: var(--light-ink);
  pointer-events: none;
}

body.home-page[data-theme="light"] .home-light-copy {
  position: relative;
  z-index: 4;
  max-width: 660px;
  transform: translateY(-1.5vh);
  pointer-events: auto;
}

body.home-page[data-theme="light"] .home-light-map {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
  min-height: clamp(430px, 52vh, 560px);
  justify-self: end;
  pointer-events: auto;
  filter: drop-shadow(0 22px 45px rgba(65, 54, 38, .08));
}

body.home-page[data-theme="light"] .home-light-map::before,
body.home-page[data-theme="light"] .home-light-map::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.home-page[data-theme="light"] .home-light-map::before {
  left: -6%;
  top: 5%;
  width: 57%;
  height: 80%;
  border: 1px solid rgba(21, 18, 14, .1);
  border-left-color: transparent;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 52px rgba(255, 255, 255, .08),
    inset 0 0 0 104px rgba(21, 18, 14, .035),
    inset 0 0 0 156px rgba(255, 255, 255, .07);
}

body.home-page[data-theme="light"] .home-light-map::after {
  right: 4%;
  top: 8%;
  width: 48%;
  height: 80%;
  opacity: .42;
  background:
    linear-gradient(0deg, rgba(21, 18, 14, .18) 1px, transparent 1px) 0 28% / 100% 44px,
    linear-gradient(90deg, transparent 0 10%, rgba(21, 18, 14, .14) 10% 10.3%, transparent 10.3% 28%, rgba(21, 18, 14, .12) 28% 28.3%, transparent 28.3% 43%, rgba(21, 18, 14, .11) 43% 43.3%, transparent 43.3% 60%, rgba(21, 18, 14, .1) 60% 60.3%, transparent 60.3%),
    linear-gradient(180deg, transparent 0 52%, rgba(21, 18, 14, .1) 52% 52.4%, transparent 52.6%),
    radial-gradient(circle, rgba(21, 18, 14, .23) 0 1.3px, transparent 2px) 0 0 / 52px 42px;
}

body.home-page[data-theme="light"] .home-light-scroll {
  position: fixed;
  left: 50%;
  bottom: max(12px, calc(clamp(70px, 8vh, 104px) - 82px));
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(21, 18, 14, .66);
  font-size: 9px;
  font-weight: 640;
  letter-spacing: .22em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

body.home-page[data-theme="light"] .home-light-scroll span {
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

body.home-page[data-theme="light"] .home-light-scroll p {
  margin: 0;
}

body.home-page[data-theme="light"] .home-reset {
  color: var(--light-ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .34)),
    rgba(244, 238, 228, .72);
  border-color: rgba(21, 18, 14, .22);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .42),
    0 12px 30px rgba(51, 40, 28, .1);
}

body.home-page[data-theme="light"] .home-reset:hover {
  border-color: rgba(21, 18, 14, .5);
  box-shadow:
    inset 0 0 22px rgba(255, 255, 255, .6),
    0 16px 34px rgba(51, 40, 28, .16);
}

body.home-page[data-theme="light"] .home-section-tabs {
  color: var(--light-ink);
  border-color: rgba(21, 18, 14, .18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .32)),
    rgba(244, 238, 228, .7);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .46),
    0 14px 34px rgba(51, 40, 28, .1);
}

body.home-page[data-theme="light"] .home-section-tabs a {
  border-right-color: rgba(21, 18, 14, .13);
}

body.home-page[data-theme="light"] .home-section-tabs a:hover,
body.home-page[data-theme="light"] .home-section-tabs a:focus-visible,
body.home-page[data-theme="light"] .home-section-tabs a.is-active {
  color: var(--light-ink);
  background: rgba(21, 18, 14, .055);
}

body.home-page[data-theme="light"] .home-story,
body.home-page[data-theme="light"] .home-thesis-detail,
body.home-page[data-theme="light"] .home-projects {
  color: var(--light-ink);
  background: var(--light-site-bg);
  box-shadow: none;
}

body.home-page[data-theme="light"] .terminal-window {
  border-color: rgba(70, 61, 49, .18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .42), rgba(244, 238, 228, .14)),
    rgba(255, 252, 246, .42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .48),
    inset 0 0 82px rgba(85, 74, 59, .045);
}

body.home-page[data-theme="light"] .terminal-window::before {
  background:
    linear-gradient(180deg, transparent 0 42%, rgba(255, 255, 255, .52) 49%, transparent 56%),
    linear-gradient(90deg, transparent, rgba(142, 132, 115, .22), transparent);
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"] .terminal-chrome {
  grid-template-columns: 1fr;
  height: 66px;
  color: rgba(21, 18, 14, .62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .18)),
    rgba(244, 238, 228, .62);
  border-bottom: 1px solid rgba(21, 18, 14, .12);
  font-size: 12px;
  letter-spacing: .12em;
}

body.home-page[data-theme="light"] .terminal-controls,
body.home-page[data-theme="light"] .terminal-actions {
  display: none;
}

body.home-page[data-theme="light"] .terminal-tabs {
  align-items: center;
  gap: clamp(22px, 5vw, 72px);
  padding: 0 clamp(28px, 4vw, 62px);
  overflow: visible;
}

body.home-page[data-theme="light"] .terminal-tabs a,
body.home-page[data-theme="light"] .terminal-tabs span {
  position: relative;
  flex: 0 0 auto;
  justify-content: flex-start;
  padding: 0 0 14px;
  border: 0;
  color: rgba(21, 18, 14, .56);
  white-space: nowrap;
}

body.home-page[data-theme="light"] .terminal-tabs .is-active {
  color: var(--light-ink);
  background: transparent;
  clip-path: none;
}

body.home-page[data-theme="light"] .terminal-tabs .is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 48px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
}

body.home-page[data-theme="light"] .terminal-screen {
  overflow: hidden;
  background: transparent;
}

body.home-page[data-theme="light"] .terminal-screen::before {
  inset: 0;
  opacity: .58;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 53% 50%, transparent 0 70px, rgba(21, 18, 14, .09) 71px 72px, transparent 73px 142px, rgba(21, 18, 14, .07) 143px 144px, transparent 145px 214px, rgba(21, 18, 14, .055) 215px 216px, transparent 217px),
    linear-gradient(90deg, transparent calc(53% - 1px), rgba(21, 18, 14, .12) 53%, transparent calc(53% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgba(21, 18, 14, .1) 50%, transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(21, 18, 14, .045) 80px, transparent 81px),
    repeating-linear-gradient(180deg, transparent 0 79px, rgba(21, 18, 14, .04) 80px, transparent 81px),
    radial-gradient(circle, rgba(21, 18, 14, .22) 0 1px, transparent 1.7px) 28px 22px / 108px 92px;
}

body.home-page[data-theme="light"] .terminal-screen::after {
  inset: 0;
  width: auto;
  height: auto;
  opacity: .52;
  mix-blend-mode: multiply;
  background:
    linear-gradient(180deg, transparent 0 22%, rgba(46, 121, 183, .14) 22.2% 22.45%, transparent 22.7%),
    linear-gradient(180deg, transparent 0 53%, rgba(21, 18, 14, .08) 53.2% 53.5%, transparent 53.8%),
    linear-gradient(90deg, transparent 0 82%, rgba(46, 121, 183, .2) 82.1% 82.3%, transparent 82.45%),
    linear-gradient(90deg, transparent 0 90%, rgba(200, 66, 53, .2) 90.1% 90.3%, transparent 90.45%),
    radial-gradient(circle at 89% 26%, rgba(46, 121, 183, .11), transparent 16vw),
    radial-gradient(circle at 88% 76%, rgba(200, 66, 53, .12), transparent 18vw);
}

body.home-page[data-theme="light"] .terminal-query {
  color: rgba(21, 18, 14, .62);
  background: rgba(255, 255, 255, .52);
  border-color: rgba(21, 18, 14, .16);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .62),
    0 12px 30px rgba(77, 66, 49, .08);
}

body.home-page[data-theme="light"] .terminal-query i {
  background: var(--light-ink);
  box-shadow: 0 0 12px rgba(21, 18, 14, .28);
}

body.home-page[data-theme="light"] .signal-hero-shell {
  grid-template-columns: minmax(380px, .82fr) minmax(500px, 1.18fr);
  gap: clamp(34px, 6vw, 92px);
  width: min(1270px, 100%);
  min-height: calc(100dvh - 136px);
  padding-top: clamp(18px, 3vw, 42px);
  padding-bottom: clamp(20px, 3vw, 46px);
}

body.home-page[data-theme="light"] .signal-hero-copy {
  align-self: center;
  max-width: 690px;
  transform: translateY(-18px);
}

body.home-page[data-theme="light"] .light-abg-title {
  display: grid;
  gap: clamp(12px, 1.5vw, 22px);
  margin: 0;
  color: var(--light-ink);
  font-size: clamp(48px, 5.45vw, 82px);
  font-weight: 520;
  letter-spacing: .145em;
  line-height: .92;
  text-transform: uppercase;
  text-shadow:
    0 9px 18px rgba(38, 30, 21, .12),
    0 1px 0 rgba(255, 255, 255, .82);
}

body.home-page[data-theme="light"] .light-abg-title span {
  display: block;
  color: var(--light-ink);
  white-space: nowrap;
}

body.home-page[data-theme="light"] .light-abg-title b {
  display: inline-block;
  width: .78em;
  font: inherit;
  letter-spacing: 0;
}

body.home-page[data-theme="light"] .light-abg-title span:nth-child(1) b {
  color: var(--light-gold);
}

body.home-page[data-theme="light"] .light-abg-title span:nth-child(2) b {
  color: var(--light-blue);
}

body.home-page[data-theme="light"] .light-abg-title span:nth-child(3) b {
  color: var(--light-red);
}

body.home-page[data-theme="light"] .light-tagline {
  display: block;
  margin: clamp(34px, 5vw, 62px) 0 0;
  color: rgba(21, 18, 14, .7);
  font-size: clamp(13px, 1.15vw, 18px);
  font-weight: 560;
  letter-spacing: .16em;
  line-height: 1.7;
  text-transform: uppercase;
}

body.home-page[data-theme="light"] .thesis-diagram.signal-hero-diagram {
  display: grid;
  width: min(570px, 100%);
  min-height: 388px;
  padding: 242px 20px 0;
  border-bottom: 2px solid rgba(21, 18, 14, .46);
  filter: none;
}

body.home-page[data-theme="light"] .signal-network {
  inset: 0;
  filter: invert(1) opacity(.34);
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"] .signal-rain,
body.home-page[data-theme="light"] .thesis-arc,
body.home-page[data-theme="light"] .signal-hero-diagram > span,
body.home-page[data-theme="light"] .thesis-diagram.signal-hero-diagram::before,
body.home-page[data-theme="light"] .thesis-diagram.signal-hero-diagram::after {
  display: block;
}

body.home-page[data-theme="light"] .signal-page .light-abg-title,
body.home-page[data-theme="light"] .signal-page .light-tagline,
body.home-page[data-theme="light"] .signal-page .light-city-map {
  display: none;
}

body.home-page[data-theme="light"] .signal-page .thesis-hero-copy h2.dark-signal-title {
  display: block;
  color: var(--light-ink);
  text-shadow:
    0 10px 28px rgba(43, 34, 23, .12),
    0 1px 0 rgba(255, 255, 255, .8);
}

body.home-page[data-theme="light"] .signal-page .thesis-kicker {
  display: block;
}

body.home-page[data-theme="light"] .signal-hero-diagram .thesis-arc,
body.home-page[data-theme="light"] .signal-hero-diagram.thesis-diagram .thesis-arc {
  border-color: rgba(21, 18, 14, .46);
  box-shadow:
    0 0 18px rgba(21, 18, 14, .08),
    inset 0 0 24px rgba(255, 255, 255, .16);
}

body.home-page[data-theme="light"] .signal-hero-diagram .thesis-arc::before,
body.home-page[data-theme="light"] .signal-hero-diagram .thesis-arc::after {
  border-color: rgba(21, 18, 14, .22);
}

body.home-page[data-theme="light"] .signal-hero-diagram .thesis-arc::after {
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(21, 18, 14, .2) 50%, transparent 50.2%),
    linear-gradient(33deg, transparent 49.8%, rgba(21, 18, 14, .18) 50%, transparent 50.2%),
    linear-gradient(-33deg, transparent 49.8%, rgba(21, 18, 14, .18) 50%, transparent 50.2%),
    linear-gradient(18deg, transparent 49.8%, rgba(21, 18, 14, .13) 50%, transparent 50.2%),
    linear-gradient(-18deg, transparent 49.8%, rgba(21, 18, 14, .13) 50%, transparent 50.2%);
}

body.home-page[data-theme="light"] .signal-rain {
  opacity: .28;
  filter: none;
}

body.home-page[data-theme="light"] .signal-rain span {
  background:
    repeating-linear-gradient(180deg, rgba(21, 18, 14, .42) 0 5px, transparent 5px 10px);
}

body.home-page[data-theme="light"] .signal-hero-diagram > span {
  color: rgba(21, 18, 14, .68);
  text-shadow: none;
}

body.home-page[data-theme="light"] .thesis-diagram.signal-hero-diagram::before,
body.home-page[data-theme="light"] .thesis-diagram.signal-hero-diagram::after {
  background: var(--light-ink);
  box-shadow: 0 0 15px rgba(21, 18, 14, .18);
}

body.home-page[data-theme="light"] .light-city-map {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: none;
}

body.home-page[data-theme="light"] .light-city-map::before,
body.home-page[data-theme="light"] .light-city-map::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.home-page[data-theme="light"] .light-city-map::before {
  left: -5%;
  top: 6%;
  width: 56%;
  height: 78%;
  border: 1px solid rgba(21, 18, 14, .1);
  border-left-color: transparent;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 52px rgba(255, 255, 255, .08),
    inset 0 0 0 104px rgba(21, 18, 14, .035),
    inset 0 0 0 156px rgba(255, 255, 255, .07);
}

body.home-page[data-theme="light"] .light-city-map::after {
  right: 4%;
  top: 8%;
  width: 48%;
  height: 80%;
  opacity: .42;
  background:
    linear-gradient(0deg, rgba(21, 18, 14, .18) 1px, transparent 1px) 0 28% / 100% 44px,
    linear-gradient(90deg, transparent 0 10%, rgba(21, 18, 14, .14) 10% 10.3%, transparent 10.3% 28%, rgba(21, 18, 14, .12) 28% 28.3%, transparent 28.3% 43%, rgba(21, 18, 14, .11) 43% 43.3%, transparent 43.3% 60%, rgba(21, 18, 14, .1) 60% 60.3%, transparent 60.3%),
    linear-gradient(180deg, transparent 0 52%, rgba(21, 18, 14, .1) 52% 52.4%, transparent 52.6%),
    radial-gradient(circle, rgba(21, 18, 14, .23) 0 1.3px, transparent 2px) 0 0 / 52px 42px;
}

body.home-page[data-theme="light"] .light-map-core {
  position: absolute;
  left: 13.5%;
  top: 49%;
  width: clamp(34px, 4.2vw, 48px);
  aspect-ratio: 1;
  border: 2px solid rgba(21, 18, 14, .84);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--light-blue) 0 20%, transparent 22%),
    rgba(251, 247, 239, .84);
  box-shadow:
    0 0 0 9px rgba(255, 255, 255, .58),
    0 11px 28px rgba(57, 47, 34, .14);
  transform: translate(-50%, -50%);
}

body.home-page[data-theme="light"] .light-city-route {
  position: absolute;
  left: 13.5%;
  top: 49%;
  width: 80%;
  height: 1px;
  color: var(--route-color, var(--light-blue));
  text-decoration: none;
  transform-origin: left center;
}

body.home-page[data-theme="light"] .light-city-route::after {
  content: "";
  position: absolute;
  left: var(--route-elbow-x, 175px);
  top: var(--route-elbow-y, 0);
  width: var(--route-elbow-width, 110px);
  height: 4px;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
}

body.home-page[data-theme="light"] .light-route-line {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: var(--route-width, 280px);
  height: 4px;
  padding: 0;
  color: inherit;
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
  transform: rotate(var(--route-angle, 0deg));
  transform-origin: left center;
}

body.home-page[data-theme="light"] .light-city-card {
  position: absolute;
  left: var(--card-x, 260px);
  top: var(--card-y, -28px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(306px, 43vw);
  min-height: 56px;
  padding: 0 18px;
  color: var(--light-ink);
  background: rgba(255, 252, 245, .74);
  border: 1px solid var(--route-color, rgba(21, 18, 14, .22));
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .86),
    0 16px 36px rgba(72, 60, 45, .1);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .12em;
  line-height: 1;
  text-align: left;
  text-shadow: none;
  text-transform: uppercase;
}

body.home-page[data-theme="light"] .light-city-card i {
  flex: 0 0 auto;
  width: 28px;
  aspect-ratio: 1;
  border: 2px solid var(--route-color, currentColor);
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .75);
}

body.home-page[data-theme="light"] .light-city-card em {
  margin-left: auto;
  font-style: normal;
  letter-spacing: .16em;
}

body.home-page[data-theme="light"] .light-city-card em::before {
  content: "...";
}

body.home-page[data-theme="light"] .light-city-route--pvd {
  --route-color: var(--light-gold);
  --route-width: 225px;
  --route-angle: -58deg;
  --route-elbow-x: 120px;
  --route-elbow-y: -193px;
  --route-elbow-width: 118px;
  --card-x: 238px;
  --card-y: -223px;
}

body.home-page[data-theme="light"] .light-city-route--sf {
  --route-color: var(--light-blue);
  --route-width: 316px;
  --route-angle: 0deg;
  --route-elbow-width: 0;
  --card-x: 292px;
  --card-y: -28px;
}

body.home-page[data-theme="light"] .light-city-route--bos {
  --route-color: var(--light-red);
  --route-width: 206px;
  --route-angle: 58deg;
  --route-elbow-x: 110px;
  --route-elbow-y: 176px;
  --route-elbow-width: 140px;
  --card-x: 248px;
  --card-y: 148px;
}

body.home-page[data-theme="light"] .home-city-outlines::before {
  opacity: .40;
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"] .home-city-outline {
  mix-blend-mode: multiply;
  filter: blur(.12px);
}

body.home-page[data-theme="light"] .home-city-outline--pvd {
  --outline-opacity: .32;
}

body.home-page[data-theme="light"] .home-city-outline--sf {
  --outline-opacity: .28;
}

body.home-page[data-theme="light"] .home-city-outline--bos {
  --outline-opacity: .30;
}

body.home-page[data-theme="light"] .thesis-kicker {
  color: rgba(21, 18, 14, .6);
}

body.home-page[data-theme="light"] .detail-intro,
body.home-page[data-theme="light"] .projects-intro {
  border-bottom-color: rgba(21, 18, 14, .13);
}

body.home-page[data-theme="light"] .detail-intro h2,
body.home-page[data-theme="light"] .thesis-card h3,
body.home-page[data-theme="light"] .project-copy h3,
body.home-page[data-theme="light"] .project-tagline {
  color: var(--light-ink);
  text-shadow: 0 10px 24px rgba(43, 34, 23, .1), 0 1px 0 rgba(255, 255, 255, .78);
}

body.home-page[data-theme="light"] .thesis-card,
body.home-page[data-theme="light"] .project-feature {
  color: var(--light-ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .64), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(232, 224, 211, .54));
  border-color: rgba(21, 18, 14, .18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .54),
    0 18px 42px rgba(58, 47, 33, .12);
}

body.home-page[data-theme="light"] .thesis-card::before,
body.home-page[data-theme="light"] .project-feature::before {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(21, 18, 14, .025) 3px 5px),
    linear-gradient(135deg, transparent calc(100% - 18px), rgba(21, 18, 14, .16) calc(100% - 17px), transparent calc(100% - 16px));
  opacity: .72;
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"] .detail-card-index,
body.home-page[data-theme="light"] .project-meta span,
body.home-page[data-theme="light"] .thesis-card p,
body.home-page[data-theme="light"] .project-copy p:not(.project-tagline) {
  color: rgba(21, 18, 14, .64);
}

body.home-page[data-theme="light"] .detail-card-index::after {
  background: rgba(21, 18, 14, .22);
}

body.home-page[data-theme="light"] .manifesto-copy,
.terminal-content-page[data-theme="light"] .manifesto-copy {
  color: rgba(21, 18, 14, .72);
}

body.home-page[data-theme="light"] .manifesto-points strong,
.terminal-content-page[data-theme="light"] .manifesto-points strong {
  color: var(--light-ink);
}

body.home-page[data-theme="light"] .manifesto-points span,
.terminal-content-page[data-theme="light"] .manifesto-points span,
body.home-page[data-theme="light"] .manifesto-toggle-body,
.terminal-content-page[data-theme="light"] .manifesto-toggle-body,
body.home-page[data-theme="light"] .node-links span,
.terminal-content-page[data-theme="light"] .node-links span {
  color: rgba(21, 18, 14, .66);
}

body.home-page[data-theme="light"] .manifesto-points li::before,
.terminal-content-page[data-theme="light"] .manifesto-points li::before {
  color: rgba(21, 18, 14, .24);
}

body.home-page[data-theme="light"] .manifesto-lede,
.terminal-content-page[data-theme="light"] .manifesto-lede {
  color: rgba(21, 18, 14, .8);
}

body.home-page[data-theme="light"] .manifesto-question,
.terminal-content-page[data-theme="light"] .manifesto-question {
  color: rgba(21, 18, 14, .68);
}

body.home-page[data-theme="light"] .manifesto-question::after,
.terminal-content-page[data-theme="light"] .manifesto-question::after {
  background: rgba(21, 18, 14, .22);
}

body.home-page[data-theme="light"] .manifesto-point-cards li,
.terminal-content-page[data-theme="light"] .manifesto-point-cards li,
body.home-page[data-theme="light"] .model-signal-panel,
.terminal-content-page[data-theme="light"] .model-signal-panel {
  color: var(--light-ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .62), transparent 27%),
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(232, 224, 211, .48));
  border-color: rgba(21, 18, 14, .18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .52),
    0 18px 38px rgba(58, 47, 33, .1);
}

body.home-page[data-theme="light"] .manifesto-point-cards li::after,
.terminal-content-page[data-theme="light"] .manifesto-point-cards li::after {
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(21, 18, 14, .025) 3px 4px),
    linear-gradient(135deg, transparent calc(100% - 18px), rgba(21, 18, 14, .16) calc(100% - 17px), transparent calc(100% - 16px));
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"] .mission-footer-strip,
.terminal-content-page[data-theme="light"] .mission-footer-strip {
  color: rgba(21, 18, 14, .68);
  background: rgba(255, 255, 255, .5);
  border-color: rgba(21, 18, 14, .14);
}

body.home-page[data-theme="light"] .mission-footer-toggle summary,
.terminal-content-page[data-theme="light"] .mission-footer-toggle summary {
  color: rgba(21, 18, 14, .76);
}

body.home-page[data-theme="light"] .manifesto-toggle summary::after,
body.home-page[data-theme="light"] .mission-footer-toggle summary::after,
.terminal-content-page[data-theme="light"] .manifesto-toggle summary::after,
.terminal-content-page[data-theme="light"] .mission-footer-toggle summary::after {
  color: rgba(21, 18, 14, .58);
  border-color: rgba(21, 18, 14, .22);
}

body.home-page[data-theme="light"] .model-signal-panel::before,
.terminal-content-page[data-theme="light"] .model-signal-panel::before {
  opacity: .46;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(21, 18, 14, .12) 50%, transparent 50.2%),
    radial-gradient(circle, rgba(21, 18, 14, .18) 0 1px, transparent 1.6px) 8px 10px / 52px 44px;
  mix-blend-mode: multiply;
}

body.home-page[data-theme="light"] .manifesto-actions a,
body.home-page[data-theme="light"] .node-links a,
.terminal-content-page[data-theme="light"] .manifesto-actions a,
.terminal-content-page[data-theme="light"] .node-links a {
  color: var(--light-ink);
  border-color: rgba(21, 18, 14, .24);
}

body.home-page[data-theme="light"] .manifesto-actions a:hover,
body.home-page[data-theme="light"] .manifesto-actions a:focus-visible,
body.home-page[data-theme="light"] .node-links a:hover,
body.home-page[data-theme="light"] .node-links a:focus-visible,
.terminal-content-page[data-theme="light"] .manifesto-actions a:hover,
.terminal-content-page[data-theme="light"] .manifesto-actions a:focus-visible,
.terminal-content-page[data-theme="light"] .node-links a:hover,
.terminal-content-page[data-theme="light"] .node-links a:focus-visible {
  background: rgba(21, 18, 14, .07);
  border-color: rgba(21, 18, 14, .42);
}

body.home-page[data-theme="light"] .project-meta span {
  background: rgba(255, 255, 255, .44);
  border-color: rgba(21, 18, 14, .14);
}

body.home-page[data-theme="light"] .project-media {
  background: rgba(21, 18, 14, .08);
  border-bottom-color: rgba(21, 18, 14, .14);
}

body.home-page[data-theme="light"] .project-media img {
  filter: saturate(.92) contrast(1.02) brightness(.96);
}

body.home-page[data-theme="light"] .project-link,
body.home-page[data-theme="light"] .project-view-more {
  color: var(--light-ink);
  border-color: rgba(21, 18, 14, .28);
}

body.home-page[data-theme="light"] .project-link::after,
body.home-page[data-theme="light"] .project-view-more::after {
  box-shadow: none;
}

body.home-page[data-theme="light"] .project-link:hover,
body.home-page[data-theme="light"] .project-link:focus-visible,
body.home-page[data-theme="light"] .project-view-more:hover,
body.home-page[data-theme="light"] .project-view-more:focus-visible {
  border-color: rgba(21, 18, 14, .66);
  box-shadow: 0 12px 26px rgba(51, 40, 28, .1);
  text-shadow: none;
}

@media (max-width: 1050px) {
  body.home-page:not([data-theme="light"]) .home-light-atlas {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 30px;
  }

  body.home-page:not([data-theme="light"]) .home-light-copy {
    max-width: 760px;
    transform: translateY(0);
  }

  body.home-page:not([data-theme="light"]) .home-light-map {
    justify-self: center;
    width: min(720px, 100%);
    min-height: 390px;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title {
    font-size: clamp(48px, 10vw, 90px);
  }

  body.home-page[data-theme="light"] .home-light-atlas {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 30px;
  }

  body.home-page[data-theme="light"] .home-light-copy {
    max-width: 760px;
    transform: translateY(0);
  }

  body.home-page[data-theme="light"] .home-light-map {
    justify-self: center;
    width: min(720px, 100%);
    min-height: 390px;
  }

  body.home-page[data-theme="light"] .signal-hero-shell {
    grid-template-columns: 1fr;
    gap: 36px;
    align-content: center;
  }

  body.home-page[data-theme="light"] .signal-hero-copy {
    max-width: 760px;
  }

  body.home-page[data-theme="light"] .light-abg-title {
    font-size: clamp(48px, 10vw, 90px);
  }

  body.home-page[data-theme="light"] .thesis-diagram.signal-hero-diagram {
    width: min(720px, 100%);
    min-height: 390px;
  }
}

@media (max-width: 760px) {
  .home-menu .theme-toggle {
    min-height: 30px;
    font-size: 10px;
  }

  body.home-page .home-city-outlines {
    inset: 0;
  }

  body.home-page .home-city-outline--pvd {
    --outline-width: 72%;
    left: 20%;
    top: -3%;
  }

  body.home-page .home-city-outline--sf {
    --outline-width: 80%;
    left: 16%;
    top: 29%;
  }

  body.home-page .home-city-outline--bos {
    --outline-width: 78%;
    left: 18%;
    top: 59%;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas {
    align-content: start;
    gap: 22px;
    min-height: calc(100dvh - 128px);
    padding-top: 12px;
  }

  body.home-page:not([data-theme="light"]) .home-light-map {
    width: 100%;
    min-height: 520px;
  }

  body.home-page:not([data-theme="light"]) .home-light-scroll {
    display: none;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-abg-title {
    gap: 10px;
    font-size: clamp(43px, 14vw, 68px);
    letter-spacing: .12em;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-tagline {
    margin-top: 28px;
    font-size: 12px;
  }

  body.home-page:not([data-theme="light"]) .home-light-map::before {
    left: 50%;
    top: 5%;
    width: min(84vw, 360px);
    height: min(84vw, 360px);
    transform: translateX(-50%);
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-map-core {
    left: 50%;
    top: 39%;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route {
    left: 50%;
    top: 39%;
    width: 1px;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route::after {
    display: none;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-route-line {
    width: min(36vw, 170px);
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-card {
    width: min(315px, calc(100vw - 54px));
    min-height: 54px;
    font-size: 11px;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route--pvd {
    --route-width: 116px;
    --route-angle: -90deg;
    --card-x: calc(-50vw + 27px);
    --card-y: -176px;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route--sf {
    --route-width: 120px;
    --route-angle: 0deg;
    --card-x: calc(-50vw + 27px);
    --card-y: 70px;
  }

  body.home-page:not([data-theme="light"]) .home-light-atlas .light-city-route--bos {
    --route-width: 116px;
    --route-angle: 90deg;
    --card-x: calc(-50vw + 27px);
    --card-y: 172px;
  }

  body.home-page[data-theme="light"] .terminal-chrome {
    height: auto;
    min-height: 52px;
  }

  body.home-page[data-theme="light"] .terminal-tabs {
    gap: 22px;
    padding: 14px 18px 0;
    overflow-x: auto;
  }

  body.home-page[data-theme="light"] .terminal-tabs a,
  body.home-page[data-theme="light"] .terminal-tabs span {
    padding-bottom: 16px;
  }

  body.home-page[data-theme="light"] .terminal-query {
    margin-bottom: 24px;
  }

  body.home-page[data-theme="light"] .home-light-atlas {
    align-content: start;
    gap: 22px;
    min-height: calc(100dvh - 128px);
    padding-top: 12px;
  }

  body.home-page[data-theme="light"] .home-light-map {
    width: 100%;
    min-height: 520px;
  }

  body.home-page[data-theme="light"] .home-light-scroll {
    display: none;
  }

  body.home-page .home-section-tabs {
    left: 18px;
    right: 18px;
    bottom: 78px;
    overflow-x: auto;
    transform: none;
  }

  body.home-page .home-section-tabs a {
    min-width: 136px;
    font-size: 10px;
  }

  body.home-page[data-theme="light"] .signal-hero-shell {
    gap: 28px;
  }

  body.home-page[data-theme="light"] .light-abg-title {
    gap: 10px;
    font-size: clamp(43px, 14vw, 68px);
    letter-spacing: .12em;
  }

  body.home-page[data-theme="light"] .light-tagline {
    margin-top: 28px;
    font-size: 12px;
  }

  body.home-page[data-theme="light"] .thesis-diagram.signal-hero-diagram {
    min-height: 336px;
    padding-top: 210px;
  }

  body.home-page[data-theme="light"] .signal-hero-diagram .thesis-arc,
  body.home-page[data-theme="light"] .signal-hero-diagram.thesis-diagram .thesis-arc {
    height: 226px;
  }

  body.home-page[data-theme="light"] .light-city-map::before,
  body.home-page[data-theme="light"] .home-light-map::before {
    left: 50%;
    top: 5%;
    width: min(84vw, 360px);
    height: min(84vw, 360px);
    transform: translateX(-50%);
  }

  body.home-page[data-theme="light"] .light-map-core {
    left: 50%;
    top: 39%;
  }

  body.home-page[data-theme="light"] .light-city-route {
    left: 50%;
    top: 39%;
    width: 1px;
  }

  body.home-page[data-theme="light"] .light-city-route::after {
    display: none;
  }

  body.home-page[data-theme="light"] .light-route-line {
    width: min(36vw, 170px);
  }

  body.home-page[data-theme="light"] .light-city-card {
    width: min(315px, calc(100vw - 54px));
    min-height: 54px;
    font-size: 11px;
  }

  body.home-page[data-theme="light"] .light-city-route--pvd {
    --route-width: 116px;
    --route-angle: -90deg;
    --card-x: calc(-50vw + 27px);
    --card-y: -176px;
  }

  body.home-page[data-theme="light"] .light-city-route--sf {
    --route-width: 120px;
    --route-angle: 0deg;
    --card-x: calc(-50vw + 27px);
    --card-y: 70px;
  }

  body.home-page[data-theme="light"] .light-city-route--bos {
    --route-width: 116px;
    --route-angle: 90deg;
    --card-x: calc(-50vw + 27px);
    --card-y: 172px;
  }
}

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

  .signal-rain span,
  .home-cycle-image,
  .terminal-query i,
  .home-interface::before,
  .home-interface::after,
  .home-hero::before,
  .home-hero::after,
  .terminal-window::before {
    animation: none !important;
  }

  body.motion-ready .terminal-page {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  body.motion-ready .terminal-page:not(.has-entered) .terminal-chrome,
  body.motion-ready .terminal-page:not(.has-entered) .terminal-query,
  body.motion-ready .signal-page:not(.has-entered) .signal-hero-copy .thesis-kicker,
  body.motion-ready .signal-page:not(.has-entered) .signal-hero-copy h2,
  body.motion-ready .signal-page:not(.has-entered) .signal-hero-diagram,
  body.motion-ready .home-thesis-detail:not(.has-entered) .detail-intro .thesis-kicker,
  body.motion-ready .home-thesis-detail:not(.has-entered) .detail-intro h2,
  body.motion-ready .home-thesis-detail:not(.has-entered) .detail-card,
  body.motion-ready .home-projects:not(.has-entered) .projects-intro .thesis-kicker,
  body.motion-ready .home-projects:not(.has-entered) .project-feature {
    opacity: 1 !important;
  }

  .home-type {
    clip-path: inset(0) !important;
  }

  .home-letter {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
  }

  .home-cycle-image {
    opacity: 0 !important;
  }

  .home-cycle-image--mono {
    opacity: 1 !important;
  }
}

/* ===========================================================================
   Info page — contacts, then locations, each location carrying its own
   equipment list. Driven by the data at the top of info-page.js.
   =========================================================================== */

.portal-page-shell--flow {
  align-items: start;
  align-content: start;
}

.info-body {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  padding: clamp(22px, 4vw, 44px);
}

.info-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 8px 16px;
  padding-bottom: 16px;
  margin-bottom: clamp(18px, 3vw, 28px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.info-section-index {
  color: rgba(255, 255, 255, .44);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .18em;
}

.info-section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.info-section-head p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, .58);
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.5;
}

/* ------------------------------------------------------------- contacts -- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 14px;
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(18px, 2.6vw, 24px);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .035);
}

.contact-card header {
  display: grid;
  gap: 5px;
}

.contact-card h3 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 880;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.contact-role {
  color: rgba(255, 255, 255, .5);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.contact-note {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(12px, 1.2vw, 15px);
  line-height: 1.5;
}

.contact-channels {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-channels a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03);
  transition: border-color 170ms ease, background 170ms ease, transform 170ms ease;
}

.contact-channels a:hover,
.contact-channels a:focus-visible {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  transform: translateX(2px);
  outline: none;
}

.contact-channel-label {
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 780;
  letter-spacing: .04em;
}

.contact-channel-detail {
  color: rgba(255, 255, 255, .44);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ locations -- */

.location-list {
  display: grid;
  gap: 16px;
}

.location-card {
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  padding: clamp(18px, 2.8vw, 28px);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .035);
}

.location-card.is-pending {
  border-style: dashed;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .015);
}

.location-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.location-head > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.location-index {
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .16em;
}

.location-head h3 {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.location-status {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.location-card:not(.is-pending) .location-status {
  color: #050505;
  border-color: #fff;
  background: #fff;
}

.location-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 3vw, 32px);
}

.location-block h4 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .46);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.location-block address {
  color: rgba(255, 255, 255, .86);
  font-size: clamp(13px, 1.3vw, 16px);
  font-style: normal;
  line-height: 1.55;
}

.location-empty {
  margin: 0;
  color: rgba(255, 255, 255, .38);
  font-size: clamp(12px, 1.2vw, 14px);
  line-height: 1.5;
}

.location-video {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background 170ms ease, border-color 170ms ease;
}

.location-video:hover,
.location-video:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, .12);
}

/* ------------------------------------------------------------ equipment -- */

.equipment-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.equipment-group h4 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.equipment-group ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipment-group li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.4;
}

.equipment-group li:last-child {
  border-bottom: 0;
}

@media (max-width: 640px) {
  .info-section-head {
    grid-template-columns: 1fr;
  }

  .info-section-head p {
    grid-column: 1;
  }
}

/* ===========================================================================
   Rules page — numbered groups. Content lives in rules-page.js.
   =========================================================================== */

.rules-body {
  display: grid;
  gap: clamp(30px, 5vw, 52px);
  padding: clamp(22px, 4vw, 44px);
}

.rule-group-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: clamp(14px, 2.4vw, 22px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.rule-group-index {
  color: rgba(255, 255, 255, .44);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .18em;
}

.rule-group-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.rule-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rule-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .86);
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.5;
  counter-increment: rule;
}

.rule-list li::before {
  content: counter(rule, decimal-leading-zero);
  color: rgba(255, 255, 255, .38);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
}

.rule-list li:last-child {
  border-bottom: 0;
}

.rule-list a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: opacity 160ms ease;
}

.rule-list a:hover,
.rule-list a:focus-visible {
  opacity: .7;
}

.rule-note {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-left: 2px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .62);
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.5;
}

/* ===========================================================================
   Responsive hardening — phone / tablet polish across the ABG surfaces.
   =========================================================================== */

body.home-page,
body.experience-page,
.home-background-cycle,
.photo-world,
.window-scene {
  overflow-x: hidden;
}

@media (min-width: 700px) and (max-width: 900px) {
  .home-topbar {
    align-items: center;
    flex-direction: row;
  }

  .home-menu {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .home-menu a,
  .home-menu .portal-login {
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .home-interface {
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      max(14px, env(safe-area-inset-bottom))
      max(14px, env(safe-area-inset-left));
  }

  .home-brand {
    width: 100%;
    min-height: 28px;
    font-size: clamp(9px, 2.7vw, 11px);
    letter-spacing: .055em;
  }

  .home-menu {
    width: 100%;
    justify-content: space-between;
    gap: 6px clamp(8px, 2.8vw, 14px);
  }

  .home-menu a,
  .home-menu .portal-login {
    min-width: 0;
    min-height: 28px;
    font-size: clamp(8px, 2.45vw, 10px);
    letter-spacing: .052em;
    white-space: nowrap;
  }

  body.home-page .home-section-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 64px));
    min-height: 44px;
    overflow: hidden;
  }

  body.home-page .home-section-tabs a {
    min-width: 0;
    padding: 0 8px;
    font-size: clamp(8px, 2.35vw, 10px);
    letter-spacing: .085em;
  }

  .terminal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    overflow: hidden;
  }

  .terminal-tabs a,
  .terminal-tabs span {
    flex-basis: auto;
    padding: 0 8px;
    font-size: clamp(8px, 2.25vw, 10px);
    letter-spacing: .035em;
  }

  .terminal-tabs .is-active {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
  }
}

@media (max-width: 560px) {
  .home-abg {
    min-height: min(50dvh, 430px);
  }

  .home-reset {
    min-width: 88px;
    min-height: 38px;
    padding: 0 14px;
    font-size: 9px;
  }

  .signal-page .thesis-hero-copy h2,
  .terminal-content-page .thesis-hero-copy h1 {
    max-width: 10.2ch;
    font-size: clamp(34px, 11vw, 58px);
  }

  .project-media img {
    max-height: 34dvh;
  }

  .project-copy {
    padding: 16px;
  }

  .project-copy h1,
  .project-copy h2,
  .project-copy h3 {
    font-size: clamp(28px, 10.5vw, 42px);
  }

  .scene-shell,
  .window-scene {
    height: 100dvh;
    min-height: 100dvh;
  }

  .scene-nav {
    gap: 10px;
    padding:
      calc(env(safe-area-inset-top) + 12px)
      max(14px, env(safe-area-inset-right))
      0
      max(14px, env(safe-area-inset-left));
  }

  .scene-brand {
    max-width: 100%;
    gap: 8px;
    font-size: clamp(9px, 2.8vw, 11px);
    letter-spacing: .045em;
  }

  .array-mark {
    width: 42px;
    flex: 0 0 42px;
  }

  .city-switcher {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    width: min(100%, 360px);
    padding: 4px;
    overflow: visible;
  }

  .city-switcher a,
  .city-login {
    min-height: 32px;
    padding: 0 6px;
    font-size: clamp(8px, 2.45vw, 10px);
    letter-spacing: .075em;
  }

  .location-metadata,
  .environmental-readout {
    top: calc(env(safe-area-inset-top) + 112px);
    font-size: 8px;
    letter-spacing: .11em;
  }

  .location-metadata {
    left: max(14px, env(safe-area-inset-left));
    max-width: calc(58vw - 16px);
    padding-right: 8px;
  }

  .location-metadata::before {
    width: 18px;
    margin-right: 7px;
  }

  .environmental-readout {
    right: max(14px, env(safe-area-inset-right));
    min-width: 96px;
    padding-right: 8px;
  }

  .environmental-readout [data-local-time] {
    font-size: 14px;
  }

  .environmental-readout [data-environment-summary] {
    font-size: 8px;
  }

  .photo-title {
    min-width: min(92vw, 520px);
    font-size: clamp(42px, 15vw, 72px);
    line-height: .88;
  }

  .scene-shell.intro-done .photo-title {
    top: 45%;
    transform: translate(-50%, -50%) scale(.72);
  }

  .control-dock {
    bottom: max(10px, env(safe-area-inset-bottom));
    gap: 8px;
    width: calc(100vw - 28px);
  }

  .time-panel {
    padding: 10px;
  }

  .panel-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    margin-bottom: 8px;
  }

  .panel-label,
  .time-readout {
    font-size: 9px;
    letter-spacing: .095em;
  }

  .live-time-toggle {
    min-height: 30px;
    padding: 0 10px;
    font-size: 8px;
    letter-spacing: .08em;
  }

  .phase-ticks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px 8px;
    font-size: 7px;
  }

  .weather-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .weather-button {
    min-height: 30px;
    padding: 0 6px;
    font-size: 8px;
    letter-spacing: .075em;
  }

  .weather-button[data-weather="live"] {
    grid-column: span 2;
  }
}

@media (max-width: 380px) {
  .home-menu {
    gap: 4px 8px;
  }

  .home-menu a,
  .home-menu .portal-login {
    font-size: 8px;
    letter-spacing: .035em;
  }

  .home-abg-short {
    font-size: clamp(68px, 29vw, 112px);
  }

  .city-switcher {
    width: 100%;
  }

  .control-dock {
    width: calc(100vw - 20px);
  }
}

@media (max-height: 700px) and (max-width: 900px) {
  .home-interface {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .home-abg {
    min-height: 44dvh;
  }

  .home-section-tabs {
    bottom: 54px;
  }

  .control-dock {
    bottom: 8px;
  }

  .time-panel,
  .weather-panel {
    backdrop-filter: blur(12px);
  }

  .phase-ticks {
    display: none;
  }
}

@media (max-width: 1050px) {
  .mission-shell,
  .model-experience {
    grid-template-columns: 1fr;
    width: min(760px, 100%);
    min-height: auto;
  }

  .signal-page .signal-hero-shell,
  .terminal-content-page[data-terminal-page="mission"] .signal-hero-shell {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 34px);
  }

  .signal-page .signal-hero-copy,
  .terminal-content-page[data-terminal-page="mission"] .signal-hero-copy {
    max-width: 760px;
  }

  .manifesto-copy {
    max-width: 74ch;
  }

  .mission-evidence {
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }

  .manifesto-point-cards {
    grid-template-columns: 1fr;
  }

  .model-signal-panel {
    min-height: 360px;
  }

  .model-signal-diagram {
    min-height: 290px;
    padding-top: 184px;
  }
}

@media (max-width: 700px) {
  body.home-page[data-theme="light"] .signal-page .terminal-screen--signal,
  .signal-page .terminal-screen--signal,
  .terminal-content-page[data-terminal-page="mission"] .terminal-screen--signal {
    overflow: auto;
  }

  .manifesto-copy {
    gap: 10px;
    margin-top: 16px;
    font-size: clamp(10px, 2.65vw, 12px);
    line-height: 1.42;
  }

  .mission-shell {
    width: 100%;
    min-width: 0;
    gap: 18px;
    padding-top: 4px;
    padding-bottom: 8px;
  }

  .mission-brief .manifesto-actions {
    margin-top: 14px;
  }

  .manifesto-lede {
    margin-top: 14px;
    font-size: clamp(13px, 3.3vw, 15px);
  }

  .manifesto-question {
    font-size: 9px;
  }

  .manifesto-point-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .manifesto-point-cards li {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
  }

  .manifesto-point-cards li strong {
    padding-top: 0;
  }

  .manifesto-toggle summary {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 14px 14px 14px 62px;
  }

  .manifesto-toggle-body {
    padding: 0 14px 15px 62px;
  }

  .manifesto-point-cards li::before {
    top: 16px;
    left: 16px;
    font-size: 30px;
  }

  .mission-footer-strip {
    padding: 0;
  }

  .mission-footer-toggle summary {
    min-height: 44px;
    padding: 0 12px;
    font-size: 9px;
  }

  .mission-footer-toggle p {
    padding: 0 12px 13px;
  }

  .manifesto-points strong {
    font-size: clamp(11px, 2.9vw, 13px);
  }

  .manifesto-actions a,
  .node-links a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
    letter-spacing: .09em;
  }

  .model-card {
    min-height: 0;
  }

  .model-card p {
    font-size: clamp(12px, 3.1vw, 14px);
  }

  .model-signal-panel {
    min-height: 280px;
    padding: 14px;
  }

  .model-signal-diagram {
    min-height: 224px;
    padding: 136px 6px 0;
  }

  .terminal-page-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 20px 0;
  }

  .terminal-page-brand {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: normal;
    line-height: 1.15;
  }

  .terminal-page-nav {
    justify-content: space-between;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    gap: 8px;
    overflow-x: visible;
    scrollbar-width: none;
  }

  .terminal-page-nav::-webkit-scrollbar {
    display: none;
  }

  .terminal-page-nav a,
  .terminal-page-nav button {
    flex: 0 0 auto;
    min-height: 30px;
    font-size: 9px;
  }
}

@media (max-height: 760px) and (min-width: 900px) {
  .signal-page .thesis-hero-copy h2,
  .terminal-content-page[data-terminal-page="mission"] .thesis-hero-copy h1 {
    font-size: clamp(38px, 4.45vw, 62px);
  }

  .manifesto-copy {
    gap: 7px;
    margin-top: 14px;
    font-size: clamp(9px, .78vw, 11px);
    line-height: 1.35;
  }

  .manifesto-points {
    gap: 6px;
  }

  .manifesto-points strong {
    font-size: clamp(10px, .84vw, 12px);
  }

  .manifesto-actions a {
    min-height: 30px;
  }
}

/* ------------------------------------------------------------------------- */
/* Admin mode (site-config.js). The theme toggle and the city atmosphere     */
/* controls are the admin's instruments: the public sees their output, not   */
/* the controls themselves.                                                  */

body:not(.abg-admin) [data-theme-toggle],
body:not(.abg-admin) .control-dock {
  display: none !important;
}

.abg-admin-pill {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 210;
  padding: 7px 14px;
  border: 1px solid rgba(215, 180, 108, .55);
  color: #d7b46c;
  background: rgba(5, 5, 7, .55);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-decoration: none;
}

.abg-admin-pill:hover {
  background: rgba(215, 180, 108, .16);
}
