/* One dark screen: the amber is the stage, a thin HUD frames it, and each stop on the
   geological timeline moves the camera and opens a panel beside the stone.
   Colors and fonts come from the theme block that the admin panel writes (:root vars). */
:root {
  --bg: #000; --text: #ece4d6; --muted: #a59b8a; --accent: #e9a14b; --accent-ink: #0a0705;
  --accent-soft: rgba(233, 161, 75, 0.15); --line: rgba(236, 228, 214, 0.22); --line-strong: rgba(236, 228, 214, 0.6);
  --scrim: rgba(5, 4, 3, 0.7); --shadow: rgba(0, 0, 0, 0.9); --banner-bg: #e9a14b; --banner-ink: #0a0705;
  --logo: #f2efe8; --glow: rgba(255, 160, 60, 0.5); --glow-base: 0.08;
  --logo-src: url("/assets/logo-white.webp"); --logo-ar: 1926 / 816;
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-synthesis-weight: none; -webkit-text-size-adjust: 100%; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--f-body);
  overflow: hidden; -webkit-font-smoothing: antialiased;
}
img, video, canvas { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the logo is drawn as a mask so its color follows the theme */
.logo {
  display: block; aspect-ratio: var(--logo-ar); background: var(--logo);
  -webkit-mask: var(--logo-src) center / contain no-repeat; mask: var(--logo-src) center / contain no-repeat;
}

/* stage */
.stage { position: fixed; inset: 0; overflow: hidden; background: var(--bg); touch-action: none; cursor: grab; }
.stage.dragging { cursor: grabbing; }
.stone { position: absolute; left: 50%; top: 50%; height: min(94vh, 125vw); aspect-ratio: 4 / 5; transform: translate(-50%, -50%); will-change: transform; }
.stone canvas, .stone video, .stone .poster {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: cover;
  filter: brightness(0.16) saturate(0.7); transition: filter 2.8s cubic-bezier(.3, .6, .2, 1), opacity .6s ease;
}
.stone canvas { opacity: 0; }
.stone canvas.on { opacity: 1; }
.stone video[hidden], .stone canvas[hidden] { display: none; }
.stage.lit .stone canvas, .stage.lit .stone video, .stage.lit .stone .poster { filter: none; }
.stone .poster.hide { opacity: 0; }
.stone .glow {
  position: absolute; left: 22%; right: 22%; top: 20%; bottom: 20%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent); mix-blend-mode: screen; opacity: var(--glow-base);
}

/* hud */
.hud {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  padding-block: calc(18px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
}
.hud a, .hud button { pointer-events: auto; }
.spacer { flex: 1 1 auto; }

.banner {
  display: flex; align-items: center; justify-content: center; gap: 12px; pointer-events: auto;
  margin: calc(-18px - env(safe-area-inset-top, 0px)) calc(-1 * var(--gutter-r)) 14px calc(-1 * var(--gutter-l));
  padding: calc(7px + env(safe-area-inset-top, 0px)) var(--gutter-r) 7px var(--gutter-l);
  background: var(--banner-bg); color: var(--banner-ink);
  font: 600 13px/1.35 var(--f-display); letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
}
.banner p { margin: 0; }
.banner a { text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.banner-x { flex: none; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; color: inherit; }
.banner.gone { display: none; }

.top { display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; align-items: start; gap: 12px 24px; }
.brand { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.brand .logo { height: 36px; opacity: 0.92; }
.top-r { justify-self: end; display: flex; align-items: center; gap: 10px; }
.lang {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); background: transparent; cursor: pointer;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--muted);
}
.lang:hover { color: var(--text); border-color: var(--line-strong); }
.cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35);
  font: 600 14px/1 var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.cta:hover { border-color: var(--accent); color: var(--accent); }

