/* =========================================================
   LUMEN — The Pavilion, interactive 3D venue
   ========================================================= */

.experience-page {
  height: 100svh;
  overflow: hidden;
  background: #050706;
}

.experience-page::after {
  opacity: 0.022;
}

#sceneContainer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 55% 45%, rgba(35, 58, 42, 0.28), transparent 55%),
    #050706;
}

#sceneContainer canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
  touch-action: none;
}

#sceneContainer canvas:active {
  cursor: grabbing;
}

.exp-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 38%, rgba(2, 3, 2, 0.32) 100%),
    linear-gradient(180deg, rgba(4, 6, 4, 0.42), transparent 20%, transparent 74%, rgba(3, 5, 3, 0.6));
}

.exp-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
  padding: 0 30px;
  pointer-events: none;
}

.exp-header > * {
  pointer-events: auto;
}

.exp-header .brand {
  font-size: 14px;
  letter-spacing: 0.17em;
}

.exp-header-center {
  position: absolute;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
  color: #80877b;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.exp-header-center::before,
.exp-header-center::after {
  content: "";
  width: 18px;
  height: 1px;
  background: rgba(242, 244, 236, 0.18);
}

.exp-header-center span {
  color: var(--lime);
}

.exp-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exp-header-link {
  color: #8a9185;
  font-size: 10px;
  transition: color 0.2s;
}

.exp-header-link:hover {
  color: var(--ink);
}

.exp-header .btn-sm {
  height: 37px;
  padding: 0 15px;
  font-size: 10px;
}

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

.exp-intro {
  position: fixed;
  z-index: 10;
  top: 50%;
  left: 4.8vw;
  width: min(580px, 47vw);
  transform: translateY(-48%);
  pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.exp-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35% -30% -35% -38%;
  background: radial-gradient(ellipse at 42% 50%, rgba(4, 7, 5, 0.74), transparent 67%);
  filter: blur(14px);
}

.exp-intro.is-hidden {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-45%) scale(0.98);
  pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), visibility 0s 0.8s;
}

.exp-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: #92998c;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.exp-eyebrow .live-dot {
  width: 5px;
  height: 5px;
}

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

.exp-intro h1 {
  color: #f3f5ed;
  font-size: clamp(4.2rem, 7.4vw, 8.2rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.08em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}

.exp-intro h1 em {
  color: var(--lime);
  font-size: 1.04em;
}

.exp-intro p {
  max-width: 390px;
  margin-top: 25px;
  color: #a5ac9f;
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.exp-intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  pointer-events: auto;
}

.exp-intro-actions .btn {
  height: 50px;
  font-size: 12px;
}

.exp-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #797f73;
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.exp-hint svg {
  width: 14px;
  height: 14px;
  color: #878e81;
}

.exp-intro-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  color: #7d8478;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.exp-intro-meta .avatar-stack .avatar {
  width: 24px;
  height: 24px;
  font-size: 6px;
  border-color: #080b08;
}

.exp-intro-meta strong {
  color: #b1b7aa;
  font-weight: 500;
}

.exp-scroll-note {
  position: fixed;
  z-index: 7;
  left: 30px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5e6459;
  font-size: 8px;
  letter-spacing: 0.05em;
  pointer-events: none;
  transition: opacity 0.4s;
}

.exp-scroll-note svg {
  width: 12px;
  height: 12px;
  animation: dragHint 2.5s ease-in-out infinite;
}

@keyframes dragHint {
  0%,
  100% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(3px);
  }
}

/* ---------- experience UI ---------- */

.exp-ui {
  position: fixed;
  inset: 0;
  z-index: 11;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s var(--ease);
}

.exp-ui.is-visible {
  opacity: 1;
}

/* zone panel */

.zone-panel {
  position: absolute;
  top: 106px;
  right: 30px;
  width: 340px;
  padding: 24px;
  border: 1px solid rgba(242, 244, 236, 0.14);
  border-radius: 18px;
  background: rgba(8, 11, 8, 0.72);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.36);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.zone-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.zone-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #7e8578;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}

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

.zone-eyebrow i {
  width: 14px;
  height: 1px;
  background: rgba(242, 244, 236, 0.2);
}

.zone-panel h2 {
  color: #f1f3eb;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.zone-panel p {
  margin-top: 12px;
  color: #9aa195;
  font-size: 12px;
  line-height: 1.6;
}

