:root {
  color-scheme: dark;
  --void: #09000d;
  --floor: #130016;
  --plum: #241027;
  --plum-light: #35173a;
  --ivory: #fff7e8;
  --lavender: #cdbdd2;
  --gold: #ffd700;
  --cyan: #00e5ff;
  --line: rgba(255, 247, 232, 0.14);
  --line-strong: rgba(255, 215, 0, 0.44);
  --display: "Playfair Display", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 82% 8%, rgba(0, 229, 255, 0.07), transparent 22rem),
    linear-gradient(180deg, var(--void) 0%, #0e0512 48%, var(--floor) 100%);
  font-family: var(--sans);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 247, 232, 0.022) 1px, transparent 1px);
  background-size: 100% 4rem;
  content: "";
  pointer-events: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  color: var(--void);
  background: var(--ivory);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.tour-shell,
.next-step,
footer {
  width: min(100% - 2rem, 90rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 6rem;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.05rem;
}

.brand small {
  margin-top: 0.2rem;
  color: var(--lavender);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.quiet-link {
  color: var(--lavender);
  font-size: 0.82rem;
  font-weight: 600;
  text-underline-offset: 0.3rem;
}

.quiet-link:hover {
  color: var(--gold);
}

.hero {
  display: grid;
  min-height: calc(100svh - 6rem);
  grid-template-columns: minmax(0, 0.88fr) minmax(26rem, 1.12fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 8rem);
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
}

h1 {
  max-width: 11ch;
  margin-top: 1.25rem;
  font-size: clamp(3.8rem, 8vw, 8.6rem);
  font-weight: 700;
  letter-spacing: -0.062em;
  line-height: 0.82;
}

h1 em {
  color: var(--lavender);
  font-weight: 400;
}

.hero-lede {
  max-width: 35rem;
  margin: 2.25rem 0 0;
  color: var(--lavender);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--void);
  background: var(--gold);
}

.button-primary:hover {
  background: var(--ivory);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 247, 232, 0.045);
}

.button-secondary:hover {
  border-color: var(--line-strong);
  color: var(--gold);
}

.experience-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  color: var(--lavender);
  font-size: 0.74rem;
  list-style: none;
}

.experience-notes li::before {
  margin-right: 0.5rem;
  color: var(--cyan);
  content: "•";
}

.hero-image {
  position: relative;
  min-height: min(72svh, 53rem);
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50% 50% 0.5rem 0.5rem / 12% 12% 0.5rem 0.5rem;
  background: var(--plum);
  box-shadow: var(--shadow);
}

.hero-image picture,
.hero-image img {
  width: 100%;
  height: 100%;
}

.hero-image img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.hero-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(9, 0, 13, 0.9));
  content: "";
}

.hero-image figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.55;
  text-transform: uppercase;
}


.tour-shell {
  padding-block: clamp(5.5rem, 10vw, 10rem);
  scroll-margin-top: 1rem;
}

.tour-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 3rem;
  align-items: end;
}

