:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-rgb: 247, 245, 239;
  --ink: #282b27;
  --muted: #7a7c72;
  --olive: #6e775d;
  --sage: #a5ac94;
  --gold: #b5a26e;
  --line: rgba(40, 43, 39, 0.13);
  --line-soft: rgba(40, 43, 39, 0.075);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(24px, 4.8vw, 88px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  padding: 0;
}

html { background: var(--paper); -webkit-text-size-adjust: 100%; }

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font: inherit; }

button {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, a, input { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--olive); }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
button:disabled { cursor: default; opacity: 0.4; }
button svg { display: block; flex: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: var(--paper); background: var(--olive); }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 50%;
  transform: translate(-50%, -180%);
  border: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  text-decoration: none;
}

.skip-link:focus { transform: translate(-50%, 0); }

.site-header {
  position: fixed;
  z-index: 30;
  top: calc(31px + env(safe-area-inset-top));
  right: var(--gutter);
  left: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  pointer-events: none;
}

.site-header button, .site-header a { pointer-events: auto; }

.brand {
  display: inline-flex;
  width: max-content;
  min-height: 52px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(29px, 2.35vw, 36px);
  font-weight: 600;
  font-style: italic;
  line-height: 0.98;
  letter-spacing: -1.6px;
  white-space: nowrap;
}

.brand-period { color: var(--olive); }

.brand-subtitle {
  padding-top: 10px;
  padding-left: 2px;
  color: #797a6d;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 40px);
  padding-top: 3px;
}

.primary-nav button {
  position: relative;
  min-width: 48px;
  min-height: 44px;
  padding: 10px 3px;
  color: #676b61;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.015em;
  transition: color 180ms ease;
}

.primary-nav button::after {
  position: absolute;
  right: 50%;
  bottom: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--olive);
  content: "";
  opacity: 0;
  transform: translateX(50%) scale(0.4);
  transition: opacity 200ms ease, transform 280ms var(--ease);
}

.primary-nav button:hover, .primary-nav button[aria-pressed="true"], .primary-nav button.active, .primary-nav button.is-active { color: var(--ink); }
.primary-nav button[aria-pressed="true"]::after, .primary-nav button.active::after, .primary-nav button.is-active::after { opacity: 1; transform: translateX(50%) scale(1); }

.header-actions { display: flex; justify-content: flex-end; padding-top: 1px; }

.icon-button {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(var(--paper-rgb), 0.3);
  transition: background 180ms ease, border-color 180ms ease, transform 250ms var(--ease);
}

.icon-button:hover { border-color: rgba(40, 43, 39, 0.3); background: rgba(255, 255, 255, 0.5); transform: translateY(-1px); }
.icon-button:active { transform: translateY(0); }
.sound-on { display: none; }
.sound-toggle[aria-pressed="true"] .sound-off { display: none; }
.sound-toggle[aria-pressed="true"] .sound-on { display: block; }
.sound-state { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border: 1px solid var(--paper); border-radius: 50%; background: var(--olive); opacity: 0; transition: opacity 180ms ease; }
.sound-toggle[aria-pressed="true"] .sound-state { opacity: 1; }

#scene-wrap {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

#scene-wrap > canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
#scene-wrap > canvas:focus-visible { outline: 2px solid var(--olive); outline-offset: -3px; }

