@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f2ed;
  --ink: #151515;
  --graphite: #343434;
  --silver: #b8b8b2;
  --silver-soft: rgba(42, 42, 42, 0.68);
  --silver-faint: rgba(42, 42, 42, 0.42);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --line: rgba(22, 22, 22, 0.22);
  --line-hot: rgba(0, 0, 0, 0.7);
  --exemplar-red: rgba(143, 36, 32, 0.95);
  --card-width: clamp(210px, 22vw, 285px);
  --font-heading: "Space Grotesk", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.field {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.12), transparent 0.5px),
    var(--paper);
}

.route-panel {
  position: relative;
  z-index: 7;
  width: min(760px, calc(100vw - 48px));
  margin: clamp(122px, 15vh, 172px) clamp(24px, 7vw, 132px) 12vh auto;
  color: var(--ink);
}

.content-window {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(11px);
  box-shadow: 0 24px 80px rgba(50, 50, 44, 0.13);
}

.content-header {
  display: grid;
  gap: 10px;
}

.content-kicker,
.item-meta,
.citation-block span {
  color: rgba(111, 22, 19, 0.55);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.content-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 0.98;
}

.content-header p {
  max-width: 62ch;
  margin: 0;
  color: rgba(42, 42, 42, 0.72);
  font-size: 15px;
}

.content-list {
  display: grid;
  gap: 10px;
}

.content-list-item {
  display: grid;
  gap: 7px;
  padding: 16px 0;
  border-top: 1px solid rgba(143, 36, 32, 0.16);
  text-decoration: none;
}

.content-list-item:hover .item-title,
.content-list-item:focus-visible .item-title {
  color: var(--exemplar-red);
}

.content-list-item:focus-visible {
  outline: 1px solid rgba(143, 36, 32, 0.72);
  outline-offset: 5px;
}

.item-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.15;
  transition: color 160ms ease-out;
}

.item-summary {
  max-width: 64ch;
  color: rgba(42, 42, 42, 0.72);
  font-size: 13px;
}

.content-article {
  gap: 26px;
}

.citation-block {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(143, 36, 32, 0.18);
  border-bottom: 1px solid rgba(143, 36, 32, 0.12);
}

.citation-block p {
  margin: 0;
  color: rgba(42, 42, 42, 0.76);
  font-size: 13px;
}

.prose {
  max-width: 68ch;
  color: rgba(28, 28, 28, 0.84);
  font-size: 15px;
  line-height: 1.68;
}

.prose p {
  margin: 0 0 1em;
}

.media-stack {
  display: grid;
  gap: 14px;
}

.media-item {
  display: grid;
  gap: 8px;
  margin: 0;
}

.media-item img,
.media-item video,
.media-item iframe {
  display: block;
  width: 100%;
  border: 1px solid rgba(143, 36, 32, 0.16);
  background: rgba(255, 255, 255, 0.42);
}

.media-item iframe {
  aspect-ratio: 16 / 9;
}

.media-item figcaption {
  color: rgba(42, 42, 42, 0.62);
  font-size: 12px;
}

body[data-route-mode="content"] .center-signal,
body[data-route-mode="content"] .orbit,
body[data-route-mode="content"] .project-index {
  opacity: 0.62;
  transition:
    opacity 260ms ease-out,
    transform 260ms ease-out;
}

body[data-route-mode="content"] .orbit {
  transform: translateX(-10px);
}

body[data-route-mode="content"] .project-index-popover {
  opacity: 1;
}

.background-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/silver-manifold-field.png");
  background-position: center;
  background-size: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.96);
  opacity: 0.82;
  transform: scale(1.1);
  transform-origin: center;
  transition: transform 120ms linear;
  will-change: transform;
}

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

