:root {
  --bg: #070b0e;
  --bg-soft: #0f1519;
  --panel: rgba(12, 17, 21, 0.9);
  --ink: #e4ded2;
  --ink-soft: #b9b2a7;
  --line-strong: rgba(228, 222, 210, 0.62);
  --line-mid: rgba(228, 222, 210, 0.34);
  --line-soft: rgba(228, 222, 210, 0.15);
  --accent: #934f46;
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  --sans: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 15% 8%, rgba(142, 158, 172, 0.08), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(147, 79, 70, 0.08), transparent 30%),
    linear-gradient(160deg, #05080a 0%, #070b0e 45%, #0d1216 100%);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0.01em;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to right, transparent 0 82px, rgba(228, 222, 210, 0.022) 82px 83px),
    repeating-linear-gradient(to bottom, transparent 0 82px, rgba(228, 222, 210, 0.016) 82px 83px);
  opacity: 0.38;
  z-index: -1;
}

body[data-view="module"][data-module="sound-map"] {
  background: linear-gradient(178deg, #060a0d 0%, #071017 52%, #060b0f 100%);
}

body[data-view="module"][data-module="sound-map"]::before {
  background:
    repeating-linear-gradient(to right, transparent 0 120px, rgba(228, 222, 210, 0.014) 120px 121px),
    repeating-linear-gradient(to bottom, transparent 0 120px, rgba(228, 222, 210, 0.01) 120px 121px);
  opacity: 0.18;
}

body[data-view="module"][data-module="seattle-history"] {
  background:
    radial-gradient(circle at 12% 12%, rgba(179, 150, 110, 0.09), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(88, 118, 132, 0.08), transparent 36%),
    linear-gradient(170deg, #090c10 0%, #111013 48%, #0a0d10 100%);
}

body[data-view="module"][data-module="seattle-history"]::before {
  background:
    repeating-linear-gradient(to right, transparent 0 108px, rgba(228, 222, 210, 0.018) 108px 109px),
    repeating-linear-gradient(to bottom, transparent 0 108px, rgba(228, 222, 210, 0.012) 108px 109px);
  opacity: 0.24;
}

#app {
  min-height: 100dvh;
}

.site-frame {
  min-height: 100dvh;
  padding-top: max(0.7rem, env(safe-area-inset-top));
  padding-right: max(0.7rem, env(safe-area-inset-right));
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  padding-left: max(0.7rem, env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.56rem 0.66rem;
  border: 1px solid var(--line-soft);
  background: rgba(8, 12, 15, 0.8);
  backdrop-filter: blur(10px);
}

.brand-mark {
  border: none;
  padding: 0;
  margin: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-line {
  margin: 0;
  justify-self: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-link {
  border: 1px solid var(--line-mid);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.46rem 0.72rem;
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease;
}

.header-link:hover,
.header-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.view-root {
  min-height: 0;
}

.view-root.is-animated {
  animation: view-reveal 420ms ease;
}

.plate-border {
  position: relative;
  border: 1.5px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(15, 20, 24, 0.84), rgba(9, 13, 16, 0.94));
  overflow: hidden;
}

.plate-border::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line-mid);
  pointer-events: none;
}

.plate-border::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to right, transparent 0 96px, rgba(228, 222, 210, 0.075) 96px 97px),
    repeating-linear-gradient(to bottom, transparent 0 96px, rgba(228, 222, 210, 0.065) 96px 97px);
  opacity: 0.08;
  pointer-events: none;
}

.landing-view {
  min-height: calc(100dvh - 1.4rem);
  display: grid;
}

.landing-border {
  position: relative;
  min-height: calc(100dvh - 1.4rem);
  padding: clamp(1.6rem, 7vw, 5.8rem);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  overflow: hidden;
}

.landing-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.landing-media-fallback,
.landing-media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.landing-media-fallback {
  z-index: 0;
}

.landing-media-video {
  z-index: 1;
  pointer-events: none;
  filter: saturate(0.96) contrast(1.04) brightness(0.82);
}

.landing-media-video.is-hidden {
  display: none;
}

.landing-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(185, 196, 206, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(5, 8, 11, 0.14) 0%, rgba(6, 10, 13, 0.66) 58%, rgba(6, 10, 13, 0.9) 100%);
}

