:root {
  --page-pad: max(64px, calc((100vw - var(--content)) / 2));
  --flow-width: 18px;
  --flow-gap: 86px;
}

body {
  background:
    linear-gradient(rgba(240, 239, 232, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 239, 232, 0.014) 1px, transparent 1px),
    var(--void);
  background-size: 64px 64px;
}

.site-header {
  background: rgba(7, 9, 11, 0.94);
}

.nav-panel {
  gap: 30px;
}

.nav-panel nav {
  gap: 24px;
}

.nav-panel nav a::after {
  height: 8px;
  background:
    linear-gradient(
      to bottom,
      var(--cyan) 0 2px,
      transparent 2px 3px,
      var(--yellow) 3px 5px,
      transparent 5px 6px,
      var(--red) 6px 8px
    );
  box-shadow: 0 0 9px rgba(50, 214, 255, 0.34);
}

.header-status {
  gap: 8px;
  min-width: 190px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.header-status b,
.header-status small {
  font: inherit;
}

.header-status b {
  min-width: 104px;
  color: var(--paper);
  font-weight: 500;
}

.header-status small {
  color: var(--muted);
  font-size: 9px;
}

.hero {
  height: calc(100svh - var(--header-height));
  min-height: 680px;
  max-height: 780px;
}

.hero::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.12) 0 56%, transparent 56%),
    repeating-linear-gradient(90deg, transparent 0 calc(8.333% - 1px), rgba(240, 239, 232, 0.035) calc(8.333% - 1px) 8.333%);
  pointer-events: none;
}

.hero-content {
  padding-top: 100px;
  padding-bottom: 24px;
}

.hero-copy {
  transform: translateY(-24px);
}

.hero-terminal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(580px, 48vw);
  margin-bottom: 14px;
  padding: 7px 0;
  border-top: 1px solid rgba(240, 239, 232, 0.22);
  border-bottom: 1px solid rgba(240, 239, 232, 0.1);
  font-family: var(--font-mono);
  color: var(--aluminum);
  font-size: 10px;
}

.hero-terminal span:first-child {
  color: var(--cyan);
}

.hero-terminal span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-terminal i,
.section-state i {
  width: 5px;
  height: 5px;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(255, 212, 59, 0.72);
}

.hero-manifest {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(580px, 48vw);
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-manifest div {
  min-width: 0;
  padding: 9px 12px 10px 0;
  border-left: 1px solid var(--line);
}

.hero-manifest div:first-child {
  border-left: 0;
}

.hero-manifest div:not(:first-child) {
  padding-left: 12px;
}

.hero-manifest dt {
  color: var(--muted);
  font-size: 8px;
}

.hero-manifest dd {
  margin: 2px 0 0;
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: 10px;
}

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

.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--cyan) 0 33.333%, var(--yellow) 33.333% 66.666%, var(--red) 66.666%);
  transform: scaleX(0.24);
  transform-origin: right;
  transition: transform 260ms var(--ease-transit);
}

.button:hover::after,
.button:focus-visible::after {
  transform: scaleX(1);
}

.hero-index {
  width: min(900px, 76%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.hero-index::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  content: "LODGE DIRECTORY / SELECT ROOM";
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 8px;
}

.content-section {
  --section-progress: 0;
  width: 100%;
  margin: 0;
  padding: 86px var(--page-pad) 92px calc(var(--page-pad) + var(--flow-gap));
  overflow: clip;
  isolation: isolate;
}

.content-section::before,
.content-section::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--page-pad) + 22px);
  z-index: 0;
  width: var(--flow-width);
  content: "";
  background:
    linear-gradient(
      to right,
      var(--cyan) 0 4px,
      transparent 4px 7px,
      var(--yellow) 7px 11px,
      transparent 11px 14px,
      var(--red) 14px 18px
    );
  pointer-events: none;
}

.content-section::before {
  opacity: 0.1;
}

.content-section::after {
  opacity: 0.78;
  filter:
    drop-shadow(0 0 5px rgba(50, 214, 255, 0.55))
    drop-shadow(0 0 10px rgba(255, 77, 97, 0.2));
  transform: scaleY(var(--section-progress));
  transform-origin: top;
}

.content-section[data-active="true"]::before {
  opacity: 0.2;
}

.section-packet {
  position: absolute;
  top: 88px;
  left: calc(var(--page-pad) + 19px);
  z-index: 3;
  display: grid;
  gap: 3px;
  width: 24px;
  opacity: 0;
  pointer-events: none;
}