.field::before {
  z-index: -2;
  background:
    radial-gradient(circle at 50% 50%, rgba(243, 242, 237, 0.18), rgba(243, 242, 237, 0.04) 28%, rgba(243, 242, 237, 0) 72%),
    linear-gradient(90deg, rgba(243, 242, 237, 0.03), transparent 30%, transparent 70%, rgba(243, 242, 237, 0.03));
}

.field::after {
  z-index: -1;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.manifold-space,
.ray-overlay,
.card-traces,
.menu-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.manifold-space {
  z-index: 0;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.card-traces {
  z-index: 1;
}

.ray-overlay {
  z-index: 2;
  mix-blend-mode: multiply;
}

.menu-overlay {
  z-index: 5;
  mix-blend-mode: multiply;
}

.ray-overlay path {
  fill: none;
  stroke: rgba(10, 10, 10, 0.56);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}

.ray-overlay path.is-dash {
  stroke-dasharray: 12 10;
}

.ray-overlay path.is-dot {
  stroke-linecap: round;
  stroke-dasharray: 1 11;
  stroke-width: 2;
}

.ray-overlay .ray-end {
  fill: rgba(243, 242, 237, 0.78);
  stroke: rgba(10, 10, 10, 0.72);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ray-overlay .ray-end.is-connected {
  fill: rgba(10, 10, 10, 0.72);
}

.ray-overlay .ray-end.is-square {
  rx: 0;
}

.ray-overlay .exemplar-label,
.menu-overlay .exemplar-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-out;
}

.ray-overlay .exemplar-label.is-visible,
.ray-overlay .menu-label.is-visible,
.menu-overlay .exemplar-label.is-visible,
.menu-overlay .menu-label.is-visible {
  opacity: 1;
}

.ray-overlay .exemplar-leader,
.ray-overlay .menu-leader,
.menu-overlay .exemplar-leader,
.menu-overlay .menu-leader {
  fill: none;
  stroke: rgba(143, 36, 32, 0.66);
  stroke-width: 1.05;
  stroke-dasharray: 4 8;
  vector-effect: non-scaling-stroke;
}

.ray-overlay .exemplar-leader-mark,
.ray-overlay .menu-leader-mark,
.menu-overlay .exemplar-leader-mark,
.menu-overlay .menu-leader-mark {
  fill: rgba(243, 242, 237, 0.7);
  stroke: rgba(143, 36, 32, 0.72);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ray-overlay .exemplar-label-plate,
.ray-overlay .menu-label-plate,
.menu-overlay .exemplar-label-plate,
.menu-overlay .menu-label-plate {
  fill: rgba(255, 255, 255, 0.58);
  stroke: rgba(143, 36, 32, 0.28);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.ray-overlay .exemplar-label text,
.ray-overlay .menu-label text,
.menu-overlay .exemplar-label text,
.menu-overlay .menu-label text {
  fill: rgba(111, 22, 19, 0.86);
  font-family: var(--font-mono);
  letter-spacing: 0;
  pointer-events: none;
}

.ray-overlay .menu-label,
.menu-overlay .menu-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease-out;
}

.ray-overlay .exemplar-label-title,
.menu-overlay .exemplar-label-title {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.ray-overlay .exemplar-label-architect,
.menu-overlay .exemplar-label-architect {
  fill: rgba(111, 22, 19, 0.58);
  font-size: 9px;
}

.ray-overlay .menu-label-copy,
.menu-overlay .menu-label-copy {
  fill: rgba(111, 22, 19, 0.78);
  font-size: 9.5px;
}

.card-traces path {
  fill: none;
  stroke: rgba(12, 12, 12, 0.34);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 5 10;
  transition:
    opacity 180ms ease-out,
    stroke 180ms ease-out;
}

.card-traces .trace-line.is-secondary {
  stroke-dasharray: 1 9;
  stroke-width: 1.1;
}

.card-traces .trace-line.is-hot {
  stroke: rgba(143, 36, 32, 0.72);
}

.card-traces .trace-pickup {
  fill: rgba(243, 242, 237, 0.66);
  stroke: rgba(12, 12, 12, 0.34);
  stroke-width: 0.9;
  vector-effect: non-scaling-stroke;
  transition:
    fill 180ms ease-out,
    stroke 180ms ease-out;
}

.card-traces .trace-pickup.is-hot {
  fill: rgba(143, 36, 32, 0.78);
  stroke: rgba(111, 22, 19, 0.9);
}

.center-signal {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  top: clamp(24px, 4vw, 56px);
  z-index: 4;
  display: grid;
  gap: 8px;
  width: var(--card-width);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--glass);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  backdrop-filter: blur(7px);
}

.center-signal::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -4px;
  top: -4px;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.overline,
.node-kind {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overline {
  color: var(--silver-faint);
}

h1 {
  margin: 0;
  color: var(--exemplar-red);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 6px 32px rgba(255, 255, 255, 0.84);
}

.summary {
  margin: 0;
  color: var(--silver-soft);
  font-size: 13px;
}

.orbit {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  top: calc(clamp(24px, 4vw, 56px) + 126px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(440px, calc(100vw - 72px));
}

.node {
  position: relative;
  display: grid;
  gap: 6px;
  width: clamp(180px, 17vw, 238px);
  min-height: 70px;
  padding: 13px 15px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--glass);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(7px);
  transition:
    border-color 240ms ease-out,
    background-color 240ms ease-out,
    opacity 240ms ease-out;
}

.node::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: -4px;
  top: -4px;
  border: 1px solid var(--line-hot);
  background: var(--paper);
}

.node:hover,
.node:focus-visible {
  background: var(--glass-strong);
  outline: none;
}

.node:hover .node-title,
.node:focus-visible .node-title,
.node.is-hovered .node-title {
  color: var(--exemplar-red);
}

.node.is-current {
  border-color: rgba(143, 36, 32, 0.84);
}

.node.is-current::before {
  border-color: rgba(143, 36, 32, 0.96);
  background: rgba(143, 36, 32, 0.95);
}

.node.is-current .node-title {
  color: var(--exemplar-red);
}

.node-kind {
  color: var(--silver-faint);
}

.node-title {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.12;
  transition: color 160ms ease-out;
}

.node-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.node-canberra {
  margin-left: 42px;
}

.node-machinic {
  margin-left: 124px;
  width: clamp(204px, 19vw, 264px);
}

.project-index {
  position: fixed;
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 8;
  color: var(--ink);
}

.project-index-toggle {
  display: block;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(143, 36, 32, 0.78);
  background: rgba(243, 242, 237, 0.62);
  cursor: pointer;
  transition:
    background-color 180ms ease-out,
    border-color 180ms ease-out,
    transform 180ms ease-out;
}

.project-index-toggle:hover,
.project-index-toggle:focus-visible,
.project-index-toggle.is-open {
  border-color: rgba(111, 22, 19, 0.96);
  background: rgba(143, 36, 32, 0.36);
  outline: none;
  transform: scale(1.08);
}

.project-index-popover {
  position: absolute;
  right: 0;
  bottom: 30px;
  width: min(720px, calc(100vw - 32px));
  max-height: min(76vh, 720px);
  border: 1px solid rgba(143, 36, 32, 0.3);
  background: rgba(248, 247, 243, 0.78);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.project-index-popover[hidden] {
  display: none;
}

.project-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(143, 36, 32, 0.18);
  color: rgba(111, 22, 19, 0.74);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-index-search {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.project-index-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.project-index-filter {
  width: 118px;
  height: 22px;
  padding: 2px 6px;
  border: 1px solid rgba(143, 36, 32, 0.22);
  background: rgba(255, 255, 255, 0.36);
  color: rgba(42, 42, 42, 0.78);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-index-filter::placeholder {
  color: rgba(111, 22, 19, 0.34);
}

.project-index-filter:focus {
  border-color: rgba(111, 22, 19, 0.68);
  outline: none;
}

.project-index-close {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(111, 22, 19, 0.62);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.project-index-close:hover,
.project-index-close:focus-visible {
  color: rgba(111, 22, 19, 0.95);
  outline: none;
}

.project-index-list {
  display: grid;
  gap: 0;
  max-height: calc(min(76vh, 720px) - 43px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.project-entry {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(143, 36, 32, 0.14);
}

.project-entry.is-filtered {
  display: none;
}

.project-entry:last-child {
  border-bottom: 0;
}

.project-preview {
  display: grid;
  place-items: center;
  min-height: 96px;
}

.project-study {
  width: 90px;
  height: 90px;
  overflow: visible;
  animation: exemplarSpin 16s linear infinite;
  transform-origin: center;
}

.project-study path,
.project-study line,
.project-study polyline,
.project-study rect,
.project-study circle,
.project-study ellipse {
  fill: rgba(143, 36, 32, 0.08);
  stroke: rgba(111, 22, 19, 0.58);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.project-study .is-faint {
  fill: none;
  stroke: rgba(111, 22, 19, 0.26);
  stroke-dasharray: 3 6;
}

.project-card {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.project-card-meta,
.project-card-place {
  color: rgba(111, 22, 19, 0.55);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card-title {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.12;
}

.project-card-architect {
  color: rgba(42, 42, 42, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.project-card-note {
  max-width: 58ch;
  color: rgba(42, 42, 42, 0.72);
  font-size: 12.5px;
  line-height: 1.48;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-card-link {
  justify-self: start;
  border: 0;
  border-bottom: 1px solid rgba(143, 36, 32, 0.34);
  background: transparent;
  color: rgba(111, 22, 19, 0.68);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.project-card-link:hover,
.project-card-link:focus-visible {
  border-color: rgba(111, 22, 19, 0.78);
  color: rgba(111, 22, 19, 0.95);
  outline: none;
}

@keyframes exemplarSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 980px) {
  body {
    overflow-x: hidden;
  }

  .field {
    min-height: auto;
    padding: 40px 20px;
    overflow: visible;
  }

  .route-panel {
    width: min(100% - 32px, 680px);
    margin: 52vh auto 80px;
  }

  .background-image {
    position: fixed;
  }

  .center-signal,
  .orbit {
    position: relative;
    inset: auto;
    left: auto;
    top: auto;
    margin: 0;
    transform: none;
  }

  .center-signal {
    width: min(100%, 520px);
    text-align: left;
    margin-top: 8vh;
    margin-bottom: 24px;
  }

  .orbit {
    width: min(100%, 520px);
    display: grid;
    gap: 12px;
  }

  .node {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .node-canberra,
  .node-machinic {
    margin-left: 0;
  }

  .manifold-space,
  .ray-overlay,
  .card-traces,
  .menu-overlay {
    opacity: 0.25;
  }

  .card-traces,
  .menu-overlay .menu-leader,
  .menu-overlay .menu-leader-mark {
    display: none;
  }

  .project-index-popover {
    max-height: 72vh;
  }

  .project-entry {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
  }

  .project-preview {
    min-height: 76px;
  }

  .project-study {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .field {
    padding: 24px 16px;
  }

  .route-panel {
    width: calc(100% - 24px);
    margin-top: 56vh;
  }

  .content-window {
    padding: 20px;
  }

  .center-signal {
    padding: 24px;
  }

  h1 {
    font-size: 18px;
  }

  .project-index {
    right: 16px;
    bottom: 16px;
  }

  .project-index-popover {
    width: calc(100vw - 24px);
    max-height: 72vh;
  }

  .project-entry {
    grid-template-columns: 1fr;
  }

  .project-preview {
    justify-content: start;
    min-height: 62px;
  }

  .project-study {
    width: 64px;
    height: 64px;
  }
}
