:root {
  --void: #07090b;
  --carbon: #13171a;
  --paper: #f0efe8;
  --aluminum: #aab3b8;
  --muted: #717b81;
  --cyan: #32d6ff;
  --yellow: #ffd43b;
  --red: #ff4d61;
  --line: rgba(240, 239, 232, 0.18);
  --content: 1240px;
  --header-height: 72px;
  --scroll-progress: 0;
  --pointer-x: 0;
  --pointer-y: 0;
  --hero-scroll: 0;
  --font-sans: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Cascadia Mono", monospace;
  --ease-transit: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--void);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

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

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 32px;
  border-bottom: 1px solid rgba(240, 239, 232, 0.14);
  background: rgba(7, 9, 11, 0.9);
  backdrop-filter: blur(14px);
  transition: min-height 240ms var(--ease-transit), background 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  min-height: 60px;
  border-bottom-color: rgba(240, 239, 232, 0.24);
  background: rgba(7, 9, 11, 0.97);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 800;
}

.brand-lines {
  display: grid;
  gap: 3px;
  width: 28px;
  transform: skewX(-35deg);
}

.brand-lines i,
.dialog-rail i,
.signal-runner i {
  display: block;
  height: 4px;
}

.brand-lines i:nth-child(1),
.dialog-rail i:nth-child(1),
.signal-runner i:nth-child(1) {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(50, 214, 255, 0.72);
}

.brand-lines i:nth-child(2),
.dialog-rail i:nth-child(2),
.signal-runner i:nth-child(2) {
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(255, 212, 59, 0.68);
}

.brand-lines i:nth-child(3),
.dialog-rail i:nth-child(3),
.signal-runner i:nth-child(3) {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 77, 97, 0.72);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-panel nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-panel nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--aluminum);
  font-size: 14px;
}

.nav-panel nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-panel nav a:hover,
.nav-panel nav a[aria-current="true"] {
  color: var(--paper);
}

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

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
}

.header-status span {
  width: 7px;
  height: 7px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 212, 59, 0.55);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 11px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.scroll-rail {
  position: fixed;
  top: calc(var(--header-height) + 24px);
  bottom: 24px;
  right: 18px;
  left: auto;
  z-index: 80;
  width: 25px;
  pointer-events: none;
}

.rail-track,
.rail-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  transform-origin: top;
}

.rail-track {
  opacity: 0.16;
}

.rail-fill {
  transform: scaleY(var(--scroll-progress));
  box-shadow: 0 0 7px currentColor, 0 0 20px currentColor, 0 0 34px color-mix(in srgb, currentColor 48%, transparent);
  animation: rail-glow 2.4s ease-in-out infinite;
}

.rail-cyan {
  left: 0;
  background: var(--cyan);
  color: var(--cyan);
}

.rail-yellow {
  left: 8px;
  background: var(--yellow);
  color: var(--yellow);
}

.rail-red {
  left: 16px;
  background: var(--red);
  color: var(--red);
}

.rail-marker {
  position: absolute;
  top: calc((100% - 10px) * var(--scroll-progress));
  left: -3px;
  width: 27px;
  height: 10px;
  border: 1px solid var(--paper);
  background: var(--void);
}

.hero {
  position: relative;
  display: block;
  height: calc(100svh - var(--header-height));
  min-height: 680px;
  max-height: 820px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 56%;
  border-left: 1px solid rgba(240, 239, 232, 0.1);
  content: "";
  background: rgba(3, 5, 6, 0.24);
  pointer-events: none;
}

.hero-image,
.hero-shade {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.48) contrast(1.22);
  opacity: 0.52;
  transform: scale(1.06);
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.is-ready .hero-image {
  transform: scale(1);
}

.hero-shade {
  background: rgba(7, 9, 11, 0.56);
}