.landing-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  width: min(100%, 980px);
}

.landing-wordmark-wrap {
  position: relative;
  width: min(100%, 980px);
  display: grid;
  place-items: center;
  transform: translateY(clamp(8px, 1.2vw, 16px));
}

.landing-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(233, 227, 216, 0.9);
  text-shadow: 0 1px 10px rgba(5, 8, 11, 0.85);
}

.landing-wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: 0.98;
  letter-spacing: clamp(0.2em, 1.9vw, 0.36em);
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 3px 26px rgba(4, 7, 10, 0.9);
}

.landing-wordmark-image {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(78vw, 640px);
  max-height: clamp(96px, 16vw, 168px);
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.landing-wordmark-wrap.has-wordmark-image .landing-wordmark-image {
  opacity: 1;
}

.landing-wordmark-wrap.has-wordmark-image .landing-wordmark {
  color: transparent;
  text-shadow: none;
}

.landing-location {
  margin: 0;
  color: rgba(228, 222, 210, 0.88);
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(5, 8, 11, 0.85);
}

.entry-button {
  margin-top: 0.6rem;
  border: 1px solid var(--line-mid);
  background: rgba(7, 11, 14, 0.42);
  color: var(--ink);
  padding: 0.56rem 0.9rem;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.entry-compass {
  width: 1.32rem;
  height: 1.32rem;
  display: inline-grid;
  place-items: center;
}

.entry-compass img {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.84;
  transition: opacity 220ms ease, transform 220ms ease;
}

.entry-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.entry-button:hover,
.entry-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(147, 79, 70, 0.24) inset;
}

.entry-button:hover .entry-compass img,
.entry-button:focus-visible .entry-compass img {
  opacity: 1;
  transform: rotate(18deg);
}

.hub-view {
  min-height: calc(100dvh - 4.8rem);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.62rem;
}

.hub-heading {
  border: 1px solid var(--line-soft);
  background: rgba(10, 15, 18, 0.65);
  padding: 0.8rem;
  display: grid;
  gap: 0.28rem;
}

.hub-kicker {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hub-heading h1 {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.hub-intro {
  margin: 0.12rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  max-width: 54ch;
}

.collection-index {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.62rem;
  min-height: 0;
}

.collection-row {
  position: relative;
  border: 1.2px solid var(--line-mid);
  background: linear-gradient(152deg, rgba(15, 21, 25, 0.83), rgba(8, 12, 15, 0.96));
  color: var(--ink);
  text-align: left;
  padding: clamp(0.9rem, 2.4vw, 1.2rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  align-content: end;
  gap: clamp(0.75rem, 2vw, 1.2rem);
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease;
  overflow: hidden;
  min-height: clamp(198px, 28dvh, 340px);
}

.collection-row::selection {
  background: transparent;
}

.collection-row:nth-child(1) {
  grid-column: span 7;
}

.collection-row:nth-child(2) {
  grid-column: span 5;
}

.collection-row:nth-child(3) {
  grid-column: span 12;
}

.collection-row::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

.collection-row::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleY(0.7);
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.collection-row:hover,
.collection-row:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.collection-row:hover::after,
.collection-row:focus-visible::after {
  opacity: 1;
  transform: scaleY(1);
}

.collection-order {
  margin: 0;
  min-width: 2.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.collection-main {
  min-width: 0;
  display: grid;
  gap: 0.24rem;
  position: relative;
  z-index: 2;
}

.collection-art {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.collection-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 9, 12, 0.08) 0%, rgba(6, 9, 12, 0.56) 42%, rgba(6, 9, 12, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 9, 12, 0.42) 0%, rgba(6, 9, 12, 0.15) 54%, rgba(6, 9, 12, 0.46) 100%);
}

.collection-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) sepia(0.18) contrast(1.06) brightness(0.58);
  transform: scale(1.02);
  transition: transform 320ms ease, filter 320ms ease;
}

.collection-row--learning .collection-art img {
  object-fit: contain;
  object-position: 50% 54%;
  transform: scale(0.74);
}

.collection-row--learning:hover .collection-art img,
.collection-row--learning:focus-visible .collection-art img {
  transform: scale(0.78);
}

.collection-row--seattle-history .collection-art img {
  object-position: 54% 50%;
}

.collection-artifact {
  margin: 0;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--ink-soft);
}

