

/* ==========================================================================
   AR entry + augmented-reality layer
   ========================================================================== */

.ar-launch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(224, 192, 132, 0.54);
  background:
    linear-gradient(180deg, rgba(224, 192, 132, 0.17), rgba(176, 141, 87, 0.05)),
    rgba(10, 12, 9, 0.44);
  color: var(--bronze-pale);
  font-size: 8px;
  letter-spacing: 0.16em;
  cursor: pointer;
  backdrop-filter: blur(9px);
  box-shadow: inset 0 0 0 1px rgba(224, 192, 132, 0.035);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.ar-launch:hover {
  border-color: rgba(240, 217, 169, 0.92);
  background:
    linear-gradient(180deg, rgba(224, 192, 132, 0.26), rgba(176, 141, 87, 0.09)),
    rgba(10, 12, 9, 0.54);
  color: #fff2d2;
}

.ar-launch-glyph {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(240, 217, 169, 0.88);
  transform: rotate(45deg);
}

.ar-launch-glyph::before,
.ar-launch-glyph::after {
  position: absolute;
  background: rgba(240, 217, 169, 0.58);
  content: "";
}

.ar-launch-glyph::before {
  top: 50%;
  left: 2px;
  width: 6px;
  height: 1px;
}

.ar-launch-glyph::after {
  top: 2px;
  left: 50%;
  width: 1px;
  height: 6px;
}

.ar-launch-glyph i {
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(240, 217, 169, 0.3);
}

.tool-button--ar {
  color: rgba(224, 192, 132, 0.82);
}

.tool-button--ar::before {
  position: absolute;
  width: 3px;
  height: 3px;
  margin-top: -13px;
  margin-left: 18px;
  border-radius: 50%;
  background: var(--bronze-bright);
  box-shadow: 0 0 6px rgba(224, 192, 132, 0.9);
  content: "";
  animation: ar-dot 2.4s ease-in-out infinite;
}

@keyframes ar-dot {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* --------------------------------------------------------------------------
   AR camera / simulated stage
   -------------------------------------------------------------------------- */

.ar-video,
.ar-sim {
  position: fixed;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ar-video {
  z-index: 10;
  object-fit: cover;
  opacity: 0;
  background: #050604;
  transition: opacity 0.7s ease;
}

body.is-ar .ar-video {
  display: block;
}

body.is-ar.is-camera-live .ar-video {
  opacity: 1;
}

.ar-sim {
  z-index: 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(238, 199, 133, 0.19) 0%, rgba(145, 102, 48, 0.065) 32%, transparent 60%),
    radial-gradient(ellipse at 50% 55%, rgba(233, 193, 128, 0.11) 0%, transparent 43%),
    linear-gradient(180deg, #171b15 0%, #0e110d 36%, #1d1c15 48.55%, #594b37 49.2%, #453a2a 60%, #2a251b 78%, #100f0b 100%);
}

.ar-sim::after {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 62vw;
  height: 29vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(246, 208, 145, 0.26) 0%, rgba(165, 120, 60, 0.09) 43%, transparent 73%);
  filter: blur(22px);
  content: "";
  transform: translateX(-50%);
}

body.is-ar .ar-sim {
  display: block;
}

body.is-ar.is-camera-live .ar-sim,
body.is-ar.is-ar-xr .ar-sim,
body.is-ar.is-ar-xr .ar-video {
  display: none;
}

.ar-sim::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 22%, rgba(3, 4, 3, 0.46) 70%, rgba(3, 4, 3, 0.84) 100%),
    linear-gradient(180deg, rgba(5, 6, 4, 0.48) 0%, transparent 17%, transparent 73%, rgba(4, 5, 3, 0.74) 100%);
  content: "";
}

.ar-sim-window {
  position: absolute;
  top: 8%;
  left: 12%;
  width: 38%;
  height: 34%;
  background:
    linear-gradient(113deg, transparent 23%, rgba(231, 196, 137, 0.06) 24%, transparent 25%),
    linear-gradient(74deg, transparent 52%, rgba(231, 196, 137, 0.035) 53%, transparent 54%);
  opacity: 0.9;
  filter: blur(7px);
  transform: skewY(-6deg);
}

