:root {
  color-scheme: dark;
  --bg: #050807;
  --bone: #f2efe8;
  --muted: #98a9a0;
  --emerald: #8ce8be;
  --amber: #f3b562;
  --glass: rgba(7, 13, 11, 0.76);
  --border: rgba(140, 232, 190, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--bone);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

.experience {
  position: relative;
  min-height: 760vh;
  background: var(--bg);
}

.journey-scroll {
  height: 760vh;
}

.experience-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #050807;
}

.webgl-host {
  position: absolute;
  inset: 0;
  z-index: 1;
  outline: none;
}

/* ============================================================================
   ONLY LOGO IN TOP-LEFT CORNER (ALL OTHER SCREEN TEXT REMOVED)
   ============================================================================ */
.brand-only-bar {
  position: absolute;
  top: 22px;
  left: 26px;
  z-index: 12;
  pointer-events: none;
}

.brand-lockup {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(6, 12, 10, 0.52);
  border: 1px solid rgba(140, 232, 190, 0.18);
  backdrop-filter: blur(10px);
  color: var(--bone);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  letter-spacing: 0.14em;
  transition: border-color 180ms ease, background 180ms ease;
}

.brand-lockup:hover {
  border-color: var(--emerald);
  background: rgba(10, 22, 18, 0.75);
}

.brand-lockup svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.brand-second {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-top: 1px;
}

/* ============================================================================
   COMPACT 3D ANATOMICAL HOTSPOT PINS ON THE 4K VIDEO
   ============================================================================ */
.world-labels {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}

.world-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 5px;
  border-radius: 999px;
  border: 1px solid rgba(140, 232, 190, 0.38);
  background: rgba(6, 13, 10, 0.66);
  backdrop-filter: blur(8px);
  color: rgba(242, 239, 232, 0.92);
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.world-pin-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(140, 232, 190, 0.22);
  color: var(--emerald);
  font-size: 9px;
  font-weight: 700;
}

.world-pin:hover,
.world-pin.is-active {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--emerald);
  background: rgba(12, 28, 22, 0.88);
  color: #ffffff;
  z-index: 15;
}

.world-pin.is-active .world-pin-dot {
  background: var(--emerald);
  color: #04120c;
}

/* ============================================================================
   SINGLE COLLAPSIBLE INFO & AUDIO GUIDANCE WINDOW (BOTTOM-RIGHT)
   ============================================================================ */
.single-info-window {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: min(350px, calc(100vw - 36px));
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.58);
  transition: opacity 200ms ease, transform 200ms ease;
}

.single-info-window.is-closed {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
}

/* Re-open pill button shown when the single info window is closed */
.info-open-pill {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 19;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--emerald);
  background: rgba(7, 15, 12, 0.85);
  backdrop-filter: blur(12px);
  color: var(--bone);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.info-open-pill.is-visible {
  display: inline-flex;
}

.info-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.info-top-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-lang-btn {
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(140, 232, 190, 0.35);
  background: rgba(140, 232, 190, 0.1);
  color: var(--emerald);
  font: 600 9.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 150ms ease;
}

.info-lang-btn:hover {
  background: rgba(140, 232, 190, 0.24);
  color: #ffffff;
}

.info-part-badge {
  font: 600 10.5px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", ui-monospace, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald);
}

.single-info-window[dir="rtl"] {
  text-align: right;
}

.single-info-window[dir="rtl"] .info-latin {
  direction: ltr;
  text-align: right;
  unicode-bidi: embed;
}

.single-info-window[dir="rtl"] .audio-guidance-bar {
  direction: ltr;
}

.world-pin[dir="rtl"] {
  direction: rtl;
  padding: 4px 5px 4px 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
}

.info-close-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 232, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

.info-close-btn:hover {
  color: var(--bone);
  border-color: var(--emerald);
}

/* Mini 01..08 step selector pills */
.info-step-dots {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-bottom: 10px;
  direction: ltr;
}

.info-step-btn {
  padding: 4px 0;
  border-radius: 6px;
  border: 1px solid rgba(242, 239, 232, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 600 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
  transition: all 140ms ease;
}

.info-step-btn:hover {
  border-color: rgba(140, 232, 190, 0.45);
  color: var(--bone);
}

.info-step-btn.is-active {
  background: rgba(140, 232, 190, 0.22);
  border-color: var(--emerald);
  color: #ffffff;
}

.info-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--bone);
  line-height: 1.2;
}

.info-latin {
  display: block;
  margin-top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 11.5px;
  color: var(--emerald);
}

.info-desc {
  margin: 7px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(242, 239, 232, 0.84);
}

/* Cut MP3 Audio Guidance Bar + Volume Slider */
.audio-guidance-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(4, 9, 7, 0.65);
  border: 1px solid rgba(140, 232, 190, 0.18);
  margin-bottom: 9px;
}

.audio-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(140, 232, 190, 0.45);
  background: rgba(140, 232, 190, 0.14);
  color: var(--bone);
  font: 600 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.audio-play-btn:hover {
  background: rgba(140, 232, 190, 0.26);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.volume-wrap svg {
  color: var(--emerald);
  flex-shrink: 0;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.2);
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald);
  border: 2px solid #04120c;
  cursor: pointer;
}

.volume-pct {
  font: 500 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  width: 28px;
  text-align: right;
}

/* Compact Utility Actions Row */
.info-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mini-action-btn {
  flex: 1;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(242, 239, 232, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--bone);
  font: 600 9.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.mini-action-btn:hover,
.mini-action-btn.is-active {
  border-color: var(--emerald);
  background: rgba(140, 232, 190, 0.15);
}

/* Loader */
.experience-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(5, 8, 7, 0.86);
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.22em;
  color: var(--emerald);
}

/* ============================================================================
   4K VIDEO & PLATES DRAWER VIEW
   ============================================================================ */
.atlas-view {
  position: relative;
  z-index: 40;
  background: #050908;
  min-height: 100vh;
}

.atlas-wrap {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 auto;
}

.atlas-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 9, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(140, 232, 190, 0.14);
  padding: 14px 0;
}

.atlas-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.atlas-back-btn,
.header-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(140, 232, 190, 0.1);
  color: var(--bone);
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-pill-btn.is-active {
  border-color: var(--emerald);
  background: rgba(140, 232, 190, 0.24);
}

.atlas-section {
  padding: 56px 0;
  border-bottom: 1px solid rgba(242, 239, 232, 0.08);
}

.atlas-eyebrow {
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 10px;
}

.atlas-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
}

.atlas-lede {
  margin: 0 0 28px;
  max-width: 68ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.video-lab-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.video-lab-player {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #030605;
}

.video-lab-player video {
  width: 100%;
  display: block;
}

.video-lab-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(8, 15, 12, 0.92);
  border-top: 1px solid rgba(242, 239, 232, 0.08);
}

.specimen-panel {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(242, 239, 232, 0.12);
  background: rgba(10, 18, 15, 0.78);
}

.Gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 232, 0.1);
  background: rgba(9, 16, 13, 0.78);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.gallery-card-body {
  padding: 16px;
}

.gallery-card-tag {
  font: 500 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
}

.gallery-card-body h3 {
  margin: 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 19px;
}

.gallery-card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .video-lab-grid,
  .Gallery-grid {
    grid-template-columns: 1fr;
  }
}