.hero-intro-curtain {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: var(--void);
  pointer-events: none;
  transform: translateX(0);
  transition: transform 1080ms cubic-bezier(0.7, 0, 0.2, 1) 90ms;
  will-change: transform;
}

.is-ready .hero-intro-curtain {
  transform: translateX(101%);
}

.intro-complete .hero-intro-curtain,
.intro-complete .hero-calibration {
  display: none;
}

.hero-intro-curtain i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
}

.hero-intro-curtain i:nth-child(1) {
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan), 0 0 24px rgba(50, 214, 255, 0.68);
  transform: translateX(-19px);
}

.hero-intro-curtain i:nth-child(2) {
  background: var(--yellow);
  box-shadow: 0 0 9px var(--yellow), 0 0 24px rgba(255, 212, 59, 0.6);
  transform: translateX(-12px);
}

.hero-intro-curtain i:nth-child(3) {
  background: var(--red);
  box-shadow: 0 0 9px var(--red), 0 0 24px rgba(255, 77, 97, 0.68);
  transform: translateX(-5px);
}

.hero-calibration {
  position: absolute;
  top: 90px;
  right: 4.5%;
  z-index: 6;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
}

.is-ready .hero-calibration {
  animation: calibration-lock 1280ms var(--ease-transit) 470ms both;
}

.hero-calibration::before,
.hero-calibration::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: rgba(240, 239, 232, 0.34);
}

.hero-calibration::before {
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%) scaleX(0);
}

.hero-calibration::after {
  width: 1px;
  height: 100%;
  transform: translate(-50%, -50%) scaleY(0);
}

.is-ready .hero-calibration::before {
  animation: calibration-axis-x 780ms var(--ease-transit) 570ms both;
}

.is-ready .hero-calibration::after {
  animation: calibration-axis-y 780ms var(--ease-transit) 660ms both;
}

.hero-calibration i {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--cyan);
  border-style: solid;
  filter: drop-shadow(0 0 7px rgba(50, 214, 255, 0.62));
}

