/* ==========================================================================
   青铜编钟 · 数字文物
   Procedural WebGL object study for a Western Han bronze chime-bell set.
   ========================================================================== */

:root {
  --ink: #080907;
  --ink-2: #0b0d09;
  --ink-3: #12150f;
  --paper: #eee4d1;
  --paper-soft: #f6edda;
  --paper-dim: #bab09d;
  --muted: #8e8575;
  --bronze: #b08d57;
  --bronze-bright: #e0c084;
  --bronze-pale: #f0d9a9;
  --bronze-deep: #6b4f2c;
  --patina: #6f9482;
  --patina-bright: #a7c1b2;
  --cinnabar: #a4452f;
  --cinnabar-bright: #c96044;
  --line: rgba(238, 228, 209, 0.18);
  --line-soft: rgba(238, 228, 209, 0.09);
  --glass: rgba(9, 11, 8, 0.62);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --latin: "Times New Roman", Times, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dock-bottom: 26px;
}

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

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

html {
  background: var(--ink);
  color-scheme: dark;
}

body {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-dragging {
  cursor: grabbing;
  user-select: none;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 1px solid var(--bronze-bright);
  outline-offset: 4px;
}

::selection {
  background: var(--bronze);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1200;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Stage and atmosphere
   -------------------------------------------------------------------------- */

.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 48% 42%, rgba(38, 46, 35, 0.48) 0%, rgba(12, 15, 11, 0.4) 42%, transparent 72%),
    linear-gradient(180deg, #0b0d09 0%, #070806 54%, #050604 100%);
}

.atmosphere-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.72;
  pointer-events: none;
}

.atmosphere-glow--warm {
  top: -16%;
  left: 31%;
  width: 54vw;
  height: 55vh;
  background: radial-gradient(circle, rgba(139, 99, 48, 0.24) 0%, rgba(89, 62, 30, 0.12) 42%, transparent 72%);
}

.atmosphere-glow--cool {
  right: -12%;
  bottom: -22%;
  width: 52vw;
  height: 66vh;
  background: radial-gradient(circle, rgba(55, 91, 78, 0.15) 0%, rgba(29, 49, 41, 0.08) 45%, transparent 74%);
}

.atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(176, 141, 87, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 141, 87, 0.045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 52% 55%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 52% 55%, #000 0%, transparent 68%);
}

.webgl-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: none;
}

.webgl-wrap:active {
  cursor: grabbing;
}

.webgl-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 48%, transparent 32%, rgba(4, 5, 3, 0.3) 72%, rgba(4, 5, 3, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 5, 3, 0.48) 0%, transparent 18%, transparent 78%, rgba(4, 5, 3, 0.56) 100%);
}

.stage-grain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.14;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(0, 0, 0, 0.28) 4px);
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 26px 38px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 4, 0.72) 0%, rgba(5, 6, 4, 0.22) 64%, transparent 100%);
}

.topbar > * {
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--paper);
  text-decoration: none;
}

.brand-seal {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(201, 96, 68, 0.72);
  background: rgba(164, 69, 47, 0.12);
  color: var(--cinnabar-bright);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1;
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-type strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.28em;
  line-height: 1.2;
}