.tour-heading h2,
.next-step h2 {
  max-width: 14ch;
  margin-top: 1rem;
  font-size: clamp(2.8rem, 6vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.tour-heading > p {
  max-width: 36rem;
  margin: 0;
  color: var(--lavender);
  font-size: 1.05rem;
}

.tour-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tour-choice {
  display: grid;
  min-height: 8.5rem;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 1.5rem;
  color: var(--lavender);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease, background 180ms ease;
}

.tour-choice:last-child {
  border-right: 0;
}

.tour-choice:hover,
.tour-choice.is-active {
  color: var(--ivory);
  background: rgba(255, 247, 232, 0.045);
}

.tour-choice.is-active {
  box-shadow: inset 0 -2px var(--gold);
}


.tour-choice span:last-child {
  display: grid;
  gap: 0.35rem;
}

.tour-choice strong {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

.tour-choice small {
  font-size: 0.78rem;
}

.viewer {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #050106;
  box-shadow: var(--shadow);
}

.viewer-topline,
.viewer-controls {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(19, 0, 22, 0.98);
}

.viewer-topline > div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 1rem rgba(0, 229, 255, 0.75);
}

.text-button,
.control-button {
  min-height: 2.75rem;
  border: 0;
  color: var(--lavender);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.text-button:hover,
.control-button:hover {
  color: var(--gold);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.help-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.help-panel[hidden] {
  display: none;
}

.help-panel > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  background: var(--floor);
}

.help-key {
  min-width: 3.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.help-panel p {
  margin: 0;
  color: var(--lavender);
  font-size: 0.76rem;
  line-height: 1.55;
}

.help-panel strong {
  color: var(--ivory);
}

.viewer-frame {
  position: relative;
  min-height: clamp(28rem, 72svh, 56rem);
  background: #030104;
}

.viewer-poster,
.viewer-poster picture,
.viewer-poster img,
.embed-mount,
.embed-mount iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.viewer-poster {
  z-index: 2;
  overflow: hidden;
}

.viewer-poster img {
  object-fit: cover;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 22%, rgba(9, 0, 13, 0.12) 60%),
    linear-gradient(180deg, rgba(9, 0, 13, 0.08), rgba(9, 0, 13, 0.86));
}

.poster-content {
  position: absolute;
  right: 1rem;
  bottom: clamp(1rem, 5vw, 3rem);
  left: 1rem;
  display: grid;
  justify-items: center;
  text-align: center;
}

.poster-content p {
  margin: 0;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.poster-content h3 {
  max-width: 14ch;
  margin-top: 0.65rem;
  font-size: clamp(2.2rem, 5vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.94;
}

.play-button {
  display: inline-flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(255, 247, 232, 0.45);
  border-radius: 999px;
  padding: 0.65rem 1.2rem 0.65rem 0.65rem;
  color: var(--ivory);
  background: rgba(9, 0, 13, 0.72);
  cursor: pointer;
  font-weight: 700;
  backdrop-filter: blur(1rem);
  transition: border-color 180ms ease, transform 180ms ease;
}

.play-button:hover {
  border-color: var(--gold);
  transform: scale(1.025);
}

.play-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 50%;
  color: var(--void);
  background: var(--gold);
  font-size: 0.8rem;
}

.viewer-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  background: var(--void);
}

.viewer-loading[hidden] {
  display: none;
}

.viewer-loading p {
  margin: 1rem 0 0;
  color: var(--lavender);
  font-size: 0.85rem;
}

.loader {
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid rgba(255, 247, 232, 0.18);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: turn 850ms linear infinite;
}

.embed-mount iframe {
  border: 0;
  background: #000;
}

.viewer-controls {
  border-top: 1px solid var(--line);
}

.viewer-controls p {
  max-width: 38rem;
  margin: 0;
  color: var(--lavender);
  font-size: 0.76rem;
}

.viewer-controls > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.no-script {
  margin-top: 1rem;
  border: 1px solid var(--line-strong);
  padding: 1rem;
  color: var(--lavender);
}

.no-script a {
  color: var(--gold);
}

.next-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(5rem, 10vw, 10rem);
  border-top: 1px solid var(--line);
}

.next-links {
  display: grid;
  align-content: end;
}

.next-links a {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--lavender);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.next-links a:hover {
  padding-inline: 0.5rem;
  color: var(--gold);
}

footer {
  display: flex;
  min-height: 7rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--lavender);
  font-size: 0.78rem;
}

footer a {
  color: var(--gold);
  text-underline-offset: 0.3rem;
}

.viewer-frame:fullscreen {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: #000;
}

@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image {
    min-height: 62svh;
  }

  .tour-heading,
  .next-step {
    grid-template-columns: 1fr;
  }

  .tour-heading > p {
    max-width: 46rem;
  }

  .help-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .tour-shell,
  .next-step,
  footer {
    width: min(100% - 1.25rem, 90rem);
  }

  .site-header {
    min-height: 5rem;
  }

  .quiet-link {
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .experience-notes {
    display: grid;
  }

  .hero-image {
    min-height: 56svh;
    border-radius: 10rem 10rem 0.4rem 0.4rem / 4rem 4rem 0.4rem 0.4rem;
  }

  .tour-switch {
    grid-template-columns: 1fr;
  }

  .tour-choice {
    min-height: 7.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-inline: 1rem;
  }

  .tour-choice:last-child {
    border-bottom: 0;
  }

  .tour-choice.is-active {
    box-shadow: inset 3px 0 var(--gold);
  }

  .viewer-topline,
  .viewer-controls {
    align-items: flex-start;
  }

  .viewer-topline {
    min-height: 4.5rem;
  }

  .viewer-topline > div {
    max-width: 70%;
  }

  .viewer-frame {
    min-height: 65svh;
  }

  .viewer-controls {
    flex-direction: column;
  }

  .viewer-controls > div {
    width: 100%;
    justify-content: flex-start;
  }

  .control-button {
    min-height: 3rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