.section-packet i {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.section-packet i:nth-child(2) {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

.section-packet i:nth-child(3) {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.content-section[data-active="true"] .section-packet {
  opacity: 1;
  animation: section-packet-travel 3.2s linear infinite;
}

.content-section > :not(.section-packet) {
  position: relative;
  z-index: 1;
}

.projects {
  padding-top: 62px;
}

.section-heading {
  position: relative;
  grid-template-columns: minmax(160px, 2fr) minmax(320px, 5fr) minmax(280px, 5fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-heading::before {
  position: absolute;
  top: 28px;
  left: calc(var(--flow-gap) * -1);
  width: var(--flow-gap);
  height: 13px;
  content: "";
  background:
    linear-gradient(
      to bottom,
      var(--cyan) 0 3px,
      transparent 3px 5px,
      var(--yellow) 5px 8px,
      transparent 8px 10px,
      var(--red) 10px 13px
    );
  opacity: 0.3;
  transform: scaleX(0.2);
  transform-origin: left;
  transition: opacity 320ms ease, transform 520ms cubic-bezier(0.65, 0, 0.35, 1);
}

.section-heading::after {
  position: absolute;
  top: 22px;
  left: -18px;
  width: 13px;
  height: 25px;
  border: 1px solid var(--paper);
  content: "";
  background: var(--void);
  opacity: 0.45;
  transition: opacity 240ms ease, box-shadow 240ms ease;
}

.content-section[data-active="true"] .section-heading::before {
  opacity: 1;
  transform: scaleX(1);
}

.content-section[data-active="true"] .section-heading::after {
  opacity: 1;
  box-shadow: 0 0 16px rgba(50, 214, 255, 0.44);
}

.section-ident {
  align-self: start;
}

.section-state {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
}

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

.section-heading > p:last-child {
  line-height: 1.7;
}

.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  min-height: 38px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
}

.flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.flow-legend i {
  width: 18px;
  height: 3px;
}

.legend-cyan {
  background: var(--cyan);
  box-shadow: 0 0 7px rgba(50, 214, 255, 0.5);
}

.legend-yellow {
  background: var(--yellow);
  box-shadow: 0 0 7px rgba(255, 212, 59, 0.45);
}

.legend-red {
  background: var(--red);
  box-shadow: 0 0 7px rgba(255, 77, 97, 0.48);
}

.project-row {
  grid-template-columns: minmax(0, 5fr) minmax(0, 4.5fr) minmax(150px, 2fr);
  gap: 28px;
  min-height: 310px;
  padding: 34px 0;
}

.project-row::before {
  top: 50%;
  bottom: auto;
  left: calc(var(--flow-gap) * -1);
  width: var(--flow-gap);
  height: 13px;
  background:
    linear-gradient(
      to bottom,
      var(--cyan) 0 3px,
      transparent 3px 5px,
      var(--yellow) 5px 8px,
      transparent 8px 10px,
      var(--red) 10px 13px
    );
  opacity: 0.22;
  transform: scaleX(0.18) translateY(-50%);
  transform-origin: left;
}

.project-row::after {
  position: absolute;
  top: calc(50% - 10px);
  left: calc(var(--flow-gap) * -1 - 5px);
  width: 20px;
  height: 20px;
  border: 1px solid rgba(240, 239, 232, 0.56);
  content: "";
  background: var(--void);
  box-shadow: inset 0 0 0 5px var(--void);
  transform: rotate(45deg);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 300ms var(--ease-transit);
}

.project-row:hover::before,
.project-row:focus-within::before {
  opacity: 0.95;
  transform: scaleX(1) translateY(-50%);
}

.project-row:hover::after,
.project-row:focus-within::after {
  border-color: var(--cyan);
  box-shadow: inset 0 0 0 5px var(--void), 0 0 13px rgba(50, 214, 255, 0.6);
  transform: rotate(135deg);
}

.project-index {
  top: 20px;
  color: rgba(240, 239, 232, 0.055);
  font-size: 64px;
}

.project-media {
  aspect-ratio: 16 / 9;
  clip-path: inset(0);
}

.project-row.is-visible .project-media {
  animation: media-route-reveal 720ms var(--ease-transit) both;
}

.project-media figcaption,
.research-media figcaption,
.archive-media figcaption {
  background: rgba(7, 9, 11, 0.94);
  border-top: 1px solid rgba(240, 239, 232, 0.12);
}

.project-copy h3,
.research-copy h3,
.archive-copy h3 {
  margin: 10px 0 13px;
  font-size: 32px;
}

.project-copy > p:not(.project-code),
.research-copy > p:not(.project-code),
.archive-copy > p:not(.project-code) {
  line-height: 1.75;
}

.project-meta {
  gap: 14px;
}

.project-meta div,
.dialog-meta div {
  position: relative;
  padding-top: 9px;
}

.project-meta div::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 24px;
  height: 1px;
  content: "";
  background: var(--cyan);
}

.project-meta div:nth-child(2)::before {
  background: var(--yellow);
}

.project-meta div:nth-child(3)::before {
  background: var(--red);
}

.research,
.about {
  width: 100%;
  padding-right: var(--page-pad);
  padding-left: calc(var(--page-pad) + var(--flow-gap));
}

.research {
  background:
    linear-gradient(rgba(240, 239, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 239, 232, 0.02) 1px, transparent 1px),
    var(--carbon);
  background-size: 48px 48px;
}

.research-layout {
  grid-template-columns: minmax(0, 6.5fr) minmax(340px, 5.5fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 4px;
}

.research-media {
  min-height: 410px;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

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

.telemetry-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.telemetry-flow li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  min-width: 0;
  padding: 13px 12px;
  border-left: 1px solid var(--line);
}

.telemetry-flow li:first-child {
  border-left: 0;
}

.telemetry-flow li::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 34%;
  height: 3px;
  content: "";
  background: var(--cyan);
}

.telemetry-flow li:nth-child(2)::before {
  background: var(--yellow);
}

.telemetry-flow li:nth-child(3)::before {
  background: var(--red);
}

.telemetry-flow span {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 10px;
}

.telemetry-flow b {
  color: var(--paper);
  font-size: 12px;
}

.telemetry-flow small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 9px;
}

.metric-grid {
  margin-top: 22px;
}

.signal-band {
  min-height: 66px;
  border-top: 1px solid rgba(7, 9, 11, 0.2);
}

.signal-band p {
  width: min(var(--content), calc(100% - 128px));
  font-size: 11px;
}

.signal-runner {
  width: 24%;
}

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

.writing-meta {
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 17px 18px 17px 0;
  font-family: var(--font-mono);
}

.writing-meta > span {
  color: var(--cyan);
  font-size: 9px;
}

.writing-list time {
  padding: 0;
  color: var(--muted);
}

.writing-list a {
  min-height: 86px;
}

.writing-list a::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 36px;
  height: 13px;
  content: "";
  background:
    linear-gradient(
      to bottom,
      var(--cyan) 0 3px,
      transparent 3px 5px,
      var(--yellow) 5px 8px,
      transparent 8px 10px,
      var(--red) 10px 13px
    );
  opacity: 0;
  transform: translate(12px, -50%);
  transition: opacity 220ms ease, transform 300ms var(--ease-transit);
}

.writing-list a:hover::after,
.writing-list a:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.archive {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 212, 59, 0.026), transparent 38%),
    var(--void);
}

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

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

.archive-copy h3 {
  max-width: 520px;
  line-height: 1.2;
}

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

.archive-manifest div,
.profile-manifest div {
  min-width: 0;
  padding: 12px;
  background: var(--void);
}

.archive-manifest dt,
.profile-manifest dt {
  color: var(--muted);
  font-size: 8px;
}

.archive-manifest dd,
.profile-manifest dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: 9px;
}

.archive-media {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: var(--carbon);
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
}

.archive-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.16);
}

.archive-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  font-family: var(--font-mono);
  color: var(--aluminum);
  font-size: 9px;
}

.about {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(50, 214, 255, 0.025), transparent 42%),
    var(--carbon);
}

.about-grid {
  grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
  gap: 56px;
}

.about-grid h2 {
  margin-top: 20px;
  font-size: 58px;
}

.profile-manifest {
  max-width: 680px;
  margin-top: 28px;
}

.profile-manifest div {
  background: var(--carbon);
}

.site-footer {
  position: relative;
  min-height: 190px;
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 38vw);
  height: 13px;
  content: "";
  background:
    linear-gradient(
      to bottom,
      var(--cyan) 0 3px,
      transparent 3px 5px,
      var(--yellow) 5px 8px,
      transparent 8px 10px,
      var(--red) 10px 13px
    );
  transform: skewX(-35deg) translateX(10%);
}

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

.reveal.is-visible {
  animation: information-arrival 620ms var(--ease-transit) both;
}

@keyframes section-packet-travel {
  0% {
    top: 82px;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 42px);
    opacity: 0;
  }
}

@keyframes information-arrival {
  from {
    opacity: 0;
    transform: translateY(22px);
    clip-path: inset(0 0 22% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}

@keyframes media-route-reveal {
  from {
    opacity: 0.45;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: translateX(0);
  }
}

@media (max-width: 1120px) {
  :root {
    --page-pad: 40px;
    --flow-gap: 70px;
  }

  .header-status {
    min-width: 0;
  }

  .header-status small {
    display: none;
  }

  .hero-terminal,
  .hero-manifest {
    width: min(540px, 52vw);
  }

  .hero h1 {
    width: min(540px, 52vw);
  }

  .hero-3d-canvas {
    left: 52%;
    width: 48%;
  }

  .content-section,
  .research,
  .about {
    padding-right: var(--page-pad);
    padding-left: calc(var(--page-pad) + var(--flow-gap));
  }

  .content-section::before,
  .content-section::after {
    left: calc(var(--page-pad) + 18px);
  }

  .section-packet {
    left: calc(var(--page-pad) + 15px);
  }

  .section-heading {
    grid-template-columns: 160px minmax(280px, 5fr) minmax(240px, 4fr);
  }

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

  .project-meta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 20px;
    --flow-gap: 0px;
  }

  body {
    background-size: 48px 48px;
  }

  .header-status {
    justify-content: flex-start;
    padding-left: 0;
    border-left: 0;
  }

  .nav-panel {
    inset: var(--header-height) 0 0;
    align-content: start;
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: var(--void);
  }

  .hero {
    min-height: 720px;
    max-height: 820px;
  }

  .hero::before {
    background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(240, 239, 232, 0.035) calc(25% - 1px) 25%);
  }

  .hero-content {
    gap: 12px;
    padding-top: 92px;
    padding-bottom: 22px;
  }

  .hero-copy {
    transform: none;
  }

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

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

  .hero-terminal,
  .hero-manifest {
    width: 100%;
  }

  .hero-terminal {
    margin-bottom: 10px;
  }

  .hero-manifest {
    margin-top: 13px;
  }

  .hero-manifest div {
    padding: 7px 8px 8px 0;
  }

  .hero-manifest div:not(:first-child) {
    padding-left: 8px;
  }

  .hero-manifest dt {
    font-size: 7px;
  }

  .hero-manifest dd {
    font-size: 8px;
  }

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

  .hero-index {
    width: 100%;
  }

  .hero-index::after {
    display: none;
  }

  .content-section,
  .research,
  .about {
    width: 100%;
    padding: 68px var(--page-pad) 74px;
  }

  .projects {
    padding-top: 38px;
  }

  .content-section::before,
  .content-section::after,
  .section-packet {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .section-heading::before {
    top: 0;
    left: 0;
    width: 86px;
    opacity: 0.8;
    transform: scaleX(1);
  }

  .section-heading::after {
    top: -6px;
    left: 92px;
    width: 9px;
    height: 25px;
  }

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

  .flow-legend {
    gap: 6px 18px;
  }

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

  .project-row::before,
  .project-row::after {
    display: none;
  }

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

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

  .research-media,
  .archive-media {
    min-height: 330px;
  }

  .telemetry-flow {
    grid-template-columns: 1fr;
  }

  .telemetry-flow li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .telemetry-flow li:first-child {
    border-top: 0;
  }

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

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

  .archive-copy {
    order: 2;
  }

  .archive-media {
    order: 1;
  }

  .about-grid > div:first-child {
    position: relative;
    padding-top: 30px;
  }

  .about-grid > div:first-child::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 86px;
    height: 13px;
    content: "";
    background:
      linear-gradient(
        to bottom,
        var(--cyan) 0 3px,
        transparent 3px 5px,
        var(--yellow) 5px 8px,
        transparent 8px 10px,
        var(--red) 10px 13px
      );
  }
}

