@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: Urbanist;
  src: url("fonts/urbanist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
:root {
  color-scheme: dark;
  background: #1a1a1a;
  font-family: Urbanist, sans-serif;
  color: #fff;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  background: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  color: inherit;
}
.scroll-rail {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  pointer-events: none;
  opacity: 0;
}
.scroll-rail::-webkit-scrollbar {
  display: none;
}
#scroll-content {
  width: 1px;
  pointer-events: none;
}
#experience {
  position: fixed;
  inset: 0;
  outline: none;
  overflow: hidden; /* fallback for browsers without overflow: clip */
  overflow: clip;
  touch-action: pinch-zoom;
  user-select: none;
  -webkit-user-select: none;
}
.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1440px;
  height: 1024px;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) scale(var(--scene-scale, 1));
  overflow: hidden; /* fallback for browsers without overflow: clip */
  overflow: clip;
  background: #282828;
  isolation: isolate;
}
.layer {
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  overflow-anchor: none;
}
.layer.is-hotspot {
  pointer-events: auto;
  cursor: pointer;
}
.layer:focus-visible {
  outline: 3px solid #ffeec8;
  outline-offset: 7px;
}
.layer.is-hotspot::after {
  content: "";
  position: absolute;
  inset: -8px;
  pointer-events: auto;
}
.layer[aria-hidden="true"] {
  pointer-events: none !important;
}
.paint {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.paint > img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
/* Vector images fill the size set on their parent layer. */
.vector {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.effects {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}
.text-content {
  position: relative;
  margin: 0;
  padding: 0;
  white-space: pre;
  pointer-events: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  color: inherit;
}
.text-line {
  display: block;
  white-space: pre;
  line-height: inherit;
  font: inherit;
}
.text-content.wrap {
  white-space: pre-wrap;
}
/* ---------- Persistent tour navigation (see nav-bar.js) ---------- */
.tour-nav {
  position: absolute;
  z-index: 50;
  margin: 0;
  padding: 0;
  overflow: hidden; /* fallback for browsers without overflow: clip */
  overflow: clip;
  opacity: 0;
  pointer-events: auto;
  isolation: isolate;
}
.tour-nav[inert] {
  pointer-events: none;
}
/* Figma's inner stroke sits above the content. */
.tour-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #f5f5f5;
  pointer-events: none;
}
.tour-nav__item {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Comfortable hit area without changing the layout. */
.tour-nav__item::before {
  content: "";
  position: absolute;
  inset: -14px -8px;
}
.tour-nav__item:not([aria-current]):hover {
  opacity: 0.75;
}
.tour-nav__item:focus-visible {
  outline: 3px solid #ffeec8;
  outline-offset: 6px;
  border-radius: 4px;
}
.tour-nav__pin {
  position: absolute;
  pointer-events: none;
}
.tour-nav__pin > img {
  position: absolute;
  display: block;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #1a1a1a;
  gap: 18px;
}
.loader img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.loader[hidden] {
  display: none;
}
.loading-track {
  width: 120px;
  height: 2px;
  background: #ffffff24;
  overflow: hidden;
}
#loading-progress {
  height: 100%;
  width: 100%;
  background: #ffeec8;
  transform: scaleX(0);
  transform-origin: left center;
}
#loading-message {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #cec6b9;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.keyboard-controls {
  position: fixed;
  z-index: 100;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
}
.keyboard-controls:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.keyboard-controls button {
  border: 1px solid #fff6;
  border-radius: 6px;
  padding: 9px 15px;
  background: #222;
  white-space: nowrap;
}
.keyboard-controls button:focus-visible {
  outline: 2px solid #ffeec8;
  outline-offset: 3px;
}
.keyboard-controls button[aria-disabled="true"] {
  opacity: 0.4;
}
.fallback {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #1a1a1a;
  display: grid;
  align-content: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.fallback h1 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 500;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
@media (max-width: 600px) {
  .keyboard-controls {
    gap: 5px;
  }
  .keyboard-controls button {
    font-size: 12px;
    padding: 10px 9px;
  }
}