.brand-type small {
  color: rgba(238, 228, 209, 0.38);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.collection-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: rgba(238, 228, 209, 0.48);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.collection-line i {
  color: rgba(238, 228, 209, 0.22);
  font-style: normal;
}

.live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cinnabar-bright);
  box-shadow: 0 0 0 0 rgba(201, 96, 68, 0.45);
  animation: live-pulse 2.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 96, 68, 0.42); }
  68% { box-shadow: 0 0 0 7px rgba(201, 96, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 96, 68, 0); }
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.topnav a,
.topnav button {
  position: relative;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: rgba(238, 228, 209, 0.52);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.topnav a::after,
.topnav button::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: var(--bronze);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.topnav a:hover,
.topnav button:hover,
.topnav .is-current {
  color: var(--paper);
}

.topnav a:hover::after,
.topnav button:hover::after,
.topnav .is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sound-button,
.mobile-archive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(238, 228, 209, 0.2);
  background: rgba(10, 12, 9, 0.38);
  color: rgba(238, 228, 209, 0.66);
  font-size: 8px;
  letter-spacing: 0.12em;
  cursor: pointer;
  backdrop-filter: blur(9px);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.sound-button:hover,
.mobile-archive:hover {
  border-color: rgba(224, 192, 132, 0.55);
  color: var(--paper);
}

.sound-button[aria-pressed="false"] {
  color: rgba(238, 228, 209, 0.34);
}

.sound-bars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.sound-bars i {
  display: block;
  width: 1px;
  height: 6px;
  background: var(--bronze-bright);
  transform-origin: bottom;
  animation: sound-bar 1.2s ease-in-out infinite alternate;
}

.sound-bars i:nth-child(2) { height: 10px; animation-delay: -0.5s; }
.sound-bars i:nth-child(3) { height: 4px; animation-delay: -0.2s; }
.sound-bars i:nth-child(4) { height: 8px; animation-delay: -0.8s; }

.sound-button[aria-pressed="false"] .sound-bars i {
  animation-play-state: paused;
  opacity: 0.32;
}

@keyframes sound-bar {
  from { transform: scaleY(0.42); }
  to { transform: scaleY(1); }
}

.mobile-archive {
  display: none;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 228, 209, 0.2);
  background: rgba(10, 12, 9, 0.38);
  color: rgba(238, 228, 209, 0.6);
  cursor: pointer;
  backdrop-filter: blur(9px);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.icon-button:hover {
  border-color: rgba(224, 192, 132, 0.55);
  color: var(--paper);
}

.icon-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

/* --------------------------------------------------------------------------
   Object intro
   -------------------------------------------------------------------------- */

.object-intro {
  position: absolute;
  top: 50%;
  left: 44px;
  z-index: 12;
  width: 318px;
  transform: translateY(-44%);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.65s var(--ease);
}

.object-intro > * {
  pointer-events: auto;
}

.object-intro > p,
.object-intro > h1,
.object-intro > .object-stats {
  pointer-events: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 19px;
  color: rgba(238, 228, 209, 0.46);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--cinnabar-bright);
}

.eyebrow i {
  width: 22px;
  height: 1px;
  background: rgba(201, 96, 68, 0.5);
}