/* 2026-07-20 revision: signal lock handoff and staged lobby entrance */
.signal-boot {
  will-change: opacity, filter;
}

.intro-handoff .signal-boot {
  animation: signal-boot-handoff 820ms ease-out forwards;
}

.intro-handoff .signal-boot::before {
  animation: signal-static-cut 460ms steps(1, end) forwards;
}

.intro-handoff .signal-boot::after {
  background: rgba(235, 249, 252, 0.26);
  mix-blend-mode: screen;
  animation: signal-screen-single-flash 560ms ease-out forwards;
}

.intro-handoff .signal-noise {
  animation: signal-noise-cut 460ms steps(1, end) forwards;
}

.intro-handoff .boot-route-line {
  animation: boot-route-single-flash 560ms ease-out forwards;
}

.intro-handoff.signal-locked .boot-route-halo {
	opacity: 0;
	animation: none;
	transition: none;
}

.intro-handoff .signal-boot-copy {
  animation: boot-copy-confirm 460ms ease-out forwards;
}

.intro-active:not(.home-entered) .site-header {
  opacity: 0;
  transform: translateY(-100%);
}

.site-header {
  transition:
    min-height 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    opacity 520ms ease,
    transform 720ms var(--ease-transit);
}

.intro-active:not(.home-entered) .hero-timecode,
.intro-active:not(.home-entered) .hero-rhythm {
  opacity: 0;
  filter: blur(8px);
}

.hero-timecode,
.hero-rhythm {
  transition: opacity 680ms ease 420ms, filter 820ms ease 360ms;
}

.intro-active:not(.home-entered) .hero-route {
  opacity: 0;
  filter: brightness(2.4) blur(7px);
}

.hero-route {
  transition: opacity 520ms ease 120ms, filter 760ms ease 80ms;
}

.intro-active:not(.home-entered) .hero-index {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.hero-index {
  transition: opacity 500ms ease 620ms, clip-path 940ms var(--ease-transit) 520ms;
}

.intro-active:not(.home-entered) .hero-copy {
  opacity: 0;
  filter: blur(7px) brightness(1.8);
}

.hero-copy {
  transition: opacity 620ms ease 300ms, filter 880ms ease 240ms;
}

.intro-active:not(.home-entered) .hero-3d-layer {
  opacity: 0;
  filter: brightness(2.2) blur(12px);
}

.home-entered .hero-3d-layer {
  opacity: 1;
  filter: brightness(1) blur(0);
  transform: translateY(0) scale(1);
  transition:
    opacity 920ms ease 180ms,
    filter 1100ms ease 120ms,
    transform 1400ms cubic-bezier(0.22, 1, 0.36, 1) 100ms;
}

@keyframes boot-route-single-flash {
  0% { stroke-width: 9; opacity: 1; }
  18% { stroke-width: 9; opacity: 0.22; }
  34% { stroke-width: 9; opacity: 1; }
  100% { stroke-width: 9; opacity: 0; }
}

@keyframes signal-screen-single-flash {
  0% { opacity: 0; }
  18% { opacity: 0.72; }
  100% { opacity: 0; }
}

@keyframes signal-static-cut {
  0%, 32% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@keyframes signal-noise-cut {
  0% { opacity: 0.24; filter: contrast(1.35) brightness(0.82); }
  32% { opacity: 0.62; filter: contrast(1.8) brightness(2.25); }
  33%, 100% { opacity: 0; filter: contrast(1) brightness(1); }
}

@keyframes boot-copy-confirm {
  0%, 24% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px); }
}

@keyframes signal-boot-handoff {
  0%, 34% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-handoff .signal-boot,
  .intro-handoff .signal-boot::before,
  .intro-handoff .signal-boot::after,
  .intro-handoff .boot-route-line,
  .intro-handoff .boot-route-halo,
  .intro-handoff .signal-boot-copy {
    animation: none;
  }

  .site-header,
  .hero-timecode,
  .hero-rhythm,
  .hero-route,
  .hero-index,
  .hero-copy,
  .home-entered .hero-3d-layer {
    transition: none;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 740px;
  }

  .hero-terminal {
    font-size: 9px;
  }

  .hero-terminal span:last-child {
    display: none;
  }

  .hero-manifest div:nth-child(3) {
    display: none;
  }

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

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

  .flow-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .flow-legend span:last-child {
    grid-column: 1 / -1;
  }

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

  .project-meta,
  .archive-manifest,
  .profile-manifest {
    grid-template-columns: 1fr;
  }

  .research-media,
  .archive-media {
    min-height: 250px;
  }

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

  .writing-meta {
    padding: 14px 0 6px;
  }

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

  .writing-list a::before {
    left: 0;
  }

  .writing-list a::after {
    display: none;
  }

  .about-grid h2 {
    font-size: 42px;
  }

  .signal-band {
    min-height: 82px;
  }

  .signal-band p {
    font-size: 9px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-packet {
    display: none;
  }

  .content-section::after {
    transform: scaleY(1);
  }

  .reveal.is-visible,
  .project-row.is-visible .project-media {
    animation: none;
  }
}

/* 2026-07-16 analog-signal homepage restructuring */

.signal-boot {
  position: fixed;
  z-index: 400;
  inset: 0;
  overflow: hidden;
  background: #020304;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  transition: opacity 520ms ease, visibility 0s linear 520ms;
}

.signal-boot::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(50, 214, 255, 0.08), transparent 18% 82%, rgba(255, 77, 97, 0.07));
  mix-blend-mode: screen;
}

.signal-boot::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0, 0, 0, 0.82) 100%);
}

.signal-noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  image-rendering: pixelated;
  filter: contrast(1.35) brightness(0.82);
}

.signal-scan {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  height: 18vh;
  border-top: 1px solid rgba(240, 239, 232, 0.84);
  border-bottom: 1px solid rgba(50, 214, 255, 0.52);
  background: linear-gradient(180deg, transparent, rgba(240, 239, 232, 0.13), transparent);
  box-shadow: 0 0 32px rgba(50, 214, 255, 0.18);
  animation: analog-scan 820ms linear infinite;
}