.collection-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.16;
}

.collection-detail {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  white-space: normal;
  max-width: 68ch;
}

.collection-open {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 1px solid var(--line-soft);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--ink-soft);
  justify-self: end;
  align-self: end;
  position: relative;
  z-index: 2;
}

.collection-row:hover .collection-open,
.collection-row:focus-visible .collection-open {
  color: var(--accent);
}

.collection-row:hover .collection-art img,
.collection-row:focus-visible .collection-art img {
  transform: scale(1.06);
  filter: grayscale(1) sepia(0.14) contrast(1.1) brightness(0.7);
}

.module-view {
  min-height: calc(100dvh - 5rem);
}

.module-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.78rem;
  min-height: inherit;
}

.module-side {
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 18, 0.74);
  padding: 0.85rem;
  display: grid;
  gap: 0.78rem;
  align-content: start;
}

.module-side-head {
  display: grid;
  gap: 0.16rem;
}

.module-intro {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.module-kicker {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink-soft);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.module-side h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  font-weight: 500;
}

.module-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ghost-button {
  border: 1px solid var(--line-mid);
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.48rem 0.66rem;
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease;
}

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

.ghost-button:disabled {
  opacity: 0.36;
  cursor: default;
}

.plate-tabs {
  display: flex;
  gap: 0.44rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 0.22rem;
}

.plate-tab {
  border: 1px solid var(--line-soft);
  background: rgba(10, 14, 18, 0.82);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.72rem;
  padding: 0.4rem 0.64rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 220ms ease, color 220ms ease;
}

.plate-tab.is-current {
  border-color: var(--line-mid);
  color: var(--ink);
}

.plate-tab:hover,
.plate-tab:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.plate-position {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plate-position.mobile {
  display: block;
}

.module-main {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.66rem;
}

.module-main.is-single-plate {
  grid-template-rows: 1fr;
  gap: 0.52rem;
}

.plate-nav {
  border: 1px solid var(--line-soft);
  background: rgba(8, 12, 16, 0.66);
  padding: 0.58rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.plate-stage {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
}

.plate-stage.is-map-module {
  grid-template-rows: auto auto;
  align-content: start;
  gap: 0.54rem;
}

.plate-stage.is-map-module .plate-meta {
  border-color: rgba(228, 222, 210, 0.24);
  background: rgba(8, 12, 15, 0.54);
  padding-block: 0.5rem;
}

.plate-stage.is-map-module .plate-figure {
  min-height: 0;
  height: auto;
  aspect-ratio: 3 / 2;
  background: rgba(7, 11, 14, 0.48);
}

.plate-stage.is-map-module .plate-figure::before,
.plate-stage.is-map-module .plate-figure::after {
  display: none;
}

.plate-stage.is-map-module .plate-body {
  gap: 0.58rem;
  align-items: start;
}

.plate-stage.is-map-module .plate-figure-wrap > .plate-border {
  height: auto;
  padding: clamp(0.28rem, 0.9vw, 0.46rem);
  border-color: rgba(228, 222, 210, 0.38);
  background: rgba(7, 11, 14, 0.56);
}

.plate-stage.is-map-module .plate-border::before {
  display: none;
}

.plate-stage.is-map-module .plate-border::after {
  opacity: 0.03;
}

.plate-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.plate-meta {
  border: 1px solid var(--line-soft);
  background: rgba(9, 14, 17, 0.62);
  padding: 0.64rem 0.72rem;
}

.plate-meta h1 {
  margin: 0 0 0.08rem;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2.3vw, 1.86rem);
  font-weight: 500;
}

.plate-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plate-figure-wrap {
  min-width: 0;
  min-height: 0;
}

.plate-figure-wrap > .plate-border {
  height: 100%;
  padding: clamp(0.62rem, 1.8vw, 1rem);
}

.plate-figure {
  --light-x: 50%;
  --light-y: 46%;
  position: relative;
  min-height: clamp(370px, 56dvh, 920px);
  height: 100%;
  background:
    radial-gradient(circle at 22% 20%, rgba(136, 145, 154, 0.09), transparent 32%),
    linear-gradient(180deg, rgba(13, 18, 22, 0.76), rgba(7, 11, 14, 0.9));
  overflow: hidden;
}

.plate-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--light-x) var(--light-y), rgba(228, 222, 210, 0.16), transparent 68%);
  opacity: 0.18;
  transition: opacity 260ms ease;
}