.ar-sim-glow {
  position: absolute;
  top: 6%;
  left: 50%;
  width: 55vw;
  height: 48vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 168, 92, 0.1) 0%, transparent 68%);
  filter: blur(22px);
  transform: translateX(-50%);
}

.ar-sim-pool {
  position: absolute;
  top: 48.6%;
  left: 50%;
  width: 72vw;
  height: 27vh;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(243, 202, 134, 0.17) 0%, rgba(137, 98, 51, 0.055) 44%, transparent 74%);
  filter: blur(20px);
  transform: translateX(-50%);
}

.ar-sim-floor {
  position: absolute;
  right: -22%;
  bottom: -34%;
  left: -22%;
  height: 86%;
  background-image:
    linear-gradient(rgba(208, 169, 104, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(208, 169, 104, 0.055) 1px, transparent 1px);
  background-size: 13.5% 17%;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0%, transparent 65%);
  opacity: 0.46;
  transform: perspective(620px) rotateX(59deg);
  transform-origin: top center;
}

/* --------------------------------------------------------------------------
   AR chrome
   -------------------------------------------------------------------------- */

.ar-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  overflow: hidden;
  color: var(--paper);
  font-family: var(--sans);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body.is-ar .ar-overlay {
  display: block;
}

.ar-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 5, 3, 0.76) 0%, rgba(4, 5, 3, 0.2) 17%, transparent 30%, transparent 56%, rgba(4, 5, 3, 0.3) 73%, rgba(4, 5, 3, 0.86) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(3, 4, 3, 0.44) 100%);
}

.ar-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: calc(20px + env(safe-area-inset-top)) 24px 0;
  pointer-events: none;
}

.ar-exit,
.ar-help {
  pointer-events: auto;
}

.ar-exit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(238, 228, 209, 0.24);
  background: rgba(6, 8, 5, 0.44);
  color: rgba(246, 237, 218, 0.76);
  font-size: 9px;
  letter-spacing: 0.14em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.ar-exit:hover {
  border-color: rgba(224, 192, 132, 0.75);
  color: var(--paper);
}

.ar-exit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.ar-title {
  position: absolute;
  top: calc(22px + env(safe-area-inset-top));
  left: 50%;
  text-align: center;
  transform: translateX(-50%);
}

.ar-title p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 4px;
  color: rgba(238, 228, 209, 0.42);
  font-family: var(--latin);
  font-size: 6px;
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.ar-title p i {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bronze-bright);
  box-shadow: 0 0 7px rgba(224, 192, 132, 0.9);
  animation: ar-dot 2.2s ease-in-out infinite;
}

.ar-title p em {
  padding: 2px 6px;
  border: 1px solid rgba(224, 192, 132, 0.28);
  color: rgba(224, 192, 132, 0.74);
  font-family: var(--sans);
  font-size: 6px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.ar-title h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
}

