:root {
  --ink: #171411;
  --bone: #f1ebe1;
  --sun: #f3c84b;
  --glass: rgba(23, 20, 17, .68);
  --line: rgba(241, 235, 225, .22);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--bone);
  font-family: "Helvetica Neue", Helvetica, sans-serif;
}

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

#panorama { position: fixed; inset: 0; z-index: 0; }

.pnlm-container { background: var(--ink); }
.pnlm-load-box,
.pnlm-about-msg { display: none !important; }
.pnlm-render-container { cursor: grab; }
.pnlm-render-container:active { cursor: grabbing; }

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 10, 8, .62) 0, transparent 26%),
    linear-gradient(0deg, rgba(12, 10, 8, .58) 0, transparent 24%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 30px;
  background: var(--ink);
  transition: opacity .55s ease, visibility .55s ease;
}

.tour-ready .loader { opacity: 0; visibility: hidden; }
.loader[hidden] { display: none; }

.loader__mark {
  font: 400 clamp(2.9rem, 9vw, 6.4rem)/.85 Georgia, serif;
  letter-spacing: -.07em;
}

.loader__mark span,
.brand span { color: var(--sun); }

.loader__line {
  width: min(280px, 70vw);
  height: 2px;
  overflow: hidden;
  background: rgba(241, 235, 225, .13);
}

.loader__line i {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--sun);
  animation: loading 1.15s ease-in-out infinite alternate;
}

.loader p {
  margin: 0;
  color: rgba(241, 235, 225, .58);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@keyframes loading {
  from { transform: translateX(-104%); }
  to { transform: translateX(228%); }
}

.topbar {
  position: fixed;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: max(18px, env(safe-area-inset-top)) 24px 18px;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.brand {
  justify-self: start;
  color: var(--bone);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.05em;
  line-height: 1;
  text-decoration: none;
}

.tour-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(241, 235, 225, .72);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tour-label i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 5px rgba(243, 200, 75, .12);
}

.book {
  justify-self: end;
  padding: 12px 16px;
  border: 1px solid rgba(243, 200, 75, .74);
  border-radius: 999px;
  color: var(--ink);
  background: var(--sun);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}

.book:hover { transform: translateY(-2px); background: #ffda69; }

.caption {
  position: fixed;
  z-index: 4;
  left: 25px;
  bottom: max(25px, env(safe-area-inset-bottom));
  max-width: 320px;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}

.caption .eyebrow {
  margin: 0 0 8px;
  color: var(--sun);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.caption h1 {
  margin: 0;
  font: 400 clamp(2.5rem, 5vw, 5rem)/.88 Georgia, serif;
  letter-spacing: -.06em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .28);
}

.caption > p:last-child {
  margin: 12px 0 0;
  color: rgba(241, 235, 225, .68);
  font-size: 11px;
  line-height: 1.4;
}

.controls {
  position: fixed;
  z-index: 6;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  display: flex;
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .23);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--bone);
  background: transparent;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.controls button:hover,
.controls button.active {
  color: var(--ink);
  background: var(--sun);
  transform: translateY(-1px);
}

.controls button:focus-visible,
.book:focus-visible,
.brand:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hint {
  position: fixed;
  z-index: 4;
  right: 25px;
  bottom: max(28px, env(safe-area-inset-bottom));
  margin: 0;
  color: rgba(241, 235, 225, .58);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px #000;
}

.hint span { margin: 0 5px; color: var(--sun); }

.status {
  position: fixed;
  z-index: 10;
  top: 80px;
  left: 50%;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bone);
  background: var(--glass);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity .2s ease, transform .2s ease;
}

.status.show { opacity: 1; transform: translate(-50%, 0); }

.noscript {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 30px;
  background: var(--ink);
}

.embed .topbar,
.embed .caption,
.embed .hint { display: none; }

.embed .controls { bottom: max(14px, env(safe-area-inset-bottom)); }

@media (max-width: 760px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: max(14px, env(safe-area-inset-top)) 14px 14px;
  }
  .tour-label { display: none; }
  .caption {
    left: 16px;
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 67px);
  }
  .caption h1 { font-size: clamp(2.2rem, 12vw, 3.7rem); }
  .caption > p:last-child { display: none; }
  .controls {
    bottom: max(13px, env(safe-area-inset-bottom));
  }
  .controls button { width: 39px; height: 39px; }
  .hint { display: none; }
}

@media (max-width: 390px) {
  .book { padding: 11px 13px; letter-spacing: .08em; }
  .controls button { width: 36px; height: 36px; }
}

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