.hero-calibration i:nth-child(1) {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.hero-calibration i:nth-child(2) {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.hero-calibration i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-width: 0 2px 2px 0;
}

.hero-calibration i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.hero-route {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.route-line {
  fill: none;
  stroke-width: 7;
  stroke-linejoin: bevel;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 900ms cubic-bezier(0.65, 0, 0.35, 1), opacity 240ms ease, stroke-width 260ms var(--ease-transit);
}

.route-cyan {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 2px rgba(220, 250, 255, 0.96)) drop-shadow(0 0 10px rgba(50, 214, 255, 0.94)) drop-shadow(0 0 26px rgba(50, 214, 255, 0.78));
  transition-delay: 360ms;
}

.route-yellow {
  stroke: var(--yellow);
  filter: drop-shadow(0 0 2px rgba(255, 249, 205, 0.96)) drop-shadow(0 0 10px rgba(255, 212, 59, 0.92)) drop-shadow(0 0 26px rgba(255, 212, 59, 0.72));
  transition-delay: 470ms;
}

.route-red {
  stroke: var(--red);
  filter: drop-shadow(0 0 2px rgba(255, 221, 226, 0.96)) drop-shadow(0 0 10px rgba(255, 77, 97, 0.94)) drop-shadow(0 0 26px rgba(255, 77, 97, 0.76));
  transition-delay: 580ms;
}

.is-ready .route-line {
  stroke-dashoffset: 0;
}

.hero[data-signal-channel] .route-line {
  opacity: 0.3;
}

.hero[data-signal-channel="cyan"] .route-cyan,
.hero[data-signal-channel="yellow"] .route-yellow,
.hero[data-signal-channel="red"] .route-red {
  stroke-width: 11;
  opacity: 1;
}

.intro-complete .route-line,
.intro-complete .route-halo {
  transition-delay: 0ms;
}

.route-halo {
  fill: none;
  stroke-width: 28;
  stroke-linejoin: bevel;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 1050ms cubic-bezier(0.65, 0, 0.35, 1), opacity 400ms ease 720ms;
}

.halo-cyan {
  stroke: var(--cyan);
  filter: drop-shadow(0 0 24px rgba(50, 214, 255, 0.82));
  transition-delay: 360ms, 920ms;
}

.halo-yellow {
  stroke: var(--yellow);
  filter: drop-shadow(0 0 24px rgba(255, 212, 59, 0.74));
  transition-delay: 470ms, 1030ms;
}

.halo-red {
  stroke: var(--red);
  filter: drop-shadow(0 0 24px rgba(255, 77, 97, 0.8));
  transition-delay: 580ms, 1140ms;
}

.is-ready .route-halo {
  stroke-dashoffset: 0;
  opacity: 0.3;
}

.route-pulses {
  opacity: 0;
  transition: opacity 300ms ease 1.35s;
}

.is-ready .route-pulses {
  opacity: 1;
}

.route-pulse {
  stroke: var(--paper);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.pulse-cyan {
  fill: var(--cyan);
  filter: drop-shadow(0 0 7px var(--cyan));
}

.pulse-yellow {
  fill: var(--yellow);
  filter: drop-shadow(0 0 7px var(--yellow));
}

.pulse-red {
  fill: var(--red);
  filter: drop-shadow(0 0 7px var(--red));
}

.route-node {
  stroke: var(--paper);
  stroke-width: 1.5;
  opacity: 0;
  vector-effect: non-scaling-stroke;
  transition: opacity 220ms ease 700ms;
}

.node-two {
  fill: var(--yellow);
  filter: drop-shadow(0 0 8px var(--yellow));
}

.is-ready .route-node {
  opacity: 1;
  animation: node-charge 2.2s ease-in-out 1s infinite;
}

.hero-3d-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 700ms ease 260ms, transform 1000ms cubic-bezier(0.22, 1, 0.36, 1) 220ms;
  pointer-events: auto;
  cursor: grab;
}

.is-ready .hero-3d-layer {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-3d-layer.is-interacting {
  cursor: grabbing;
}

.hero-3d-canvas,
.hero-3d-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-3d-canvas {
  right: 0;
  left: 42%;
  width: 58%;
  z-index: 2;
  display: block;
  opacity: 0;
  transition: opacity 520ms ease;
  touch-action: none;
}

.three-ready .hero-3d-canvas {
  opacity: 1;
}

.hero-3d-fallback {
  z-index: 1;
  object-fit: contain;
  object-position: center right;
  opacity: 0;
  filter: saturate(0.96) contrast(1.04);
  transition: opacity 420ms ease;
  pointer-events: none;
}

.three-ready .hero-3d-fallback {
  opacity: 0;
}

.three-failed .hero-3d-fallback {
  opacity: 0.66;
}

.beacon-readout {
  position: absolute;
  right: 32px;
  bottom: 128px;
  z-index: 5;
  display: grid;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.is-ready .beacon-readout {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease 1080ms, transform 520ms var(--ease-transit) 1080ms;
}

.beacon-readout::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 1px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.beacon-readout span {
  color: var(--aluminum);
}

.beacon-readout span::after {
  display: inline-block;
  width: 28px;
  height: 3px;
  margin-left: 9px;
  content: "";
  background: linear-gradient(90deg, var(--cyan) 0 30%, transparent 30% 35%, var(--yellow) 35% 65%, transparent 65% 70%, var(--red) 70% 100%);
  box-shadow: 0 0 10px rgba(50, 214, 255, 0.4);
}

.beacon-readout strong {
  color: var(--paper);
  font-weight: 500;
}

.beacon-readout i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow), 0 0 16px rgba(255, 212, 59, 0.65);
  animation: status-pulse 1.8s step-end infinite;
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 28px 40px;
  width: min(var(--content), calc(100% - 128px));
  height: 100%;
  margin: 0 auto;
  padding: 116px 0 30px;
  pointer-events: none;
}

.hero-content > * {
  opacity: 0;
  transition: opacity 520ms ease, transform 620ms var(--ease-transit);
}

.is-ready .hero-content > * {
  opacity: 1;
}

.hero-copy {
  position: relative;
  grid-column: 1;
  align-self: end;
  max-width: 700px;
  padding-bottom: 4px;
  pointer-events: auto;
}

@media (min-width: 821px) {
  .hero-copy {
    transform: translateY(-56px);
  }
}

.hero-content h1 {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 820ms var(--ease-transit) 440ms, opacity 220ms ease 440ms;
}

.is-ready .hero-content h1 {
  clip-path: inset(0 0 0 0);
}

.hero-content > :nth-child(1) { transition-delay: 260ms; }
.hero-content > :nth-child(2) {
  transform: translateY(18px);
  transition-delay: 940ms;
}

.is-ready .hero-content > :nth-child(2) {
  transform: translateY(0);
}

.hero-copy > .eyebrow,
.hero-copy > .hero-lead,
.hero-copy > .hero-actions {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 560ms var(--ease-transit);
}

.is-ready .hero-copy > .eyebrow,
.is-ready .hero-copy > .hero-lead,
.is-ready .hero-copy > .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.is-ready .hero-copy > .eyebrow { transition-delay: 320ms; }
.is-ready .hero-copy > .hero-lead { transition-delay: 690ms; }
.is-ready .hero-copy > .hero-actions { transition-delay: 810ms; }

.eyebrow,
.section-code,
.project-code,
dt,
.footer-code {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--cyan);
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--aluminum);
}