.zone-stats {
  display: flex;
  gap: 26px;
  margin-top: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.zone-stat span {
  display: block;
  color: #6a7064;
  font-size: 7.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.zone-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-dim);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.zone-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--lime);
  color: #090c06;
  font-size: 11px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.zone-action:hover {
  background: #e5ff7c;
  transform: translateY(-1px);
}

.zone-action svg {
  width: 12px;
  height: 12px;
}

/* hotspots */

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

.hotspot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.3s;
  will-change: transform;
}

.hotspot.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hotspot-dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1px solid rgba(216, 255, 66, 0.55);
  border-radius: 50%;
  background: rgba(9, 13, 8, 0.55);
  box-shadow: 0 0 20px rgba(216, 255, 66, 0.22);
  backdrop-filter: blur(5px);
}

.hotspot-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(216, 255, 66, 0.24);
  border-radius: 50%;
  animation: hotspotPulse 2.8s ease-out infinite;
}

.hotspot-dot i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 6px rgba(216, 255, 66, 0.8);
}

@keyframes hotspotPulse {
  0% {
    opacity: 0.8;
    transform: scale(0.65);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

.hotspot-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(242, 244, 236, 0.14);
  border-radius: 7px;
  background: rgba(7, 10, 7, 0.74);
  color: #c2c8ba;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.hotspot-label b {
  color: #7a8074;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 7.5px;
  font-weight: 400;
}

.hotspot:hover .hotspot-label,
.hotspot.is-active .hotspot-label {
  border-color: rgba(216, 255, 66, 0.34);
  background: rgba(14, 19, 12, 0.86);
  color: var(--lime);
}

.hotspot:hover .hotspot-label b,
.hotspot.is-active .hotspot-label b {
  color: var(--lime);
}

.hotspot.is-active .hotspot-dot {
  background: var(--lime);
}

.hotspot.is-active .hotspot-dot i {
  background: #080b06;
  box-shadow: none;
}

/* dock */

.exp-dock {
  position: fixed;
  z-index: 15;
  bottom: 24px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100vw - 40px);
  padding: 7px;
  border: 1px solid rgba(242, 244, 236, 0.14);
  border-radius: 100px;
  background: rgba(8, 11, 8, 0.72);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  transform: translateX(-50%);
  pointer-events: auto;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
}

.view-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
}

.view-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 100px;
  background: transparent;
  color: #8e9588;
  font-size: 10px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.view-btn:hover {
  color: var(--ink);
}

.view-btn.is-active {
  background: rgba(216, 255, 66, 0.11);
  color: var(--lime);
}

.dock-divider {
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: rgba(242, 244, 236, 0.14);
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px;
  border-radius: 100px;
  background: transparent;
  color: #7f8679;
  font-size: 9.5px;
  transition: color 0.2s, background 0.2s;
}

.dock-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.dock-btn[aria-pressed="true"] {
  color: var(--lime);
}

.dock-btn svg {
  width: 15px;
  height: 15px;
}

.dock-btn.icon-only {
  width: 40px;
  padding: 0;
  justify-content: center;
}

.dock-color {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 13px;
  border-radius: 100px;
  color: #8e9588;
  font-size: 9.5px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.dock-color:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
.dock-color input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}
.dock-color-swatch {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: #d8ff42;
  border: 1px solid rgba(242, 244, 236, 0.28);
  box-shadow: 0 0 0 2px rgba(216, 255, 66, 0.12);
}
.dock-color-label {
  pointer-events: none;
}

.exp-live-chip {
  position: fixed;
  z-index: 14;
  top: 102px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(216, 255, 66, 0.22);
  border-radius: 30px;
  background: rgba(7, 10, 7, 0.62);
  color: var(--lime);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
  backdrop-filter: blur(10px);
}

.exp-ui.is-visible .exp-live-chip {
  opacity: 1;
}

.exp-live-chip .live-dot {
  width: 4px;
  height: 4px;
}

/* toast is shared, but keep it above the scene */

.experience-page .toast {
  z-index: 100;
  top: 96px;
  bottom: auto;
  transform: translate(-50%, -10px);
}

.experience-page .toast.is-visible {
  transform: translate(-50%, 0);
}

/* loader */

.exp-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #050706;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

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

.loader-mark {
  position: relative;
  width: 58px;
  height: 58px;
}

.loader-mark svg {
  width: 100%;
  height: 100%;
  animation: loaderSpin 6s linear infinite;
}

.loader-mark::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(216, 255, 66, 0.5);
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.loader-copy {
  text-align: center;
}

