:root {
  --ink: #1b2a2a;
  --ink-muted: #5e6966;
  --paper: #f6f3ec;
  --line: rgba(27, 42, 42, 0.16);
  --accent: #bf744a;
  --accent-deep: #9b5735;
  --menu-width: min(24rem, calc(100vw - 2rem));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ink);
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.eyebrow, .tour-overlay__eyebrow { margin: 0; color: var(--accent-deep); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.wordmark { color: inherit; font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.03em; text-decoration: none; }
.route-picker { display: grid; min-height: 100vh; padding: 1.5rem; color: var(--ink); background: var(--paper); }
.route-picker > .wordmark { align-self: start; }
.route-picker__content { align-self: center; width: min(38rem, 100%); margin: 0 auto; }
.route-picker h1 { margin: 0.5rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.4rem, 7vw, 5.4rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.98; }
.route-picker__content > p:not(.eyebrow) { max-width: 30rem; margin: 0; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6; }
.tour-links { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
.development-list + .development-list { margin-top: 2.5rem; }
.development-list h2 { margin: 2.5rem 0 -1.75rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; }
.development-list:first-of-type h2 { margin-top: 2.5rem; }
.tour-links a { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: 0.2rem; text-decoration: none; transition: border-color 160ms ease, background 160ms ease; }
.tour-links a:hover, .tour-links a:focus-visible { border-color: var(--ink); background: #fffdf9; }
.tour-links strong { font-size: 1.1rem; }
.inline-link { display: inline-block; margin-top: 1.5rem; color: var(--accent-deep); font-weight: 700; }

.tour-shell { position: relative; min-height: 100svh; overflow: hidden; background: var(--ink); }
#panorama { position: absolute; inset: 0; }
.tour-header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 4.75rem; padding: 1rem 1.25rem; color: #fff; background: linear-gradient(to bottom, rgba(13, 21, 20, 0.62), transparent); }
.tour-header__label { justify-self: center; margin: 0; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; }
.tour-header__label span { margin: 0 0.35rem; opacity: 0.55; }
.icon-button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; color: inherit; background: rgba(13, 21, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%; }
.icon-button:hover, .icon-button:focus-visible { background: rgba(13, 21, 20, 0.8); }
.icon-button svg, .tour-actions svg, .tour-menu__back svg, .tour-overlay__hint svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.tour-header .icon-button { justify-self: end; }
.tour-overlay { position: absolute; z-index: 2; bottom: 2.25rem; left: 1.25rem; max-width: 17rem; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); pointer-events: none; }
.tour-overlay h2 { margin: 0.2rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.05; }
.tour-overlay__hint { display: flex; align-items: center; gap: 0.5rem; margin: 0.85rem 0 0; font-size: 0.82rem; line-height: 1.4; }
.tour-overlay__hint span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; background: rgba(13, 21, 20, 0.45); border-radius: 50%; }
.tour-overlay__hint svg { width: 1rem; height: 1rem; }
.tour-actions { position: absolute; z-index: 2; right: 1.25rem; bottom: 1.5rem; display: flex; gap: 0.55rem; }
.tour-actions button { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.65rem 0.85rem; color: #fff; background: rgba(13, 21, 20, 0.56); border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 0.15rem; font-size: 0.78rem; }
.tour-actions button:hover, .tour-actions button:focus-visible, .tour-actions button.is-active { background: rgba(13, 21, 20, 0.85); }
.tour-actions svg { width: 1rem; height: 1rem; }
.tour-menu { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: var(--menu-width); padding: 1.25rem; color: var(--ink); background: var(--paper); box-shadow: 12px 0 32px rgba(0, 0, 0, 0.26); transform: translateX(-105%); transition: transform 220ms ease; }
.tour-menu.is-open { transform: translateX(0); }
.tour-menu__header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.tour-menu__header h1 { margin: 0.35rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 400; letter-spacing: -0.03em; }
.tour-menu .icon-button { color: var(--ink); background: transparent; border-color: var(--line); }
.scene-list { display: grid; gap: 0.15rem; padding: 1rem 0; overflow-y: auto; }
.scene-list button { display: grid; grid-template-columns: 2.35rem 1fr; align-items: center; min-height: 2.8rem; padding: 0.35rem 0.5rem; color: var(--ink); text-align: left; background: transparent; border: 0; border-left: 2px solid transparent; }
.scene-list button:hover, .scene-list button:focus-visible { background: rgba(191, 116, 74, 0.1); }
.scene-list button.is-active { color: var(--accent-deep); background: rgba(191, 116, 74, 0.12); border-left-color: var(--accent); font-weight: 700; }
.scene-list__number { color: var(--ink-muted); font-size: 0.68rem; font-variant-numeric: tabular-nums; }
.tour-menu__back { display: flex; align-items: center; gap: 0.55rem; margin-top: auto; padding-top: 1rem; color: var(--ink-muted); font-size: 0.82rem; text-decoration: none; border-top: 1px solid var(--line); }
.tour-menu__back:hover, .tour-menu__back:focus-visible { color: var(--accent-deep); }
.tour-menu__back svg { width: 1rem; height: 1rem; }

.pnlm-container { font-family: inherit; }
.pnlm-load-box { border-color: var(--accent); }
.pnlm-load-button p { color: var(--ink); }

@media (max-width: 42rem) {
  .tour-header { grid-template-columns: 1fr auto; }
  .tour-header__label { display: none; }
  .tour-overlay { bottom: 5.25rem; }
  .tour-actions { right: 0.8rem; bottom: 0.8rem; left: 0.8rem; justify-content: flex-end; }
  .tour-actions button { padding: 0.65rem; }
  .tour-actions button:first-child { font-size: 0; }
  .tour-actions button:first-child svg { width: 1.1rem; height: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
