@font-face {
  font-family: 'Instrument Sans';
  src: url('./assets/instrument-sans.woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('./assets/instrument-serif.woff2');
  font-display: swap;
}
:root {
  color-scheme: light;
  --page: #f3f6f5;
  --surface: #fbfcfb;
  --ink: #17343a;
  --muted: #54686d;
  --line: #d8e2df;
  --input-line: #7b8f88;
  --accent: #12685d;
  --accent-soft: #e3efea;
  --focus: #12685d;
  --radius: 8px;
  --z-menu: 10;
  --z-fullscreen: 100;
  font-family: 'Instrument Sans', sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    14px/1.5 'Instrument Sans',
    sans-serif;
}
button,
input,
select,
summary {
  font: inherit;
}
button,
select,
summary {
  min-height: 44px;
}
button,
select {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
}
button:active,
summary:active {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button[aria-pressed='true'] {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button.primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
select {
  border-color: var(--input-line);
  width: 100%;
  padding: 10px 32px 10px 12px;
  text-overflow: ellipsis;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon-button {
  width: 44px;
  padding: 10px;
  flex: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px;
  background: var(--surface);
  z-index: 200;
}
.skip-link:focus {
  top: 12px;
}
.site-header,
main,
footer {
  width: calc(100% - 64px);
  max-width: 1800px;
  margin-inline: auto;
}
.site-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
.header-actions > * {
  min-height: 44px;
}
.wordmark {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.045em;
  text-decoration: none;
}
.wordmark span {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 10px;
}
.quiet-button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 400;
}
.quiet-button .icon {
  width: 17px;
}
.introduction {
  padding: 6px 0 16px;
}
.introduction-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.film-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.introduction p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.experience {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.viewer-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  min-height: 61px;
}
.discovery-actions,
.utility-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.viewer-toolbar button {
  background: transparent;
  border-color: transparent;
}
.viewer-toolbar button[aria-expanded='true'],
.viewer-toolbar button[aria-pressed='true'] {
  background: var(--accent-soft);
  color: var(--accent);
}
.discovery-actions button {
  padding-inline: 12px;
}
.film-control {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: 44px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
}
.film-control:hover {
  background: var(--accent-soft);
}
.utility-actions button {
  font-size: 13px;
  color: var(--muted);
}
.utility-actions > .icon-button {
  border-left-color: var(--line);
  border-radius: 0;
  margin-left: 3px;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
  background: #e9efec;
  color: #405c5f;
  font-variant-numeric: tabular-nums;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: clamp(368px, calc(115svh - 419.75px), 1380px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.workspace:has(#explore-panel[open]) {
  grid-template-columns: minmax(0, 1fr) 352px;
}
.room-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #dce5e2;
  --split: 50%;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
#room {
  cursor: grab;
}
#room.object-hovered {
  cursor: pointer;
}
#room:active {
  cursor: grabbing;
}
#object-hover {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  max-width: 230px;
  padding: 9px 12px;
  border: 1px solid #dce7e3;
  border-radius: 8px;
  background: #f9fcf9f2;
  color: #233d39;
  box-shadow: 0 4px 18px #102b2317;
  font-size: 12px;
  line-height: 1.4;
}
#object-hover strong {
  display: block;
  font-weight: 500;
}
#object-hover span {
  display: block;
  color: #60766f;
  font-size: 11px;
  margin-top: 2px;
}
.date-block {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #fbfcfb;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-shadow: 0 1px 10px #132324;
  pointer-events: none;
  padding: 12px 16px;
  background: #17343ac4;
  border-radius: 8px;
}
.date-block strong {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.date-block span {
  font-size: 12px;
  color: #e4ede9;
}
#status {
  position: absolute;
  right: 16px;
  top: 16px;
  max-width: min(420px, 60%);
  padding: 11px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 3px 15px #17343a12;
}
#status:empty {
  display: none;
}
#recover {
  position: absolute;
  top: 80px;
  right: 16px;
  background: var(--surface);
}
.view-controls {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  gap: 6px;
  align-items: stretch;
  z-index: 2;
}
.view-controls:has(.menu[open]) {
  z-index: var(--z-menu);
}
.view-controls > button {
  background: var(--surface);
  box-shadow: 0 3px 12px #10232716;
  min-height: 48px;
}
.menu {
  position: relative;
}
.menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
  user-select: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.settings-menu > summary {
  width: 44px;
  color: var(--muted);
}
.menu[open] > summary {
  background: var(--accent-soft);
  color: var(--accent);
}
.menu-body {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: var(--z-menu);
  width: 230px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 36px #153b3822;
}
.menu-title {
  padding: 9px 10px;
  font-size: 12px;
  color: var(--muted);
}
.menu-body button {
  width: 100%;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  min-height: 44px;
  font-size: 13px;
}
.settings-menu #restore {
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 5px;
}
#room-making-open {
  display: none;
}
.view-picker summary {
  background: var(--surface);
  color: var(--ink);
  padding: 7px 12px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 16px;
  min-width: 168px;
  box-shadow: 0 3px 12px #10232716;
}
.view-caption {
  font-size: 10px;
  color: var(--muted);
  grid-column: 1;
  line-height: 1.4;
}
#view-label {
  grid-column: 1;
  font-size: 13px;
  font-weight: 550;
}
.view-picker summary .icon {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 16px;
}
.view-options {
  top: auto;
  bottom: calc(100% + 8px);
  right: auto;
  left: 0;
  width: 252px;
  max-height: clamp(200px, calc(100svh - 560px), 290px);
  overflow: auto;
}
.view-options button {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  white-space: normal;
}
.view-options button span {
  font-weight: 550;
}
.view-options button small {
  font-size: 11px;
  color: var(--muted);
}
.orbit-hint {
  position: absolute;
  right: 18px;
  bottom: 22px;
  color: #f8fcfa;
  font-size: 11px;
  background: #17343aba;
  border-radius: 6px;
  padding: 8px 10px;
  pointer-events: none;
}
.orbit-hint span {
  margin-inline: 6px;
  opacity: 0.7;
}
.comparing .date-block {
  display: none;
}
.comparison-labels {
  position: absolute;
  inset: 20px 20px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.comparison-labels span {
  padding: 8px 13px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 12px #17343a16;
}
.split-control {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  background: #fbfcfb;
  transform: translateX(-1px);
  box-shadow: 0 0 4px #17343a55;
}
.split-divider > span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 4px 18px #17343a35;
}
#split,
#split-handle {
  appearance: none;
  position: absolute;
  left: var(--split);
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  width: 54px;
  height: 72px;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
  pointer-events: auto;
}
#split {
  pointer-events: none;
}
.split-control:focus-within .split-divider > span,
.split-control.dragging .split-divider > span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.time-travel {
  padding: 12px 14px 10px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: start;
}
.timeline-row > button {
  width: 36px;
  border-color: transparent;
  margin-top: 2px;
  padding: 7px;
}
#active-era-caption {
  display: none;
}
#fullscreen .icon {
  width: 23px;
  height: 23px;
}
#compare-toggle {
  font-size: 12px;
  border-color: var(--accent);
  color: var(--accent);
  min-width: 115px;
}
#compare-toggle[aria-pressed='true'] {
  background: var(--accent);
  color: var(--surface);
}
.compare-field {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 12px;
  background: var(--surface);
  color: var(--muted);
  border-radius: 6px;
  pointer-events: auto;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 12px #17343a16;
}
.compare-field select {
  width: 88px;
  min-height: 34px;
  padding: 5px 22px 5px 8px;
  color: var(--accent);
  border-color: transparent;
  background: var(--accent-soft);
}
.comparison-labels {
  align-items: start;
}
.comparison-labels .sr-only {
  padding: 0;
}
.comparing #status {
  top: 76px;
}
.comparing #recover {
  top: 136px;
}
#timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
#timeline button {
  position: relative;
  flex-direction: column;
  gap: 10px;
  min-height: 66px;
  padding: 10px 4px 8px;
  border-radius: 0;
  border: 0;
  background: transparent;
}
#timeline button::before {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--line);
  top: 0;
  left: 0;
  right: 0;
}
#timeline button[aria-pressed='true'] {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 0 0 6px 6px;
}
#timeline button[aria-pressed='true']::before {
  background: var(--accent);
  height: 3px;
}
#timeline .timeline-year {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
#timeline small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
#timeline button[aria-pressed='true'] small {
  color: var(--accent);
}
/* One contextual panel. On small screens the same content becomes a native sheet. */
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  width: min(920px, 94vw);
  max-height: 92svh;
  overflow: auto;
  box-shadow: 0 24px 80px #17343a2b;
}
dialog::backdrop {
  background: #183b3e65;
}
#explore-panel {
  position: relative;
  inset: auto;
  margin: 0;
  padding: 0;
  width: 352px;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}