.object-intro h1 {
  display: flex;
  gap: 0.02em;
  margin: 0;
  color: var(--paper-soft);
  font-family: var(--serif);
  font-size: clamp(66px, 6.7vw, 102px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.9;
  text-shadow: 0 4px 45px rgba(0, 0, 0, 0.55);
}

.object-intro h1 span:last-child {
  color: rgba(240, 217, 169, 0.94);
}

.object-latin {
  margin: 20px 0 0;
  color: rgba(238, 228, 209, 0.42);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.26em;
  line-height: 1.9;
}

.object-latin em {
  color: rgba(238, 228, 209, 0.27);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.object-lede {
  margin: 20px 0 0;
  color: rgba(238, 228, 209, 0.64);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 2;
}

.object-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 31px 0 25px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.object-stats > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.object-stats strong {
  color: var(--bronze-pale);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
}

.object-stats span {
  padding-top: 2px;
  color: rgba(238, 228, 209, 0.36);
  font-size: 8px;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(238, 228, 209, 0.78);
  font-size: 9px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.text-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--cinnabar-bright);
  stroke-width: 1.2;
  transition: transform 0.35s var(--ease);
}

.text-link:hover {
  color: var(--bronze-pale);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.object-disclaimer {
  margin: 17px 0 0;
  color: rgba(238, 228, 209, 0.25);
  font-size: 7px;
  letter-spacing: 0.13em;
}

/* --------------------------------------------------------------------------
   Object data
   -------------------------------------------------------------------------- */

.object-spec {
  position: absolute;
  top: 47%;
  right: 38px;
  z-index: 12;
  width: 164px;
  transform: translateY(-50%);
  transition: opacity 0.5s var(--ease), transform 0.65s var(--ease);
}

.spec-caption {
  margin: 0 0 14px;
  color: rgba(238, 228, 209, 0.36);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.spec-caption i {
  color: rgba(238, 228, 209, 0.18);
  font-style: normal;
}

.object-spec dl {
  margin: 0;
}

.object-spec dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(238, 228, 209, 0.08);
}

.object-spec dt {
  color: rgba(238, 228, 209, 0.35);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.object-spec dd {
  margin: 0;
  color: rgba(238, 228, 209, 0.72);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.object-spec dd small {
  margin-left: 2px;
  color: rgba(238, 228, 209, 0.36);
  font-family: var(--sans);
  font-size: 7px;
}

.spec-scale {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0 0;
  color: rgba(238, 228, 209, 0.27);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.spec-scale span {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(224, 192, 132, 0.6);
  transform: rotate(45deg);
}

.spec-orbit {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 25px 0 0 auto;
  opacity: 0.55;
}

.orbit-ring {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(238, 228, 209, 0.2);
  border-radius: 50%;
}

.orbit-ring::before,
.orbit-ring::after {
  position: absolute;
  background: rgba(238, 228, 209, 0.22);
  content: "";
}

.orbit-ring::before {
  top: 50%;
  left: -7px;
  width: 88px;
  height: 1px;
}

.orbit-ring::after {
  top: -7px;
  left: 50%;
  width: 1px;
  height: 88px;
}

.orbit-axis {
  position: absolute;
  top: -3px;
  left: 50%;
  color: rgba(224, 192, 132, 0.8);
  font-family: var(--latin);
  font-size: 7px;
  transform: translateX(-50%);
}

.orbit-value {
  position: absolute;
  right: 1px;
  bottom: 1px;
  color: rgba(238, 228, 209, 0.56);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.08em;
}

body.is-study .object-intro,
body.is-study .object-spec {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-40%);
}

/* --------------------------------------------------------------------------
   Pitch labels
   -------------------------------------------------------------------------- */

.pitch-label-layer {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.pitch-label-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.pitch-tag {
  position: absolute;
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 6px 3px;
  border: 1px solid rgba(224, 192, 132, 0.24);
  background: rgba(7, 9, 6, 0.7);
  color: rgba(238, 228, 209, 0.62);
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -100%);
  backdrop-filter: blur(7px);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.pitch-tag::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 15px;
  background: linear-gradient(180deg, rgba(224, 192, 132, 0.5), rgba(224, 192, 132, 0));
  content: "";
}

.pitch-tag i {
  color: rgba(238, 228, 209, 0.22);
  font-family: var(--latin);
  font-size: 6px;
  font-style: normal;
}

.pitch-tag b {
  color: var(--bronze-pale);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.pitch-tag em {
  color: rgba(238, 228, 209, 0.35);
  font-family: var(--serif);
  font-size: 8px;
  font-style: normal;
}

.pitch-tag:hover,
.pitch-tag:focus-visible {
  border-color: rgba(224, 192, 132, 0.62);
  background: rgba(13, 15, 11, 0.92);
  color: var(--paper);
}

.pitch-tag.is-playing {
  animation: pitch-tag-strike 0.7s var(--ease);
}

@keyframes pitch-tag-strike {
  0% { border-color: var(--bronze-bright); background: rgba(224, 192, 132, 0.34); transform: translate(-50%, -100%) translateY(-4px); }
  100% { border-color: rgba(224, 192, 132, 0.24); background: rgba(7, 9, 6, 0.7); transform: translate(-50%, -100%) translateY(0); }
}

/* --------------------------------------------------------------------------
   Structure labels
   -------------------------------------------------------------------------- */

.structure-labels {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.structure-labels.is-visible {
  opacity: 1;
  visibility: visible;
}

.structure-label {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease);
}

.structure-labels.is-visible .structure-label {
  opacity: 1;
}

.structure-label:nth-child(2) { transition-delay: 0.05s; }
.structure-label:nth-child(3) { transition-delay: 0.1s; }
.structure-label:nth-child(4) { transition-delay: 0.15s; }
.structure-label:nth-child(5) { transition-delay: 0.2s; }
.structure-label:nth-child(6) { transition-delay: 0.25s; }

.structure-dot {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--bronze-bright);
  border-radius: 50%;
  background: rgba(8, 9, 7, 0.72);
  box-shadow: 0 0 0 3px rgba(224, 192, 132, 0.08);
}

.structure-dot::after {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--bronze-bright);
  content: "";
  opacity: 0.72;
}

.structure-line {
  position: absolute;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 192, 132, 0.68), rgba(224, 192, 132, 0.18));
}

.structure-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid rgba(238, 228, 209, 0.13);
  border-left: 1px solid rgba(224, 192, 132, 0.64);
  background: rgba(7, 9, 6, 0.7);
  text-align: left;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.structure-card em {
  color: rgba(224, 192, 132, 0.8);
  font-family: var(--latin);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.13em;
}

.structure-card b {
  color: rgba(238, 228, 209, 0.68);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.structure-label:hover .structure-card,
.structure-label:focus-visible .structure-card {
  border-color: rgba(224, 192, 132, 0.5);
  background: rgba(13, 15, 11, 0.9);
}

.structure-label--right .structure-line {
  left: 6px;
  width: 36px;
}

.structure-label--right .structure-card {
  top: -16px;
  left: 44px;
}

.structure-label--left .structure-line {
  right: 6px;
  width: 36px;
  transform: rotate(180deg);
}

.structure-label--left .structure-card {
  top: -16px;
  right: 44px;
  border-right: 1px solid rgba(224, 192, 132, 0.64);
  border-left-color: rgba(238, 228, 209, 0.13);
}

.structure-label--top .structure-line {
  bottom: 6px;
  left: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(224, 192, 132, 0.68), rgba(224, 192, 132, 0.18));
}

.structure-label--top .structure-card {
  bottom: 42px;
  left: -10px;
}

.structure-label--bottom .structure-line {
  top: 6px;
  left: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(224, 192, 132, 0.18), rgba(224, 192, 132, 0.68));
}