.hero-availability i {
  width: 6px;
  height: 6px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 212, 59, 0.72);
  animation: status-pulse 1.8s step-end infinite;
}

.hero h1 {
  width: min(620px, 51vw);
  max-width: none;
  aspect-ratio: 2064 / 258;
  margin: 0;
}

.hero-wordmark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(50, 214, 255, 0.16));
}

.hero-lead {
  display: grid;
  gap: 3px;
  margin: 18px 0 0;
}

.hero-lead strong {
  color: var(--paper);
  font-size: 20px;
  font-weight: 700;
}

.hero-lead span {
  color: var(--aluminum);
  font-size: 14px;
}

.hero-actions,
.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button span,
.text-command span {
  transition: transform 220ms var(--ease-transit);
}

.button:hover span,
.text-command:hover span,
.text-command:focus-visible span {
  transform: translateX(5px);
}

.button-primary {
  background: var(--red);
  color: var(--void);
}

.button-primary:hover {
  background: var(--yellow);
}

.button-secondary {
  border-color: rgba(240, 239, 232, 0.45);
  background: rgba(7, 9, 11, 0.5);
  color: var(--paper);
}

.button-secondary:hover {
  border-color: var(--cyan);
}

.hero-index {
  --channel: var(--cyan);
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(820px, 70%);
  border-top: 1px solid rgba(240, 239, 232, 0.38);
  border-bottom: 1px solid rgba(240, 239, 232, 0.18);
  background: rgba(7, 9, 11, 0.84);
  pointer-events: auto;
}

.hero-index a {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 78px;
  padding: 12px 16px;
  border-left: 1px solid rgba(240, 239, 232, 0.16);
  transition: background 200ms ease, color 200ms ease;
}

.hero-index a:first-child {
  border-left: 0;
}

.hero-index a:nth-child(1) { --channel: var(--cyan); }
.hero-index a:nth-child(2) { --channel: var(--yellow); }
.hero-index a:nth-child(3) { --channel: var(--red); }

.hero-index a::before {
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--channel);
  box-shadow: 0 0 12px color-mix(in srgb, var(--channel) 68%, transparent);
  transform: scaleX(0.12);
  transform-origin: left;
  transition: transform 300ms var(--ease-transit);
}