#explore-panel[open] {
  display: flex;
  flex-direction: column;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 12px;
}
.panel-heading h2 {
  font-size: 20px;
}
.panel-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.panel-heading > button {
  border-color: transparent;
  background: transparent;
}
.panel-content {
  overflow: auto;
  min-height: 0;
  padding: 17px 18px 24px;
  scrollbar-width: thin;
  scrollbar-color: #b1c5bf transparent;
}
.panel-intro {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
.panel-content select {
  font-size: 13px;
}
.select-field {
  position: relative;
}
.select-field select {
  appearance: none;
  padding-right: 42px;
}
.select-field > .icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
  padding-left: 11px;
  background: var(--page);
}
.search-field .icon {
  width: 17px;
  color: var(--muted);
}
.search-field input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  padding: 9px 8px 9px 0;
}
.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
#object-count {
  color: var(--muted);
  font-size: 11px;
  margin: 15px 0 7px;
}
#object-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
#object-list button {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 16px;
  gap: 12px;
  border-color: transparent;
  background: transparent;
  padding: 8px 5px;
  white-space: normal;
  text-align: left;
  min-height: 74px;
}
#object-list img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #eaf0ed;
  border-radius: 6px;
}
.object-thumbnail-placeholder {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #eaf0ed;
  border-radius: 6px;
}
.object-copy {
  min-width: 0;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
}
.object-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
}
.object-chevron {
  color: var(--muted);
  font-size: 20px;
}
.empty-search {
  padding: 22px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
/* Inspection keeps the working 3D viewer, reference lineage and exact download. */
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.dialog-head h2 {
  font-size: 25px;
}
.dialog-head button {
  flex: none;
}
dialog p {
  line-height: 1.65;
  color: var(--muted);
}
#inspection {
  width: min(1040px, 94vw);
  padding: 24px;
}
#inspection .eyebrow {
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 5px;
}
#inspection-meta {
  margin: 6px 0 14px;
  font-size: 12px;
}
.inspection-provenance {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 20px;
  background: var(--page);
  border-radius: 8px;
  padding: 13px 15px;
  margin-top: 16px;
}
.inspection-provenance p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.inspection-provenance p > span {
  min-width: 95px;
  color: var(--muted);
}
.inspection-provenance strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
}
#model-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  min-height: 44px;
  text-decoration: none;
  background: var(--accent);
  color: var(--surface);
  border-radius: 7px;
  padding: 10px 16px;
  white-space: nowrap;
  font-size: 13px;
}
.inspection-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.inspection-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 3px;
  background: transparent;
  font-size: 13px;
}
.inspection-tabs button[aria-selected='true'] {
  border-color: var(--accent);
  color: var(--accent);
}
.object-stage {
  position: relative;
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: #e6eeeb;
}
.object-step,
.object-fullscreen {
  position: absolute;
  z-index: 2;
  min-height: 44px;
  background: #f7fcf9ed;
  border-color: #c6d5ce;
  box-shadow: 0 2px 10px #102e2110;
}
.object-step {
  top: calc(50% - 22px);
  width: 44px;
  padding: 0;
}
.object-previous {
  left: 10px;
}
.object-next {
  right: 10px;
}
.object-fullscreen {
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 12px;
}
.object-stage:is(:fullscreen, .is-fullscreen) {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100vw;
  height: 100svh;
  margin: 0;
  border-radius: 0;
}
.object-stage:is(:fullscreen, .is-fullscreen) #object-viewer {
  width: 100%;
  height: 100%;
  border-radius: 0;
}
#inspection.object-expanded {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  padding: 0;
  overflow: hidden;
}
.object-display-modes {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  width: max-content;
  max-width: calc(100% - 16px);
  margin: 0;
  padding: 3px;
  border: 1px solid #c6d5ce;
  border-radius: 8px;
  background: #f7fcf9f5;
  box-shadow: 0 2px 10px #102e2110;
}
.object-display-modes label {
  position: relative;
  cursor: pointer;
}
.object-display-modes input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.object-display-modes span {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--muted);
}
.object-display-modes input:checked + span {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px #12685d33;
}
.object-display-modes input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
#object-viewer {
  height: clamp(225px, 45svh, 500px);
  background: #e6eeeb;
  border-radius: 8px;
  overflow: hidden;
}
#inspection-status {
  margin: 7px 0 0;
  font-size: 12px;
  min-height: 20px;
}
#object-references {
  display: grid;
  gap: 22px;
  padding-top: 18px;
}
figure {
  margin: 0;
}
figure img {
  width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
#object-references img {
  max-height: 60svh;
  background: var(--page);
}
figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
#object-recipe {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px/1.65 monospace;
  color: var(--muted);
}
#recipe-download {
  display: inline-block;
  margin: 18px 0 6px;
  color: var(--accent);
}
#making {
  width: min(960px, calc(100vw - 48px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
}
#making[open] {
  display: flex;
  flex-direction: column;
}
.making-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.making-head h2 {
  margin: 0;
  font-size: 23px;
}
#making-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  flex: none;
}
.making-body {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px 26px;
  min-height: 0;
}
#making .making-intro {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.making-lede {
  margin: 0 0 20px;
  max-width: 72ch;
}
#making video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 42svh;
  background: #132c30;
  border-radius: 8px;
}
.making-process {
  list-style: none;
  margin: 26px 0 22px;
  padding: 0;
  counter-reset: process;
}
.making-process li {
  counter-increment: process;
  display: grid;
  grid-template-columns: 24px 220px minmax(0, 1fr);
  gap: 10px 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.making-process li::before {
  content: counter(process, decimal-leading-zero);
  font-size: 12px;
  color: var(--accent);
  padding-top: 3px;
}
.making-process h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
  font-weight: 550;
}
.making-process p {
  margin: 0;
  grid-column: 3;
}
.making-fact {
  font-size: 12px;
}
.making-fact strong {
  color: var(--ink);
}
.making-note {
  font-size: 12px;
  margin: 12px 0 0;
}
.making-references {
  border-block: 1px solid var(--line);
  padding-block: 10px;
}
.making-references summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 12px;
  color: var(--accent);
}
.making-references > p {
  font-size: 12px;
  margin: 4px 0 0;
}
.making-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin-top: 16px;
}
.making-resources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
.making-downloads {
  padding: 20px;
  background: var(--accent-soft);
  border: 1px solid #c4d9d0;
  border-radius: 8px;
  margin: 22px 0;
}
.making-downloads h3,
.making-library h3,
.making-models h3 {
  margin-bottom: 8px;
}
.making-skill {
  padding: 20px;
  border: 1px solid #c4d9d0;
  border-radius: 8px;
  margin: 22px 0;
}
.making-skill h3 {
  margin-bottom: 8px;
}
.making-download-actions,
.making-skill-actions,
.making-era-downloads {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.making-download-actions a,
.making-skill-actions a,
.making-era-downloads a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.making-primary-download {
  background: var(--accent);
  color: var(--surface);
  padding: 10px 14px;
  border-radius: 6px;
  gap: 12px;
  text-decoration: none;
}
.making-primary-download span {
  font-size: 12px;
  opacity: 0.85;
}
.making-pack-options {
  margin-top: 8px;
}
.making-pack-options summary,
.making-parameters summary {
  cursor: pointer;
  padding-block: 12px;
}
.making-models,
.making-library {
  margin: 30px 0;
}
.making-model-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-top: 14px;
}
.making-model-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.making-model-grid strong {
  font-weight: 550;
  text-decoration: underline;
  color: var(--accent);
}
.making-model-grid span {
  font-size: 12px;
  color: var(--muted);
}
.making-recipe-selectors {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.making-recipe-selectors label {
  font-size: 12px;
}
.making-recipe-selectors select {
  display: block;
  margin-top: 5px;
  font-size: 14px;
}
.making-recipe-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 24px;
}
.making-recipe-heading a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 12px;
}
.making-recipe-notes {
  margin: 10px 0;
  color: var(--muted);
}
.making-prompt-step {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}
.making-prompt-step h4 {
  font-size: 15px;
  font-weight: 550;
  margin: 0 0 4px;
}
.making-prompt-step > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--accent);
}
.making-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.making-prompt-head button,
.making-parameters button {
  font-size: 12px;
}
.making-prompt {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 270px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page);
  font: 12px/1.7 monospace;
  margin: 8px 0 12px;
}
.making-parameters {
  font-size: 12px;
}
.making-process-title {
  margin-top: 32px;
}
@media (max-width: 600px) {
  .making-downloads {
    padding: 14px;
  }
  .making-model-grid {
    grid-template-columns: 1fr;
  }
  .making-recipe-selectors {
    grid-template-columns: 1fr;
  }
  .making-primary-download {
    flex-wrap: wrap;
    gap: 2px 12px;
  }
}
#reference-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
#reference-gallery img {
  aspect-ratio: 1;
  background: var(--page);
}
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 16px 0 22px;
  font-size: 11px;
  color: var(--muted);
}
.footer-note {
  display: flex;
  gap: 14px;
  align-items: center;
}
.create-yours {
  color: var(--accent);
}
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
footer [data-exploration-controls] {
  margin-left: auto;
}
body.room-fullscreen {
  overflow: hidden;
}
.experience:is(:fullscreen, .is-fullscreen) {
  background: var(--page);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  overflow: auto;
  min-height: 100svh;
}
.experience.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: var(--z-fullscreen);
}
.experience:is(:fullscreen, .is-fullscreen) .workspace {
  height: auto;
  flex: 1;
  min-height: 260px;
}
.experience:is(:fullscreen, .is-fullscreen) .viewer-toolbar {
  flex: none;
}
.experience:is(:fullscreen, .is-fullscreen) .time-travel {
  flex: none;
}
.experience:is(:fullscreen, .is-fullscreen) #room-making-open {
  display: flex;
}
.mobile-only {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  button:hover,
  .menu summary:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }
  button.primary-button:hover,
  #compare-toggle[aria-pressed='true']:hover {
    background: #0d554c;
    color: var(--surface);
  }
  #object-list button:hover {
    background: var(--accent-soft);
  }
  #timeline button:hover {
    background: #edf4ef;
  }
}
@media (max-width: 1100px) {
  .utility-actions > button:not(.icon-button) {
    padding-inline: 9px;
  }
  .utility-actions > button:not(.icon-button) span {
    display: none;
  }
  .orbit-hint {
    display: none;
  }
  .workspace:has(#explore-panel[open]) {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  #explore-panel {
    width: 320px;
  }
}
@media (max-width: 800px) {
  .utility-actions > #share,
  .utility-actions > #save {
    display: none;
  }
  .site-header,
  main,
  footer {
    width: calc(100% - 28px);
  }
  .site-header {
    min-height: 52px;
  }
  .wordmark {
    font-size: 18px;
  }
  .wordmark span {
    font-size: 11px;
    margin-left: 7px;
  }
  #making-open {
    font-size: 12px;
    padding-inline: 6px;
  }
  #making-open .icon {
    display: none;
  }
  .introduction {
    padding: 6px 0 14px;
  }
  .introduction h1 {
    font-size: 28px;
  }
  .introduction p {
    font-size: 12px;
    margin-top: 5px;
  }
  .viewer-toolbar {
    min-height: 57px;
    padding: 6px;
    gap: 4px;
  }
  .discovery-actions {
    gap: 2px;
  }
  .discovery-actions button {
    padding: 8px;
    font-size: 12px;
    gap: 6px;
  }
  .film-control {
    padding: 8px;
    font-size: 12px;
  }
  .film-control .desktop-label,
  .film-control .film-play {
    display: none;
  }
  .utility-actions {
    gap: 0;
  }
  .utility-actions > .icon-button {
    margin-left: 0;
    border-left: 0;
  }
  #objects-open .desktop-label {
    display: none;
  }
  .mobile-only {
    display: inline;
  }
  .count {
    min-width: 21px;
    font-size: 10px;
  }
  .workspace,
  .workspace:has(#explore-panel[open]) {
    display: block;
    height: clamp(281.75px, calc(115svh - 327.75px), 874px);
  }
  .date-block {
    left: 14px;
    top: 14px;
    padding: 9px 12px;
  }
  .date-block strong {
    font-size: 27px;
  }
  .date-block span {
    font-size: 11px;
  }
  .view-controls {
    left: 12px;
    bottom: 12px;
  }
  .view-picker summary {
    min-width: 150px;
  }
  .view-options {
    max-height: clamp(150px, calc(100svh - 440px), 250px);
  }
  #status {
    top: 12px;
    right: 12px;
    font-size: 11px;
    max-width: 55%;
  }
  .comparison-labels {
    inset: 14px 12px auto;
  }
  .comparison-labels span {
    font-size: 14px;
    padding: 7px 10px;
  }
  #explore-panel {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    height: min(76svh, 660px);
    max-height: 86svh;
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 36px #153b3822;
  }
  .panel-heading {
    padding-top: 18px;
  }
  .panel-content {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .time-travel {
    padding: 10px 8px 9px;
  }
  .timeline-row {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    gap: 0;
  }
  .timeline-row > button {
    width: 26px;
    min-width: 26px;
    padding: 3px;
    margin-top: 1px;
  }
  #compare-toggle {
    min-width: 64px;
    min-height: 44px;
    padding: 7px;
    font-size: 11px;
  }
  #compare-toggle .desktop-label {
    display: none;
  }
  .compare-field {
    gap: 4px;
    padding-left: 9px;
    font-size: 11px;
  }
  .compare-field select {
    width: 92px;
    flex: none;
    font-size: 12px;
  }
  #active-era-caption {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    text-align: center;
    font-size: 11px;
    line-height: 16px;
  }
  #timeline {
    gap: 3px;
  }
  #timeline button {
    min-height: 44px;
    padding: 10px 1px 7px;
  }
  #timeline .timeline-year {
    font-size: 20px;
  }
  #timeline small {
    display: none;
  }
  .footer-note {
    gap: 12px;
  }
  footer {
    gap: 4px 14px;
    padding-top: 12px;
  }
  footer [data-exploration-controls] {
    margin-left: 0;
    width: 100%;
  }
  .experience:is(:fullscreen, .is-fullscreen) {
    padding: 5px;
    min-height: 100svh;
  }
  .experience:is(:fullscreen, .is-fullscreen) .workspace {
    height: auto;
    min-height: 260px;
  }
  #inspection {
    padding: 17px;
    width: calc(100% - 20px);
    max-height: 94svh;
  }
  .dialog-head h2 {
    font-size: 22px;
  }
  .inspection-provenance {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 11px;
  }
  #model-download {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
    font-size: 12px;
  }
  .inspection-provenance strong {
    font-size: 11px;
  }
  .inspection-provenance p > span {
    font-size: 11px;
  }
  #object-viewer {
    height: clamp(210px, 35svh, 380px);
  }
  #reference-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0 8px;
    padding-top: 6px;
  }
  .header-actions {
    gap: 4px;
    flex: 1 0 100%;
  }
  .header-actions .film-link {
    font-size: 12px;
    padding-inline: 8px;
  }
  #making {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
  .making-head {
    padding: 12px 16px;
  }
  .making-head h2 {
    font-size: 21px;
  }
  .making-body {
    padding: 18px 16px;
  }
  .making-process li {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding-block: 16px;
  }
  .making-process p {
    grid-column: 2;
  }
}
@media (max-width: 380px) {
  .discovery-actions .icon {
    display: none;
  }
  .discovery-actions button {
    padding-inline: 7px;
  }
  #timeline .timeline-year {
    font-size: 17px;
  }
  .count {
    display: none;
  }
}
@media (max-height: 500px) and (min-width: 801px) {
  .introduction {
    padding: 6px 0 12px;
  }
  .introduction p {
    display: none;
  }
  .workspace {
    height: 414px;
  }
  .experience:is(:fullscreen, .is-fullscreen) .workspace {
    min-height: 240px;
  }
  #inspection {
    padding: 14px;
  }
  #inspection .eyebrow {
    display: none;
  }
  #object-viewer {
    height: 180px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* The tour sits inside the existing stage, preserving the enlarged canvas. */