/* timeline */
.timeline { position: relative; width: 100%; --n: 5; }
.tl-track { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 30px; height: 1px; background: var(--line); }
.tl-fill { position: absolute; left: 0; top: 0; height: 1px; width: calc(100% * var(--p, 0)); background: linear-gradient(90deg, var(--accent-soft), var(--accent)); transition: width 1.6s cubic-bezier(.22, .7, .2, 1); }
.tl-mark {
  position: absolute; top: 0; left: calc(100% * var(--p, 0)); width: 14px; height: 14px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 38% 34%, #fff7e6 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 55%, #000) 100%);
  box-shadow: 0 0 16px 5px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: left 1.6s cubic-bezier(.22, .7, .2, 1);
}
.timeline ol { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.timeline li { display: flex; justify-content: center; min-width: 0; }
.stop {
  position: relative; display: grid; grid-template-rows: 16px 28px 16px; justify-items: center; align-items: center;
  width: 100%; min-height: 60px; padding: 0; border: 0; background: none; cursor: pointer;
}
.stop .ma { font: 400 11px/16px var(--f-mono); letter-spacing: 0.04em; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .25s; }
.stop .dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); transition: transform .25s, border-color .25s; }
.stop .name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/16px var(--f-display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); transition: opacity .25s, color .25s; }
.stop:hover .dot, .stop:focus-visible .dot { transform: scale(1.7); border-color: var(--text); }
.stop .hl {
  position: absolute; left: 50%; top: 66px; display: grid; justify-items: center; gap: 6px;
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none; white-space: nowrap;
  transition: opacity .2s ease, transform .3s cubic-bezier(.22, .7, .2, 1);
  text-shadow: 0 2px 20px var(--shadow); isolation: isolate;
}
.stop .hl::before { content: ""; position: absolute; inset: -22px -56px; z-index: -1; background: radial-gradient(closest-side, var(--scrim), transparent); }
.stop .hl b { font: 600 clamp(34px, 3.4vw, 50px)/0.9 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.stop .hl i { font: 500 11px/1.2 var(--f-mono); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
@media (hover: hover) {
  .stop .ma, .stop .name { opacity: 0; }
  .stop:hover .hl, .stop:focus-visible .hl { opacity: 1; transform: translate(-50%, 0); }
}
@media (hover: none) {
  .stop .hl { display: none; }
  .stop[aria-current="true"] .name { color: var(--text); }
}

/* big mark with glitch */
.mark {
  position: fixed; left: 50%; bottom: calc(6vh + env(safe-area-inset-bottom, 0px)); z-index: 1;
  width: min(700px, 84vw); aspect-ratio: var(--logo-ar); pointer-events: none;
  transform: translateX(-50%); transition: opacity .8s ease, transform 1.2s cubic-bezier(.22, .7, .2, 1);
}
.mark .logo { width: 100%; filter: drop-shadow(0 0 18px var(--shadow)); }
.mark canvas { position: absolute; left: -8%; top: -10%; width: 116%; height: 120%; display: block; max-width: none; filter: drop-shadow(0 0 18px var(--shadow)); }
.mark.fx .logo { visibility: hidden; }
body.in-section .mark { opacity: 0; transform: translate(-50%, 24px); }

/* bottom row */
.bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 12px; }
.now { justify-self: start; display: grid; gap: 2px; min-width: 0; }
.now .k { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.now .v { font: 600 15px/1.25 var(--f-display); letter-spacing: 0.12em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint { font: 500 11px/1.2 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transition: opacity .8s; }
body.dragged .hint, body.in-section .hint { opacity: 0; }
.sound { justify-self: end; display: flex; align-items: center; justify-content: center; width: 72px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.sound svg { width: 56px; height: 20px; overflow: hidden; display: block; }
.sound path { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; }
.sound .amp { transform-origin: 28px 10px; transition: transform .6s ease; }
.sound[aria-pressed="false"] .amp { transform: scaleY(0.06); }
.sound .w { animation: wave 1.6s linear infinite; }
.sound[aria-pressed="false"] .w { animation-play-state: paused; }
@keyframes wave { to { transform: translateX(-30px); } }

/* panels */
.panel {
  position: fixed; top: 50%; z-index: 1; width: min(440px, 36vw); max-height: 70vh; overflow: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-46%);
  transition: opacity .5s ease, transform .9s cubic-bezier(.22, .7, .2, 1), visibility 0s linear .9s;
  text-shadow: 0 1px 14px var(--shadow); scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.panel[data-wide] { width: min(560px, 42vw); max-height: 76vh; }
.panel[data-side="left"] { left: calc(var(--gutter-l) + clamp(8px, 6vw, 110px)); }
.panel[data-side="right"] { right: calc(var(--gutter-r) + clamp(8px, 6vw, 110px)); }
.panel.is-active { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .9s ease .55s, transform 1.1s cubic-bezier(.22, .7, .2, 1) .45s, visibility 0s; }
.era { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 14px; font: 400 12px/1.4 var(--f-mono); letter-spacing: 0.06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.era span + span { color: var(--muted); }
.panel h2 { margin: 0 0 16px; font: 600 clamp(38px, 4.4vw, 60px)/0.95 var(--f-display); letter-spacing: 0.03em; text-transform: uppercase; text-wrap: balance; }
.prose p { margin: 0 0 14px; max-width: 60ch; }
.prose strong { color: var(--text); font-weight: 600; }
.facts { display: grid; margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts .k { font: 600 13px/1.4 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.facts .v { font: 500 15px/1.4 var(--f-body); text-align: right; }
.facts a.v { text-decoration: none; border-bottom: 1px solid var(--line); }
.facts a.v:hover { color: var(--accent); border-color: var(--accent); }

.packages { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.packages li { padding: 14px 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.28); }
.pk-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.pk-h b { font: 600 20px/1.1 var(--f-display); letter-spacing: 0.08em; text-transform: uppercase; }
.pk-p { font: 500 15px/1.2 var(--f-mono); color: var(--accent); font-variant-numeric: tabular-nums; }
.packages p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 22px; padding: 0 26px; border: 1px solid var(--accent); cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: 600 15px/1 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; text-shadow: none;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 0 12px; }

.copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.copy .mail { font: 500 17px/1.3 var(--f-mono); text-decoration: none; overflow-wrap: anywhere; }
.copy .mail:hover { color: var(--accent); }
.copy button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: none; cursor: pointer; font: 600 13px/1 var(--f-display); letter-spacing: 0.18em; text-transform: uppercase; }
.copy button:hover { border-color: var(--accent); }

.videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.vid { display: grid; gap: 8px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; text-shadow: none; }
.vid-img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #111; outline: 1px solid var(--line); }
.vid-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85); transition: transform .6s cubic-bezier(.22, .7, .2, 1), filter .4s; }
.vid:hover .vid-img img { transform: scale(1.05); filter: none; }
.vid-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 1px solid var(--line-strong); }
.vid-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent var(--text); }
.vid:hover .vid-play { border-color: var(--accent); }
.vid-t { font: 600 14px/1.3 var(--f-display); letter-spacing: 0.1em; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.grid, .ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.ph, .ig-grid a { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; background: #111; cursor: zoom-in; }
.ph img, .ig-grid img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.22, .7, .2, 1), filter .3s; }
.ph::after, .ig-grid a::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); transition: opacity .3s; }
.ph:hover img, .ig-grid a:hover img { transform: scale(1.06); filter: contrast(1.08) saturate(1.1) drop-shadow(2px 0 0 rgba(255, 40, 60, 0.45)) drop-shadow(-2px 0 0 rgba(40, 200, 255, 0.45)); }
.ph:hover::after, .ig-grid a:hover::after { opacity: 1; }
.ig { margin-top: 26px; }
.ig-h { margin: 0; font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ig-grid { margin-top: 10px; }
.ig-grid:empty { display: none; }

/* overlay: video player and photo viewer */
.overlay {
  position: fixed; inset: 0; z-index: 6; display: grid; place-items: center; padding: 64px var(--gutter-r) 64px var(--gutter-l);
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.overlay[hidden] { display: none; }
.ov-frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; outline: 1px solid var(--line); }
.ov-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ov-fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: 100%; }
.ov-fig img { max-width: min(1400px, 100%); max-height: calc(100vh - 160px); object-fit: contain; display: block; }
.ov-fig figcaption { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.1em; color: var(--muted); text-align: center; }
.ov-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); cursor: pointer; color: var(--text); }
.ov-btn:hover { border-color: var(--accent); color: var(--accent); }
.ov-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ov-close { top: calc(12px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); }
.ov-prev { left: var(--gutter-l); top: 50%; transform: translateY(-50%); }
.ov-next { right: var(--gutter-r); top: 50%; transform: translateY(-50%); }

