/* Chip Trigger — project page
   Warm-white instrument archive. Built without a framework. */

:root {
  --paper: #F4F1EA;
  --paper-2: #EAE6DB;
  --paper-3: #E2DED2;
  --ink: #232522;
  --muted: #575B56;
  --line: #D5D2CA;
  --line-strong: #BDB8AB;
  --teal: #1F4A46;
  --teal-deep: #1C2B29;
  --orange: #C95B08;
  --orange-text: #9E4605;
  --pink: #AD4265;
  --pink-text: #9C3558;
  --green: #217849;
  --green-text: #1D6B40;
  --blue: #285BB5;
  --sans: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1320px;
  --gutter: 48px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(35, 37, 34, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 37, 34, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 60%);
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--orange); }

button { font: inherit; color: inherit; }

strong { font-weight: 600; }

::selection { background: rgba(201, 91, 8, 0.2); }

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - (var(--gutter) * 2), 1560px);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font: 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 241, 234, 0.94);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), 1560px);
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 20px; height: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  flex: none;
}
.brand-mark i { display: block; background: var(--ink); }
.brand-mark i:nth-child(1) { background: var(--orange); }
.brand-mark i:nth-child(2) { background: var(--pink); }
.brand-mark i:nth-child(3) { background: var(--green); }
.brand-mark i:nth-child(4) { background: var(--blue); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  position: relative;
  font: 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; }

/* Hero */

.hero { padding-top: 68px; }

.eyebrow {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 10.5px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hero-no { margin: 0; white-space: nowrap; }
.author-name { text-transform: none; letter-spacing: 0.02em; }
.eyebrow .sep { color: var(--line-strong); }

.kicker-squares {
  display: inline-grid;
  grid-template-columns: repeat(4, 7px);
  gap: 3px;
  margin-right: 4px;
}
.kicker-squares i { width: 7px; height: 7px; display: block; }
.kicker-squares i:nth-child(1) { background: var(--orange); }
.kicker-squares i:nth-child(2) { background: var(--pink); }
.kicker-squares i:nth-child(3) { background: var(--green); }
.kicker-squares i:nth-child(4) { background: var(--blue); }

.hero-title {
  margin: 30px 0 38px;
  font-size: clamp(64px, 11.6vw, 178px);
  line-height: 0.82;
  letter-spacing: -0.062em;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
  padding-bottom: 54px;
}

.hero-subtitle {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.hero-subtitle-zh {
  margin: 16px 0 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-abstract p {
  margin: 0 0 16px;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}
.hero-abstract p + p { color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
}

.text-link, .inline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
}
.text-link span, .inline-link span { transition: transform 160ms ease; }
.text-link:hover span, .inline-link:hover span { transform: translateY(2px); }

.hero-figure { margin-block: 0; margin-inline: auto; }

/* Hero photograph gallery. The stage keeps one fixed aspect ratio so switching
   photographs never moves the page. Each frame is contained, not cropped. */
.gallery-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: 8px;
  background: #E7E3D8;
  border: 1px solid var(--line);
  touch-action: pan-y;
}
.gallery-stage picture { display: block; width: 100%; height: 100%; }
.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  background: #E7E3D8;
  cursor: zoom-in;
  opacity: 1;
  transition: opacity 220ms ease;
}
.gallery-image.is-entering { animation: gallery-enter 220ms ease both; }
@keyframes gallery-enter {
  from { opacity: 0.62; }
  to { opacity: 1; }
}
.gallery-image.is-cover { object-fit: cover; }
.gallery-image:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(35, 37, 34, 0.38);
  background: rgba(244, 241, 234, 0.92);
  color: var(--ink);
  font: 30px/1 var(--sans);
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: background 160ms ease, color 160ms ease;
}
.gallery-arrow:hover { background: var(--ink); color: var(--paper); }
.gallery-arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.gallery-arrow-prev { left: 18px; }
.gallery-arrow-next { right: 18px; }