.plate-figure.is-lit::before {
  opacity: 0.62;
}

.plate-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(228, 222, 210, 0.04) 50%, transparent 80%);
  animation: plate-glide 15s ease-in-out infinite alternate;
  opacity: 0.52;
}

.plate-figure.has-artwork::after {
  opacity: 0.08;
  animation-duration: 28s;
}

.plate-artwork-layer,
.plate-svg,
.constellation,
.hotspot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.plate-artwork-layer {
  --artwork-scale-current: var(--artwork-scale, 1);
  --artwork-x-current: var(--artwork-x, 0%);
  --artwork-y-current: var(--artwork-y, 0%);
  --user-zoom: 1;
  inset: 9% 5% 7%;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}

.plate-stage.is-map-module .plate-artwork-layer {
  inset: 6px;
}

.plate-stage.is-map-module .plate-artwork {
  opacity: 0.99;
}

.plate-stage.is-map-module .info-panel {
  min-height: 0;
  border-color: rgba(228, 222, 210, 0.26);
  background: rgba(8, 12, 15, 0.78);
}

.sequence-module-view {
  min-height: calc(100dvh - 5rem);
}

.sequence-shell {
  display: grid;
  gap: 0.66rem;
  min-height: inherit;
  width: min(100%, 1460px);
  margin-inline: auto;
}

.sequence-head {
  padding: 0.62rem 0.68rem;
  display: grid;
  gap: 0.36rem;
  overflow: hidden;
}

.sequence-head.plate-border::before {
  display: none;
}

.sequence-head-main {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  padding-right: 0.4rem;
}

.sequence-head-main h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.32rem, 2.2vw, 2.06rem);
  font-weight: 500;
  line-height: 1.04;
}

.sequence-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.sequence-head-actions .ghost-button {
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  padding: 0.4rem 0.58rem;
}

.sequence-head .module-intro {
  margin-top: 0.04rem;
  font-size: 0.72rem;
  line-height: 1.3;
  max-width: 44ch;
  overflow-wrap: anywhere;
}

.sequence-stage {
  display: grid;
  gap: 0.66rem;
}

.sequence-stage-image {
  padding: clamp(0.16rem, 0.38vw, 0.3rem);
}

.sequence-image-button {
  aspect-ratio: 4 / 3;
  width: min(100%, 1020px);
  border: none;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  transition: opacity 220ms ease;
}

.sequence-image-button:hover,
.sequence-image-button:focus-visible {
  opacity: 0.9;
}

.sequence-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) sepia(0.22) contrast(1.06) brightness(0.9);
}

.sequence-story {
  border-color: rgba(224, 206, 181, 0.33);
  background: rgba(18, 14, 11, 0.84);
  min-height: 0;
}

.sequence-lead {
  margin-top: 0.24rem;
}

.sequence-lightbox-trigger {
  margin-top: 0.78rem;
}

.sequence-carousel {
  border: 1px solid var(--line-soft);
  background: rgba(9, 13, 16, 0.72);
  display: flex;
  gap: 0.42rem;
  overflow-x: auto;
  padding: 0.48rem;
  scrollbar-width: thin;
}

.sequence-card {
  flex: 0 0 144px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 11, 14, 0.84);
  color: var(--ink-soft);
  padding: 0.42rem;
  display: grid;
  gap: 0.34rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 220ms ease, color 220ms ease;
}

.sequence-card:hover,
.sequence-card:focus-visible {
  border-color: var(--accent);
  color: var(--ink);
}

.sequence-card.is-current {
  border-color: var(--line-mid);
  color: var(--ink);
}

.sequence-card-order {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sequence-card-thumb img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  display: block;
  filter: grayscale(1) sepia(0.14) contrast(1.04) brightness(0.9);
}

.sequence-card-title {
  font-family: var(--sans);
  font-size: 0.7rem;
  line-height: 1.25;
}