/* gate */
.gate {
  position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); padding-block: 32px;
  background: var(--bg); text-align: center; transition: opacity 1.3s ease, visibility 0s linear 1.3s;
}
.gate.gone { opacity: 0; visibility: hidden; }
.gate-lang { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: var(--gutter-r); }
.gate-logo { width: min(640px, 88vw); }
.gate-sub { margin: 0; font: 500 12px/1.5 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); max-width: 46ch; }
.gate-start {
  min-height: 50px; padding: 0 34px; border: 1px solid var(--line-strong); background: none; cursor: pointer;
  font: 600 15px/1 var(--f-display); letter-spacing: 0.42em; text-transform: uppercase;
}
.gate-start:hover { border-color: var(--accent); color: var(--accent); }
.gate-sound {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; background: none; cursor: pointer;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.gate-sound:hover { color: var(--text); }
.gate-sound svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gate-sound .x { display: none; }
.gate-sound[aria-pressed="false"] .w1, .gate-sound[aria-pressed="false"] .w2 { display: none; }
.gate-sound[aria-pressed="false"] .x { display: inline; }

.intro-slide { display: none; }

/* narrow screens: the sections become slides you scroll through; the stone stays in place above
   them and the camera follows the scroll */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  html { height: auto; scroll-snap-type: y proximity; }
  body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
  body.gated, body.ov-open { overflow: hidden; }
  .stage { touch-action: pan-y; }
  .top { grid-template-columns: 1fr auto; position: relative; }
  .top::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: calc(-1 * var(--gutter-l)); right: calc(-1 * var(--gutter-r)); top: calc(-18px - env(safe-area-inset-top, 0px)); bottom: -26px;
    background: linear-gradient(var(--bg) 62%, transparent); opacity: 0; transition: opacity .4s;
  }
  body.in-section .top::before { opacity: 1; }
  .timeline { grid-column: 1 / -1; grid-row: 2; }
  .brand .logo { height: 30px; }
  .cta { padding: 0 14px; font-size: 13px; letter-spacing: 0.14em; }
  .stop .name { font-size: 11px; letter-spacing: 0.05em; }
  .stop .ma { font-size: 10px; letter-spacing: 0; }
  .hint { display: none; }
  .bottom { grid-template-columns: 1fr auto; position: relative; }
  .bottom::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: calc(-1 * var(--gutter-l)); right: calc(-1 * var(--gutter-r)); top: -34px; bottom: calc(-16px - env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, var(--bg) 58%); opacity: 0; transition: opacity .4s;
  }
  body.in-section .bottom::before { opacity: 1; }
  .mark { bottom: calc(15vh + env(safe-area-inset-bottom, 0px)); }

  .tl-fill, .tl-mark { transition: none; }
  .intro-slide { display: block; position: relative; height: 100vh; height: 100svh; scroll-snap-align: start; pointer-events: none; }
  .scroll-cue {
    position: absolute; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    display: grid; justify-items: center; gap: 8px; font: 500 10px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
    transition: opacity .5s;
  }
  .scroll-cue::after { content: ""; width: 1px; height: 28px; background: linear-gradient(var(--muted), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
  body.in-section .scroll-cue, body.gated .scroll-cue { opacity: 0; }
  @keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

  .panel, .panel[data-side], .panel[data-wide] {
    position: relative; top: auto; left: auto; right: auto; bottom: auto; z-index: 1;
    width: auto; max-height: none; overflow: visible; min-height: 100vh; min-height: 100svh;
    padding: 46vh var(--gutter-r) calc(96px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    padding-top: 46svh;
    opacity: 1; visibility: visible; transform: none; transition: none; text-shadow: none;
    scroll-snap-align: start; pointer-events: none;
  }
  .pin {
    pointer-events: auto; padding: 18px 16px 20px; background: var(--scrim);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .panel h2 { font-size: 34px; margin-bottom: 10px; }
  .facts .v { text-align: left; }
  .videos { gap: 12px 10px; }
  .ov-prev, .ov-next { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: none; }
}
@media (max-width: 380px) {
  .videos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sound .w { animation: none !important; }
  .tl-fill, .tl-mark, .panel, .panel.is-active, .mark, .gate, .stone video, .stone .poster { transition-duration: .01s !important; transition-delay: 0s !important; }
}
