/* ==========================================================================
   金缕玉衣 · 数字文物
   An editorial WebGL object study for the Nanjing Museum jade burial suit.
   ========================================================================== */

:root {
  --ink: #080907;
  --ink-2: #0d0f0c;
  --ink-3: #151914;
  --paper: #e9e1d1;
  --paper-soft: #f1ebdf;
  --paper-dim: #b9b1a3;
  --muted: #8d877b;
  --gold: #c7a86b;
  --gold-bright: #e3c98f;
  --gold-dim: #8e774c;
  --jade: #9eb8a4;
  --red: #a33a2d;
  --red-bright: #c14b38;
  --line: rgba(233, 225, 209, 0.18);
  --line-soft: rgba(233, 225, 209, 0.09);
  --glass: rgba(10, 12, 9, 0.56);
  --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: 28px;
}

*,
*::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;
}

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

button {
  font: inherit;
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 400;
  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;
}

.gallery-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52% 48% at 58% 40%, rgba(61, 76, 63, 0.48) 0%, rgba(25, 32, 26, 0.18) 44%, transparent 72%),
    radial-gradient(40% 34% at 50% 2%, rgba(136, 103, 55, 0.18) 0%, transparent 72%),
    radial-gradient(75% 65% at 47% 58%, #131711 0%, #0a0c09 48%, #050605 100%);
  transition: opacity 0.8s var(--ease);
}

.gallery-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 5, 0.82) 0%, transparent 24%, transparent 76%, rgba(5, 6, 5, 0.66) 100%),
    linear-gradient(180deg, rgba(5, 6, 5, 0.68) 0%, transparent 20%, transparent 76%, rgba(5, 6, 5, 0.74) 100%);
}

.ar-sim-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 46% at 50% 44%, rgba(67, 84, 69, 0.42) 0%, transparent 72%),
    repeating-linear-gradient(90deg, transparent 0, transparent 79px, rgba(199, 168, 107, 0.055) 80px),
    repeating-linear-gradient(0deg, transparent 0, transparent 79px, rgba(199, 168, 107, 0.04) 80px),
    linear-gradient(180deg, #0b0e0b 0%, #070907 55%, #050605 100%);
  transition: opacity 0.7s var(--ease);
}

body.ar-simulated .ar-sim-bg {
  opacity: 1;
}

body.ar-simulated .ar-video {
  opacity: 0;
}

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

body.is-dragging .webgl-wrap {
  cursor: grabbing;
}

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

.stage-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 66% at 55% 49%, transparent 34%, rgba(3, 4, 3, 0.24) 72%, rgba(3, 4, 3, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 5, 4, 0.1) 0%, transparent 26%, transparent 72%, rgba(4, 5, 4, 0.38) 100%);
  transition: opacity 0.8s var(--ease);
}

.stage-grain {
  position: absolute;
  inset: -30%;
  z-index: 34;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(3) infinite;
  mix-blend-mode: soft-light;
}

.stage-scanlines {
  position: absolute;
  inset: 0;
  z-index: 33;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 3px, rgba(230, 217, 189, 0.035) 4px);
  transition: opacity 0.5s ease;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(2%, -1%); }
  66% { transform: translate(-1%, 2%); }
  100% { transform: translate(1%, 1%); }
}

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

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 22px clamp(24px, 3.4vw, 54px);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(6, 7, 6, 0.42) 0%, transparent 100%);
}

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

.brand-seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 246, 228, 0.38);
  background: var(--red);
  color: #f7efe0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.brand:hover .brand-seal {
  background: var(--red-bright);
  transform: rotate(-4deg);
}

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

.brand-type strong {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.brand-type small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.collection-line {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: rgba(233, 225, 209, 0.6);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  white-space: nowrap;
  justify-self: center;
}

.collection-line i {
  color: var(--gold-dim);
  font-style: normal;
}

.live-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(199, 168, 107, 0.1);
  animation: breathe 3.6s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.45; box-shadow: 0 0 0 3px rgba(199, 168, 107, 0.08); }
  50% { opacity: 1; box-shadow: 0 0 0 5px rgba(199, 168, 107, 0.04); }
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-self: end;
  margin-right: 14px;
}