.ar-help {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(238, 228, 209, 0.24);
  border-radius: 50%;
  background: rgba(6, 8, 5, 0.44);
  color: rgba(246, 237, 218, 0.68);
  font-family: var(--latin);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.ar-help:hover {
  border-color: rgba(224, 192, 132, 0.75);
  color: var(--paper);
}

/* Centre placement guide */

.ar-guide {
  position: absolute;
  top: 51%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.ar-guide-reticle {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(224, 192, 132, 0.06);
  animation: ar-breathe 2.8s ease-in-out infinite;
}

.ar-guide-reticle::before,
.ar-guide-reticle::after {
  position: absolute;
  content: "";
}

.ar-guide-reticle::before {
  inset: 23px;
  border: 1px solid rgba(224, 192, 132, 0.44);
  border-radius: 50%;
}

.ar-guide-reticle::after {
  top: 50%;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--bronze-pale);
  box-shadow: 0 0 12px rgba(240, 217, 169, 0.95);
  transform: translate(-50%, -50%);
}

.ar-guide-reticle i {
  position: absolute;
  width: 17px;
  height: 17px;
  border-color: rgba(240, 217, 169, 0.8);
  border-style: solid;
}

.ar-guide-reticle i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.ar-guide-reticle i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.ar-guide-reticle i:nth-child(3) { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.ar-guide-reticle i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }

.ar-guide p {
  margin: 0;
  padding: 7px 14px;
  border: 1px solid rgba(238, 228, 209, 0.12);
  background: rgba(6, 8, 5, 0.5);
  color: rgba(246, 237, 218, 0.86);
  font-size: 10px;
  letter-spacing: 0.13em;
  line-height: 1.7;
  backdrop-filter: blur(12px);
}

.ar-guide small {
  color: rgba(238, 228, 209, 0.4);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.ar-guide.is-off {
  opacity: 0;
  transform: translate(-50%, -46%);
}

@keyframes ar-breathe {
  0%, 100% { transform: scale(0.97); opacity: 0.74; }
  50% { transform: scale(1.035); opacity: 1; }
}

body.is-ar-placed .ar-guide {
  opacity: 0;
  transform: translate(-50%, -46%);
}

body.is-ar-placed .ar-guide-reticle {
  animation-play-state: paused;
}

/* Mode banner */

.ar-mode-banner {
  position: absolute;
  top: calc(78px + env(safe-area-inset-top));
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(238, 228, 209, 0.1);
  background: rgba(6, 8, 5, 0.32);
  color: rgba(238, 228, 209, 0.42);
  font-size: 7px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(9px);
}

.ar-mode-banner i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--patina-bright);
  box-shadow: 0 0 6px rgba(167, 193, 178, 0.85);
}

.ar-mode-banner.is-sim i {
  background: var(--bronze-bright);
  box-shadow: 0 0 6px rgba(224, 192, 132, 0.8);
}

/* --------------------------------------------------------------------------
   AR console and shutter
   -------------------------------------------------------------------------- */

.ar-console {
  position: absolute;
  right: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(760px, calc(100% - 48px));
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(238, 228, 209, 0.16);
  background: rgba(6, 8, 5, 0.63);
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

body.is-ar-placed .ar-console {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, 0);
}

.ar-console-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 118px;
  padding-right: 18px;
  border-right: 1px solid rgba(238, 228, 209, 0.12);
}

.ar-console-label span {
  color: rgba(224, 192, 132, 0.66);
  font-size: 7px;
  letter-spacing: 0.14em;
}

.ar-console-label b {
  color: rgba(246, 237, 218, 0.9);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.ar-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 2px;
}

.ar-tools button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 50px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: rgba(238, 228, 209, 0.48);
  font-size: 8px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.ar-tools button:hover,
.ar-tools button:active {
  background: rgba(224, 192, 132, 0.08);
  color: var(--bronze-pale);
}

.ar-tools button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ar-tools button span {
  white-space: nowrap;
}