.hero-index a:hover,
.hero-index a:focus-visible {
  background: rgba(240, 239, 232, 0.07);
}

.hero-index a:hover::before,
.hero-index a:focus-visible::before {
  transform: scaleX(1);
}

.hero-index-value {
  font-family: var(--font-mono);
  color: var(--channel);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}

.hero-index-copy {
  display: grid;
  min-width: 0;
}

.hero-index-copy b {
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

.hero-index-copy small {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.hero-index-arrow {
  color: var(--channel);
  font-size: 16px;
  transition: transform 240ms var(--ease-transit);
}

.hero-index a:hover .hero-index-arrow,
.hero-index a:focus-visible .hero-index-arrow {
  transform: translate(3px, 3px);
}

.content-section {
  position: relative;
  width: min(var(--content), calc(100% - 128px));
  margin: 0 auto;
  padding: 112px 0;
}

.projects {
  padding-top: 48px;
}

.section-heading {
  display: grid;
  grid-template-columns: 2fr 5fr 5fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 54px;
}

.section-code,
.project-code {
  color: var(--cyan);
}

.section-heading h2,
.about-grid h2 {
  margin: -8px 0 0;
  font-family: var(--font-sans);
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.section-heading > p:last-child {
  max-width: 480px;
  margin: 0;
  color: var(--aluminum);
}

.project-list {
  border-bottom: 1px solid var(--line);
}

.project-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(150px, 2fr);
  gap: 30px;
  align-items: center;
  min-height: 390px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  transition: background 240ms ease;
}

.project-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 3px;
  content: "";
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 420ms var(--ease-transit);
}

.project-row:hover,
.project-row:focus-within {
  background: rgba(240, 239, 232, 0.018);
}

.project-row:hover::before,
.project-row:focus-within::before {
  transform: scaleY(1);
}

.project-index {
  position: absolute;
  top: 18px;
  right: 0;
  font-family: var(--font-mono);
  color: rgba(240, 239, 232, 0.08);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.project-media {
  --media-x: 0px;
  --media-y: 0px;
  position: relative;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  background: var(--carbon);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 760ms var(--ease-transit);
}

.project-row.is-visible .project-media {
  clip-path: inset(0 0 0 0);
}

.project-media::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(240, 239, 232, 0.22);
  pointer-events: none;
}

.project-media img,
.research-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.12);
  transform: translate3d(var(--media-x, 0px), var(--media-y, 0px), 0) scale(1.04);
  transition: transform 600ms var(--ease-transit), filter 300ms ease;
}

.project-row:hover .project-media img {
  transform: translate3d(var(--media-x, 0px), var(--media-y, 0px), 0) scale(1.07);
  filter: saturate(0.9) contrast(1.1);
}

.project-media figcaption,
.research-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 10px;
  background: rgba(7, 9, 11, 0.88);
  font-family: var(--font-mono);
  color: var(--aluminum);
  font-size: 10px;
}

.project-copy h3,
.research-copy h3 {
  margin: 14px 0 16px;
  font-family: var(--font-sans);
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 700;
}

.project-copy > p:not(.project-code),
.research-copy > p:not(.project-code) {
  max-width: 560px;
  margin: 0;
  color: var(--aluminum);
}

.text-command {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding: 0 0 7px;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-weight: 600;
}

.text-command::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform 220ms ease, background 220ms ease;
}

.text-command:hover::after,
.text-command:focus-visible::after {
  background: var(--cyan);
  transform: scaleX(1);
}

.project-meta {
  display: grid;
  gap: 18px;
  margin: 0;
}

.project-meta div,
.dialog-meta div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.project-meta dt,
.dialog-meta dt {
  color: var(--muted);
  font-size: 10px;
}

.project-meta dd,
.dialog-meta dd {
  margin: 3px 0 0;
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: 11px;
}