.topnav a,
.topnav button {
  position: relative;
  padding: 6px 0;
  border: 0;
  background: none;
  color: rgba(233, 225, 209, 0.58);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.topnav a::after,
.topnav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: var(--gold);
  transition: right 0.4s 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 {
  right: 0;
}

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

.mobile-archive {
  display: none;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: rgba(233, 225, 209, 0.62);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.mobile-archive:hover {
  color: var(--paper);
}

.ar-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 14px;
  border: 1px solid rgba(199, 168, 107, 0.42);
  border-radius: 999px;
  background: rgba(199, 168, 107, 0.04);
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.ar-button:hover {
  border-color: var(--gold);
  background: rgba(199, 168, 107, 0.12);
}

.ar-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.ar-button-dot {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background 0.3s ease;
}

body.ar-active .ar-button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

body.ar-active .ar-button-dot {
  background: var(--ink);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: transparent;
  color: rgba(233, 225, 209, 0.68);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.icon-button:hover {
  border-color: var(--line);
  background: rgba(233, 225, 209, 0.05);
  color: var(--paper);
}

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

/* --------------------------------------------------------------------------
   Object introduction
   -------------------------------------------------------------------------- */

.object-intro {
  position: absolute;
  top: 46.5%;
  left: clamp(24px, 4.8vw, 74px);
  z-index: 20;
  width: min(326px, 29vw);
  transform: translateY(-51%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(233, 225, 209, 0.5);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

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

.eyebrow i {
  display: inline-block;
  width: 25px;
  height: 1px;
  background: var(--line);
}

.object-intro h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: #ece4d4;
  font-family: var(--serif);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: 0.04em;
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.35);
}

.object-intro h1 span:last-child {
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 214, 192, 0.62);
  text-stroke: 1px rgba(226, 214, 192, 0.62);
}

.object-latin {
  margin: 18px 0 0;
  color: rgba(233, 225, 209, 0.47);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.17em;
}

.object-latin em {
  color: var(--gold);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.object-lede {
  margin: 23px 0 0;
  color: rgba(233, 225, 209, 0.62);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 2.05;
  letter-spacing: 0.08em;
}

.object-stats {
  display: flex;
  gap: clamp(20px, 2.6vw, 36px);
  margin: 28px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-soft);
}

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

.object-stats strong {
  color: var(--paper);
  font-family: var(--latin);
  font-size: 23px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.object-stats span {
  color: var(--muted);
  font-size: 7px;
  line-height: 1.45;
  letter-spacing: 0.12em;
  transform: translateY(1px);
}

.object-stats div:last-child strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0 0;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid rgba(199, 168, 107, 0.38);
  background: none;
  color: var(--gold-bright);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: gap 0.3s var(--ease), border-color 0.3s ease;
}

.text-link:hover {
  gap: 15px;
  border-color: var(--gold);
}

.text-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.object-disclaimer {
  margin: 20px 0 0;
  color: rgba(233, 225, 209, 0.28);
  font-size: 7px;
  letter-spacing: 0.16em;
}

/* --------------------------------------------------------------------------
   Object spec rail
   -------------------------------------------------------------------------- */

.object-spec {
  position: absolute;
  top: 22%;
  right: clamp(26px, 4vw, 62px);
  z-index: 20;
  width: 168px;
  text-align: right;
}

.spec-caption {
  margin: 0 0 12px;
  color: rgba(233, 225, 209, 0.46);
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.spec-caption i {
  color: var(--gold-dim);
  font-style: normal;
}

.object-spec dl {
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.object-spec dl div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.object-spec dt {
  color: rgba(233, 225, 209, 0.42);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.object-spec dd {
  margin: 0;
  color: rgba(233, 225, 209, 0.82);
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.object-spec dd small {
  margin-left: 2px;
  color: rgba(233, 225, 209, 0.38);
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.spec-scale {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 13px 0 0;
  color: rgba(233, 225, 209, 0.36);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.spec-scale span {
  width: 26px;
  height: 1px;
  background: var(--gold-dim);
}

.spec-orbit {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 34px 4px 0 auto;
  border: 1px solid rgba(199, 168, 107, 0.18);
  border-radius: 50%;
}

.spec-orbit::before,
.spec-orbit::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(233, 225, 209, 0.08);
  border-radius: 50%;
}

.spec-orbit::after {
  inset: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px;
  border: 0;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(199, 168, 107, 0.5);
}

.orbit-ring {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 84%, rgba(199, 168, 107, 0.45) 88%, transparent 92%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: orbit-spin 22s linear infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.orbit-axis {
  position: absolute;
  top: -16px;
  left: 50%;
  color: var(--gold-dim);
  font-family: var(--latin);
  font-size: 7px;
  transform: translateX(-50%);
}

.orbit-value {
  position: absolute;
  bottom: 20px;
  left: 50%;
  color: rgba(233, 225, 209, 0.55);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   Hotspots
   -------------------------------------------------------------------------- */

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.hotspot.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hotspot-dot {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(239, 224, 192, 0.94);
  border-radius: 50%;
  background: rgba(8, 9, 7, 0.45);
  box-shadow: 0 0 0 4px rgba(199, 168, 107, 0.06), 0 0 18px rgba(199, 168, 107, 0.22);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease);
}

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

.hotspot-line {
  position: absolute;
  top: 0;
  left: 10px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, rgba(199, 168, 107, 0.52), rgba(199, 168, 107, 0.08));
  transform-origin: 0 50%;
}

.hotspot-card {
  position: absolute;
  top: -17px;
  left: 59px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: max-content;
  padding: 7px 10px 8px;
  border-left: 1px solid rgba(199, 168, 107, 0.46);
  background: linear-gradient(90deg, rgba(10, 12, 9, 0.78), rgba(10, 12, 9, 0.14));
  text-align: left;
  opacity: 0.74;
  transition: opacity 0.25s ease, background 0.25s ease;
}

.hotspot-card em {
  color: var(--gold);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.hotspot-card b {
  color: rgba(241, 233, 218, 0.9);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.hotspot:hover .hotspot-dot {
  background: var(--gold-bright);
  box-shadow: 0 0 0 6px rgba(199, 168, 107, 0.08), 0 0 24px rgba(199, 168, 107, 0.38);
  transform: scale(1.18);
}

.hotspot:hover .hotspot-card {
  opacity: 1;
  background: linear-gradient(90deg, rgba(10, 12, 9, 0.94), rgba(10, 12, 9, 0.35));
}

.hotspot:nth-child(even) .hotspot-line {
  left: auto;
  right: 10px;
  transform: scaleX(-1);
  transform-origin: 100% 50%;
}

.hotspot:nth-child(even) .hotspot-card {
  left: auto;
  right: 59px;
  border-left: 0;
  border-right: 1px solid rgba(199, 168, 107, 0.46);
  background: linear-gradient(270deg, rgba(10, 12, 9, 0.78), rgba(10, 12, 9, 0.14));
  text-align: right;
}

.hotspots.is-off {
  opacity: 0;
  pointer-events: none;
}

.hotspots.is-off .hotspot {
  pointer-events: none;
}

.annotation-toggle {
  position: absolute;
  left: clamp(24px, 4.8vw, 74px);
  bottom: 112px;
  z-index: 22;
}

.annotation-toggle button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: rgba(233, 225, 209, 0.38);
  font-size: 8px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.annotation-toggle button:hover,
.annotation-toggle button[aria-pressed="true"] {
  color: rgba(233, 225, 209, 0.72);
}

.annotation-icon {
  position: relative;
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.annotation-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* --------------------------------------------------------------------------
   Zoom
   -------------------------------------------------------------------------- */

.zoom-rail {
  position: absolute;
  top: auto;
  bottom: 106px;
  right: clamp(18px, 2vw, 30px);
  z-index: 22;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.zoom-rail button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(8, 10, 8, 0.3);
  color: rgba(233, 225, 209, 0.65);
  font-family: var(--latin);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.zoom-rail button:hover {
  border-color: var(--gold-dim);
  background: rgba(199, 168, 107, 0.08);
  color: var(--paper);
}

.zoom-track {
  position: relative;
  width: 1px;
  height: 68px;
  background: var(--line-soft);
}

.zoom-track i {
  position: absolute;
  left: -1px;
  bottom: 0;
  width: 3px;
  height: 38%;
  background: var(--gold-dim);
  transition: height 0.25s ease;
}

.zoom-number {
  color: var(--muted);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.05em;
  writing-mode: vertical-rl;
}

/* --------------------------------------------------------------------------
   Bottom dock
   -------------------------------------------------------------------------- */

.view-dock {
  position: absolute;
  left: clamp(24px, 4.8vw, 74px);
  right: clamp(24px, 3.4vw, 54px);
  bottom: var(--dock-bottom);
  z-index: 25;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  pointer-events: none;
}

.view-dock > * {
  pointer-events: auto;
}

.dock-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 148px;
  padding-bottom: 4px;
  color: rgba(233, 225, 209, 0.34);
  font-size: 7px;
  line-height: 1.6;
  letter-spacing: 0.1em;
}

.drag-glyph {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
}

.drag-glyph::before,
.drag-glyph::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 1px;
  background: rgba(233, 225, 209, 0.44);
}

.drag-glyph::after {
  transform: rotate(90deg);
}

.drag-glyph i {
  width: 3px;
  height: 3px;
  border: 1px solid rgba(233, 225, 209, 0.6);
  border-radius: 50%;
}

.view-tabs {
  display: flex;
  align-items: stretch;
  gap: 1px;
  padding: 4px;
  border: 1px solid rgba(233, 225, 209, 0.13);
  background: rgba(8, 10, 8, 0.58);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px) saturate(0.8);
  -webkit-backdrop-filter: blur(18px) saturate(0.8);
}

.view-tabs button {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 68px;
  padding: 10px 12px 9px;
  border: 0;
  background: transparent;
  color: rgba(233, 225, 209, 0.42);
  cursor: pointer;
  transition: color 0.3s ease, background 0.3s ease;
}

.view-tabs button::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 50%;
  transition: transform 0.4s var(--ease);
}

.view-tabs button:hover {
  color: rgba(233, 225, 209, 0.8);
}

.view-tabs button.is-active {
  color: var(--paper);
  background: rgba(233, 225, 209, 0.035);
}

.view-tabs button.is-active::after {
  transform: scaleX(1);
}

.view-tabs i {
  color: rgba(199, 168, 107, 0.52);
  font-family: var(--latin);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.view-tabs span {
  font-size: 10px;
  letter-spacing: 0.1em;
}

.dock-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 220px;
}

.tool-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 9px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(233, 225, 209, 0.4);
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.tool-button:hover {
  color: var(--paper);
  border-color: var(--line-soft);
  background: rgba(233, 225, 209, 0.03);
}

.tool-button.is-on,
.tool-button[aria-pressed="true"] {
  color: var(--gold-bright);
}

.tool-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stage-footnote {
  position: absolute;
  left: 50%;
  bottom: 7px;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(233, 225, 209, 0.2);
  font-size: 6px;
  letter-spacing: 0.16em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.stage-footnote i {
  width: 16px;
  height: 1px;
  background: rgba(233, 225, 209, 0.14);
}

/* --------------------------------------------------------------------------
   AR mode
   -------------------------------------------------------------------------- */

.ar-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  background: #000;
  transition: opacity 0.7s var(--ease);
}

body.ar-mirror .ar-video {
  transform: scaleX(-1);
}

body.ar-active .ar-video {
  opacity: 1;
}

body.ar-active .stage {
  background: transparent;
}

body.ar-active .gallery-wash {
  opacity: 0;
}

body.ar-active .stage-vignette {
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0.52) 0%, transparent 22%, transparent 72%, rgba(3, 4, 3, 0.52) 100%),
    radial-gradient(ellipse 80% 70% at 50% 50%, transparent 42%, rgba(3, 4, 3, 0.38) 100%);
}

body.ar-active .stage-scanlines {
  opacity: 1;
}

body.ar-active .object-intro,
body.ar-active .object-spec,
body.ar-active .hotspots,
body.ar-active .annotation-toggle,
body.ar-active .zoom-rail,
body.ar-active .view-dock,
body.ar-active .stage-footnote {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ar-hud {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  pointer-events: none;
}

body.ar-active .ar-hud {
  display: block;
}

.ar-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(240, 226, 195, 0.5);
  border-style: solid;
}

.ar-corner--tl {
  top: 108px;
  left: 30px;
  border-width: 1px 0 0 1px;
}

.ar-corner--tr {
  top: 108px;
  right: 30px;
  border-width: 1px 1px 0 0;
}

.ar-corner--bl {
  bottom: 32px;
  left: 30px;
  border-width: 0 0 1px 1px;
}

.ar-corner--br {
  bottom: 32px;
  right: 30px;
  border-width: 0 1px 1px 0;
}

.ar-mode-label {
  position: absolute;
  top: 118px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid rgba(240, 226, 195, 0.22);
  background: rgba(7, 9, 7, 0.42);
  color: rgba(245, 236, 218, 0.86);
  font-size: 8px;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.ar-mode-label i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
}

.ar-mode-label em {
  color: rgba(240, 226, 195, 0.42);
  font-style: normal;
  letter-spacing: 0.08em;
}

.ar-reticle {
  position: absolute;
  left: 50%;
  bottom: 104px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

.ar-reticle i {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(240, 226, 195, 0.4);
  border-radius: 50%;
}

.ar-reticle i::before,
.ar-reticle i::after {
  content: "";
  position: absolute;
  background: rgba(240, 226, 195, 0.45);
}

.ar-reticle i::before {
  top: 13px;
  left: 6px;
  width: 14px;
  height: 1px;
}

.ar-reticle i::after {
  top: 6px;
  left: 13px;
  width: 1px;
  height: 14px;
}

.ar-reticle b {
  color: rgba(240, 226, 195, 0.6);
  font-family: var(--latin);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.ar-exit-hint {
  position: absolute;
  right: 34px;
  bottom: 34px;
  margin: 0;
  color: rgba(240, 226, 195, 0.38);
  font-size: 7px;
  letter-spacing: 0.1em;
}

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

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

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

.archive {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(478px, 100vw);
  background: var(--paper);
  color: #171714;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4);
  transform: translateX(102%);
  transition: transform 0.72s var(--ease);
}

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

.archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  height: 66px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(23, 23, 20, 0.14);
}

.archive-head p {
  margin: 0;
  color: rgba(23, 23, 20, 0.52);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.archive-head p span {
  color: rgba(23, 23, 20, 0.34);
  font-weight: 400;
}

.archive-close {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(23, 23, 20, 0.15);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.4s var(--ease);
}

.archive-close:hover {
  background: rgba(23, 23, 20, 0.06);
  transform: rotate(90deg);
}

.archive-close span {
  position: absolute;
  top: 14px;
  left: 8px;
  width: 12px;
  height: 1px;
  background: #171714;
  transform: rotate(45deg);
}

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

.archive-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 30px 42px;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 23, 20, 0.25) transparent;
}

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

.archive-scroll::-webkit-scrollbar-thumb {
  background: rgba(23, 23, 20, 0.23);
}

.archive-photo {
  margin: 0 -30px 28px;
  background: #10110e;
}

.archive-photo img {
  display: block;
  width: 100%;
  height: 244px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.02);
}

.archive-photo figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 30px;
  background: #11120f;
  color: rgba(233, 225, 209, 0.46);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.archive-photo figcaption span {
  color: var(--gold);
  letter-spacing: 0.14em;
}

.archive-kicker {
  margin: 0 0 7px;
  color: var(--red);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

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

.archive-latin {
  margin: 8px 0 24px;
  color: rgba(23, 23, 20, 0.42);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.archive-data {
  margin: 0;
  border-top: 1px solid rgba(23, 23, 20, 0.17);
}

.archive-data div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 23, 20, 0.1);
}

.archive-data dt {
  color: rgba(23, 23, 20, 0.42);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.archive-data dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.archive-section {
  margin-top: 32px;
}

.archive-section h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.archive-section h3 span {
  color: var(--red);
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.archive-section p {
  margin: 0 0 12px;
  color: rgba(23, 23, 20, 0.68);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.03em;
}

.archive-section p strong {
  color: #171714;
  font-weight: 600;
}

.archive-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 23, 20, 0.14);
}

.archive-ar {
  padding: 11px 16px;
  border: 1px solid #171714;
  background: #171714;
  color: var(--paper);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.archive-ar:hover {
  background: transparent;
  color: #171714;
}

.archive-actions a {
  color: rgba(23, 23, 20, 0.62);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

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

.archive-actions a:hover {
  color: #171714;
}

.archive-source {
  margin: 34px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(23, 23, 20, 0.1);
  color: rgba(23, 23, 20, 0.36);
  font-size: 8px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  overflow: hidden;
  background: #070806;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

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

.loader-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 30% 48%, rgba(49, 63, 51, 0.42) 0%, transparent 70%),
    radial-gradient(32% 40% at 20% 18%, rgba(136, 101, 54, 0.12) 0%, transparent 76%),
    #070806;
}

.loader-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(40px, 10vw, 160px);
  color: rgba(233, 225, 209, 0.075);
  font-family: var(--serif);
  font-size: clamp(130px, 22vw, 330px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0.08em;
  user-select: none;
}

.loader-mark span:last-child {
  color: transparent;
  -webkit-text-stroke: 1px rgba(233, 225, 209, 0.1);
}

.loader-info {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(330px, 72%);
  margin-left: auto;
  margin-right: clamp(34px, 8vw, 140px);
}

.loader-eyebrow {
  margin: 0 0 18px;
  color: rgba(233, 225, 209, 0.34);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.loader-info h2 {
  margin: 0;
  color: rgba(233, 225, 209, 0.88);
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.loader-sub {
  margin: 8px 0 42px;
  color: rgba(233, 225, 209, 0.3);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.loader-track {
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(233, 225, 209, 0.12);
  overflow: hidden;
}

.loader-track span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s linear;
}

.loader-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 11px;
  color: rgba(233, 225, 209, 0.48);
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.loader-meta i {
  color: rgba(233, 225, 209, 0.24);
  font-style: normal;
}

.loader-meta em {
  margin-left: auto;
  color: rgba(199, 168, 107, 0.68);
  font-family: var(--sans);
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.loader-foot {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: 28px;
  z-index: 1;
  margin: 0;
  color: rgba(233, 225, 209, 0.2);
  font-size: 7px;
  letter-spacing: 0.18em;
}

/* --------------------------------------------------------------------------
   Toast and fallbacks
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 104px;
  z-index: 300;
  max-width: min(420px, calc(100vw - 40px));
  padding: 11px 17px;
  border: 1px solid rgba(233, 225, 209, 0.16);
  background: rgba(12, 14, 11, 0.92);
  color: rgba(241, 233, 218, 0.84);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.35s ease, visibility 0.35s, transform 0.35s var(--ease);
  backdrop-filter: blur(12px);
}

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

.webgl-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 40;
  width: min(480px, calc(100vw - 48px));
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 9, 0.92);
  transform: translate(-50%, -50%);
}

.webgl-fallback span {
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.webgl-fallback h2 {
  margin: 13px 0 8px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.webgl-fallback p {
  color: rgba(233, 225, 209, 0.52);
  font-size: 11px;
  line-height: 1.9;
}

.webgl-fallback button {
  margin-top: 8px;
  padding: 10px 16px;
  border: 1px solid var(--gold-dim);
  background: transparent;
  color: var(--gold-bright);
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
}

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

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .collection-line {
    display: none;
  }

  .object-intro {
    width: 290px;
  }

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

  .object-spec {
    width: 148px;
  }

  .view-dock {
    gap: 14px;
  }

  .dock-hint {
    display: none;
  }

  .view-tabs button {
    min-width: 60px;
    padding-left: 9px;
    padding-right: 9px;
  }
}

@media (max-width: 920px) {
  .topbar {
    min-height: 72px;
    padding: 16px 20px;
  }

  .brand-seal {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

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

  .topnav {
    display: none;
  }

  .mobile-archive {
    display: inline-flex;
    margin-right: 2px;
  }

  .object-intro {
    top: 92px;
    left: 22px;
    width: calc(100% - 44px);
    transform: none;
  }

  .object-intro h1 {
    flex-direction: row;
    gap: 10px;
    font-size: 46px;
    line-height: 1;
  }

  .object-intro h1 span:last-child {
    -webkit-text-stroke-width: 0.8px;
  }

  .eyebrow {
    margin-bottom: 10px;
  }

  .object-latin {
    margin-top: 11px;
    font-size: 8px;
  }

  .object-latin em {
    font-size: 12px;
  }

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

  .object-spec {
    display: none;
  }

  .hotspots .hotspot-line,
  .hotspots .hotspot-card {
    display: none;
  }

  .hotspot-dot {
    width: 8px;
    height: 8px;
    top: -4px;
    left: -4px;
  }

  .annotation-toggle,
  .zoom-rail {
    display: none;
  }

  .view-dock {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }

  .view-tabs {
    width: 100%;
    justify-content: space-between;
    background: rgba(8, 10, 8, 0.7);
  }

  .view-tabs button {
    flex: 1;
    min-width: 0;
    justify-content: center;
    gap: 4px;
    padding: 9px 4px 8px;
  }

  .view-tabs button::after {
    left: 8px;
    right: 8px;
  }

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

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

  .dock-tools {
    width: auto;
    justify-content: center;
    gap: 14px;
    padding: 3px 0;
  }

  .tool-button {
    padding: 6px 7px;
  }

  .stage-footnote {
    display: none;
  }

  .ar-corner--tl,
  .ar-corner--tr {
    top: 82px;
  }

  .ar-mode-label {
    top: 88px;
    font-size: 7px;
  }

  .ar-mode-label em {
    display: none;
  }

  .archive {
    width: 100vw;
  }

  .archive-scroll {
    padding: 0 24px 40px;
  }

  .archive-photo {
    margin-left: -24px;
    margin-right: -24px;
  }

  .archive-photo figcaption {
    padding-left: 24px;
    padding-right: 24px;
  }

  .archive-head {
    padding: 0 24px;
  }

  .loader {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 0 32px;
  }

  .loader-mark {
    position: absolute;
    inset: 0;
    justify-content: center;
    padding-left: 0;
    font-size: 38vw;
    opacity: 0.7;
  }

  .loader-info {
    width: min(330px, 100%);
    margin: 0 auto;
  }

  .loader-foot {
    left: 24px;
    bottom: 20px;
    font-size: 6px;
  }

  .toast {
    bottom: 132px;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding: 13px 15px;
    min-height: 64px;
  }

  .brand {
    gap: 9px;
  }

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

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

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

  .ar-button {
    height: 30px;
    padding: 0 10px;
    font-size: 8px;
  }

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

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

  .object-intro {
    top: 78px;
    left: 16px;
    width: calc(100% - 32px);
  }

  .object-intro h1 {
    font-size: 42px;
    gap: 7px;
  }

  .eyebrow {
    font-size: 7px;
  }

  .eyebrow i {
    width: 16px;
  }

  .object-latin {
    display: none;
  }

  .view-tabs button {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 2px 6px;
  }

  .view-tabs i {
    display: none;
  }

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

  .tool-button {
    gap: 4px;
    font-size: 7px;
    padding: 5px 5px;
  }

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

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

  .archive-photo img {
    height: 200px;
  }

  .ar-corner {
    display: none;
  }

  .ar-reticle {
    bottom: 54px;
  }

  .ar-exit-hint {
    right: 16px;
    bottom: 15px;
    font-size: 6px;
  }

  .toast {
    bottom: 122px;
    font-size: 9px;
  }
}

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

  .stage-grain {
    animation: none;
  }
}

/* Embedded mode: the host page supplies the mode bar and AR controls. */
body.is-embed .topbar,
body.is-embed .stage-footnote {
  display: none;
}

body.is-embed .stage-vignette {
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0.28) 0%, transparent 18%, transparent 80%, rgba(3, 4, 3, 0.5) 100%),
    radial-gradient(ellipse 85% 78% at 50% 46%, transparent 40%, rgba(3, 4, 3, 0.5) 100%);
}