.gallery-stage .media-chip {
  top: auto;
  right: auto;
  bottom: 16px;
  left: 16px;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 12px;
}
.gallery-caption {
  margin: 0;
  max-width: 88ch;
  font: 10.5px/1.55 var(--mono);
  letter-spacing: 0.035em;
  color: var(--muted);
}
.gallery-caption .fig-no { white-space: nowrap; }
.gallery-position {
  flex: none;
  margin: 0;
  font: 10px/1.4 var(--mono);
  letter-spacing: 0.12em;
  color: var(--ink);
  white-space: nowrap;
}
.gallery-hint {
  margin: 7px 0 0;
  font: 9px/1.4 var(--mono);
  letter-spacing: 0.03em;
  color: var(--muted);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.gallery-thumb {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  cursor: pointer;
}
.gallery-thumb picture { display: block; }
.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 160ms ease, transform 220ms ease;
}
.gallery-thumb:hover img { opacity: 1; transform: scale(1.015); }
.gallery-thumb.is-selected {
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--orange);
}
.gallery-thumb.is-selected img { opacity: 1; }
.gallery-thumb:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.gallery-thumb-no {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 5px;
  background: rgba(244, 241, 234, 0.94);
  color: var(--ink);
  font: 9px/1 var(--mono);
  letter-spacing: 0.08em;
}