.research {
  width: 100%;
  padding-right: max(64px, calc((100% - var(--content)) / 2));
  padding-left: max(64px, calc((100% - var(--content)) / 2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--carbon);
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr);
  gap: 48px;
  align-items: stretch;
}

.research-media {
  position: relative;
  min-height: 470px;
  margin: 0;
  overflow: hidden;
  background: var(--void);
}

.research-media figcaption {
  width: auto;
  right: auto;
}

.research-copy {
  align-self: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-grid div {
  min-width: 0;
  padding: 16px;
  background: var(--void);
}

.metric-grid strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 8px;
  color: var(--aluminum);
  font-size: 12px;
}

.signal-band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 86px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--void);
}

.signal-band p {
  position: relative;
  z-index: 2;
  width: min(var(--content), calc(100% - 128px));
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
}

.signal-band p span {
  margin-right: 26px;
  font-weight: 600;
}

.signal-runner {
  position: absolute;
  right: 0;
  display: grid;
  gap: 6px;
  width: 32%;
  transform: skewX(-35deg) translateX(78%);
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1);
}

.signal-band.is-visible .signal-runner {
  transform: skewX(-35deg) translateX(12%);
}

.signal-runner i {
  height: 6px;
}

.writing-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.writing-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.writing-list time {
  display: flex;
  align-items: center;
  padding: 22px 18px 22px 0;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
}

.writing-list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 92px;
  padding: 18px 0 18px 28px;
  border-left: 1px solid var(--line);
  transition: background 180ms ease;
}

.writing-list a:hover {
  background: rgba(50, 214, 255, 0.05);
}

.writing-list a::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 3px;
  content: "";
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 300ms var(--ease-transit);
}

.writing-list a:hover::before,
.writing-list a:focus-visible::before {
  transform: scaleY(1);
}

.writing-list a span {
  font-size: 20px;
  font-weight: 600;
}

.writing-list a small {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 10px;
}

.about {
  width: 100%;
  padding-right: max(64px, calc((100% - var(--content)) / 2));
  padding-left: max(64px, calc((100% - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: var(--carbon);
}

.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
}

.about-grid h2 {
  max-width: 500px;
  margin-top: 16px;
  font-size: 64px;
}

.about-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--aluminum);
  font-size: 20px;
}

blockquote {
  max-width: 690px;
  margin: 38px 0 0;
  padding: 20px 0 20px 26px;
  border-left: 5px solid var(--red);
  color: var(--paper);
  font-size: 24px;
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 24px;
  align-items: end;
  min-height: 220px;
  padding: 48px max(64px, calc((100% - var(--content)) / 2));
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.footer-code {
  text-align: right;
}

.reveal {
  opacity: 0;
  transition: opacity 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
}

.project-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: min(720px, calc(100dvh - 32px));
  padding: 48px;
  overflow: auto;
  border: 1px solid rgba(240, 239, 232, 0.32);
  border-radius: 4px;
  background: var(--carbon);
  color: var(--paper);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58);
}

.project-dialog::backdrop {
  background: rgba(7, 9, 11, 0.82);
  backdrop-filter: blur(8px);
}

