/* One scene. The poster stays behind every video frame. */
:root { color-scheme: light; font-family: Arial, Helvetica, sans-serif; color: #382817; background: #c6b078; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; }
body { overflow: hidden; }
.scene { position: relative; width: 100%; height: 100svh; height: 100dvh; overflow: hidden; isolation: isolate; }
.visual, .ambient, .poster, .film { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual { z-index: -1; overflow: hidden; }
.ambient img, .poster img, .film { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ambient { filter: blur(28px); transform: scale(1.12); }
.film { opacity: 0; transition: opacity 650ms ease; }
.scene[data-state="playing"] .film { opacity: 1; }
.site-name { position: absolute; top: max(24px, env(safe-area-inset-top)); left: max(28px, env(safe-area-inset-left)); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; letter-spacing: -.7px; }
.site-name span { font-weight: 400; }
.scene-caption { position: absolute; top: 11%; left: 39%; right: 5%; text-align: center; opacity: 1; transition: opacity 400ms ease; pointer-events: none; }
.scene-caption h1 { max-width: 20ch; margin: 0 auto 14px; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(32px, 3.15vw, 58px); line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.scene-caption p { margin: 0; font-size: clamp(13px, 1.1vw, 18px); line-height: 1.5; letter-spacing: .015em; }
.scene[data-state="loading"] .scene-caption,
.scene[data-state="playing"]:not(.is-ending) .scene-caption { opacity: 0; visibility: hidden; }
.bee { position: absolute; left: 40%; top: 29%; width: 20%; height: 61%; padding: 0; border: 0; border-radius: 45%; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bee:disabled { cursor: default; }
.bee:focus-visible { outline: 2px solid #fff7db; outline-offset: 5px; box-shadow: 0 0 0 7px #47321e; }
.reaction { position: absolute; z-index: 2; left: 50%; top: 50%; margin: 0; opacity: 0; transform: translate(-50%, -100%); font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2.1vw, 34px); font-style: italic; white-space: nowrap; pointer-events: none; color: #342312; text-shadow: 0 1px 10px #fff5d1, 0 1px 3px #fff5d1; }
.reaction.is-visible { opacity: 1; animation: reaction-in 180ms ease-out both; }
@keyframes reaction-in { from { transform: translate(-50%, -80%) rotate(-3deg); } to { transform: translate(-50%, -100%); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-aspect-ratio: 1/1) {
  /* Preserve the entire portrait film on tall phones; blend only its outer edges. */
  .scene { background: #faf7ee; }
  .ambient { display: none; }
  .poster, .film { top: 50%; bottom: auto; height: min(100%, 177.7778vw); transform: translateY(-50%); mask-image: linear-gradient(to bottom, transparent, #000 35%, #000 85%, transparent); }
  .poster img, .film { object-fit: contain; }
  .site-name { top: max(22px, env(safe-area-inset-top)); left: max(22px, env(safe-area-inset-left)); font-size: 21px; }
  .scene-caption { top: 11%; left: 20px; right: 20px; }
  .scene-caption h1 { max-width: 17ch; font-size: clamp(29px, 7.5vw, 44px); margin-bottom: 12px; }
  .scene-caption p { font-size: clamp(12px, 3.4vw, 16px); }
}
@media (min-aspect-ratio: 4/5) and (max-aspect-ratio: 1/1), (min-aspect-ratio: 21/9) {
  .poster img, .film { object-fit: contain; }
}
@media (max-height: 450px) and (min-aspect-ratio: 1/1) {
  .site-name { top: 16px; left: 20px; font-size: 18px; }
  .scene-caption { top: 12%; left: 42%; }
  .scene-caption h1 { font-size: 27px; margin-bottom: 8px; }
  .scene-caption p { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .film { display: none; }
}