.tour-start {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  gap: 10px;
  padding: 11px 15px;
  border: 1px solid #d2e3dc;
  background: #f7fcf9f5;
  box-shadow: 0 4px 20px #102e211a;
  color: var(--ink);
  text-align: left;
}
.tour-start .icon {
  color: var(--accent);
  fill: var(--accent);
  width: 18px;
}
.tour-start small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  font-weight: 400;
}
.tour-start:disabled {
  visibility: hidden;
}
.tour-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(620px, calc(100% - 24px));
  min-height: 54px;
  padding: 4px 5px 5px 14px;
  color: var(--ink);
  background: #f7fcf9f5;
  border: 1px solid #d2e3dc;
  border-radius: 9px;
  box-shadow: 0 4px 18px #102e211f;
  overflow: hidden;
}
.tour-copy {
  flex: 1;
  min-width: 0;
}
.tour-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.tour-actions {
  display: flex;
  align-items: center;
  flex: none;
  gap: 5px;
}
.tour-actions > span {
  margin-right: 4px;
  white-space: nowrap;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tour-actions button {
  min-height: 44px;
  padding: 6px 11px;
  font-size: 12px;
}
.tour-actions .tour-step {
  width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
}
#tour-toggle {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  min-width: 72px;
}
#tour-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #d6e7df;
}
#tour-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.guiding .view-controls,
.guiding .orbit-hint {
  visibility: hidden;
}
.comparing .tour-start {
  top: 82px;
}
.room-stage:has(#tour-start:not([hidden]):not(:disabled)) #status {
  top: 96px;
}
@media (max-width: 800px) {
  .tour-start {
    top: 14px;
    right: 12px;
    padding: 9px 11px;
    font-size: 12px;
    gap: 7px;
  }
  .tour-start small {
    font-size: 9px;
  }
  .tour-controls {
    bottom: 12px;
    gap: 6px;
    padding-left: 9px;
  }
  .tour-copy strong {
    font-size: 11px;
  }
  .tour-actions {
    gap: 3px;
  }
  .tour-actions button {
    padding-inline: 8px;
    font-size: 11px;
  }
  #tour-toggle {
    min-width: 62px;
  }
  .object-display-modes span {
    min-height: 44px;
    padding-inline: 10px;
  }
}