.signal-boot-copy {
  position: absolute;
  z-index: 5;
  right: 5vw;
  bottom: 7vh;
  display: grid;
  gap: 8px;
  width: min(420px, 78vw);
  padding: 16px 0;
  border-top: 1px solid rgba(240, 239, 232, 0.5);
  border-bottom: 1px solid rgba(240, 239, 232, 0.24);
  font-family: var(--font-mono);
  text-align: right;
}

.signal-boot-copy > span,
.signal-boot-copy > small {
  color: var(--aluminum);
  font-size: 10px;
}

.signal-boot-copy strong {
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
}

.signal-boot-lines {
  display: grid;
  gap: 4px;
  margin-left: auto;
  width: 68%;
}

.signal-boot-lines i {
  display: block;
  height: 4px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: scaleX(0.12);
  transform-origin: right;
  transition: transform 360ms cubic-bezier(0.65, 0, 0.35, 1);
}

.signal-boot-lines i:nth-child(2) {
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
  transition-delay: 90ms;
}

.signal-boot-lines i:nth-child(3) {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  transition-delay: 180ms;
}

.signal-aligning .signal-boot-lines i {
  transform: scaleX(0.72);
}

.signal-locked .signal-boot-lines i {
  transform: scaleX(1);
}

.signal-locked .signal-noise {
  opacity: 0.24;
}

.intro-complete .signal-boot {
  opacity: 0;
  visibility: hidden;
}

.hero-instruments {
  position: absolute;
  right: 54px;
  bottom: 108px;
  z-index: 7;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  width: 218px;
  padding: 12px 0 10px 15px;
  border-top: 1px solid rgba(240, 239, 232, 0.3);
  border-left: 1px solid var(--cyan);
  border-bottom: 1px solid rgba(240, 239, 232, 0.12);
  background: rgba(7, 9, 11, 0.68);
  backdrop-filter: blur(5px);
  font-family: var(--font-mono);
  pointer-events: none;
}

.hero-instruments::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
}

.instrument-lamp {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
}

.instrument-lamp i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 249, 205, 0.9);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow), 0 0 19px rgba(255, 212, 59, 0.78);
  animation: instrument-lamp-pulse 1.8s ease-in-out infinite;
}

.instrument-lamp span,
.instrument-timer span,
.hero-instruments small {
  color: var(--muted);
  font-size: 8px;
}

.instrument-lamp b {
  color: var(--paper);
  font-size: 9px;
  font-weight: 500;
}

.instrument-timer {
  display: grid;
  gap: 2px;
}

.instrument-timer strong {
  color: var(--paper);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 9px rgba(50, 214, 255, 0.35);
}

.instrument-meter {
  display: flex;
  gap: 3px;
  align-items: end;
  justify-content: flex-end;
  height: 22px;
}

.instrument-meter span {
  width: 4px;
  height: 22%;
  background: var(--cyan);
  box-shadow: 0 0 6px rgba(50, 214, 255, 0.58);
  animation: meter-signal 1.3s steps(4, end) infinite alternate;
}

.instrument-meter span:nth-child(2) { height: 42%; animation-delay: -0.4s; }
.instrument-meter span:nth-child(3) { height: 72%; animation-delay: -0.8s; }
.instrument-meter span:nth-child(4) { height: 100%; background: var(--yellow); animation-delay: -0.2s; }
.instrument-meter span:nth-child(5) { height: 62%; background: var(--yellow); animation-delay: -0.65s; }
.instrument-meter span:nth-child(6) { height: 36%; background: var(--red); animation-delay: -1s; }

.hero-instruments small {
  grid-column: 1 / -1;
  text-align: right;
}

.hero-index {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1100px, 90%);
}

.hero-index a {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 9px;
  min-height: 72px;
  padding: 11px 13px;
}

.hero-index-value {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 22px;
}

.hero-index-arrow {
  position: absolute;
  right: 10px;
  bottom: 8px;
}

.hero-index a:nth-child(4) {
  --channel: var(--cyan);
}

.hero-index a:nth-child(5) {
  --channel: var(--yellow);
}

.content-section,
.research,
.about {
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.content-section {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.content-section::before,
.content-section::after,
.section-packet {
  display: none;
}

.section-heading {
  padding-top: 30px;
}

.section-heading::before {
  top: 0;
  left: 0;
  width: 98px;
  opacity: 0.82;
  transform: scaleX(1);
}

.section-heading::after {
  top: -6px;
  left: 106px;
}

.content-section[data-active="true"] .section-heading::before {
  transform: scaleX(1);
}

.section-directory-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-top: 30px;
  padding: 7px 0;
  border-bottom: 2px solid var(--cyan);
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: 10px;
  transition: color 180ms ease, border-color 180ms ease;
}

.section-directory-link:hover,
.section-directory-link:focus-visible {
  border-color: var(--yellow);
  color: var(--yellow);
}

.project-row::before,
.project-row::after {
  display: none;
}

.project-row {
  background:
    linear-gradient(90deg, var(--cyan) 0 32px, transparent 32px) top left / 100% 2px no-repeat;
}

.project-row:nth-child(2) {
  background:
    linear-gradient(90deg, var(--yellow) 0 32px, transparent 32px) top left / 100% 2px no-repeat;
}

.project-row:nth-child(3) {
  background:
    linear-gradient(90deg, var(--red) 0 32px, transparent 32px) top left / 100% 2px no-repeat;
}

.articles {
  padding-top: 66px;
}

.photos {
  border-top: 1px solid var(--line);
  background: var(--carbon);
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.9fr;
  grid-auto-rows: 220px;
  gap: 12px;
}

.photo-item {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--void);
}

.photo-item > a {
  display: block;
  width: 100%;
  height: 100%;
}

.photo-item-wide {
  grid-column: 1 / 3;
}

.photo-item-tall {
  grid-column: 3;
  grid-row: 1 / 3;
}

.photo-item:nth-child(5) {
  grid-column: 1 / -1;
  height: 270px;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.15);
  transition: filter 260ms ease, transform 620ms var(--ease-transit);
}

.photo-item:hover img {
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.025);
}

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

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

.photo-item figcaption small {
  color: var(--cyan);
  font: inherit;
}

.music {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 212, 59, 0.028), transparent 46%),
    var(--void);
}

.music-console {
  display: grid;
  grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.music-visualizer {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 310px;
  padding: 34px;
  border-right: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(240, 239, 232, 0.04) 23px 24px),
    var(--carbon);
}

.music-visualizer span {
  width: 7px;
  height: 14%;
  background: var(--cyan);
  box-shadow: 0 0 9px rgba(50, 214, 255, 0.5);
  transform-origin: center;
  animation: audio-level 1.2s steps(6, end) infinite alternate;
  animation-play-state: paused;
}

.music[data-active="true"] .music-visualizer span {
  animation-play-state: running;
}

.music-visualizer span:nth-child(3n + 2) {
  height: 40%;
  background: var(--yellow);
  box-shadow: 0 0 9px rgba(255, 212, 59, 0.42);
  animation-delay: -0.45s;
}

.music-visualizer span:nth-child(4n) {
  height: 70%;
  background: var(--red);
  box-shadow: 0 0 9px rgba(255, 77, 97, 0.48);
  animation-delay: -0.8s;
}

.playlist-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.playlist-list li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 103px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}

.playlist-list li:first-child {
  border-top: 0;
}

.playlist-index {
  font-family: var(--font-mono);
  color: var(--yellow);
  font-size: 30px;
}

.playlist-list li > div {
  display: grid;
  gap: 3px;
}

.playlist-list b {
  font-size: 20px;
}

.playlist-list small,
.playlist-state {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
}

.playlist-state {
  padding-left: 14px;
  border-left: 2px solid var(--red);
  color: var(--aluminum);
}

.resume {
  border-top: 1px solid var(--line);
  background: var(--carbon);
}

.resume-grid {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr);
  gap: 56px;
}