.ar-shutter {
  position: absolute;
  right: 32px;
  bottom: calc(126px + env(safe-area-inset-bottom));
  z-index: 5;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(246, 237, 218, 0.72);
  font-size: 7px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

body.is-ar-placed.is-ar-camera .ar-shutter {
  display: flex;
}

.ar-shutter-glyph {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(246, 237, 218, 0.74);
  border-radius: 50%;
  background: rgba(6, 8, 5, 0.28);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.ar-shutter-glyph::before {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(246, 237, 218, 0.92);
  content: "";
  transition: transform 0.2s var(--ease);
}

.ar-shutter-glyph i {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 10px;
  height: 4px;
  border: 1px solid rgba(20, 19, 15, 0.55);
  border-bottom: 0;
  transform: translateX(-50%);
}

.ar-shutter:hover .ar-shutter-glyph {
  border-color: #fff4db;
}

.ar-shutter:active .ar-shutter-glyph::before {
  transform: scale(0.86);
}

/* --------------------------------------------------------------------------
   Help sheet and toast
   -------------------------------------------------------------------------- */

.ar-help-sheet {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 12;
  display: none;
  width: min(430px, calc(100% - 36px));
  max-height: calc(100% - 36px);
  padding: 34px 34px 26px;
  overflow-y: auto;
  border: 1px solid rgba(224, 192, 132, 0.3);
  background:
    linear-gradient(180deg, rgba(22, 24, 18, 0.94), rgba(8, 10, 7, 0.96)),
    rgba(8, 10, 7, 0.94);
  opacity: 0;
  transform: translate(-50%, -47%);
  backdrop-filter: blur(24px);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.66);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.ar-help-sheet.is-open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.ar-help-sheet::before {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(238, 228, 209, 0.055);
  content: "";
  pointer-events: none;
}

.ar-help-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  padding: 5px;
  border: 0;
  background: transparent;
  color: rgba(238, 228, 209, 0.46);
  font-size: 20px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.ar-help-eyebrow {
  margin: 0 0 18px;
  color: rgba(224, 192, 132, 0.68);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.22em;
}

.ar-help-eyebrow i {
  color: rgba(238, 228, 209, 0.32);
  font-family: var(--sans);
  font-style: normal;
  letter-spacing: 0.1em;
}

.ar-help-sheet h3 {
  margin: 0 0 22px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.ar-help-sheet ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.ar-help-sheet li {
  display: flex;
  gap: 13px;
  padding: 11px 0;
  border-top: 1px solid rgba(238, 228, 209, 0.075);
}

.ar-help-sheet li:last-child {
  border-bottom: 1px solid rgba(238, 228, 209, 0.075);
}

.ar-help-sheet li > span {
  padding-top: 2px;
  color: rgba(224, 192, 132, 0.64);
  font-family: var(--latin);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.ar-help-sheet li p {
  margin: 0;
  color: rgba(238, 228, 209, 0.58);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.85;
}

.ar-help-sheet li b {
  display: block;
  margin-bottom: 1px;
  color: rgba(246, 237, 218, 0.92);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.ar-help-note {
  margin: 0 0 22px;
  color: rgba(238, 228, 209, 0.33);
  font-size: 8px;
  letter-spacing: 0.03em;
  line-height: 1.9;
}

.ar-help-start {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(224, 192, 132, 0.5);
  background: rgba(224, 192, 132, 0.1);
  color: var(--bronze-pale);
  font-size: 9px;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.ar-help-start:hover {
  border-color: rgba(240, 217, 169, 0.9);
  background: rgba(224, 192, 132, 0.17);
}

.ar-toast {
  position: absolute;
  bottom: calc(154px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 15;
  max-width: calc(100% - 40px);
  padding: 8px 15px;
  border: 1px solid rgba(224, 192, 132, 0.3);
  background: rgba(7, 9, 6, 0.82);
  color: rgba(246, 237, 218, 0.88);
  font-size: 9px;
  letter-spacing: 0.1em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  backdrop-filter: blur(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

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

/* --------------------------------------------------------------------------
   Normal page hidden while AR is active
   -------------------------------------------------------------------------- */

body.is-ar {
  background: #050604;
}

body.is-ar .stage {
  z-index: 20;
  background: transparent;
}

body.is-ar .atmosphere,
body.is-ar .stage-vignette,
body.is-ar .stage-grain,
body.is-ar .stage-scanlines,
body.is-ar .topbar,
body.is-ar .object-intro,
body.is-ar .object-spec,
body.is-ar .pitch-label-layer,
body.is-ar .structure-labels,
body.is-ar .study-caption,
body.is-ar .hover-card,
body.is-ar .sound-panel,
body.is-ar .view-dock,
body.is-ar .stage-footnote,
body.is-ar .archive,
body.is-ar .archive-scrim,
body.is-ar .toast {
  display: none !important;
}

body.is-ar .webgl-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
}

body.is-ar .webgl-wrap canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 760px) {
  .ar-launch {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .ar-launch-label {
    display: none;
  }

  .ar-launch-glyph {
    width: 11px;
    height: 11px;
  }

  .ar-title {
    top: calc(19px + env(safe-area-inset-top));
  }

  .ar-title p {
    font-size: 5px;
    letter-spacing: 0.17em;
  }

  .ar-title h2 {
    font-size: 19px;
    letter-spacing: 0.16em;
  }

  .ar-head {
    padding: calc(15px + env(safe-area-inset-top)) 14px 0;
  }

  .ar-exit {
    height: 34px;
    padding: 0 10px 0 8px;
  }

  .ar-exit span {
    display: none;
  }

  .ar-help {
    width: 34px;
    height: 34px;
  }

  .ar-guide {
    top: 50%;
  }

  .ar-guide p {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .ar-guide small {
    font-size: 7px;
  }

  .ar-console {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    padding: 10px 6px 9px;
    transform: translate(0, 18px);
  }

  body.is-ar-placed .ar-console {
    transform: translate(0, 0);
  }

  .ar-console-label {
    display: none;
  }

  .ar-tools {
    gap: 0;
  }

  .ar-tools button {
    flex: 1;
    min-width: 0;
    padding: 4px 2px;
    font-size: 7px;
  }

  .ar-tools button svg {
    width: 17px;
    height: 17px;
  }

  .ar-shutter {
    right: 20px;
    bottom: calc(103px + env(safe-area-inset-bottom));
  }

  .ar-shutter-glyph {
    width: 44px;
    height: 44px;
  }

  .ar-shutter-glyph::before {
    width: 30px;
    height: 30px;
  }

  .ar-shutter em {
    display: none;
  }

  .ar-toast {
    bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .ar-help-sheet {
    top: 50%;
    width: calc(100% - 28px);
    padding: 28px 22px 22px;
  }

  .ar-help-sheet h3 {
    font-size: 24px;
  }

  .ar-help-sheet li p {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .ar-tools button span {
    font-size: 6px;
  }

  .ar-title h2 {
    font-size: 17px;
  }
}

@media (max-height: 680px) {
  .ar-console {
    bottom: 10px;
  }

  .ar-guide-reticle {
    width: 70px;
    height: 70px;
  }

  .ar-guide {
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   Embedded modes: gallery preview, detail stage, full-screen 3D
   -------------------------------------------------------------------------- */

html.is-embed .topbar,
html.is-embed .object-intro,
html.is-embed .object-spec,
html.is-embed .stage-footnote,
html.is-embed .skip-link,
html.is-embed .archive,
html.is-embed .archive-scrim,
html.is-embed .loader {
  display: none !important;
}

html.is-preview .sound-panel,
html.is-preview .view-dock,
html.is-preview .pitch-label-layer,
html.is-preview .structure-labels,
html.is-preview .study-caption,
html.is-preview .hover-card,
html.is-preview .toast,
html.is-detail .sound-panel,
html.is-detail .view-dock,
html.is-detail .pitch-label-layer,
html.is-detail .structure-labels,
html.is-detail .study-caption,
html.is-detail .hover-card,
html.is-detail .toast {
  display: none !important;
}

html.is-preview body,
html.is-detail body {
  background: #080907;
}

html.is-preview .stage,
html.is-detail .stage {
  background: #080907;
}

html.is-embed .sound-panel,
html.is-embed .ar-head {
  display: none !important;
}

html.is-embed .ar-mode-banner {
  top: calc(70px + env(safe-area-inset-top));
}

html.is-embed .view-dock {
  bottom: 18px;
}

@media (max-width: 760px) {
  html.is-embed .view-dock {
    bottom: 10px;
  }
}

.archive-model-note {
  margin: 26px 0 30px;
  padding: 18px 18px 17px;
  border: 1px solid rgba(224, 192, 132, 0.18);
  background:
    linear-gradient(135deg, rgba(224, 192, 132, 0.075), transparent 58%),
    rgba(238, 228, 209, 0.025);
}

.archive-model-note span {
  display: block;
  margin-bottom: 8px;
  color: rgba(224, 192, 132, 0.68);
  font-family: var(--latin);
  font-size: 7px;
  letter-spacing: 0.2em;
}

.archive-model-note p {
  margin: 0;
  color: rgba(238, 228, 209, 0.52);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}