@media (max-width: 380px) {
  .view-controls {
    gap: 4px;
    right: 12px;
  }
  .view-picker {
    flex: 1;
    min-width: 0;
  }
  .view-picker summary {
    min-width: 0;
    padding-inline: 9px;
  }
  #view-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .view-controls > button {
    width: 40px;
    flex: none;
    padding-inline: 0;
  }
  .tour-controls {
    gap: 4px;
    padding-left: 7px;
  }
  .tour-actions {
    gap: 2px;
  }
  .tour-actions > span {
    margin-right: 0;
    font-size: 9px;
  }
  .tour-actions button {
    padding-inline: 6px;
  }
  #tour-toggle {
    min-width: 56px;
  }
  .object-step {
    width: 40px;
  }
  .object-previous {
    left: 5px;
  }
  .object-next {
    right: 5px;
  }
}

/* Give the era identity its own row on the narrowest phones. */
@media (max-width: 380px) {
  .tour-start {
    top: 96px;
  }
  .room-stage:has(#tour-start:not([hidden]):not(:disabled)) #status {
    top: 164px;
  }
}

/* Films stay above the current room, with its camera and era intact. */
body.has-film-dialog {
  overflow: hidden;
}
#film-dialog {
  width: min(1120px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  overflow: hidden;
}
#film-dialog[open] {
  display: flex;
  flex-direction: column;
}
#film-dialog::backdrop {
  background: #142b3180;
  backdrop-filter: blur(6px);
}
.film-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.film-dialog-head p {
  margin: 0 0 4px;
  font-size: 12px;
}
.film-dialog-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}
.film-dialog-head button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 50%;
}
.film-dialog-head svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.film-dialog-body {
  padding: 18px 24px 12px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
[data-film-choices] {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}
[data-film-choices] button {
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
[data-film-choices] button[aria-pressed='true'] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.film-dialog-frame {
  position: relative;
  display: grid;
  place-items: center;
  background: #132c30;
  border-radius: 8px;
  overflow: hidden;
}
.film-dialog-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 270px);
  min-height: 120px;
  object-fit: contain;
}
#film-dialog [hidden] {
  display: none !important;
}
#film-dialog [data-film-status] {
  margin: 0;
  padding: 36px 24px;
  min-height: 180px;
  display: grid;
  place-content: center;
  text-align: center;
  color: white;
}
.film-dialog-frame video:not([hidden]) + [data-film-status] {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.film-dialog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 10px;
  font-size: 12px;
}
#film-dialog .film-dialog-meta p {
  margin: 0;
}
[data-film-download] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 3px;
}
@media (max-width: 600px) {
  #film-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 24px);
  }
  .film-dialog-head {
    padding: 16px;
    gap: 12px;
  }
  .film-dialog-body {
    padding: 14px 14px 8px;
  }
  [data-film-choices] {
    gap: 6px;
  }
  [data-film-choices] button {
    flex: 1 0 25%;
    padding-inline: 10px;
  }
  [data-film-choices] button[data-film='montage'] {
    flex-basis: 100%;
  }
  .film-dialog-frame video {
    max-height: none;
  }
}
@media (max-height: 500px) and (min-width: 601px) {
  .film-dialog-head {
    padding: 10px 16px;
  }
  .film-dialog-head p {
    display: none;
  }
  .film-dialog-head h2 {
    font-size: 22px;
  }
  .film-dialog-body {
    padding: 10px 16px 8px;
  }
  [data-film-choices] {
    margin-bottom: 10px;
  }
  .film-dialog-frame video {
    max-height: calc(100dvh - 174px);
  }
}