.resume-grid h2 {
  margin: 20px 0 18px;
  font-size: 58px;
  line-height: 1;
}

.resume-intro {
  max-width: 520px;
  margin: 0;
  color: var(--aluminum);
  font-size: 19px;
}

.resume-manifest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.resume-manifest div {
  min-width: 0;
  padding: 13px;
  background: var(--carbon);
}

.resume-manifest dt {
  color: var(--muted);
  font-size: 8px;
}

.resume-manifest dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  color: var(--paper);
  font-size: 10px;
}

.resume-timeline {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.resume-timeline > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 2px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.resume-timeline span {
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 10px;
}

.resume-timeline b {
  font-size: 16px;
}

.resume-timeline small {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 9px;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

@keyframes analog-scan {
  from { top: -20vh; }
  to { top: 100vh; }
}

@keyframes instrument-lamp-pulse {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes meter-signal {
  0% { transform: scaleY(0.45); opacity: 0.62; }
  100% { transform: scaleY(1); opacity: 1; }
}

@keyframes audio-level {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1.4); }
}

@media (max-width: 1120px) {
  .content-section,
  .research,
  .about {
    padding-right: var(--page-pad);
    padding-left: var(--page-pad);
  }

  .hero-index {
    width: min(900px, 88%);
  }

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

  .hero-instruments {
    right: 38px;
    width: 194px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 800px;
    max-height: 900px;
  }

  .hero-instruments {
    top: 72px;
    right: 18px;
    bottom: auto;
    width: 178px;
    padding: 9px 0 8px 12px;
    background: rgba(7, 9, 11, 0.76);
  }

  .instrument-timer strong {
    font-size: 15px;
  }

  .hero-instruments small,
  .instrument-meter {
    display: none;
  }

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

  .hero-index a {
    min-height: 62px;
    padding: 8px;
  }

  .hero-index a:nth-child(4),
  .hero-index a:nth-child(5) {
    grid-column: span 1;
  }

  .hero-index-value {
    font-size: 18px;
  }

  .section-heading {
    padding-top: 30px;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
  }

  .photo-item-wide {
    grid-column: 1 / -1;
  }

  .photo-item-tall {
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .photo-item:nth-child(5) {
    grid-column: 1 / -1;
    height: 220px;
  }

  .music-console,
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .music-visualizer {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .resume-grid h2 {
    font-size: 42px;
  }
}

@media (max-width: 560px) {
  .signal-boot-copy {
    right: 20px;
    bottom: 38px;
    left: 20px;
    width: auto;
  }

  .signal-boot-copy strong {
    font-size: 15px;
  }

  .hero {
    min-height: 820px;
  }

  .hero-index a {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 5px;
  }

  .hero-index-value {
    grid-row: auto;
  }

  .hero-index-copy {
    display: grid;
  }

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

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

  .hero-index-arrow {
    position: static;
    align-self: center;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .photo-item,
  .photo-item-wide,
  .photo-item-tall,
  .photo-item:nth-child(5) {
    grid-column: 1;
    grid-row: auto;
    height: 220px;
  }

  .playlist-list li {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .playlist-state {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }

  .resume-manifest {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-boot {
    display: none;
  }

  .instrument-lamp,
  .instrument-meter span,
  .music-visualizer span {
    animation: none;
  }
}

/* Color discipline
   Cyan: navigation and information structure.
   Yellow: live, pending, and attention states.
   Red: primary actions.
   The full tri-color signature is reserved for the brand, boot lock,
   hero route, and the 3D archive node. */
:root {
  --color-navigation: var(--cyan);
  --color-status: var(--yellow);
  --color-action: var(--red);
}

:focus-visible {
  outline-color: var(--color-navigation);
}

.nav-panel nav a::after {
  height: 2px;
  background: var(--color-navigation);
  box-shadow: none;
}

.button::after {
  display: none;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  background: color-mix(in srgb, var(--color-action) 82%, var(--paper));
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--color-navigation);
}

.scroll-rail {
  width: 10px;
}

.scroll-rail .rail-yellow,
.scroll-rail .rail-red {
  display: none;
}

.scroll-rail .rail-cyan {
  left: 4px;
  width: 2px;
  background: var(--color-navigation);
  color: var(--color-navigation);
}

.scroll-rail .rail-fill {
  box-shadow: 0 0 7px rgba(50, 214, 255, 0.72);
}

.scroll-rail .rail-marker {
  left: 0;
  width: 10px;
}

.hero-index a:nth-child(1),
.hero-index a:nth-child(2),
.hero-index a:nth-child(3),
.hero-index a:nth-child(4),
.hero-index a:nth-child(5) {
  --channel: var(--color-navigation);
}

.hero-index a::before {
  height: 2px;
  box-shadow: 0 0 8px rgba(50, 214, 255, 0.4);
}

.instrument-meter span,
.instrument-meter span:nth-child(4),
.instrument-meter span:nth-child(5),
.instrument-meter span:nth-child(6) {
  background: var(--color-navigation);
  box-shadow: 0 0 6px rgba(50, 214, 255, 0.5);
}

.section-heading::before {
  height: 2px;
  background: var(--color-navigation);
  box-shadow: 0 0 8px rgba(50, 214, 255, 0.42);
}

.section-directory-link {
  border-color: var(--color-navigation);
}

.section-directory-link:hover,
.section-directory-link:focus-visible {
  border-color: var(--color-navigation);
  color: var(--paper);
}

.project-row,
.project-row:nth-child(2),
.project-row:nth-child(3) {
  background:
    linear-gradient(90deg, var(--color-navigation) 0 32px, transparent 32px)
    top left / 100% 2px no-repeat;
}

.signal-runner {
  display: block;
  width: 22%;
}

.signal-runner i {
  height: 2px;
  background: var(--color-navigation);
  box-shadow: 0 0 8px rgba(50, 214, 255, 0.5);
}

.music-visualizer span:nth-child(4n) {
  background: var(--color-navigation);
  box-shadow: 0 0 9px rgba(50, 214, 255, 0.5);
}

.playlist-index {
  color: var(--color-navigation);
}

.playlist-state {
  border-color: var(--color-status);
  color: var(--color-status);
}

blockquote {
  border-left-color: rgba(240, 239, 232, 0.42);
}

.dialog-rail {
  width: 120px;
}

.dialog-rail i {
  height: 2px;
  background: var(--color-navigation);
  box-shadow: 0 0 8px rgba(50, 214, 255, 0.45);
}

.site-footer::before {
  height: 2px;
  background: var(--color-navigation);
  opacity: 0.7;
}

@media (max-width: 820px) {
  .scroll-rail {
    width: auto;
  }

  .scroll-rail .rail-cyan {
    top: 5px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }

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

/* Filing information shared by the lobby and room directories. */
.site-footer .footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(170, 179, 184, 0.12);
  font-family: var(--font-mono);
}

.site-footer .footer-legal a {
  position: relative;
  color: rgba(170, 179, 184, 0.62);
  font-size: 10px;
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.site-footer .footer-legal a::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 8px 2px 0;
  background: var(--color-status);
  box-shadow: 0 0 7px rgba(255, 212, 59, 0.62);
  content: "";
}

.site-footer .footer-legal a:hover,
.site-footer .footer-legal a:focus-visible {
  color: var(--paper);
  text-shadow: 0 0 10px rgba(50, 214, 255, 0.38);
}

@media (max-width: 820px) {
  .site-footer .footer-legal {
    justify-content: flex-start;
  }
}

/* Persistent bilingual control and English layout safeguards. */
.content-empty {
  min-height: 176px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  align-content: center;
  gap: 10px;
  color: rgba(238, 244, 247, 0.52);
}

.content-empty span {
  color: var(--cyan);
  font: 600 11px/1.2 "IBM Plex Mono", monospace;
}

.content-empty p {
  margin: 0;
  font-size: 16px;
}

.music-console .content-empty {
  min-height: 132px;
}

.photo-grid > .content-empty {
  grid-column: 1 / -1;
}

.site-header > .brand { order: 1; }
.site-header > .nav-panel { order: 2; }
.site-header > .language-toggle { order: 3; }
.site-header > .menu-toggle { order: 4; }

.language-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 7px;
  align-items: center;
  justify-items: center;
  width: 72px;
  height: 32px;
  margin-left: 18px;
  padding: 0 9px;
  border: 1px solid rgba(170, 179, 184, 0.26);
  border-radius: 2px;
  background: rgba(7, 9, 11, 0.72);
  color: rgba(170, 179, 184, 0.56);
  font: 600 9px/1 var(--font-mono);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.language-toggle i {
  width: 1px;
  height: 12px;
  background: rgba(170, 179, 184, 0.24);
}

.language-toggle[data-language="zh"] span:first-child,
.language-toggle[data-language="en"] span:last-child {
  color: var(--paper);
  text-shadow: 0 0 9px rgba(50, 214, 255, 0.55);
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--color-navigation);
  box-shadow: 0 0 12px rgba(50, 214, 255, 0.13);
}

html[data-language="en"] .nav-panel nav {
  gap: 20px;
}

html[data-language="en"] .nav-panel nav a {
  font-family: var(--font-mono);
  font-size: 12px;
}

html[data-language="en"] .archive-heading h1 {
  max-width: 12ch;
  font-size: clamp(48px, 5.2vw, 80px);
  line-height: 1;
  overflow-wrap: normal;
}

html[data-language="en"] .archive-heading > p:last-of-type {
  max-width: 620px;
  font-size: 17px;
  line-height: 1.65;
}

@media (min-width: 821px) and (max-width: 1180px) {
  .nav-panel nav,
  html[data-language="en"] .nav-panel nav {
    gap: 14px;
  }

  .header-status small {
    display: none;
  }

  .language-toggle {
    margin-left: 12px;
  }
}

@media (max-width: 820px) {
  .language-toggle {
    order: 2;
    width: 66px;
    height: 36px;
    margin-right: 8px;
    margin-left: auto;
  }

  .menu-toggle {
    order: 3;
    margin-left: 0;
  }

  html[data-language="en"] .archive-heading h1 {
    max-width: 11ch;
    font-size: 42px;
  }

  html[data-language="en"] .archive-heading > p:last-of-type {
    font-size: 16px;
  }
}

/* Hero information hierarchy and ambient instruments */
.hero-terminal {
  position: relative;
  gap: 24px;
  margin-bottom: 10px;
  padding: 6px 18px 7px 30px;
  border-top-color: rgba(240, 239, 232, 0.11);
  border-bottom-color: rgba(240, 239, 232, 0.07);
  color: rgba(170, 179, 184, 0.72);
  font-size: 8px;
  opacity: 0.5;
}

.hero-terminal::before {
  position: absolute;
  top: 50%;
  left: 0;
  content: "IN//";
  color: var(--color-navigation);
  font-size: 7px;
  transform: translateY(-50%);
}

.hero-terminal::after {
  position: absolute;
  top: -1px;
  right: 0;
  width: 42px;
  height: 1px;
  content: "";
  background: var(--color-navigation);
  box-shadow: 0 0 7px rgba(50, 214, 255, 0.35);
}

.hero-terminal span:first-child {
  color: rgba(50, 214, 255, 0.72);
}

.is-ready .hero-copy > .eyebrow {
  opacity: 0.74;
}

.eyebrow {
  gap: 7px 18px;
  margin-bottom: 11px;
  color: rgba(50, 214, 255, 0.76);
  font-size: 9px;
}

.hero-availability {
  color: rgba(170, 179, 184, 0.72);
}

.hero-availability i {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 7px rgba(255, 212, 59, 0.55);
}

.hero-timecode,
.hero-rhythm {
  position: absolute;
  z-index: 6;
  font-family: var(--font-mono);
  pointer-events: none;
}

.hero-timecode {
  top: 104px;
  right: 42px;
  display: grid;
  justify-items: end;
  color: var(--paper);
  text-align: right;
  opacity: 0.86;
}

.instrument-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: rgba(170, 179, 184, 0.72);
  font-size: 8px;
}

.instrument-label i,
.hero-rhythm small i {
  width: 6px;
  height: 6px;
  background: var(--color-status);
  box-shadow: 0 0 8px var(--color-status), 0 0 22px rgba(255, 212, 59, 0.72);
  animation: instrument-lamp-pulse 1.8s ease-in-out infinite;
}

.hero-timecode time {
  margin-top: 8px;
  color: color-mix(in srgb, var(--color-status) 82%, var(--paper));
  font-size: clamp(36px, 3.4vw, 54px);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  text-shadow:
    0 0 2px rgba(255, 249, 205, 0.96),
    0 0 10px rgba(255, 212, 59, 0.82),
    0 0 28px rgba(255, 212, 59, 0.42);
}

.hero-timecode small {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  color: rgba(170, 179, 184, 0.62);
  font-size: 8px;
}

.hero-timecode small b {
  color: rgba(240, 239, 232, 0.76);
  font-weight: 500;
}

.hero-rhythm {
  right: 44px;
  bottom: 174px;
  display: grid;
  gap: 8px;
  width: 196px;
  opacity: 0.76;
}

.instrument-rhythm-head {
  display: flex;
  justify-content: space-between;
  color: rgba(170, 179, 184, 0.7);
  font-size: 8px;
}

.instrument-rhythm-head b {
  color: var(--color-status);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 212, 59, 0.52);
}

.hero-rhythm .instrument-meter {
  display: flex;
  gap: 5px;
  align-items: end;
  justify-content: flex-end;
  width: 100%;
  height: 46px;
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(50, 214, 255, 0.28);
}

.hero-rhythm .instrument-meter span {
  width: 6px;
  min-height: 5px;
  background: var(--color-navigation);
  box-shadow: 0 0 7px rgba(50, 214, 255, 0.62);
}

.hero-rhythm .instrument-meter span:nth-child(1) { height: 18%; animation-delay: -0.15s; }
.hero-rhythm .instrument-meter span:nth-child(2) { height: 34%; animation-delay: -0.72s; }
.hero-rhythm .instrument-meter span:nth-child(3) { height: 62%; animation-delay: -0.31s; }
.hero-rhythm .instrument-meter span:nth-child(4) { height: 42%; animation-delay: -0.93s; }
.hero-rhythm .instrument-meter span:nth-child(5) { height: 78%; animation-delay: -0.54s; }
.hero-rhythm .instrument-meter span:nth-child(6) { height: 54%; animation-delay: -1.08s; }
.hero-rhythm .instrument-meter span:nth-child(7) { height: 88%; animation-delay: -0.22s; }
.hero-rhythm .instrument-meter span:nth-child(8) {
  height: 100%;
  background: var(--color-status);
  box-shadow: 0 0 8px rgba(255, 212, 59, 0.68);
  animation-delay: -0.82s;
}
.hero-rhythm .instrument-meter span:nth-child(9) { height: 68%; animation-delay: -0.46s; }
.hero-rhythm .instrument-meter span:nth-child(10) {
  height: 82%;
  background: var(--color-status);
  box-shadow: 0 0 8px rgba(255, 212, 59, 0.58);
  animation-delay: -1.14s;
}
.hero-rhythm .instrument-meter span:nth-child(11) { height: 48%; animation-delay: -0.66s; }
.hero-rhythm .instrument-meter span:nth-child(12) { height: 24%; animation-delay: -0.38s; }

.hero-rhythm small {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  color: rgba(170, 179, 184, 0.58);
  font-size: 7px;
}

.hero-index {
  z-index: 8;
  isolation: isolate;
}

.hero-index a {
  overflow: hidden;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease;
}

.hero-index a::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 1px;
  content: "";
  background: var(--color-navigation);
  box-shadow: 0 0 9px rgba(50, 214, 255, 0.52);
  opacity: 0;
  transform: scaleX(0.18);
  transform-origin: right;
  transition: opacity 180ms ease, transform 260ms var(--ease-transit);
}

.hero-index a:hover,
.hero-index a:focus-visible {
  background: rgba(50, 214, 255, 0.075);
  border-color: rgba(50, 214, 255, 0.32);
  box-shadow: inset 0 0 28px rgba(50, 214, 255, 0.035);
}

.hero-index a:hover::after,
.hero-index a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
  transform-origin: left;
}

