/* Landing page: the scroll tour, platform cards, visit block. */

.track { position: relative; height: 1100vh; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #1a1410;
}
#view, .poster, .loop { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop { object-fit: cover; opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.loop.on { opacity: 1; }
.poster { object-fit: cover; transition: opacity 0.6s ease; }
.poster.hidden { opacity: 0; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 34%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 18%);
}

/* ---------------------------------------------------------------- text panels (shown around their stop) */
.panel {
  position: absolute; z-index: 5;
  opacity: 0; visibility: hidden;
  transform: translateY(24px);
  will-change: opacity, transform;
}
.panel h1, .panel h2 { margin: 0; font-weight: 900; line-height: 1.25; }
.panel p { margin: 0; }

.panel-hero {
  inset-inline: 0; top: 50%; translate: 0 -55%;
  text-align: center; padding: 0 16px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.6);
}
.panel-hero .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.8; }
.panel-hero h1 { font-size: clamp(52px, 9vw, 120px); }
.panel-hero .lead { font-size: clamp(17px, 2.1vw, 23px); font-weight: 500; margin-top: 8px; color: #f3e7d3; }
.hero-actions { margin-top: 28px; display: flex; justify-content: center; }
.hint { margin-top: 26px !important; font-size: 14px; opacity: 0.85; display: inline-flex; gap: 10px; align-items: center; }
.mouse { width: 18px; height: 28px; border: 2px solid currentColor; border-radius: 10px; position: relative; }
.mouse::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; margin-left: -1.5px;
  border-radius: 2px; background: currentColor; animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

.panel-side {
  bottom: clamp(28px, 9vh, 104px); right: clamp(16px, 6vw, 96px);
  width: min(430px, calc(100vw - 32px));
  padding: 26px 28px 24px;
  background: var(--glass);
  border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: var(--shadow);
}
.panel-left { right: auto; left: clamp(64px, 7vw, 120px); }
.panel-side h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 10px; }
.panel-side p { color: var(--muted); font-size: 16px; }
.panel-side .btn { margin-top: 18px; }
.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  color: var(--gold-hi); font-weight: 700; text-decoration: none; font-size: 15px;
}
.more::after { content: "←"; transition: transform 0.2s ease; }
.more:hover::after { transform: translateX(-4px); }

.panel-card {
  left: 50%; top: calc(50% + var(--bar-h) / 2); translate: -50% -50%;
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100svh - var(--bar-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 44px);
  background: var(--glass-hi);
  border: 1px solid var(--line); border-radius: 26px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
}
.panel-card .kicker::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.8; }
.panel-card h2 { font-size: clamp(26px, 3.2vw, 40px); }
.card-lede { color: var(--muted); margin-top: 12px !important; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }

/* ---------------------------------------------------------------- chapter rail */
.chapters {
  position: absolute; z-index: 6; left: clamp(14px, 2.4vw, 34px); top: 50%; translate: 0 -50%;
  display: flex; flex-direction: column; gap: 4px;
}
.chapters button {
  position: relative; width: 30px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.chapters button::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.35); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background-color 0.25s ease;
}
.chapters button.on::before { background: var(--gold); transform: scale(1.6); box-shadow: 0 0 0 4px rgba(215, 180, 108, 0.18); }
.chapters span {
  position: absolute; left: 34px; top: 50%; translate: 0 -50%;
  white-space: nowrap; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.6); color: var(--cream);
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.chapters button:hover span, .chapters button:focus-visible span, .chapters button.on span { opacity: 1; }
.chapters button.on span { background: rgba(0, 0, 0, 0.45); color: var(--gold-hi); }

.progress { position: absolute; inset: auto 0 0 0; height: 2px; background: rgba(255, 255, 255, 0.08); z-index: 6; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }

.loader {
  position: absolute; top: calc(var(--bar-h) + 10px); left: 50%; translate: -50% 0; z-index: 7;
  padding: 6px 16px; border-radius: 999px; font-size: 13px;
  background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-soft);
  transition: opacity 0.5s ease;
}
.loader.done { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------- platform cards */
.cards {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.card {
  position: relative; display: block; overflow: hidden; border-radius: 18px; text-decoration: none;
  background: var(--ink-2); border: 1px solid var(--line-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink-3); transition: transform 0.6s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--line); }
.card:hover img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; padding: 14px 16px 16px; line-height: 1.6; }
.card-body b { font-size: 17px; }
.card-body small { color: var(--muted); font-size: 13px; }
.cards-cta { margin-top: 32px; }

/* ---------------------------------------------------------------- visit */
.visit {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
  border-top: 1px solid var(--line-soft);
}
.facts { margin: 24px 0 0; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.facts dt { color: var(--gold); font-weight: 700; }
.facts dd { margin: 0; color: var(--muted); }
.facts a { text-decoration: none; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .panel-side, .panel-left {
    left: 16px; right: 16px; width: auto; bottom: 22px;
    padding: 18px 20px;
  }
  .panel-side p { font-size: 15px; }
  .chapters { left: auto; right: 8px; top: auto; bottom: auto; translate: none; top: calc(var(--bar-h) + 8px); flex-direction: row; gap: 0; }
  .chapters button { width: 18px; height: 22px; }
  .chapters span { display: none; }
  .chapters button::before { width: 6px; height: 6px; }
  .cards { gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-body b { font-size: 15px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* short windows and phones held sideways */
@media (max-height: 640px) {
  .panel-hero h1 { font-size: clamp(38px, 9vh, 76px); }
  .hero-actions { margin-top: 14px; }
  .hint { margin-top: 12px !important; }
  .panel-side { padding: 14px 18px; bottom: 14px; }
  .panel-side h2 { font-size: 21px; margin-bottom: 6px; }
  .panel-side p { font-size: 14px; line-height: 1.7; }
  .panel-card { padding: 18px 20px; }
  .panel-card h2 { font-size: 22px; }
  .actions { margin-top: 12px; }
  .chapters { gap: 0; }
  .chapters button { height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .mouse::after { animation: none; }
}