.media-chip {
  position: absolute;
  top: 18px; right: 18px;
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  font: 9.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

figcaption {
  margin-top: 12px;
  font: 10.5px/1.5 var(--mono);
  letter-spacing: 0.035em;
  color: var(--muted);
}

.fig-no {
  display: inline-block;
  margin-right: 8px;
  color: var(--ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  margin-top: 48px;
}

.spec {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec:last-child { border-right: 0; }

.spec-value {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.spec-label {
  font: 10px/1.3 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-top: 8px;
}
.spec-note { font-size: 12.5px; color: var(--muted); }

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

.layer { background: var(--paper); padding: 28px 26px 30px; }
.layer-no {
  font: 10px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--orange-text);
}
.layer h2 {
  margin: 18px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.layer p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 40ch; }

/* Motivation */

.why-block {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.5fr) minmax(0, 0.72fr);
  gap: 48px;
  align-items: start;
}
.why-head h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.why-copy p { margin: 0; max-width: 64ch; font-size: 17px; line-height: 1.65; }
.why-copy p + p { margin-top: 14px; }
.why-copy .why-clarify {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.why-manuscript {
  margin: 0;
  justify-self: end;
  max-width: 320px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #F7F4EC;
}
.why-manuscript img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.why-manuscript figcaption { margin-top: 9px; font-size: 9.5px; line-height: 1.5; }

/* Section shell */

.section {
  padding: 104px 0 112px;
  border-top: 1px solid var(--line-strong);
}

.section-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.section-no {
  margin: 8px 0 0;
  font: 10.5px/1.4 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-no span { color: var(--line-strong); margin: 0 2px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.section-lede {
  margin: 26px 0 0;
  max-width: 64ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}

.mini-label {
  margin: 0 0 10px;
  font: 9.5px/1.4 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted { color: var(--muted); }

/* Films */

.film { margin: 56px 0 0; }

.video-shell {
  position: relative;
  background: #111;
  overflow: hidden;
}
.video-shell video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #111; }

/* Custom player for the captioned Behind the Build film.
   Controls sit below the picture so burned-in subtitles are never covered. */
.custom-player { background: #111; }
.custom-player video { cursor: pointer; }
.player-stage { position: relative; }

.player-center {
  position: absolute;
  top: 50%; left: 50%;
  z-index: 2;
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244, 241, 234, 0.62);
  border-radius: 50%;
  background: rgba(20, 22, 20, 0.58);
  color: var(--paper);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 160ms ease, opacity 160ms ease;
}
.player-center:hover { background: rgba(20, 22, 20, 0.84); }
.player-center svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.custom-player.is-playing .player-center { display: none; }

.player-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #1C2B29;
  color: var(--paper);
}

.player-btn {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #4A5C57;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.player-btn:hover, .player-btn:focus-visible { background: var(--paper); color: var(--ink); }
.player-btn svg { width: 14px; height: 14px; fill: currentColor; }
.player-btn .icon-pause { display: none; }
.custom-player.is-playing .player-btn .icon-play { display: none; }
.custom-player.is-playing .player-btn .icon-pause { display: block; }

.player-btn-text {
  width: auto;
  padding: 0 6px;
  font: 9px/1 var(--mono);
  letter-spacing: 0.06em;
}

.player-time {
  flex: none;
  min-width: 76px;
  font: 9.5px/1 var(--mono);
  letter-spacing: 0.04em;
  color: #D8DED9;
  white-space: nowrap;
}

.player-seek {
  flex: 1;
  min-width: 0;
  height: 20px;
  accent-color: var(--orange);
  cursor: pointer;
}

.custom-player:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #000;
}
.custom-player:fullscreen video {
  width: 100%;
  max-height: calc(100vh - 52px);
  object-fit: contain;
}
.custom-player:fullscreen .player-stage { flex: none; }
.custom-player:fullscreen .player-bar { flex: none; }

.video-badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 11px;
  background: rgba(20, 22, 20, 0.72);
  color: #F4F1EA;
  backdrop-filter: blur(8px);
  font: 9px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.video-badge strong { font-size: 11px; font-weight: 500; letter-spacing: 0.04em; }
.video-badge { transition: opacity 180ms ease; }
.video-shell.is-playing .video-badge { opacity: 0; }

.film-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 44px;
}
.film-notes > div { background: var(--paper); padding: 24px 24px 26px; }
.film-notes p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.film-notes .mini-label { color: var(--ink); }

/* Interaction */

.interaction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

.panel-figure { margin: 0; }

.interaction-left { display: flex; flex-direction: column; gap: 26px; }

.control-overview {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.control-chain {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.chain-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 14px 13px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}
.chain-trigger { border-color: var(--orange); background: #F2E1D4; }
.chain-effect { background: #ECE8DD; }
.chain-result { border-color: var(--teal); background: #DCE5DE; }

.chain-label {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.chain-trigger .chain-label { color: var(--orange-text); }
.chain-result .chain-label { color: var(--teal); }
.chain-sub {
  font: 8.5px/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.chain-arrow {
  align-self: center;
  flex: none;
  font: 15px/1 var(--mono);
  color: var(--muted);
}

.control-note {
  margin: 0;
  max-width: 58ch;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.control-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
  border-top: 1px solid var(--line);
}
.control-summary > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.control-summary dt {
  font: 9px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.control-summary dd { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.feature-inline { margin-top: 50px; }

.mapping-details {
  margin-top: 44px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.mapping-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
  font: 10px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mapping-details summary::-webkit-details-marker { display: none; }
.mapping-details summary::after {
  content: "+";
  font: 18px/1 var(--mono);
  letter-spacing: 0;
  color: var(--orange-text);
}
.mapping-details[open] summary::after { content: "−"; }
.summary-meta {
  margin-left: auto;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: none;
}
.mapping-details-body { padding: 4px 0 34px; }

.mapping-aid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  margin: 30px 0 34px;
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.mapping-aid picture { display: block; }
.mapping-aid img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.mapping-aid figcaption {
  margin: 0;
  max-width: 56ch;
  font: 10.5px/1.65 var(--mono);
  color: var(--muted);
}
.mapping-aid .tag { margin-right: 7px; }

.detail-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
  align-items: start;
}
.detail-shots figure { margin: 0; }
.detail-shots figure:not(.detail-wide) { max-width: 390px; justify-self: center; }
.detail-shots img {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.detail-shots figcaption { margin-top: 6px; font-size: 9.5px; }
.detail-wide { grid-column: 1 / -1; }

.panel-map {
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.panel-map svg { width: 100%; height: auto; }

.hotspot .halo {
  fill: transparent;
  stroke: transparent;
  stroke-width: 2;
  transition: fill 160ms ease, stroke 160ms ease;
}
.hotspot .part { transition: stroke 160ms ease, stroke-width 160ms ease; }
.hotspot.is-active .halo {
  fill: rgba(201, 91, 8, 0.1);
  stroke: rgba(201, 91, 8, 0.62);
}
.hotspot.is-active .part {
  stroke: var(--orange);
  stroke-width: 3.5;
}
.hotspot { cursor: pointer; }
.hotspot:focus { outline: none; }
.hotspot:focus-visible .halo {
  fill: rgba(40, 91, 181, 0.16);
  stroke: var(--blue);
  stroke-width: 3;
}
.hotspot:focus-visible .part {
  stroke: var(--blue);
  stroke-width: 3.5;
}

.panel-map text { font-family: var(--mono); }
.btn-label {
  fill: #fff;
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
  letter-spacing: 0.04em;
}
.part-label {
  fill: var(--muted);
  font-size: 10px;
  text-anchor: middle;
  letter-spacing: 0.08em;
}
.knob { fill: #F4F1EA; stroke: #243F3C; stroke-width: 2.2; }
.knob-mark { stroke: #243F3C; stroke-width: 2.2; stroke-linecap: round; }

.control-table-wrap { overflow-x: auto; }

.table-hint { display: none; }

.control-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.45;
}
.control-table thead th {
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line-strong);
  font: 9px/1.3 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-weight: 400;
}
.control-table tbody th[colspan] {
  padding: 16px 10px 8px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font: 9px/1.3 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  font-weight: 500;
}
.control-table tbody th[colspan]:first-child { padding-top: 8px; }
.control-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
.control-table td:first-child { color: var(--ink); white-space: nowrap; }
.control-table td:first-child strong { margin-right: 6px; font-family: var(--mono); font-size: 11px; }
.control-table tr[data-control] { transition: background 140ms ease, box-shadow 140ms ease; cursor: default; }
.control-table tr[data-control]:hover, .control-table tr[data-control].is-active {
  background: rgba(201, 91, 8, 0.065);
  box-shadow: inset 3px 0 0 var(--orange);
}

.ctrl-dot {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 7px;
  vertical-align: 0;
}
.dot-orange { background: var(--orange); }
.dot-pink { background: var(--pink); }
.dot-green { background: var(--green); }
.dot-blue { background: var(--blue); }

.evidence-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
  align-items: start;
  max-width: 980px;
}
.evidence { margin: 0; }
.evidence img {
  width: 100%;
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.evidence figcaption { margin-top: 8px; }

.mapping-wide { margin-top: 40px; }
.mapping-wide img { background: #fff; padding: 10px; }

.fine-note {
  margin: 30px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  max-width: 90ch;
  font: 11px/1.6 var(--mono);
  letter-spacing: 0.015em;
  color: var(--muted);
}

/* System */

.section-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.system-figure {
  margin: 54px 0 0;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.system-svg { width: 100%; height: auto; }

.system-mobile-flow {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow-mobile-step {
  padding: 16px 18px 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--teal);
}
.flow-mobile-step + .flow-mobile-step {
  position: relative;
  margin-top: 30px;
}
.flow-mobile-step + .flow-mobile-step::before {
  content: "↓";
  position: absolute;
  top: -26px;
  left: 20px;
  font: 17px/1 var(--mono);
  color: var(--teal);
}
.flow-mobile-kicker {
  margin: 0 0 7px;
  font: 9.5px/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow-mobile-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.flow-mobile-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.flow-mobile-note {
  margin-top: 10px !important;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font: 10px/1.5 var(--mono) !important;
  color: var(--ink) !important;
}
.flow-mobile-branch {
  border-left-color: var(--orange);
  background: #F1E7DA;
}

.flow-kicker {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--muted);
}
.flow-box { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.flow-box-strong { fill: #F7F4EC; stroke: var(--teal); stroke-width: 1.5; }
.flow-box-live { fill: #F7F4EC; stroke: var(--line-strong); }
.flow-box-fill { fill: #DCE4DC; stroke: var(--teal); }
.flow-title { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.flow-sub { font-family: var(--sans); font-size: 10.5px; fill: var(--muted); }
.flow-body { font-family: var(--mono); font-size: 10px; fill: var(--ink); }
.flow-note { font-family: var(--sans); font-size: 9.5px; fill: var(--muted); font-style: italic; }
.flow-divider { stroke: var(--line); stroke-width: 1; }
.flow-line { stroke: var(--teal); stroke-width: 1.4; fill: none; }
.flow-line-dashed { stroke-dasharray: 5 5; }

.system-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}
.system-card { background: var(--paper); padding: 26px 24px 28px; }
.system-card h3 { margin: 16px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.system-card p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.system-card .mini-meta {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font: 9.5px/1.5 var(--mono);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.wide-figure { margin: 54px 0 0; }
.wide-figure img { width: 100%; border: 1px solid var(--line); cursor: zoom-in; }

.score-setup img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 58%; }

/* Development */

.dev-block {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 56px;
  align-items: center;
  margin-top: 64px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}
.dev-block:first-of-type { margin-top: 56px; }
.dev-block-reverse .dev-media { order: 2; }
.dev-block-reverse .dev-copy { order: 1; }
.dev-block-wide { grid-template-columns: 1fr; gap: 28px; }
.dev-block-wide .dev-media, .dev-block-wide .dev-copy { order: initial; }

.dev-media { margin: 0; }
.dev-media img { width: 100%; border: 1px solid var(--line); cursor: zoom-in; }

.prototype-block { margin-top: 72px; }
.prototype-intro { max-width: 72ch; }
.prototype-intro h3 {
  margin: 14px 0 16px;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.prototype-intro p { margin: 0; max-width: 62ch; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.prototype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.prototype-grid figure { margin: 0; }
.prototype-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.prototype-grid figcaption { margin-top: 8px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.prototype-grid figcaption strong {
  display: block;
  margin-bottom: 4px;
  font: 9.5px/1.35 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
}

.result-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 0 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.result-line span {
  font: 9px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.technical-details { margin-top: 72px; }
.technical-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 8px 0 6px;
}
.technical-grid section { padding-top: 14px; border-top: 1px solid var(--line); }
.technical-grid dl { margin: 0; }
.technical-grid dl > div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.technical-grid dt {
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.technical-grid dd { margin: 0; font-size: 12px; line-height: 1.5; }

.drawing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
  align-items: start;
}
.drawing-grid figure { margin: 0; }
.drawing-wide { grid-column: 1 / -1; }
.drawing-grid img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.drawing-grid figcaption { margin-top: 8px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.drawing-grid strong { color: var(--ink); font-weight: 500; }

.dev-copy h3 { margin: 14px 0 16px; font-size: clamp(25px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; }
.dev-copy p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 54ch; }

.spec-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}
.spec-list > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font: 9px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.spec-list dd { margin: 4px 0 0; font-size: 13px; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.two-up figure { margin: 0; }
.two-up img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }
.two-up figcaption { font-size: 9.5px; margin-top: 6px; }

.callout {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding: 16px 18px;
  background: #EFE7D8;
  border-left: 3px solid var(--orange);
}
.callout-mark {
  flex: none;
  width: 22px; height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--orange);
  border-radius: 50%;
  color: var(--orange-text);
  font: 11px/1 var(--mono);
}
.callout p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); }

.colorways { margin-top: 84px; padding-top: 40px; border-top: 1px solid var(--line); }
.colorway-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.colorway-head h3 { grid-column: 2; margin: 8px 0 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.035em; }
.colorway-head p:last-child { grid-column: 2; margin: 0; max-width: 62ch; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.colorway-head .mini-label { grid-row: 1; }

.colorway-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.colorway-pair figure { margin: 0; }
.colorway-pair img { width: 100%; background: #fff; padding: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.colorway-pair figcaption { display: flex; align-items: center; gap: 8px; }

.tag {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  font: 8px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag-accent { border-color: var(--green); color: var(--green); }

.film-secondary { margin-top: 84px; }

/* Score */

.timeline-block { margin-top: 56px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 20px 0 16px; }
.timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 16px; }
.timeline-head .mini-label { margin: 0; }
.timeline-hint { margin: 0; font: 9.5px/1.4 var(--mono); color: var(--muted); letter-spacing: 0.02em; }

.timeline { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: thin; }
.segment {
  flex: var(--flex) 1 0;
  min-width: 92px;
  height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 12px 11px;
  border: 0;
  border-top: 4px solid currentColor;
  background: var(--seg-bg);
  color: var(--seg-fg);
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.segment:hover, .segment:focus-visible { background: var(--seg-fg); color: #fff; }
.segment.is-current { box-shadow: inset 0 -3px 0 var(--ink); }
.seg-name { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.seg-time { font: 9px/1.2 var(--mono); letter-spacing: 0.02em; opacity: 0.8; }

.seg-neutral { --seg-bg: #E0DBCE; --seg-fg: #575B56; color: #575B56; }
.seg-orange { --seg-bg: #F0DED0; --seg-fg: var(--orange-text); color: var(--orange-text); }
.seg-green { --seg-bg: #D9E5DA; --seg-fg: var(--green-text); color: var(--green-text); }
.seg-blue { --seg-bg: #DCE3EF; --seg-fg: var(--blue); color: var(--blue); }
.seg-pink { --seg-bg: #EFDCE2; --seg-fg: var(--pink-text); color: var(--pink-text); }
.seg-teal { --seg-bg: #D6E2DF; --seg-fg: var(--teal); color: var(--teal); }

.timeline-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 8.5px/1 var(--mono); color: var(--muted); letter-spacing: 0.04em; }

.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 56px; margin-top: 56px; align-items: start; }
.score-copy { padding-top: 4px; }

.sequence { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sequence li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
}
.sequence span { font: 10px/1.6 var(--mono); color: var(--orange-text); letter-spacing: 0.06em; }

.score-sheet { margin: 0; }
.score-sheet img { width: 100%; border: 1px solid var(--line); background: #fff; cursor: zoom-in; }

.score-controller { margin: 32px 0 0; }
.score-controller img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.score-controller figcaption {
  margin-top: 8px;
  font: 10px/1.55 var(--mono);
  color: var(--muted);
}

.score-setup { margin-top: 56px; }

/* Credits */

.section-credits {
  background: var(--teal-deep);
  color: var(--paper);
  border-top: 1px solid var(--teal-deep);
}
.section-credits .section-no, .section-credits .mini-label, .section-credits figcaption, .section-credits .fine-note { color: #AEB8B2; }
.section-credits .section-no span { color: #4A5C57; }
.section-credits .fig-no { color: var(--paper); }

.reflection-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; margin-top: 56px; align-items: start; }
.reflection-quote { margin: 0; padding: 0; border-left: 1px solid #44544F; padding-left: 28px; }
.reflection-quote p { margin: 0; font-size: clamp(21px, 2.2vw, 29px); line-height: 1.4; letter-spacing: -0.02em; color: var(--paper); }

.limitations ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid #3B4A46; }
.limitations li { padding: 13px 0; border-bottom: 1px solid #3B4A46; font-size: 13px; line-height: 1.55; color: #B8C2BC; }
.limitations strong { color: var(--paper); font-weight: 500; }

.credits-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid #44544F;
}
.credit-line {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #3B4A46;
  font-size: 14px;
}
.credit-line strong { flex: 0 0 auto; white-space: nowrap; font: 9.5px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: #AEB8B2; font-weight: 400; }
.credit-line .keep-case { text-transform: none; }
.credit-line span { flex: 1 1 auto; min-width: 0; text-align: right; }
.credit-note { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #3B4A46; font-size: 12px; line-height: 1.6; color: #B8C2BC; }
.credits-provenance p { margin: 0 0 14px; font-size: 13px; line-height: 1.65; color: #B8C2BC; }
.sources-details { margin-top: 18px; border-color: #3B4A46; }
.sources-details summary { padding: 12px 0; color: #B8C2BC; }
.sources-details summary::after { color: #E8A16A; }
.sources-details .mapping-details-body { padding: 4px 0 8px; }
.source-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 11px; line-height: 1.55; color: #B8C2BC; }
.source-list strong { color: #F4F1EA; font-weight: 500; }
.sources-details .fine-note { margin: 12px 0 6px; color: #8FA09A; }

.feature-figure { margin: 64px 0 0; }
.video-shell-small { max-width: 100%; }
.pending { color: #E0B58F; }

.closing { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #44544F; }
.closing p { margin: 0; max-width: 62ch; font-size: 13px; line-height: 1.6; color: #B8C2BC; }
.closing .mini-label { color: #AEB8B2; margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 13px 18px;
  border: 1px solid #8B9A94;
  background: transparent;
  color: var(--paper);
  font: 10px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-secondary { background: transparent; color: var(--paper); border-color: rgba(244, 241, 234, 0.45); }
.btn-secondary:hover { background: rgba(244, 241, 234, 0.08); color: var(--paper); border-color: var(--paper); }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Footer */

.site-footer { padding: 34px 0 38px; background: var(--paper); border-top: 1px solid var(--line-strong); }
.footer-inner { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.footer-meta { margin: 2px 0 0; font: 9.5px/1.5 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer-note { margin: 0; font-size: 11px; line-height: 1.6; color: var(--muted); max-width: 46ch; }

/* Lightbox */

.lightbox {
  width: min(94vw, 1400px);
  max-height: 92vh;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.lightbox::backdrop { background: rgba(20, 24, 22, 0.82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 72vh; object-fit: contain; background: #fff; }
.lightbox p { margin: 10px 0 0; font: 10.5px/1.5 var(--mono); color: var(--muted); }
.lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font: 9px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Responsive */

@media (max-width: 1180px) {
  :root { --gutter: 36px; }
  .site-nav { gap: 18px; }
  .hero-intro { gap: 40px; }
  .interaction-grid { gap: 32px; }
}

@media (max-width: 980px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-no { margin-top: 0; }
  .hero-intro { grid-template-columns: 1fr; gap: 28px; }
  .hero-subtitle { max-width: 28ch; }
  .layers, .film-notes, .system-cards { grid-template-columns: 1fr; }
  .layers { gap: 0; }
  .layer { border-bottom: 1px solid var(--line); }
  .layer:last-child { border-bottom: 0; }
  .film-notes > div { border-bottom: 1px solid var(--line); }
  .film-notes > div:last-child { border-bottom: 0; }
  .interaction-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 26px; }
  .why-manuscript { justify-self: start; max-width: 420px; }
  .technical-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .system-card { border-bottom: 1px solid var(--line); }
  .system-card:last-child { border-bottom: 0; }
  .dev-block, .dev-block-reverse { grid-template-columns: 1fr; gap: 28px; }
  .dev-block-reverse .dev-media, .dev-block-reverse .dev-copy { order: initial; }
  .score-grid { grid-template-columns: 1fr; gap: 32px; }
  .reflection-grid { grid-template-columns: 1fr; gap: 36px; }
  .credits-panel { grid-template-columns: 1fr; gap: 32px; }
  .colorway-head { grid-template-columns: 1fr; gap: 10px; }
  .colorway-head h3, .colorway-head p:last-child { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-note { max-width: 70ch; }
}

@media (max-width: 820px) {
  :root { --gutter: 22px; }
  .header-inner { height: 60px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border: 0;
    background: none;
    font: 9.5px/1 var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav-toggle-line { width: 14px; height: 1px; background: currentColor; position: relative; }
  .nav-toggle-line::after { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 1px; background: currentColor; }
  .site-nav {
    position: absolute;
    top: 60px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 18px 30px rgba(35, 37, 34, 0.06);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
  .hero { padding-top: 40px; }
  .hero-no { display: none; }
  .hero-title { margin-top: 26px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .spec:nth-child(2) { border-right: 0; }
  .spec:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .layers { margin: 56px 0 68px; }
  .section { padding: 72px 0 80px; }
  .section-lede { font-size: 15.5px; }
  .why-copy p { font-size: 16px; }
  .gallery-stage { aspect-ratio: 4 / 3; padding: 6px; }
  .gallery-arrow { width: 40px; height: 40px; font-size: 26px; }
  .gallery-arrow-prev { left: 10px; }
  .gallery-arrow-next { right: 10px; }
  .gallery-stage .media-chip { bottom: 10px; left: 10px; }
  .gallery-meta { gap: 12px; }
  .gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .gallery-thumb { flex: 0 0 88px; scroll-snap-align: start; }
  .gallery-hint { max-width: 46ch; }
  .media-chip { top: 10px; right: 10px; font-size: 8.5px; }
  .evidence-strip { grid-template-columns: 1fr; }
  .system-figure { padding: 12px; overflow: visible; }
  .system-svg { display: none; }
  .system-mobile-flow { display: block; }
  .timeline-block { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .timeline-scale { display: none; }
  .segment { min-width: 104px; height: 84px; }
  .colorway-pair { grid-template-columns: 1fr; }
  .closing { flex-direction: column; align-items: flex-start; }
  .video-badge { display: none; }
}

@media (max-width: 560px) {
  .hero-title { font-size: 17.5vw; }
  .hero-subtitle { font-size: 23px; }
  .hero-abstract p { font-size: 15px; }
  .gallery-thumb { flex-basis: 78px; }
  .gallery-caption { font-size: 9.5px; }
  .gallery-position { font-size: 9.5px; }
  .gallery-hint { font-size: 8.5px; }
  .spec { padding: 16px 14px 18px; }
  .spec-value { font-size: 34px; }
  .spec-note { font-size: 11.5px; }
  .section-head h2 { font-size: 38px; }
  .two-up { grid-template-columns: 1fr; }
  .detail-shots { grid-template-columns: 1fr; }
  .detail-wide { grid-column: auto; }
  .summary-meta { display: none; }
  .technical-grid { grid-template-columns: 1fr; gap: 20px; }
  .colorway-head h3 { font-size: 28px; }
  .credit-line { flex-direction: column; gap: 4px; }
  .credit-line span { text-align: left; }
}

@media (max-width: 700px) {
  .mapping-aid { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .table-hint {
    display: block;
    margin: 0 0 8px;
    font: 9px/1.4 var(--mono);
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  .control-table { min-width: 560px; }
  .control-chain { flex-direction: column; }
  .chain-arrow { align-self: center; transform: rotate(90deg); }
  .control-summary { grid-template-columns: 1fr; }
  .prototype-grid { grid-template-columns: 1fr; }
  .drawing-grid { grid-template-columns: 1fr; }
  .drawing-wide { grid-column: auto; }
}

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

/* Print / save as PDF */

@media print {
  :root { --paper: #fff; --paper-2: #f4f1ea; --paper-3: #ece8de; }
  html { scroll-padding-top: 0; }
  body { background: #fff; color: #1b1d1a; font-size: 10pt; }
  body::before, .site-header, .nav-toggle, .site-nav, .skip-link, .hero-actions, .closing .btn, .lightbox { display: none !important; }
  .section-credits { background: #fff; color: #1b1d1a; }
  .section-credits .section-no, .section-credits .mini-label, .section-credits figcaption, .section-credits .fine-note { color: #575B56; }
  .reflection-quote p, .limitations strong, .credits-provenance p, .credit-note, .closing p { color: #1b1d1a; }
  .limitations li, .credit-line { color: #1b1d1a; border-color: #d5d2ca; }
  .section { padding: 30px 0; break-inside: avoid; }
  .section-head h2 { font-size: 30pt; }
  .hero-title { font-size: 64pt; }
  .video-shell video { display: none; }
  .video-shell { background: none; }
  .player-bar, .player-center, .video-badge { display: none !important; }
  .gallery-thumbs, .gallery-arrow, .gallery-hint, .gallery-position { display: none !important; }
  .system-mobile-flow { display: none !important; }
  .video-shell::after { content: "Film available in the web edition."; display: block; padding: 18px; border: 1px solid #d5d2ca; font: 9pt/1.4 var(--mono); }
  a { text-decoration: none; }
  img { break-inside: avoid; }
  .interaction-grid, .dev-block, .score-grid, .credits-panel, .reflection-grid { grid-template-columns: 1fr; gap: 18px; }
  .timeline { overflow: visible; }
  .segment { height: auto; min-height: 52px; }
  .section-band { background: #fff; }
  .why-block, .spec-grid, .layers, .colorways, .layer, .control-chain,
  .control-summary, .timeline-block, .film-notes, .colorway-pair, .credits-main,
  .credits-provenance, .spec-list, .two-up { break-inside: avoid; }
  .colorway-head { break-after: avoid; }
  .colorway-pair { break-before: avoid; }
  .mapping-details[open] summary { border-bottom: 1px solid #d5d2ca; }
  .detail-shots { grid-template-columns: 1fr 1fr; }
  .detail-wide { grid-column: 1 / -1; }
  .prototype-grid { grid-template-columns: 1fr 1fr; }
}