.loader-copy span {
  display: block;
  color: var(--lime);
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.loader-copy strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.loader-bar {
  width: 150px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.loader-bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--lime);
  animation: loaderBar 1.4s var(--ease) infinite;
}

@keyframes loaderBar {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(360%);
  }
}

.exp-fallback {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  place-items: center;
  padding: 30px;
  background: #050706;
}

.exp-fallback.is-visible {
  display: grid;
}

.exp-fallback div {
  max-width: 420px;
  text-align: center;
}

.exp-fallback h2 {
  font-size: 2.5rem;
  letter-spacing: -0.05em;
}

.exp-fallback p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .exp-header {
    height: 66px;
    padding: 0 18px;
  }
  .exp-header-center {
    display: none;
  }
  .exp-header .brand {
    font-size: 12px;
  }
  .exp-header .brand-mark {
    width: 25px;
    height: 25px;
  }
  .exp-header-link {
    display: none;
  }
  .exp-intro {
    left: 22px;
    width: min(520px, 76vw);
  }
  .exp-intro h1 {
    font-size: clamp(3.8rem, 10vw, 6rem);
  }
  .exp-intro p {
    font-size: 12.5px;
  }
  .zone-panel {
    top: auto;
    right: 16px;
    bottom: 84px;
    left: 16px;
    width: auto;
    padding: 15px 16px;
    border-radius: 12px;
  }
  .zone-panel p {
    display: none;
  }
  .zone-panel h2 {
    font-size: 22px;
  }
  .zone-stats {
    margin-top: 10px;
    padding: 9px 0;
  }
  .zone-action {
    height: 35px;
    margin-top: 10px;
  }
  .exp-dock {
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
  .exp-live-chip {
    top: 78px;
    left: 18px;
  }
  .exp-scroll-note {
    display: none;
  }
}

@media (max-width: 640px) {
  .exp-header {
    padding: 0 14px;
  }
  .exp-header .btn-sm {
    height: 32px;
    padding: 0 11px;
    font-size: 9px;
  }
  .exp-intro {
    top: 44%;
    left: 20px;
    width: calc(100vw - 40px);
    transform: translateY(-50%);
  }
  .exp-intro::before {
    inset: -22% -12%;
    background: radial-gradient(ellipse at 42% 48%, rgba(3, 6, 4, 0.9), rgba(3, 6, 4, 0.62) 52%, rgba(3, 6, 4, 0) 78%);
    filter: blur(18px);
  }
  .exp-eyebrow {
    margin-bottom: 19px;
    font-size: 7.2px;
  }
  .exp-intro h1 {
    font-size: clamp(3.4rem, 16vw, 5rem);
    line-height: 0.85;
  }
  .exp-intro p {
    max-width: 330px;
    margin-top: 19px;
    font-size: 12px;
    line-height: 1.55;
  }
  .exp-intro-actions {
    gap: 12px;
    margin-top: 23px;
  }
  .exp-intro-actions .btn {
    height: 44px;
    padding: 0 16px;
    font-size: 10.5px;
  }
  .exp-hint {
    display: none;
  }
  .exp-intro-meta {
    margin-top: 25px;
    font-size: 7.5px;
  }
  .exp-live-chip {
    top: 72px;
    left: 14px;
  }
  .zone-panel {
    bottom: 76px;
    padding: 13px 14px;
  }
  .zone-stats {
    gap: 18px;
  }
  .zone-stat strong {
    font-size: 11px;
  }
  .zone-action {
    height: 33px;
    font-size: 8.5px;
  }
  .dock-btn span,
  .dock-color-label {
    display: none;
  }
  .dock-btn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .dock-color {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .exp-dock {
    max-width: calc(100vw - 20px);
    padding: 5px;
    gap: 3px;
  }
  .view-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 8.5px;
  }
  .dock-divider {
    margin: 0 2px;
  }
  .hotspot-label {
    display: none;
  }
  .hotspot {
    gap: 0;
  }
  .hotspot-dot {
    width: 14px;
    height: 14px;
  }
}

@media (max-height: 680px) and (min-width: 641px) {
  .exp-intro {
    top: 50%;
  }
  .exp-intro h1 {
    font-size: clamp(3.5rem, 6vw, 6rem);
  }
  .exp-intro p {
    margin-top: 17px;
    font-size: 12px;
  }
  .exp-intro-actions {
    margin-top: 20px;
  }
  .exp-intro-meta {
    margin-top: 20px;
  }
  .zone-panel {
    top: 88px;
    padding: 15px;
  }
  .zone-stats {
    margin-top: 10px;
    padding: 9px 0;
  }
}