.structure-label--bottom .structure-card {
  top: 42px;
  left: -10px;
}

/* --------------------------------------------------------------------------
   Study caption
   -------------------------------------------------------------------------- */

.study-caption {
  position: absolute;
  bottom: 136px;
  left: 44px;
  z-index: 17;
  width: 264px;
  padding: 13px 15px 12px;
  border: 1px solid rgba(238, 228, 209, 0.13);
  border-left: 1px solid rgba(224, 192, 132, 0.58);
  background: rgba(7, 9, 6, 0.66);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  backdrop-filter: blur(12px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
}

.study-caption.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.study-caption > p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 10px;
  color: rgba(238, 228, 209, 0.34);
  font-size: 8px;
  letter-spacing: 0.11em;
}

.study-caption > p b {
  color: rgba(238, 228, 209, 0.82);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.study-pitch {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 0;
  border-top: 1px solid rgba(238, 228, 209, 0.08);
  border-bottom: 1px solid rgba(238, 228, 209, 0.08);
}

.study-pitch span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: rgba(238, 228, 209, 0.38);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.study-pitch b {
  color: var(--bronze-pale);
  font-family: var(--latin);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.study-pitch i {
  width: 1px;
  height: 12px;
  background: rgba(238, 228, 209, 0.14);
}

.study-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.study-nav button {
  display: grid;
  width: 24px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(238, 228, 209, 0.12);
  background: transparent;
  color: rgba(238, 228, 209, 0.52);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.study-nav button:hover {
  border-color: rgba(224, 192, 132, 0.5);
  color: var(--bronze-pale);
}

.study-nav span {
  color: rgba(238, 228, 209, 0.34);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   Hover card
   -------------------------------------------------------------------------- */

.hover-card {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 124px;
  padding: 8px 11px;
  border: 1px solid rgba(224, 192, 132, 0.28);
  background: rgba(7, 9, 6, 0.82);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(14px, 16px);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s var(--ease), visibility 0.2s;
}

.hover-card.is-visible {
  opacity: 1;
  visibility: visible;
}

.hover-card span {
  color: rgba(224, 192, 132, 0.66);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.hover-card b {
  color: var(--paper);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hover-card em {
  color: rgba(238, 228, 209, 0.34);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Sound panel
   -------------------------------------------------------------------------- */

.sound-panel {
  position: absolute;
  right: 38px;
  bottom: 124px;
  z-index: 18;
  width: 328px;
  border: 1px solid rgba(238, 228, 209, 0.12);
  background: rgba(7, 9, 6, 0.64);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  transition: width 0.4s var(--ease), background 0.4s var(--ease);
}

.sound-panel.is-collapsed {
  width: 206px;
}

.sound-panel.is-collapsed .sound-mode,
.sound-panel.is-collapsed .pitch-set,
.sound-panel.is-collapsed .sound-foot {
  display: none;
}

.sound-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px 14px 11px;
  border-bottom: 1px solid rgba(238, 228, 209, 0.08);
}

.sound-head p {
  margin: 0 0 3px;
  color: rgba(238, 228, 209, 0.32);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.sound-head p i {
  color: rgba(238, 228, 209, 0.17);
  font-style: normal;
}

.sound-head h2 {
  margin: 0;
  color: rgba(238, 228, 209, 0.8);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.09em;
}

.sound-collapse {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(238, 228, 209, 0.12);
  background: transparent;
  color: rgba(238, 228, 209, 0.45);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.sound-collapse:hover {
  border-color: rgba(224, 192, 132, 0.4);
  color: var(--bronze-pale);
}

.sound-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 12px 14px 10px;
  background: rgba(238, 228, 209, 0.08);
}

.sound-mode button {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 9px;
  border: 0;
  background: rgba(9, 11, 8, 0.94);
  color: rgba(238, 228, 209, 0.36);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.sound-mode button span {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.sound-mode button small {
  color: rgba(238, 228, 209, 0.22);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.sound-mode button:hover {
  color: rgba(238, 228, 209, 0.72);
}

.sound-mode button.is-active {
  background: rgba(224, 192, 132, 0.1);
  color: var(--bronze-pale);
}

.sound-mode button.is-active small {
  color: rgba(224, 192, 132, 0.46);
}

.pitch-set {
  padding: 0 14px 11px;
}

.pitch-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}

.pitch-row--upper {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pitch-row-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 5px;
  color: rgba(238, 228, 209, 0.24);
  font-size: 7px;
  letter-spacing: 0.09em;
}

.pitch-row-label:first-child {
  margin-top: 0;
}

.pitch-row-label i {
  color: rgba(238, 228, 209, 0.13);
  font-family: var(--latin);
  font-style: normal;
  letter-spacing: 0.06em;
}

.pitch-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  padding: 5px 5px 4px;
  border: 1px solid rgba(238, 228, 209, 0.1);
  background: rgba(238, 228, 209, 0.025);
  color: rgba(238, 228, 209, 0.54);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), transform 0.22s var(--ease);
}

.pitch-chip i {
  color: rgba(238, 228, 209, 0.2);
  font-family: var(--latin);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.pitch-chip b {
  overflow: hidden;
  max-width: 100%;
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pitch-chip:hover {
  border-color: rgba(224, 192, 132, 0.42);
  background: rgba(224, 192, 132, 0.08);
  color: var(--bronze-pale);
}

.pitch-chip.is-active {
  border-color: rgba(224, 192, 132, 0.66);
  background: rgba(224, 192, 132, 0.12);
  color: var(--bronze-pale);
}

.pitch-chip.is-playing {
  animation: chip-strike 0.65s var(--ease);
}

@keyframes chip-strike {
  0% { background: rgba(224, 192, 132, 0.48); transform: translateY(-2px); }
  100% { background: rgba(224, 192, 132, 0.12); transform: translateY(0); }
}

.sound-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(238, 228, 209, 0.08);
}

.sound-foot > button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(224, 192, 132, 0.28);
  background: rgba(224, 192, 132, 0.06);
  color: rgba(240, 217, 169, 0.8);
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.sound-foot > button:hover {
  border-color: rgba(224, 192, 132, 0.58);
  background: rgba(224, 192, 132, 0.13);
}

.sound-foot > button i {
  display: block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.sound-foot > button.is-playing i {
  width: 6px;
  height: 7px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 28% 0, 28% 100%, 0 100%, 0 0, 72% 0, 100% 0, 100% 100%, 72% 100%, 72% 0);
}

.sound-foot p {
  margin: 0;
  color: rgba(238, 228, 209, 0.25);
  font-size: 7px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: right;
}

.sound-foot p em {
  color: rgba(238, 228, 209, 0.16);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   View dock
   -------------------------------------------------------------------------- */

.view-dock {
  position: absolute;
  bottom: var(--dock-bottom);
  left: 50%;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 9px 12px;
  border: 1px solid rgba(238, 228, 209, 0.11);
  background: rgba(7, 9, 6, 0.55);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.dock-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 2px;
  color: rgba(238, 228, 209, 0.27);
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1.55;
  white-space: nowrap;
}

.drag-glyph {
  position: relative;
  display: block;
  width: 17px;
  height: 22px;
  border: 1px solid rgba(238, 228, 209, 0.25);
  border-radius: 9px;
}

.drag-glyph i {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 6px;
  background: rgba(224, 192, 132, 0.8);
  transform: translateX(-50%);
  animation: glyph-scroll 1.8s ease-in-out infinite;
}

@keyframes glyph-scroll {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.4; }
  50% { transform: translate(-50%, 5px); opacity: 1; }
}

.view-tabs {
  display: flex;
  align-items: stretch;
  gap: 1px;
  background: rgba(238, 228, 209, 0.08);
}

.view-tabs button {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 58px;
  padding: 7px 12px 6px;
  border: 0;
  background: rgba(9, 11, 8, 0.94);
  color: rgba(238, 228, 209, 0.4);
  text-align: left;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.view-tabs button i {
  color: rgba(238, 228, 209, 0.2);
  font-family: var(--latin);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.07em;
}

.view-tabs button span {
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.view-tabs button:hover {
  color: rgba(238, 228, 209, 0.78);
}

.view-tabs button.is-active {
  background: rgba(224, 192, 132, 0.1);
  color: var(--bronze-pale);
}

.view-tabs button.is-active i {
  color: rgba(224, 192, 132, 0.6);
}

.dock-tools {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tool-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 38px;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: rgba(238, 228, 209, 0.32);
  font-size: 7px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.tool-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.tool-button:hover,
.tool-button.is-on,
.tool-button[aria-pressed="true"] {
  color: rgba(240, 217, 169, 0.8);
}

.tool-button[aria-pressed="false"] {
  color: rgba(238, 228, 209, 0.25);
}

/* --------------------------------------------------------------------------
   Footer note
   -------------------------------------------------------------------------- */

.stage-footnote {
  position: absolute;
  bottom: 18px;
  left: 38px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(238, 228, 209, 0.17);
  font-family: var(--latin);
  font-size: 6px;
  letter-spacing: 0.15em;
  pointer-events: none;
}

.stage-footnote i {
  width: 24px;
  height: 1px;
  background: rgba(238, 228, 209, 0.14);
}

/* --------------------------------------------------------------------------
   Archive drawer
   -------------------------------------------------------------------------- */

.archive-scrim {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: rgba(3, 4, 2, 0.7);
  opacity: 0;
  visibility: hidden;
  backdrop-filter: blur(3px);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.archive-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

.archive {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 710;
  width: min(560px, 100vw);
  background: #0a0c08;
  border-left: 1px solid rgba(238, 228, 209, 0.1);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 0.55s var(--ease), visibility 0.55s;
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.35);
}

.archive.is-open {
  transform: translateX(0);
  visibility: visible;
}

.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(238, 228, 209, 0.08);
}

.archive-head p {
  margin: 0;
  color: rgba(238, 228, 209, 0.35);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.17em;
}

.archive-head p span {
  color: rgba(238, 228, 209, 0.18);
}

.archive-close {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(238, 228, 209, 0.14);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}

.archive-close:hover {
  border-color: rgba(224, 192, 132, 0.48);
}

.archive-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1px;
  background: rgba(238, 228, 209, 0.62);
}

.archive-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.archive-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.archive-scroll {
  height: calc(100% - 64px);
  overflow-y: auto;
  padding: 28px 34px 48px;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 192, 132, 0.28) transparent;
}

.archive-scroll::-webkit-scrollbar {
  width: 5px;
}

.archive-scroll::-webkit-scrollbar-thumb {
  background: rgba(224, 192, 132, 0.28);
}

.archive-photo {
  margin: 0 0 30px;
}

.archive-photo img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(1.04);
}

.archive-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: rgba(238, 228, 209, 0.25);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.archive-photo figcaption span {
  color: rgba(224, 192, 132, 0.55);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.13em;
}

.archive-kicker {
  margin: 0 0 8px;
  color: var(--cinnabar-bright);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.archive h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.archive-latin {
  margin: 5px 0 23px;
  color: rgba(238, 228, 209, 0.3);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.archive-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
  margin: 0 0 30px;
  padding: 4px 0;
  border-top: 1px solid rgba(238, 228, 209, 0.09);
  border-bottom: 1px solid rgba(238, 228, 209, 0.09);
}

.archive-data > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(238, 228, 209, 0.055);
}

.archive-data > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.archive-data dt {
  color: rgba(238, 228, 209, 0.28);
  font-size: 8px;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.archive-data dd {
  margin: 0;
  color: rgba(238, 228, 209, 0.7);
  font-family: var(--serif);
  font-size: 11px;
  text-align: right;
  letter-spacing: 0.02em;
}

.archive-section {
  margin-top: 27px;
  padding-top: 21px;
  border-top: 1px solid rgba(238, 228, 209, 0.08);
}

.archive-section h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 13px;
  color: rgba(238, 228, 209, 0.82);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.archive-section h3 span {
  color: rgba(201, 96, 68, 0.7);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.archive-section p {
  margin: 0 0 1em;
  color: rgba(238, 228, 209, 0.5);
  font-size: 11px;
  line-height: 1.98;
  letter-spacing: 0.015em;
}

.archive-section strong {
  color: rgba(240, 217, 169, 0.82);
  font-weight: 400;
}

.archive-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 32px;
}

.archive-actions a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(238, 228, 209, 0.12);
  color: rgba(238, 228, 209, 0.68);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}

.archive-actions a:hover {
  border-color: rgba(224, 192, 132, 0.48);
  background: rgba(224, 192, 132, 0.055);
  color: var(--bronze-pale);
}

.archive-actions a span {
  color: var(--cinnabar-bright);
}

.archive-source {
  margin: 25px 0 0;
  color: rgba(238, 228, 209, 0.22);
  font-size: 8px;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   Toast / fallback
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  bottom: 116px;
  left: 50%;
  z-index: 750;
  max-width: min(380px, calc(100vw - 40px));
  padding: 10px 16px;
  border: 1px solid rgba(224, 192, 132, 0.26);
  background: rgba(7, 9, 6, 0.9);
  color: rgba(238, 228, 209, 0.7);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  backdrop-filter: blur(12px);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease), visibility 0.3s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.webgl-fallback[hidden] {
  display: none;
}

.webgl-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(480px, calc(100vw - 48px));
  padding: 32px;
  border: 1px solid rgba(238, 228, 209, 0.12);
  background: rgba(7, 9, 6, 0.92);
  text-align: center;
  transform: translate(-50%, -50%);
}

.webgl-fallback > span {
  color: var(--cinnabar-bright);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.webgl-fallback h2 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.webgl-fallback p {
  margin: 0 0 20px;
  color: rgba(238, 228, 209, 0.45);
  font-size: 10px;
  line-height: 1.9;
}

.webgl-fallback button {
  padding: 9px 14px;
  border: 1px solid rgba(224, 192, 132, 0.35);
  background: transparent;
  color: var(--bronze-pale);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #060705;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(102, 76, 37, 0.22) 0%, transparent 54%),
    radial-gradient(ellipse at 50% 78%, rgba(54, 84, 70, 0.1) 0%, transparent 52%);
}

.loader-mark {
  position: relative;
  display: flex;
  gap: 0.05em;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(68px, 9vw, 118px);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
  text-shadow: 0 12px 70px rgba(176, 141, 87, 0.16);
}

.loader-mark span:last-child {
  color: var(--bronze-pale);
}

.loader-info {
  position: relative;
  width: min(330px, calc(100vw - 64px));
  margin-top: 42px;
  text-align: center;
}

.loader-eyebrow {
  margin: 0 0 8px;
  color: rgba(238, 228, 209, 0.24);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.18em;
}

.loader-info h2 {
  margin: 0;
  color: rgba(238, 228, 209, 0.76);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.18em;
}

.loader-sub {
  margin: 8px 0 24px;
  color: rgba(238, 228, 209, 0.3);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.loader-track {
  width: 100%;
  height: 1px;
  background: rgba(238, 228, 209, 0.12);
}

.loader-track span {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(224, 192, 132, 0.4), var(--bronze-bright));
  transition: width 0.4s var(--ease-soft);
}

.loader-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(238, 228, 209, 0.24);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.11em;
}

.loader-meta span {
  color: rgba(224, 192, 132, 0.7);
  font-size: 9px;
}

.loader-meta i {
  margin-right: auto;
  margin-left: 2px;
  font-style: normal;
}

.loader-meta em {
  font-style: normal;
}

.loader-foot {
  position: absolute;
  bottom: 24px;
  left: 50%;
  margin: 0;
  color: rgba(238, 228, 209, 0.14);
  font-family: var(--latin);
  font-size: 6px;
  letter-spacing: 0.2em;
  transform: translateX(-50%);
  white-space: nowrap;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1260px) {
  .object-intro {
    left: 32px;
    width: 286px;
  }

  .object-intro h1 {
    font-size: clamp(60px, 6.4vw, 88px);
  }

  .object-spec {
    right: 28px;
  }

  .sound-panel {
    right: 28px;
    width: 306px;
  }

  .view-dock {
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  .collection-line {
    display: none;
  }

  .topbar {
    gap: 20px;
    padding: 22px 28px;
  }

  .topnav {
    margin-left: auto;
  }

  .object-intro {
    top: 47%;
    left: 28px;
    width: 258px;
  }

  .object-lede {
    font-size: 11px;
  }

  .object-spec {
    display: none;
  }

  .sound-panel {
    right: 20px;
    bottom: 110px;
    width: 294px;
  }

  .view-dock {
    bottom: 20px;
    gap: 12px;
    padding: 8px 10px;
  }

  .dock-hint {
    display: none;
  }

  .view-tabs button {
    min-width: 52px;
    padding: 6px 10px;
  }

  .stage-footnote {
    display: none;
  }
}

@media (max-width: 900px) {
  .topnav {
    gap: 18px;
  }

  .object-intro {
    top: 44%;
    left: 24px;
    width: 226px;
  }

  .object-intro h1 {
    font-size: 58px;
  }

  .object-lede {
    font-size: 10px;
    line-height: 1.85;
  }

  .object-stats {
    margin: 22px 0 18px;
    padding: 11px 0;
  }

  .object-stats strong {
    font-size: 19px;
  }

  .object-disclaimer {
    display: none;
  }

  .sound-panel {
    right: 14px;
    bottom: 104px;
  }

  .structure-card {
    padding: 6px 8px;
  }
}

@media (max-width: 760px) {
  :root {
    --dock-bottom: 10px;
  }

  .topbar {
    gap: 12px;
    padding: 16px 16px 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-seal {
    width: 27px;
    height: 27px;
    font-size: 14px;
  }

  .brand-type strong {
    font-size: 14px;
  }

  .brand-type small {
    font-size: 6px;
  }

  .topnav {
    display: none;
  }

  .top-actions {
    margin-left: auto;
  }

  .mobile-archive {
    display: inline-flex;
    height: 30px;
    padding: 0 9px;
  }

  .sound-button {
    height: 30px;
    width: 30px;
    justify-content: center;
    padding: 0;
  }

  .sound-button-label {
    display: none;
  }

  .icon-button {
    width: 30px;
    height: 30px;
  }

  .object-intro {
    top: 78px;
    right: 20px;
    left: 20px;
    width: auto;
    transform: none;
    pointer-events: none;
  }

  .object-intro > * {
    pointer-events: auto;
  }

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

  .object-intro h1 {
    font-size: 46px;
    gap: 0.06em;
  }

  .object-latin {
    display: none;
  }

  .object-lede {
    margin-top: 9px;
    max-width: 240px;
    font-size: 9px;
    line-height: 1.8;
  }

  .object-stats,
  .object-intro .text-link {
    display: none;
  }

  body.is-study .object-intro {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
  }

  .sound-panel {
    right: 10px;
    bottom: 76px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    transform: translateY(0);
    transition: opacity 0.35s var(--ease), transform 0.4s var(--ease), visibility 0.35s;
  }

  .sound-panel.is-collapsed {
    right: 10px;
    bottom: 76px;
    width: auto;
  }

  .sound-panel.is-collapsed .sound-head {
    border-bottom: 0;
  }

  .pitch-chip {
    padding: 5px 4px 4px;
  }

  .pitch-chip b {
    font-size: 9px;
  }

  .sound-foot p {
    display: none;
  }

  .view-dock {
    right: 10px;
    bottom: 10px;
    left: 10px;
    gap: 0;
    justify-content: space-between;
    padding: 7px;
    transform: none;
  }

  .view-tabs {
    flex: 1;
  }

  .view-tabs button {
    flex: 1;
    min-width: 0;
    padding: 6px 5px;
    text-align: center;
  }

  .view-tabs button span {
    font-size: 8px;
  }

  .view-tabs button i {
    font-size: 5px;
  }

  .dock-tools {
    gap: 0;
    margin-left: 4px;
  }

  .tool-button {
    min-width: 31px;
    padding: 3px 3px;
    font-size: 6px;
  }

  .tool-button svg {
    width: 13px;
    height: 13px;
  }

  .study-caption {
    right: 12px;
    bottom: 88px;
    left: 12px;
    width: auto;
    padding: 9px 12px 8px;
  }

  .study-caption > p {
    margin-bottom: 7px;
  }

  .study-pitch {
    padding: 7px 0;
  }

  .study-nav {
    margin-top: 7px;
  }

  .pitch-label-layer {
    display: none;
  }

  .structure-labels {
    z-index: 15;
  }

  .structure-card {
    padding: 5px 7px;
  }

  .structure-card em {
    font-size: 6px;
  }

  .structure-card b {
    font-size: 8px;
  }

  .structure-label--right .structure-card {
    left: 36px;
  }

  .structure-label--left .structure-card {
    right: 36px;
  }

  .structure-label--right .structure-line,
  .structure-label--left .structure-line {
    width: 26px;
  }

  .hover-card {
    display: none;
  }

  .stage-footnote {
    display: none;
  }

  .toast {
    bottom: 88px;
  }

  .archive {
    width: 100%;
  }

  .archive-head {
    height: 56px;
    padding: 0 20px;
  }

  .archive-scroll {
    height: calc(100% - 56px);
    padding: 20px 20px 40px;
  }

  .archive h2 {
    font-size: 30px;
  }

  .archive-data {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .archive-data > div:nth-last-child(2) {
    border-bottom: 1px solid rgba(238, 228, 209, 0.055);
  }

  .archive-data > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(238, 228, 209, 0.055);
  }

  .archive-data > div:last-child {
    border-bottom: 0;
  }

  .loader-mark {
    font-size: 68px;
  }

  .loader-info {
    margin-top: 30px;
  }

  .loader-foot {
    font-size: 5px;
  }
}

@media (max-width: 400px) {
  .object-intro h1 {
    font-size: 42px;
  }

  .view-tabs button span {
    font-size: 7px;
  }

  .view-tabs button i {
    display: none;
  }

  .tool-button span {
    display: none;
  }

  .tool-button {
    min-width: 27px;
  }

  .sound-mode button small {
    display: none;
  }

  .sound-mode button {
    padding: 7px;
  }
}

@media (max-height: 680px) and (min-width: 761px) {
  .object-intro {
    top: 46%;
    transform: translateY(-50%);
  }

  .object-lede {
    display: none;
  }

  .object-stats {
    margin: 18px 0 16px;
  }

  .object-intro h1 {
    font-size: 64px;
  }

  .sound-panel {
    bottom: 98px;
  }

  .sound-foot {
    display: none;
  }
}

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