.scene-caption {
  position: fixed;
  z-index: 5;
  top: clamp(132px, 17.3vh, 188px);
  left: var(--gutter);
  width: 245px;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.scene-caption h1 {
  margin: 0 0 13px;
  color: var(--olive);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scene-caption p { margin: 0; color: #7a7d73; font-size: 12px; font-weight: 400; line-height: 1.8; letter-spacing: 0.005em; }

.hover-label {
  position: fixed;
  z-index: 25;
  top: 0;
  left: 0;
  max-width: 220px;
  border: 1px solid rgba(40, 43, 39, 0.08);
  border-radius: 3px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(var(--paper-rgb), 0.94);
  box-shadow: 0 4px 18px rgba(40, 43, 39, 0.06);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.015em;
  pointer-events: none;
  transform: translate(15px, 12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.room-hint {
  position: fixed;
  z-index: 6;
  right: var(--gutter);
  bottom: 148px;
  left: var(--gutter);
  margin: 0;
  color: #777b6f;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.collection-dock {
  position: fixed;
  z-index: 12;
  bottom: 53px;
  left: 50%;
  width: max-content;
  min-width: 290px;
  max-width: min(600px, calc(100vw - 2 * var(--gutter)));
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 12px 15px 11px;
  background: rgba(var(--paper-rgb), 0.79);
  box-shadow: 0 3px 16px rgba(40, 43, 39, 0.025), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.dock-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 5px; padding: 0 4px; }
.dock-eyebrow { color: #7b7e71; font-family: var(--mono); font-size: 7px; font-weight: 400; letter-spacing: 0.15em; line-height: 1.4; text-transform: uppercase; white-space: nowrap; }
.now-playing-label { overflow: hidden; max-width: 280px; color: #94978b; font-size: 8px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.now-playing-label.is-playing { color: var(--olive); }
.record-list { display: flex; align-items: center; justify-content: center; gap: 5px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.record-list::-webkit-scrollbar { display: none; }

.record-list > button {
  position: relative;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 8px;
  color: #73776a;
  font-size: 10px;
  line-height: 1.3;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.record-list > button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.65); }
.record-list > button[aria-pressed="true"], .record-list > button[aria-current="true"], .record-list > button.active, .record-list > button.is-active { border-color: rgba(110, 119, 93, 0.25); color: var(--ink); background: rgba(255, 255, 255, 0.75); }
.record-list > button:focus-visible { outline-offset: -2px; }
.record-list img, .record-list canvas, .record-thumb { display: block; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 1px; object-fit: cover; box-shadow: 0 1px 3px rgba(40, 43, 39, 0.14); }
.record-list .record-label { display: block; max-width: 92px; text-align: left; }
.record-list .record-label > span { display: block; color: inherit; }
.record-list .record-label small { display: block; margin-top: 3px; color: #a0a595; font-size: 7px; font-weight: 400; line-height: 1.3; white-space: nowrap; }
.record-list .record-number { margin-right: 2px; color: #a0a396; font-family: var(--mono); font-size: 8px; }

.room-footer {
  position: fixed;
  z-index: 10;
  right: var(--gutter);
  bottom: calc(25px + env(safe-area-inset-bottom));
  left: var(--gutter);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.collection-note p { margin: 0; }
#volume-label { color: #888b7e; font-family: var(--mono); font-size: 8px; line-height: 1.5; letter-spacing: 0.11em; text-transform: uppercase; }
.concept-credit { padding-top: 4px; color: #a3a69a; font-size: 8px; line-height: 1.5; letter-spacing: 0.025em; }

.skip-preference {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-bottom: -11px;
  color: #888c7e;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

.skip-preference input { position: absolute; width: 25px; height: 16px; margin: 0; opacity: 0; }
.toggle-track { position: relative; display: block; width: 25px; height: 14px; flex: 0 0 25px; border: 1px solid #bdc0b3; border-radius: 10px; transition: border-color 180ms ease, background 180ms ease; }
.toggle-track > span { position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: #a2a797; transition: transform 220ms var(--ease), background 180ms ease; }
.skip-preference input:checked + .toggle-track { border-color: var(--olive); background: var(--olive); }
.skip-preference input:checked + .toggle-track > span { background: var(--paper); transform: translateX(11px); }
.skip-preference input:focus-visible + .toggle-track { outline: 2px solid var(--olive); outline-offset: 4px; }
.skip-preference:hover { color: var(--ink); }

.inspect-panel {
  position: fixed;
  z-index: 20;
  top: 29vh;
  right: 5vw;
  width: 324px;
  max-height: calc(100svh - 29vh - 85px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(40, 43, 39, 0.07);
  border-radius: 5px;
  background: rgba(var(--paper-rgb), 0.91);
  box-shadow: 0 12px 45px rgba(40, 43, 39, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  scrollbar-width: thin;
  scrollbar-color: #c5c9bc transparent;
  animation: panel-arrive 550ms var(--ease) both;
}

.text-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; color: #7e8375; font-size: 11px; font-weight: 400; line-height: 1.4; transition: color 180ms ease; }
.text-button:hover { color: var(--ink); }
.text-button svg { transition: transform 250ms var(--ease); }
.back-button { justify-content: flex-start; margin: -13px 0 25px; color: #8d9282; font-size: 10px; }
.back-button:hover svg, .return-button:hover svg { transform: translateX(-3px); }
.eyebrow { margin: 0; color: var(--olive); font-family: var(--mono); font-size: 9px; font-weight: 400; line-height: 1.6; letter-spacing: 0.13em; text-transform: uppercase; }

#inspect-title {
  margin: 13px 0 17px;
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -1.4px;
  overflow-wrap: anywhere;
}

.inspect-description { margin: 0 0 24px; color: #73796c; font-size: 12px; font-weight: 400; line-height: 1.85; }
.inspect-meta { display: flex; flex-wrap: wrap; gap: 9px 20px; margin: 0 0 26px; border-top: 1px solid var(--line); padding-top: 14px; color: #858b7c; font-family: var(--mono); font-size: 8px; line-height: 1.8; letter-spacing: 0.035em; }
.inspect-meta:empty { display: none; }
.inspect-meta p { margin: 0; }
.inspect-meta strong, .inspect-meta b { color: #565f4e; font-weight: 500; }
.inspect-meta dl { display: contents; }
.inspect-meta dt { color: #989e8e; }
.inspect-meta dd { margin: 2px 0 0; color: #68725f; }
.inspect-meta > div { display: flex; min-width: 92px; flex: 1 1 38%; flex-direction: column; gap: 3px; }
.inspect-meta > div > span { color: #747b6c; font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; }
.inspect-meta > div > strong { color: #56604c; font-size: 10px; font-weight: 400; }
.inspect-actions { display: grid; gap: 9px; }
.inspect-panel:not(.showing-notes) .inspect-actions { grid-template-columns: 1fr; }

.primary-button {
  display: inline-flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 13px 17px;
  color: var(--paper);
  background: var(--ink);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 220ms var(--ease);
}

.primary-button:hover { border-color: #48503f; background: #48503f; transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.primary-button svg { transition: transform 250ms var(--ease); }
.primary-button:hover svg { transform: translateX(3px); }
.secondary-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 3px; padding: 11px 15px; color: #757c6c; background: rgba(var(--paper-rgb), 0.2); font-size: 10px; line-height: 1.5; transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.secondary-button:hover { border-color: rgba(40, 43, 39, 0.3); color: var(--ink); background: rgba(255, 255, 255, 0.3); }

.sequence-skip { position: fixed; z-index: 35; right: var(--gutter); bottom: calc(83px + env(safe-area-inset-bottom)); padding: 0 13px; border: 1px solid var(--line); border-radius: 3px; color: #68725d; background: rgba(var(--paper-rgb), 0.87); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

body.is-inspecting .scene-caption,
body.is-inspecting .room-hint,
body.is-inspecting .collection-dock,
body[data-view="inspect"] .scene-caption,
body[data-view="inspect"] .room-hint,
body[data-view="inspect"] .collection-dock,
body.is-transitioning .scene-caption,
body.is-transitioning .room-hint,
body.is-transitioning .collection-dock,
body[data-view="transition"] .scene-caption,
body[data-view="transition"] .room-hint,
body[data-view="transition"] .collection-dock,
body.is-sequencing .scene-caption,
body.is-sequencing .room-hint,
body.is-sequencing .collection-dock,
body.is-sequencing .room-footer,
body[data-view="sequence"] .scene-caption,
body[data-view="sequence"] .room-hint,
body[data-view="sequence"] .collection-dock,
body[data-view="sequence"] .room-footer,
body[data-view="returning"] .scene-caption,
body[data-view="returning"] .room-hint,
body[data-view="returning"] .collection-dock,
body[data-view="returning"] .room-footer { visibility: hidden; opacity: 0; pointer-events: none; }

body.is-project > .site-header,
body.is-project > .scene-caption,
body.is-project > .room-hint,
body.is-project > .collection-dock,
body.is-project > .room-footer,
body[data-view="project"] > .site-header,
body[data-view="project"] > .scene-caption,
body[data-view="project"] > .room-hint,
body[data-view="project"] > .collection-dock,
body[data-view="project"] > .room-footer { visibility: hidden; opacity: 0; pointer-events: none; }

.project-view { position: fixed; z-index: 50; inset: 0; overflow-x: hidden; overflow-y: auto; color: var(--ink); background: var(--paper); overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #c2c7b9 var(--paper); animation: project-arrive 650ms var(--ease) both; }
.project-view-header { position: sticky; z-index: 3; top: 0; display: flex; min-height: 96px; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line-soft); padding: calc(18px + env(safe-area-inset-top)) var(--gutter) 18px; background: rgba(var(--paper-rgb), 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.return-button { color: #737c68; font-size: 12px; white-space: nowrap; }
.project-tabbar { display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.project-tabbar::-webkit-scrollbar { display: none; }
.project-tabbar button, .project-tabbar a { position: relative; display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; padding: 7px 2px; color: #89907f; font-size: 11px; line-height: 1.4; text-decoration: none; transition: color 180ms ease; }
.project-tabbar button::after, .project-tabbar a::after { position: absolute; right: 0; bottom: 4px; left: 0; height: 1px; background: var(--olive); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease); }
.project-tabbar button:hover, .project-tabbar a:hover, .project-tabbar [aria-selected="true"], .project-tabbar [aria-pressed="true"], .project-tabbar [aria-current="page"], .project-tabbar .active, .project-tabbar .is-active { color: var(--ink); }
.project-tabbar button > span { margin-left: 8px; color: #a3ab99; font-size: 10px; }
.project-tabbar [aria-selected="true"]::after, .project-tabbar [aria-pressed="true"]::after, .project-tabbar [aria-current="page"]::after, .project-tabbar .active::after, .project-tabbar .is-active::after { transform: scaleX(1); }
.project-content { min-height: calc(100svh - 184px); }

.project-hero {
  display: grid;
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  min-height: min(74svh, 780px);
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 110px);
  margin: 0 auto;
  padding: 65px 0 75px;
}

.project-hero > :only-child { grid-column: 1 / -1; }
.project-heading { min-width: 0; }
.project-heading .concept-label { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.concept-label > span { flex: 0 0 auto; margin-left: auto; color: #a0a794; font-size: 8px; letter-spacing: 0.08em; white-space: nowrap; }
.project-hero h1 { max-width: 750px; margin: 20px 0 28px; font-family: var(--serif); font-size: clamp(48px, 6.7vw, 102px); font-weight: 400; line-height: 0.99; letter-spacing: -0.043em; }
.project-hero h2 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(32px, 4vw, 55px); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; }
.project-hero p { max-width: 39em; color: #737b6b; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.85; }
.project-hero .eyebrow, .project-hero .concept-label, .project-hero .project-kicker { color: var(--olive); font-family: var(--mono); font-size: 9px; line-height: 1.7; letter-spacing: 0.13em; text-transform: uppercase; }
.project-hero .project-kicker { margin: 0; font-family: var(--sans); font-size: 11px; line-height: 1.6; letter-spacing: 0.015em; text-transform: none; }
.project-art { position: relative; display: block; width: 100%; min-width: 0; margin: 0; object-fit: cover; }
.project-art img, .project-art canvas, .project-art video { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 2px; background: #eae8df; box-shadow: 0 16px 45px rgba(40, 43, 39, 0.1), 0 1px 3px rgba(40, 43, 39, 0.08); object-fit: cover; }
.project-art figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding-top: 15px; color: #7f8972; font-family: var(--mono); font-size: 8px; line-height: 1.6; letter-spacing: 0.09em; }
.project-art figcaption > span { color: #a0a794; font-size: 7px; white-space: nowrap; }
.project-art.is-disc, .project-art.disc { border-radius: 50%; }
.concept-label { display: inline-block; margin: 0; color: #8d9483; font-family: var(--mono); font-size: 8px; font-weight: 400; line-height: 1.8; letter-spacing: 0.11em; text-transform: uppercase; }

.project-body { display: grid; width: min(1160px, calc(100% - 2 * var(--gutter))); grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: start; gap: clamp(40px, 7vw, 110px); margin: 0 auto 100px; border-top: 1px solid var(--line); padding-top: 54px; color: #727a69; font-size: 14px; line-height: 1.85; }
.project-body > div { min-width: 0; }
.project-body .eyebrow { color: var(--olive); font-family: var(--mono); font-size: 9px; line-height: 1.6; letter-spacing: 0.13em; text-transform: uppercase; }
.project-body h2 { margin: 48px 0 18px; color: var(--ink); font-family: var(--serif); font-size: clamp(30px, 3.5vw, 46px); font-weight: 400; line-height: 1.12; letter-spacing: -0.03em; }
.project-body h3 { margin: 28px 0 12px; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: -0.015em; }
.project-body p { max-width: 65ch; margin: 0 0 18px; }
.project-body > div > h2 { margin-top: 18px; }
.project-body .project-stack { margin: 26px 0 0; color: #929b86; font-family: var(--mono); font-size: 9px; line-height: 1.7; letter-spacing: 0.015em; }
.project-body ul { max-width: 65ch; padding-left: 20px; }
.project-body li { margin-bottom: 9px; }
.project-body blockquote { max-width: 780px; margin: 48px 0; border-left: 1px solid #a7af99; padding: 3px 0 3px 28px; color: #58644c; font-family: var(--serif); font-size: clamp(23px, 2.7vw, 35px); font-style: italic; line-height: 1.45; }
.project-meta { display: flex; flex-wrap: wrap; gap: 18px 52px; margin: 28px 0 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 21px 0; color: #79836d; font-size: 11px; line-height: 1.7; }
.project-meta p { margin: 0; font-size: inherit; }
.project-meta dt, .project-meta .meta-label { margin: 0 0 4px; color: #989e8f; font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.project-meta dd { margin: 0; }
.project-meta strong { color: #56624b; font-weight: 500; }
.project-meta > div { display: flex; flex-direction: column; gap: 6px; }
.project-meta > div > span { color: #969f89; font-family: var(--mono); font-size: 7px; letter-spacing: 0.09em; }
.project-meta > div > strong { color: #6d795f; font-size: 10px; font-weight: 400; line-height: 1.6; }
.inline-return { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; margin-top: 17px; border-bottom: 1px solid rgba(110, 119, 93, 0.24); color: #66745a; font-size: 11px; line-height: 1.5; transition: color 180ms ease, border-color 180ms ease; }
.inline-return:hover { border-color: var(--ink); color: var(--ink); }
.inline-return > span { color: #8e9b7c; font-size: 13px; }
.focus-demo, .journal-demo { padding: clamp(24px, 3vw, 40px); border: 1px solid rgba(110, 119, 93, 0.14); border-radius: 3px; background: rgba(165, 172, 148, 0.075); }
.focus-demo { text-align: center; }
.focus-demo .eyebrow { margin-bottom: 19px; font-size: 8px; }
.focus-clock { margin: 12px 0 8px; color: #45523c; font-family: var(--serif); font-size: clamp(65px, 7.5vw, 104px); font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: -0.055em; }
.focus-demo > p:not(.eyebrow) { margin: 12px auto 25px; color: #89947b; font-size: 11px; line-height: 1.7; }
.demo-button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 12px; border: 1px solid var(--ink); border-radius: 3px; padding: 12px 20px; color: var(--paper); background: var(--ink); font-size: 11px; font-weight: 400; line-height: 1.5; text-align: center; transition: background 180ms ease, border-color 180ms ease; }
.demo-button:hover { border-color: #48573c; background: #48573c; }
#focus-start { min-width: 190px; }
.journal-demo .eyebrow { margin-bottom: 23px; font-size: 8px; }
.journal-demo textarea { display: block; width: 100%; min-height: 160px; max-height: 330px; resize: vertical; border: 0; border-radius: 0; padding: 0; color: #5c6a50; background-color: transparent; background-image: linear-gradient(transparent 31px, rgba(110, 119, 93, 0.15) 31px, rgba(110, 119, 93, 0.15) 32px); background-size: 100% 32px; font-family: var(--serif); font-size: 20px; line-height: 32px; }
.journal-demo textarea::placeholder { color: #a3ae96; opacity: 1; }
.journal-demo textarea:focus-visible { outline: 1px solid var(--olive); outline-offset: 7px; }
.journal-demo .demo-button { margin-top: 23px; }
.journal-demo #note-status { min-height: 18px; margin: 16px 0 0; color: #839374; font-size: 10px; line-height: 1.65; }
.project-quote { padding: 15px 0 20px 28px; border-left: 1px solid #b9c2ad; }
.project-quote > span { display: block; height: 50px; color: #adb89f; font-family: var(--serif); font-size: 88px; font-weight: 400; line-height: 1; }
.project-quote > p { max-width: 420px; margin: 12px 0 23px; color: #5f6d53; font-family: var(--serif); font-size: clamp(27px, 2.8vw, 40px); font-style: italic; font-weight: 400; line-height: 1.24; letter-spacing: -0.025em; }
.project-quote > small { color: #96a187; font-family: var(--mono); font-size: 8px; line-height: 1.6; letter-spacing: 0.08em; }
.project-actions, .project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 30px; }
.project-actions .primary-button, .project-links .primary-button { min-width: 170px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; margin: 38px 0; }
.project-section { border-top: 1px solid var(--line); padding-top: 28px; }
.project-screen { display: block; width: 100%; overflow: hidden; margin: 40px 0; border: 1px solid var(--line-soft); border-radius: 5px; background: #eeeee5; }
.project-screen img, .project-screen video { display: block; width: 100%; }
.project-view-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; margin: 0 var(--gutter); border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); color: #989f8d; font-size: 9px; }
.project-view-footer > :first-child { color: #768368; font-family: var(--serif); font-size: 22px; font-style: italic; letter-spacing: -0.8px; }
.project-footer { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 28px; margin: 0 var(--gutter); border-top: 1px solid var(--line); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); color: #9aa48e; font-size: 9px; line-height: 1.6; }
.project-footer > span:first-child { flex: 0 0 auto; color: #768368; font-family: var(--serif); font-size: 25px; font-style: italic; letter-spacing: -0.9px; }
.project-footer > span:nth-child(2) { text-align: center; }
.project-footer .inline-return { flex: 0 0 auto; margin: 0; border-bottom: 0; color: #7d8a6e; font-size: 10px; }

.fallback { position: fixed; z-index: 15; inset: 115px 0 100px; overflow-y: auto; padding: 35px var(--gutter); background: var(--paper); }
.fallback h1, .fallback h2 { color: var(--ink); font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; }
.fallback h1 { font-size: clamp(38px, 5vw, 62px); }
.fallback p { max-width: 580px; color: #7a8371; font-size: 13px; line-height: 1.8; }
.fallback-grid, .fallback-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; max-width: 1160px; margin: 40px auto; }
.fallback button, .fallback a { text-align: left; }
.fallback img { width: 100%; border-radius: 2px; box-shadow: 0 7px 20px rgba(40, 43, 39, 0.09); }
.fallback button span { display: block; margin-top: 13px; font-size: 12px; }
.no-webgl:not(.has-studio) .scene-caption, .no-webgl:not(.has-studio) .room-hint, .no-webgl:not(.has-studio) .collection-dock { display: none; }
.no-webgl.is-inspecting #fallback, .no-webgl.is-project #fallback,
.no-webgl.is-sequencing #fallback, .no-webgl[data-view="returning"] #fallback { visibility: hidden; opacity: 0; pointer-events: none; }
#fallback-inspect-art { position: absolute; top: 47%; left: 37%; display: block; width: min(36vw, 480px); height: auto; aspect-ratio: 1; border-radius: 2px; box-shadow: 0 22px 65px rgba(40, 43, 39, 0.14), 0 3px 9px rgba(40, 43, 39, 0.09); transform: translate(-50%, -50%); object-fit: cover; pointer-events: none; }

.loading { position: fixed; z-index: 90; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--paper); transition: opacity 600ms ease, visibility 600ms ease; }
.loading.is-leaving, .loading.is-ready, .loading.fade-out, .loading.loaded { visibility: hidden; opacity: 0; pointer-events: none; }
.loading-inner { display: flex; align-items: center; flex-direction: column; text-align: center; transform: translateY(-20px); }
.loading-record { position: relative; display: block; width: 43px; height: 43px; margin-bottom: 26px; border: 1px solid #343830; border-radius: 50%; background: repeating-radial-gradient(circle, #30352e 0, #30352e 1px, #3c4238 1.5px, #30352e 2.4px); box-shadow: 0 3px 9px rgba(40, 43, 39, 0.13); animation: record-turn 3.7s linear infinite; }
.loading-record::after { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 25deg, transparent, rgba(255, 255, 255, 0.1) 20deg, transparent 55deg, transparent 190deg, rgba(255, 255, 255, 0.06) 200deg, transparent 240deg); content: ""; }
.loading-record > span { position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; border-radius: 50%; background: #ccbd92; transform: translate(-50%, -50%); }
.loading-record > span::after { position: absolute; top: 6px; left: 6px; width: 3px; height: 3px; border-radius: 50%; background: #30352e; content: ""; }
.loading-wordmark { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 38px; font-style: italic; line-height: 1.2; letter-spacing: -1.6px; }
.loading-progress { margin: 17px 0 0; color: #939986; font-family: var(--mono); font-size: 9px; letter-spacing: 0.035em; line-height: 1.6; }
.toast { position: fixed; z-index: 80; top: calc(103px + env(safe-area-inset-top)); left: 50%; width: max-content; max-width: calc(100vw - 40px); border: 1px solid var(--line); border-radius: 4px; padding: 11px 17px; color: #69745c; background: rgba(var(--paper-rgb), 0.96); box-shadow: 0 5px 25px rgba(40, 43, 39, 0.05); font-size: 11px; line-height: 1.6; text-align: center; transform: translateX(-50%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: toast-arrive 300ms var(--ease) both; }

@keyframes record-turn { to { transform: rotate(360deg); } }
@keyframes panel-arrive { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }
@keyframes project-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-arrive { from { opacity: 0; margin-top: -5px; } to { opacity: 1; margin-top: 0; } }

@media (min-width: 1600px) {
  .site-header { top: calc(39px + env(safe-area-inset-top)); }
  .scene-caption { width: 280px; }
  .scene-caption p { font-size: 13px; }
  .inspect-panel { right: 7vw; width: 349px; }
  #inspect-title { font-size: 47px; }
  .inspect-description { font-size: 13px; }
  .collection-dock { bottom: 61px; }
  .room-hint { bottom: 157px; }
  .room-footer { bottom: calc(33px + env(safe-area-inset-bottom)); }
}

@media (max-width: 1050px) {
  .primary-nav { gap: 24px; }
  .scene-caption { top: 137px; width: 220px; }
  .inspect-panel { top: 26vh; right: var(--gutter); width: 290px; max-height: calc(100svh - 26vh - 75px); }
  #inspect-title { font-size: 37px; }
  .inspect-description { font-size: 11px; }
  .inspect-meta { font-size: 7px; }
  .project-hero { min-height: auto; gap: 45px; padding: 75px 0 65px; }
  .project-hero h1 { font-size: 64px; }
  .record-list .record-label { max-width: 70px; font-size: 9px; }
}

@media (max-width: 700px) {
  :root { --gutter: 24px; }
  .site-header { top: calc(21px + env(safe-area-inset-top)); grid-template-columns: 1fr auto; row-gap: 13px; column-gap: 20px; }
  .brand { min-height: 49px; }
  .brand-name { font-size: 31px; }
  .brand-subtitle { padding-top: 9px; font-size: 7px; letter-spacing: 0.29em; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; gap: 31px; padding-top: 0; }
  .primary-nav button { min-height: 41px; font-size: 11px; }
  .icon-button { width: 42px; height: 42px; }
  .scene-caption { top: calc(147px + env(safe-area-inset-top)); width: calc(100vw - 2 * var(--gutter)); }
  .scene-caption h1 { margin-bottom: 9px; font-size: 8px; letter-spacing: 0.14em; }
  .scene-caption p { font-size: 11px; line-height: 1.7; }
  .room-hint { right: 18px; bottom: calc(147px + env(safe-area-inset-bottom)); left: 18px; font-size: 14px; }
  .collection-dock { bottom: calc(57px + env(safe-area-inset-bottom)); min-width: 0; max-width: calc(100vw - 32px); border-radius: 8px; padding: 10px 10px 9px; }
  .dock-heading { gap: 15px; padding: 0 5px; }
  .dock-eyebrow { font-size: 6px; }
  .now-playing-label { max-width: 185px; font-size: 7px; }
  .record-list { justify-content: flex-start; gap: 1px; }
  .record-list > button { gap: 5px; padding: 4px 6px; font-size: 9px; }
  .record-list img, .record-list canvas, .record-thumb { width: 31px; height: 31px; flex-basis: 31px; }
  .record-list .record-label { display: none; }
  .record-list .record-number { display: none; }
  .room-footer { right: 21px; bottom: calc(19px + env(safe-area-inset-bottom)); left: 21px; align-items: center; gap: 12px; }
  #volume-label { font-size: 6px; letter-spacing: 0.09em; }
  .concept-credit { padding-top: 3px; font-size: 7px; }
  .skip-preference { gap: 7px; margin-bottom: -3px; font-size: 8px; }
  .toggle-track { width: 23px; height: 13px; flex-basis: 23px; }
  .toggle-track > span { top: 3px; left: 3px; width: 5px; height: 5px; }
  .skip-preference input:checked + .toggle-track > span { transform: translateX(10px); }

  .inspect-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 53svh;
    border-top: 1px solid rgba(40, 43, 39, 0.09);
    border-radius: 20px 20px 0 0;
    padding: 22px 26px calc(24px + env(safe-area-inset-bottom));
    background: rgba(var(--paper-rgb), 0.96);
    box-shadow: 0 -12px 35px rgba(40, 43, 39, 0.025);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation-name: project-arrive;
  }
  .back-button { min-height: 34px; margin: -5px 0 12px; font-size: 9px; }
  .eyebrow { font-size: 8px; }
  #inspect-title { margin: 9px 0 12px; font-size: 35px; letter-spacing: -1.2px; }
  .inspect-description { max-width: 560px; margin-bottom: 18px; font-size: 12px; line-height: 1.75; }
  .inspect-meta { gap: 6px 20px; margin-bottom: 19px; padding-top: 12px; font-size: 8px; }
  .inspect-actions { grid-template-columns: 1.2fr 1fr; gap: 10px; }
  .primary-button { min-height: 46px; gap: 12px; padding: 12px 14px; font-size: 10px; }
  .secondary-button { min-height: 46px; gap: 7px; padding: 10px 12px; font-size: 9px; }
  .sequence-skip { right: 23px; bottom: calc(70px + env(safe-area-inset-bottom)); font-size: 10px; }
  body.is-inspecting .primary-nav, body[data-view="inspect"] .primary-nav { visibility: hidden; pointer-events: none; }
  body.is-inspecting .room-footer, body[data-view="inspect"] .room-footer { visibility: hidden; pointer-events: none; }

  .project-view-header { min-height: 76px; flex-wrap: wrap; gap: 0 18px; padding: calc(14px + env(safe-area-inset-top)) 24px 12px; }
  .return-button { min-height: 40px; font-size: 10px; }
  .project-tabbar { gap: 17px; max-width: 100%; }
  .project-tabbar button, .project-tabbar a { min-height: 40px; font-size: 10px; }
  .project-hero { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px 0 49px; }
  .project-hero h1 { margin: 15px 0 23px; font-size: clamp(49px, 12vw, 75px); }
  .project-hero p { max-width: none; font-size: 14px; line-height: 1.8; }
  .project-hero .eyebrow, .project-hero .concept-label, .project-hero .project-kicker { font-size: 8px; }
  .project-heading .concept-label { gap: 15px; margin-bottom: 24px; padding-bottom: 13px; }
  .project-hero .project-kicker { font-size: 11px; }
  .concept-label > span { font-size: 7px; }
  .project-art { max-width: 480px; margin: 0 auto; }
  .project-art figcaption { font-size: 7px; }
  .project-art figcaption > span { font-size: 6px; }
  .project-body { grid-template-columns: minmax(0, 1fr); gap: 35px; margin-bottom: 65px; padding-top: 35px; font-size: 13px; }
  .project-body h2 { margin-top: 34px; font-size: 33px; }
  .project-body h3 { font-size: 16px; }
  .project-body blockquote { margin: 32px 0; padding-left: 20px; font-size: 26px; }
  .project-meta { gap: 17px 28px; margin: 22px 0 28px; padding: 17px 0; font-size: 10px; }
  .project-meta dt, .project-meta .meta-label { font-size: 7px; }
  .project-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .project-actions, .project-links { margin-top: 24px; }
  .project-view-footer { min-height: 80px; gap: 15px; font-size: 8px; }
  .project-view-footer > :first-child { font-size: 20px; }
  .project-footer { display: grid; grid-template-columns: 1fr auto; gap: 7px 20px; padding-top: 18px; font-size: 8px; }
  .project-footer > span:first-child { grid-column: 1; grid-row: 1; font-size: 23px; }
  .project-footer > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .project-footer .inline-return { grid-column: 2; grid-row: 1; font-size: 9px; }
  .focus-demo, .journal-demo { padding: 27px; }
  .focus-clock { font-size: 81px; }
  .journal-demo textarea { font-size: 19px; }
  .project-quote { padding-left: 24px; }
  .project-quote > p { font-size: 32px; }
  #fallback-inspect-art { top: 29%; left: 50%; width: min(68vw, 340px); }
  .fallback { inset: 134px 0 80px; padding-top: 25px; }
  .fallback-grid, .fallback-records { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .toast { top: calc(124px + env(safe-area-inset-top)); padding: 10px 14px; font-size: 10px; }
  .loading-wordmark { font-size: 36px; }
}

@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .brand-name { font-size: 28px; }
  .primary-nav { gap: 25px; }
  .scene-caption p { font-size: 10px; }
  .collection-dock { max-width: calc(100vw - 26px); padding-right: 8px; padding-left: 8px; }
  .record-list > button { padding-right: 4px; padding-left: 4px; }
  .inspect-panel { padding-right: 21px; padding-left: 21px; }
  .inspect-actions { grid-template-columns: 1.12fr 1fr; }
  .inspect-actions .primary-button, .inspect-actions .secondary-button { padding-right: 10px; padding-left: 10px; font-size: 9px; }
  .project-view-header { padding-right: 20px; padding-left: 20px; }
  .project-tabbar { gap: 13px; }
}

@media (max-height: 720px) and (min-width: 701px) {
  .site-header { top: 22px; }
  .scene-caption { top: 120px; }
  .collection-dock { bottom: 33px; padding-top: 9px; padding-bottom: 8px; }
  .room-hint { bottom: 122px; font-size: 14px; }
  .room-footer { bottom: 18px; }
  .inspect-panel { top: 20vh; max-height: calc(80svh - 52px); }
  .back-button { margin-bottom: 14px; }
  #inspect-title { margin: 9px 0 13px; font-size: 35px; }
  .inspect-description { margin-bottom: 16px; }
  .inspect-meta { margin-bottom: 19px; }
}

@media (max-height: 690px) and (max-width: 700px) {
  .site-header { top: calc(15px + env(safe-area-inset-top)); row-gap: 7px; }
  .scene-caption { top: calc(128px + env(safe-area-inset-top)); }
  .scene-caption p { display: none; }
  .room-hint { bottom: calc(132px + env(safe-area-inset-bottom)); font-size: 12px; }
  .collection-dock { bottom: calc(48px + env(safe-area-inset-bottom)); padding-top: 8px; padding-bottom: 7px; }
  .room-footer { bottom: calc(13px + env(safe-area-inset-bottom)); }
  .inspect-panel { max-height: 57svh; padding-top: 15px; }
  .back-button { margin-bottom: 6px; }
  #inspect-title { margin: 6px 0 10px; font-size: 29px; }
  .inspect-description { margin-bottom: 12px; font-size: 11px; }
  .inspect-meta { margin-bottom: 13px; padding-top: 9px; }
}

@media (hover: none), (pointer: coarse) {
  .hover-label { display: none !important; }
  .icon-button:hover, .primary-button:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .loading-record { animation: none; }
}

body.is-project .studio-disc-spin { animation-play-state: paused; }