.sequence-lightbox {
  position: fixed;
  inset: 0;
  z-index: 36;
  background: rgba(4, 7, 9, 0.93);
  backdrop-filter: blur(4px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.72rem;
  padding: max(0.8rem, env(safe-area-inset-top)) max(0.8rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(0.8rem, env(safe-area-inset-left));
}

.sequence-lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.sequence-lightbox-position {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sequence-lightbox-body {
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
}

.sequence-lightbox-media {
  margin: 0;
  border: 1px solid var(--line-mid);
  background: rgba(9, 13, 16, 0.82);
  padding: clamp(0.4rem, 1vw, 0.72rem);
  min-width: 0;
}

.sequence-lightbox-media img {
  width: 100%;
  max-height: 72dvh;
  object-fit: contain;
  display: block;
}

.sequence-lightbox-caption {
  margin-top: 0.54rem;
}

.sequence-lightbox-caption h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 2vw, 1.74rem);
  font-weight: 500;
}

.plate-artwork {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0.94;
  transform: translate(var(--artwork-x-current), var(--artwork-y-current)) scale(calc(var(--artwork-scale-current) * var(--user-zoom, 1)));
  transform-origin: center;
}

.plate-figure.has-artwork .constellation,
.plate-figure.has-artwork .calibration,
.plate-figure.has-artwork .plate-frame,
.plate-figure.has-artwork .plate-ring,
.plate-figure.has-artwork .plate-divider,
.plate-figure.has-artwork .plate-subdivision,
.plate-figure.has-artwork .plate-ring.faint,
.plate-figure.has-artwork .plate-ring.drift {
  display: none;
}

.plate-svg {
  z-index: 2;
}

.constellation {
  z-index: 3;
}

.hotspot-layer {
  z-index: 4;
}

.plate-frame {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2.2;
}

.plate-divider {
  fill: none;
  stroke: var(--line-mid);
  stroke-width: 1.4;
}

.plate-subdivision {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1.1;
}

.plate-ring {
  fill: none;
  stroke: var(--line-mid);
  stroke-width: 1.2;
}

.plate-ring.faint {
  opacity: 0.5;
}

.plate-ring.drift {
  opacity: 0.24;
  stroke-dasharray: 5 18;
  animation: slow-spin 55s linear infinite;
  transform-origin: 600px 350px;
}

.calibration line {
  stroke: var(--line-mid);
  stroke-width: 1.3;
}

.plate-shape path,
.plate-shape ellipse,
.plate-shape line,
.plate-subshape path,
.plate-subshape circle,
.plate-subshape ellipse,
.plate-divider path {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plate-shape path,
.plate-shape ellipse,
.plate-shape line {
  stroke-width: 1.95;
}

.plate-divider path {
  stroke: var(--line-mid);
  stroke-width: 1.2;
}

.plate-subshape path,
.plate-subshape circle,
.plate-subshape ellipse {
  stroke: var(--line-soft);
  stroke-width: 1.15;
}

.plate-fill path {
  fill: rgba(228, 222, 210, 0.12);
  stroke: var(--line-mid);
  stroke-width: 0.9;
}

.constellation-line {
  fill: none;
  stroke: var(--line-soft);
  stroke-width: 1;
  stroke-dasharray: 4 11;
  opacity: 0.1;
  transition: opacity 260ms ease;
}

body[data-learn-mode="true"] .constellation-line {
  opacity: 0.44;
}

.hotspot-button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  border: none;
  width: clamp(1.62rem, 3vw, 2.02rem);
  height: clamp(1.62rem, 3vw, 2.02rem);
  border-radius: 999px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hotspot-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1.35px solid rgba(240, 236, 228, 0.98);
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(4, 8, 11, 0.96),
    0 0 0 6px rgba(7, 11, 15, 0.5),
    0 0 10px rgba(147, 79, 70, 0.2);
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.hotspot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.46rem;
  height: 0.46rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0 1px rgba(242, 237, 227, 0.84),
    0 0 0 3px rgba(4, 8, 11, 0.88);
  transition: background-color 220ms ease;
}

.hotspot-ripple {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(147, 79, 70, 0.42);
}

.hotspot-button:hover::before,
.hotspot-button:focus-visible::before,
.hotspot-button.is-active::before {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(4, 8, 11, 0.96),
    0 0 0 8px rgba(147, 79, 70, 0.24),
    0 0 14px rgba(147, 79, 70, 0.36);
  transform: scale(1.1);
}

.hotspot-button:hover .hotspot-core,
.hotspot-button:focus-visible .hotspot-core,
.hotspot-button.is-active .hotspot-core {
  background: rgba(236, 230, 220, 0.98);
  box-shadow:
    0 0 0 2px rgba(147, 79, 70, 0.88),
    0 0 0 5px rgba(4, 8, 11, 0.9);
}

.hotspot-button.is-active .hotspot-ripple {
  border-color: rgba(147, 79, 70, 0.62);
  animation: hotspot-pulse 1.8s ease-out infinite;
}

.hotspot-tag {
  position: absolute;
  left: 1.74rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.18rem 0.32rem;
  border: 1px solid var(--line-mid);
  background: rgba(8, 12, 15, 0.92);
  color: var(--ink);
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.info-panel {
  border: 1.35px solid var(--line-mid);
  background: var(--panel);
  min-height: 160px;
  display: grid;
  grid-template-rows: auto;
  gap: 0;
  align-content: start;
  padding: 0.78rem 0.82rem;
  transition: border-color 240ms ease, transform 240ms ease;
}

.info-panel.is-open {
  border-color: var(--accent);
}

.panel-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.info-panel h2 {
  margin: 0.28rem 0 0.42rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.56rem);
  font-weight: 500;
}

.panel-idle {
  color: var(--ink-soft);
}

.panel-detail {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.panel-note {
  margin: 0.7rem 0 0;
  padding-left: 0.62rem;
  border-left: 1.2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.sequence-note-copy {
  margin-top: 0.76rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.panel-note a {
  color: rgba(234, 228, 217, 0.94);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 2px;
}

.panel-note a:hover,
.panel-note a:focus-visible {
  color: var(--accent);
}

@media (min-width: 760px) {
  .collection-index {
    grid-auto-rows: minmax(170px, auto);
    min-height: clamp(380px, 56dvh, 760px);
  }

  .collection-row {
    padding: clamp(1rem, 1.4vw, 1.3rem);
  }

  .collection-title {
    font-size: clamp(1.34rem, 2.2vw, 2.1rem);
  }
}

@media (min-width: 1024px) {
  .plate-artwork-layer {
    --artwork-scale-current: var(--artwork-scale-desktop, var(--artwork-scale, 1));
    --artwork-x-current: var(--artwork-x-desktop, var(--artwork-x, 0%));
    --artwork-y-current: var(--artwork-y-desktop, var(--artwork-y, 0%));
  }

  .module-shell {
    grid-template-columns: minmax(226px, 18vw) minmax(0, 1fr);
  }

  .module-side {
    min-height: calc(100dvh - 6.5rem);
  }

  .plate-tabs {
    flex-direction: column;
    overflow: auto;
    max-height: 40vh;
    padding-right: 0.24rem;
  }

  .plate-position.mobile {
    display: block;
    visibility: hidden;
    pointer-events: none;
  }

  .plate-body {
    grid-template-columns: minmax(0, 2.4fr) minmax(280px, 1fr);
    align-items: stretch;
    min-height: 0;
  }

  .plate-stage.is-map-module .plate-body {
    grid-template-columns: minmax(0, 2.85fr) minmax(250px, 0.95fr);
    align-items: start;
    gap: 0.56rem;
  }

  .plate-figure {
    min-height: clamp(480px, 68dvh, 980px);
  }

  .plate-stage.is-map-module .plate-figure {
    min-height: 0;
  }

  .info-panel {
    min-height: 100%;
    max-height: clamp(480px, 68dvh, 980px);
    overflow: auto;
  }

  .plate-stage.is-map-module .info-panel {
    min-height: 0;
    max-height: none;
  }

  .sequence-stage {
    grid-template-columns: minmax(0, 2.08fr) minmax(320px, 1fr);
    align-items: start;
  }

  .sequence-story {
    min-height: 0;
    max-height: none;
  }

  .sequence-card {
    flex-basis: 178px;
  }

  .sequence-card-thumb img {
    height: 86px;
  }

  .sequence-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .sequence-head-actions {
    align-self: start;
  }
}

@media (max-width: 580px) {
  .hub-view {
    gap: 0.62rem;
  }

  .hub-heading {
    padding: 0.72rem;
  }

  .hub-intro {
    font-size: 0.82rem;
    max-width: none;
  }

  .collection-row {
    grid-template-columns: auto 1fr auto;
    align-items: end;
    align-content: end;
    gap: 0.54rem;
    padding: 0.78rem;
    min-height: 164px;
  }

  .collection-row:nth-child(1),
  .collection-row:nth-child(2),
  .collection-row:nth-child(3) {
    grid-column: span 12;
  }

  .collection-order {
    grid-row: auto;
    padding-top: 0.04rem;
    position: relative;
    z-index: 2;
  }

  .collection-detail {
    white-space: normal;
    font-size: 0.82rem;
    max-width: none;
  }

  .collection-open {
    grid-column: 3;
    justify-self: end;
    margin-top: 0;
    padding-left: 0.4rem;
    border-left: 1px solid var(--line-soft);
  }

  .collection-art::after {
    background:
      linear-gradient(180deg, rgba(6, 9, 12, 0.22) 0%, rgba(6, 9, 12, 0.66) 44%, rgba(6, 9, 12, 0.92) 100%),
      linear-gradient(90deg, rgba(6, 9, 12, 0.56) 0%, rgba(6, 9, 12, 0.22) 58%, rgba(6, 9, 12, 0.62) 100%);
  }

  .header-line {
    display: none;
  }

  .module-side {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .module-main {
    gap: 0.54rem;
  }

  .module-main.is-single-plate {
    gap: 0.48rem;
  }

  .module-controls .ghost-button,
  .plate-nav .ghost-button {
    width: 100%;
  }

  .plate-nav {
    grid-template-columns: 1fr 1fr;
  }

  .plate-position.mobile {
    grid-column: 1 / -1;
    order: 3;
    text-align: center;
  }

  .hotspot-tag {
    left: 1.54rem;
    max-width: min(52vw, 210px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hotspot-button {
    width: clamp(1.3rem, 5.2vw, 1.55rem);
    height: clamp(1.3rem, 5.2vw, 1.55rem);
  }

  .hotspot-button::before {
    box-shadow:
      0 0 0 1px rgba(4, 8, 11, 0.96),
      0 0 0 3px rgba(7, 11, 15, 0.28),
      0 0 6px rgba(147, 79, 70, 0.14);
  }

  .hotspot-core {
    width: 0.34rem;
    height: 0.34rem;
    box-shadow:
      0 0 0 1px rgba(242, 237, 227, 0.8),
      0 0 0 2px rgba(4, 8, 11, 0.88);
  }

  .hotspot-ripple {
    border-color: rgba(147, 79, 70, 0.3);
  }

  .hotspot-button.is-active .hotspot-ripple {
    animation: none;
  }

  .plate-figure-wrap > .plate-border {
    padding: 0.48rem;
  }

  .plate-figure {
    min-height: clamp(340px, 54dvh, 590px);
  }

  .plate-stage.is-map-module .plate-meta {
    padding-block: 0.44rem;
  }

  .plate-stage.is-map-module .plate-figure {
    min-height: 0;
  }

  .plate-artwork-layer {
    inset: 2% 1.5% 1%;
  }

  .plate-stage.is-map-module .plate-artwork-layer {
    inset: 4px;
  }

  .sequence-head {
    padding: 0.56rem;
  }

  .sequence-head .module-intro {
    max-width: none;
  }

  .sequence-head-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sequence-head-actions .ghost-button {
    width: 100%;
  }

  .sequence-stage {
    grid-template-columns: 1fr;
  }

  .sequence-image {
    height: 100%;
  }

  .sequence-carousel {
    padding: 0.38rem;
    gap: 0.36rem;
  }

  .sequence-card {
    flex-basis: 132px;
  }

  .sequence-card-thumb img {
    height: 60px;
  }

  .sequence-lightbox-body {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .sequence-lightbox-nav {
    width: 100%;
  }

  .sequence-lightbox-media img {
    max-height: 60dvh;
  }

  .info-panel {
    backdrop-filter: blur(10px);
  }
}

@keyframes view-reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

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

@keyframes plate-glide {
  from {
    transform: translateX(-2%);
  }

  to {
    transform: translateX(2%);
  }
}

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }

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

@keyframes hotspot-pulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.86);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    scroll-behavior: auto !important;
  }

  .plate-figure::before {
    opacity: 0.22;
  }
}