.hero-index-value,
.hero-index-copy b {
  transition: color 180ms ease, text-shadow 180ms ease, transform 220ms var(--ease-transit);
}

.hero-index a:hover .hero-index-value,
.hero-index a:focus-visible .hero-index-value {
  color: var(--paper);
  text-shadow: 0 0 11px rgba(50, 214, 255, 0.72);
  transform: translateY(-2px);
}

.hero-index a:hover .hero-index-copy b,
.hero-index a:focus-visible .hero-index-copy b {
  color: var(--color-navigation);
  transform: translateX(3px);
}

@media (max-width: 820px) {
  .hero-route {
    transform: translateY(-58px);
  }

  .hero-terminal {
    width: 100%;
    padding-right: 10px;
    font-size: 7px;
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero-timecode {
    top: 76px;
    right: 18px;
  }

  .hero-timecode time {
    font-size: 31px;
  }

  .hero-timecode small {
    gap: 10px;
    margin-top: 7px;
    font-size: 7px;
  }

  .hero-rhythm {
    top: 174px;
    right: 18px;
    bottom: auto;
    width: 132px;
    opacity: 0.65;
  }

  .hero-rhythm .instrument-meter {
    gap: 3px;
    height: 32px;
  }

  .hero-rhythm .instrument-meter span {
    width: 4px;
  }

  .hero-rhythm small {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-terminal span:last-child {
    display: none;
  }

  .hero-terminal {
    width: 132px;
  }

  .eyebrow {
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .instrument-label i,
  .hero-rhythm small i,
  .hero-rhythm .instrument-meter span {
    animation: none;
  }
}

/* 2026-07-17 homepage revision: quieter copy, full viewport, instrument-grade motion */
.hero {
  height: 100svh;
  max-height: none;
}

.hero-route {
  transform: translateY(-44px);
}

@media (min-width: 821px) {
  .hero-3d-layer {
    z-index: 3;
  }

  .hero-route {
    z-index: 4;
  }
}

.route-line {
  stroke-width: 9;
}

.route-halo {
  stroke-width: 34;
}

.intro-complete .route-line,
.intro-complete .route-halo,
.signal-locked .boot-route-line,
.signal-locked .boot-route-halo {
  stroke-dasharray: none;
}

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

.hero-lead {
  position: relative;
  display: block;
  min-height: 78px;
  margin-top: 18px;
  overflow: hidden;
}

.hero-quote {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  gap: 7px;
  width: min(580px, 48vw);
  margin: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 680ms var(--ease-transit);
}

.hero-quote.is-active {
  z-index: 1;
  opacity: 1;
  transform: translateY(0);
}

.hero-lead .hero-quote strong {
  max-width: 32em;
  color: var(--paper);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 650;
  line-height: 1.55;
}

.hero-lead .hero-quote span {
  font-family: var(--font-mono);
  color: rgba(170, 179, 184, 0.58);
  font-size: 8px;
}

.hero-index-copy small em {
  color: var(--color-action);
  font-style: normal;
}

.hero-timecode time {
  --digit-width: clamp(20px, 1.75vw, 28px);
  --digit-height: calc(var(--digit-width) * 1.78);
  --segment-size: calc(var(--digit-width) * 0.16);
  display: flex;
  gap: calc(var(--digit-width) * 0.16);
  align-items: center;
  height: var(--digit-height);
  margin-top: 10px;
  color: var(--color-status);
  font-size: 0;
  filter: drop-shadow(0 0 11px rgba(255, 212, 59, 0.34));
}

.seven-digit {
  position: relative;
  display: block;
  width: var(--digit-width);
  height: var(--digit-height);
}

.seven-segment {
  position: absolute;
  display: block;
  background: rgba(255, 212, 59, 0.075);
  transition: opacity 90ms linear, background 90ms linear, box-shadow 90ms linear;
}

.seven-segment.is-lit {
  background: color-mix(in srgb, var(--color-status) 88%, var(--paper));
  box-shadow:
    0 0 2px rgba(255, 249, 205, 0.92),
    0 0 8px rgba(255, 212, 59, 0.82),
    0 0 20px rgba(255, 212, 59, 0.34);
}

.segment-a,
.segment-d,
.segment-g {
  left: var(--segment-size);
  width: calc(100% - var(--segment-size) * 2);
  height: var(--segment-size);
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
}

.segment-a { top: 0; }
.segment-g { top: calc(50% - var(--segment-size) / 2); }
.segment-d { bottom: 0; }

.segment-b,
.segment-c,
.segment-e,
.segment-f {
  width: var(--segment-size);
  height: calc(50% - var(--segment-size));
  clip-path: polygon(50% 0, 100% 14%, 100% 86%, 50% 100%, 0 86%, 0 14%);
}

.segment-b { top: calc(var(--segment-size) * 0.55); right: 0; }
.segment-c { right: 0; bottom: calc(var(--segment-size) * 0.55); }
.segment-e { bottom: calc(var(--segment-size) * 0.55); left: 0; }
.segment-f { top: calc(var(--segment-size) * 0.55); left: 0; }

.seven-colon {
  display: grid;
  align-content: center;
  gap: calc(var(--digit-width) * 0.42);
  width: calc(var(--digit-width) * 0.28);
  height: var(--digit-height);
}

.seven-colon i {
  width: calc(var(--digit-width) * 0.16);
  aspect-ratio: 1;
  margin-inline: auto;
  background: var(--color-status);
  box-shadow: 0 0 7px rgba(255, 212, 59, 0.82), 0 0 18px rgba(255, 212, 59, 0.34);
}

@media (max-width: 820px) {
  .hero {
    max-height: none;
  }

  .hero-route {
    transform: translateY(-72px);
  }

  .hero-quote {
    width: 100%;
  }

  .hero-lead {
    min-height: 94px;
  }

  .hero-timecode time {
    --digit-width: 16px;
  }
}

@media (max-width: 560px) {
  .hero-lead .hero-quote strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-quote {
    transition: none;
  }
}

/* 2026-07-20 revision: lodge terminal, continuous check-in route, and responsive room directory */
:root {
  --font-pixel: "Silkscreen", "IBM Plex Mono", monospace;
}

.signal-boot-route {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-44px);
}

.boot-route-line,
.boot-route-halo {
  fill: none;
  stroke-linejoin: bevel;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 800ms cubic-bezier(0.72, 0, 1, 1), opacity 360ms ease;
}

.boot-route-line {
  stroke-width: 9;
}

.boot-route-halo {
  stroke-width: 34;
  opacity: 0;
}

.boot-cyan { stroke: var(--cyan); }
.boot-yellow { stroke: var(--yellow); }
.boot-red { stroke: var(--red); }

.boot-route-line.boot-cyan {
  filter: drop-shadow(0 0 2px rgba(220, 250, 255, 0.92)) drop-shadow(0 0 10px rgba(50, 214, 255, 0.9));
}

.boot-route-line.boot-yellow {
  filter: drop-shadow(0 0 2px rgba(255, 251, 217, 0.92)) drop-shadow(0 0 10px rgba(255, 212, 59, 0.86));
}

.boot-route-line.boot-red {
  filter: drop-shadow(0 0 2px rgba(255, 226, 231, 0.9)) drop-shadow(0 0 10px rgba(255, 77, 97, 0.86));
}

.signal-aligning .boot-route-line {
  stroke-dashoffset: 0;
}

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

.signal-locked .boot-route-halo {
  opacity: 0.22;
}

.signal-boot-copy {
  bottom: 19vh;
  font-family: var(--font-pixel);
}

.hero-terminal,
.eyebrow,
.terminal-stream,
.hero-index::after,
.hero-index-en,
.hero-index-copy small em,
.instrument-label,
.hero-rhythm {
  font-family: var(--font-pixel);
  letter-spacing: 0;
}

.hero-terminal {
  font-size: 10px;
  opacity: 0.78;
}

.eyebrow {
  font-size: 11px;
}

.terminal-stream {
  position: relative;
  width: min(580px, 48vw);
  height: 36px;
  margin: -2px 0 10px;
  overflow: hidden;
  border-bottom: 1px solid rgba(170, 179, 184, 0.08);
  color: rgba(190, 200, 204, 0.7);
  font-size: 9px;
  line-height: 12px;
  opacity: 0;
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 84%, transparent);
  transform: translateY(7px);
  transition: opacity 420ms ease 420ms, transform 560ms var(--ease-transit) 420ms;
}

.is-ready .terminal-stream {
  opacity: 0.84;
  transform: translateY(0);
}

.terminal-stream-track {
  display: grid;
  grid-auto-rows: 12px;
  width: 100%;
  animation: lodge-terminal-stream 8s steps(4, end) infinite;
}

.terminal-stream-track span {
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.terminal-stream-track span:nth-child(4n + 1) { color: rgba(50, 214, 255, 0.84); }
.terminal-stream-track i { color: rgba(255, 212, 59, 0.82); font-style: normal; }

.hero-index a[data-signal-channel="cyan"] {
  --entry-color: var(--cyan);
}

.hero-index a[data-signal-channel="yellow"] {
  --entry-color: var(--yellow);
}

.hero-index a[data-signal-channel="red"] {
  --entry-color: var(--red);
}

.hero-index a {
  --channel: var(--entry-color, var(--color-navigation));
}

.hero-index a::after {
  background: var(--entry-color, var(--color-navigation));
  box-shadow: 0 0 12px color-mix(in srgb, var(--entry-color, var(--color-navigation)) 72%, transparent);
}

.hero-index a:hover,
.hero-index a:focus-visible {
  border-color: color-mix(in srgb, var(--entry-color, var(--color-navigation)) 38%, transparent);
  background: color-mix(in srgb, var(--entry-color, var(--color-navigation)) 8%, transparent);
  box-shadow: inset 0 0 30px color-mix(in srgb, var(--entry-color, var(--color-navigation)) 5%, transparent);
}

.hero-index-value {
  color: var(--color-navigation);
}

.hero-index a:hover .hero-index-value,
.hero-index a:focus-visible .hero-index-value {
  color: var(--paper);
  text-shadow: 0 0 13px color-mix(in srgb, var(--entry-color, var(--color-navigation)) 82%, transparent);
}

.hero-index a:hover .hero-index-copy b,
.hero-index a:focus-visible .hero-index-copy b {
  color: var(--entry-color, var(--color-navigation));
}

.hero-index-copy b,
.hero-index-copy small {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.hero-index-copy b {
  justify-content: flex-start;
}

.hero-index-copy small {
  justify-content: space-between;
}

.hero-index-en {
  color: rgba(170, 179, 184, 0.54);
  font-size: 7px;
  font-weight: 400;
}

.hero-index-copy small em {
  color: rgba(170, 179, 184, 0.5);
  font-size: 6px;
  white-space: nowrap;
}

.hero-rhythm {
  z-index: 3;
  right: 58px;
  top: auto;
  bottom: clamp(270px, 30vh, 306px);
  gap: 12px;
  width: clamp(320px, 31vw, 440px);
  opacity: 0.42;
  mix-blend-mode: screen;
}

.hero-rhythm .instrument-rhythm-head {
  color: rgba(190, 200, 204, 0.9);
}

.hero-rhythm small {
  color: rgba(190, 200, 204, 0.82);
}

.hero-rhythm .instrument-meter {
  gap: clamp(7px, 0.7vw, 11px);
  height: clamp(92px, 12vh, 136px);
  border-bottom-color: rgba(50, 214, 255, 0.2);
}

.hero-rhythm .instrument-meter span {
  width: clamp(9px, 0.8vw, 13px);
  box-shadow: 0 0 14px rgba(50, 214, 255, 0.52);
}

@media (min-width: 821px) {
  .hero-copy {
    transform: translate(-28px, -128px);
  }
}

@keyframes lodge-terminal-stream {
  to { transform: translateY(-48px); }
}

@media (max-width: 820px) {
  .signal-boot-route {
    transform: translateY(-72px);
  }

  .signal-boot-copy {
    bottom: 24vh;
  }

  .hero-content {
    gap: 8px;
    padding-bottom: 14px;
  }

  .hero-copy {
    transform: translateY(-16px);
  }

  .hero-terminal,
  .terminal-stream {
    width: min(100%, 360px);
  }

  .terminal-stream {
    height: 30px;
    margin-bottom: 6px;
    font-size: 8px;
    line-height: 10px;
  }

  .terminal-stream-track {
    grid-auto-rows: 10px;
  }

  @keyframes lodge-terminal-stream {
    to { transform: translateY(-40px); }
  }

  .hero-rhythm {
    top: 158px;
    right: 16px;
    bottom: auto;
    width: 210px;
    opacity: 0.34;
  }

  .hero-rhythm .instrument-meter {
    gap: 5px;
    height: 72px;
  }

  .hero-rhythm .instrument-meter span {
    width: 7px;
  }

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

  .hero-index::after {
    display: none;
  }

  .hero-index a[data-signal-channel] {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    grid-template-rows: auto;
    grid-column: auto;
    min-height: 44px;
    padding: 5px 10px;
  }

  .hero-index .hero-index-value {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .hero-index .hero-index-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

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

  .hero-index-copy b,
  .hero-index-copy small {
    display: flex;
  }

  .hero-index-copy small {
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .hero-terminal {
    width: min(100%, 350px);
  }

  .hero-terminal span:last-child {
    display: inline-flex;
  }

  .eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
  }

  .hero-terminal {
    font-size: 9px;
  }

  .hero-lead {
    min-height: 78px;
    margin-top: 10px;
  }

  .hero-index-en {
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-stream-track {
    animation: none;
  }
}

/* Three-channel lodge scroll telemetry */
.scroll-rail {
  right: 14px;
  width: 16px;
}

.scroll-rail .rail-yellow,
.scroll-rail .rail-red {
  display: block;
}

.scroll-rail .rail-track,
.scroll-rail .rail-fill {
  width: 2px;
}

.scroll-rail .rail-cyan {
  left: 0;
  width: 2px;
  background: var(--cyan);
  color: var(--cyan);
}

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

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

.scroll-rail .rail-track {
  opacity: 0.22;
}

.scroll-rail .rail-fill {
  box-shadow: 0 0 5px currentColor, 0 0 14px currentColor;
}

.scroll-rail .rail-marker {
  display: none;
}

@media (max-width: 820px) {
  .scroll-rail {
    top: calc(var(--header-height) + 14px);
    right: 6px;
    bottom: 14px;
    left: auto;
    width: 14px;
    height: auto;
  }

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

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

  .scroll-rail .rail-cyan { left: 0; }
  .scroll-rail .rail-yellow { left: 5px; }
  .scroll-rail .rail-red { left: 10px; }
}