.project-dialog[open] {
  animation: dialog-in 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.dialog-rail {
  display: grid;
  gap: 5px;
  width: 180px;
  margin: -12px 0 34px;
  transform: skewX(-35deg);
}

.dialog-rail i {
  height: 5px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 26px;
}

.project-dialog h2 {
  margin: 14px 0 18px;
  font-family: var(--font-sans);
  font-size: 42px;
  line-height: 1.1;
}

.project-dialog > p:not(.project-code) {
  color: var(--aluminum);
}

.dialog-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 34px 0 0;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes calibration-lock {
  0% { opacity: 0; transform: scale(1.12) rotate(0.8deg); }
  24% { opacity: 0.72; }
  68% { opacity: 0.5; transform: scale(1) rotate(0deg); }
  100% { opacity: 0; transform: scale(0.96) rotate(0deg); }
}

@keyframes calibration-axis-x {
  0% { transform: translate(-50%, -50%) scaleX(0); }
  48%, 72% { transform: translate(-50%, -50%) scaleX(1); }
  100% { transform: translate(-50%, -50%) scaleX(0.08); }
}

@keyframes calibration-axis-y {
  0% { transform: translate(-50%, -50%) scaleY(0); }
  48%, 72% { transform: translate(-50%, -50%) scaleY(1); }
  100% { transform: translate(-50%, -50%) scaleY(0.08); }
}

@keyframes rail-glow {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

@keyframes node-charge {
  0%, 100% { stroke-width: 2; filter: drop-shadow(0 0 2px rgba(240, 239, 232, 0.25)); }
  50% { stroke-width: 3; filter: drop-shadow(0 0 10px rgba(240, 239, 232, 0.9)); }
}

@keyframes status-pulse {
  0%, 48% { opacity: 1; }
  49%, 62% { opacity: 0.3; }
  63%, 100% { opacity: 1; }
}

@media (max-width: 1120px) {
  .scroll-rail {
    right: 8px;
    left: auto;
  }

  .hero-content,
  .content-section,
  .signal-band p {
    width: min(100% - 80px, var(--content));
  }

  .hero h1 {
    width: min(590px, 58vw);
  }

  .hero-index {
    width: min(800px, 76%);
  }

  .hero-3d-layer {
    left: 0;
  }

  .research,
  .about {
    padding-right: 40px;
    padding-left: 40px;
  }

  .section-heading {
    grid-template-columns: 2fr 5fr 5fr;
    gap: 24px;
  }

  .project-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  }

  .project-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 60px;
  }

  .site-header {
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-panel {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 24px;
    padding: 22px 18px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--void);
    transform: translateY(-120%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .menu-open .nav-panel {
    transform: translateY(0);
  }

  .nav-panel nav {
    display: grid;
    gap: 0;
  }

  .nav-panel nav a {
    min-height: 52px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .header-status {
    justify-content: flex-end;
  }

  .scroll-rail {
    top: auto;
    right: 16px;
    bottom: 12px;
    left: 16px;
    z-index: 90;
    width: auto;
    height: 14px;
  }

  .rail-track,
  .rail-fill {
    top: auto;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 3px;
    transform-origin: left;
  }

  .rail-fill {
    transform: scaleX(var(--scroll-progress));
  }

  .rail-cyan { top: 0; }
  .rail-yellow { top: 7px; }
  .rail-red { top: 14px; }

  .rail-marker {
    top: -4px;
    left: calc((100% - 8px) * var(--scroll-progress));
    width: 8px;
    height: 24px;
  }

  .hero {
    height: calc(100svh - 80px);
    min-height: 660px;
    max-height: 820px;
  }

  .hero::after {
    inset: 0;
    border-left: 0;
    background: rgba(3, 5, 6, 0.08);
  }

  .hero-content,
  .content-section,
  .signal-band p {
    width: calc(100% - 40px);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    padding: 104px 0 26px;
  }

  .hero-copy {
    width: 100%;
    max-width: 560px;
    padding: 0;
  }

  .hero h1 {
    width: min(480px, 82vw);
  }

  .hero-3d-layer {
    inset: 0;
    pointer-events: none;
    cursor: default;
  }

  .hero-calibration {
    top: 54px;
    right: 7%;
    width: 86%;
  }

  .hero-3d-canvas {
    right: auto;
    left: 0;
    width: 100%;
  }

  .three-ready .hero-3d-canvas {
    opacity: 1;
  }

  .hero-3d-fallback {
    object-position: 72% center;
    opacity: 0.62;
  }

  .beacon-readout {
    display: none;
  }

  .hero-route {
    width: 172%;
    transform: translateX(-34%);
  }

  .hero-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-index a {
    min-height: 70px;
  }

  .hero-index a:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hero-index-copy small {
    white-space: normal;
  }

  .content-section,
  .research,
  .about {
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .projects {
    padding-top: 36px;
  }

  .research,
  .about {
    padding-right: 20px;
    padding-left: 20px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 36px;
  }

  .section-heading h2,
  .about-grid h2 {
    margin: 0;
    font-size: 42px;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 34px 0;
  }

  .project-index {
    display: none;
  }

  .project-meta {
    grid-column: auto;
  }

  .research-layout,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .research-media {
    min-height: 360px;
  }

  .about-grid h2 {
    max-width: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 50px 20px 72px;
  }

  .footer-code {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-word {
    font-size: 14px;
  }

  .hero {
    min-height: 680px;
  }

  .hero h1 {
    width: 100%;
    max-width: 320px;
  }

  .hero-copy {
    isolation: isolate;
  }

  .hero-copy::before {
    position: absolute;
    z-index: -1;
    inset: -14px -20px -10px;
    border-top: 1px solid rgba(240, 239, 232, 0.12);
    border-bottom: 1px solid rgba(240, 239, 232, 0.12);
    content: "";
    background: rgba(7, 9, 11, 0.62);
  }

  .hero-wordmark {
    filter: drop-shadow(0 2px 9px rgba(0, 0, 0, 0.96)) drop-shadow(0 0 12px rgba(50, 214, 255, 0.16));
  }

  .three-ready .hero-3d-canvas {
    opacity: 1;
  }

  .hero-3d-fallback {
    object-position: 76% center;
  }

  .hero-lead {
    margin-top: 12px;
  }

  .hero-lead strong {
    font-size: 17px;
  }

  .hero-lead span {
    font-size: 12px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .button {
    min-height: 44px;
  }

  .hero-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-index a,
  .hero-index a:nth-child(3) {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 2px 6px;
    min-height: 76px;
    padding: 10px 8px;
  }

  .hero-index-value {
    grid-column: 1;
    font-size: 20px;
  }

  .hero-index-copy {
    grid-column: 1;
  }

  .hero-index-copy b {
    font-size: 11px;
  }

  .hero-index-copy small {
    display: none;
  }

  .hero-index-arrow {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
  }

  .content-section,
  .research,
  .about {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .projects {
    padding-top: 24px;
  }

  .section-heading h2,
  .about-grid h2 {
    font-size: 36px;
  }

  .project-copy h3,
  .research-copy h3 {
    font-size: 29px;
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .research-media {
    min-height: 270px;
  }

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

  .metric-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .writing-list li {
    grid-template-columns: 1fr;
  }

  .writing-list time {
    padding: 16px 0 6px;
  }

  .writing-list a {
    align-items: flex-start;
    min-height: 82px;
    padding: 12px 0 18px;
    border-left: 0;
  }

  .writing-list a:hover {
    padding-left: 0;
  }

  .writing-list a span {
    font-size: 17px;
  }

  .writing-list a small {
    max-width: 100px;
    text-align: right;
  }

  .about-copy > p {
    font-size: 17px;
  }

  blockquote {
    margin-top: 28px;
    font-size: 20px;
  }

  .project-dialog {
    padding: 38px 24px 28px;
  }

  .project-dialog h2 {
    font-size: 34px;
  }

  .dialog-meta {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

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

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

  .route-line,
  .route-halo {
    stroke-dashoffset: 0;
  }

  .route-pulses {
    display: none;
  }

  .hero-intro-curtain,
  .hero-calibration {
    display: none;
  }

  .beacon-readout,
  .hero-content > *,
  .hero-copy > .eyebrow,
  .hero-copy > .hero-lead,
  .hero-copy > .hero-actions {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-image,
  .hero-3d-layer,
  .signal-runner {
    transform: none;
  }
}
