* { box-sizing: border-box; }
:root { color-scheme: dark; }
html, body { width: 100%; height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: #172420;
  color: #101511;
  font-family: var(--font-display, "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif);
  -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #e8ffbc; outline-offset: 3px; }
.film, .stage, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film { isolation: isolate; background: #172420; }
.stage canvas { display: block; }
.film::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 42%, rgba(2,8,8,.23) 100%);
}
.topbar {
  position: absolute;
  z-index: 4;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(20px, env(safe-area-inset-top)) clamp(18px, 3.5vw, 52px) 12px;
  color: rgba(244,255,226,.8);
  mix-blend-mode: difference;
}
.brand { color: inherit; text-decoration: none; font-size: 12px; font-weight: 650; }
.topbar p { margin: 0; font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.title-block {
  position: absolute;
  z-index: 3;
  top: 10%;
  left: clamp(20px, 5vw, 76px);
  pointer-events: none;
}
.title-block p { margin: 0 0 10px; font-size: 9px; font-weight: 750; letter-spacing: .19em; opacity: .7; }
.title-block h1 { margin: 0; font-size: clamp(32px, 5.1vw, 76px); font-weight: 720; line-height: .85; letter-spacing: -.075em; }
.sun-control {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: clamp(18px, 4vw, 58px);
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateY(-42%);
  color: rgba(245,255,225,.78);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
}
.sun-control::before {
  content: "";
  position: absolute;
  inset: -13px -9px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(9,13,13,.4);
  backdrop-filter: blur(12px);
}
.sun-control input {
  width: 16px;
  height: min(34vh, 250px);
  margin: 0;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  accent-color: #f2ffcd;
  cursor: ns-resize;
}
.caption { position: absolute; z-index: 3; right: clamp(20px, 5vw, 70px); top: 14%; margin: 0; font-size: 11px; font-weight: 620; letter-spacing: -.02em; }
.transport {
  position: absolute;
  z-index: 6;
  right: clamp(14px, 4vw, 54px);
  bottom: max(17px, env(safe-area-inset-bottom));
  left: clamp(14px, 4vw, 54px);
  display: grid;
  grid-template-columns: 44px minmax(120px, 1fr) 66px 40px 40px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 17px;
  background: rgba(8,13,13,.54);
  color: #f4ffe9;
  backdrop-filter: blur(20px) saturate(1.25);
}
.play, .utility, select { border: 1px solid rgba(255,255,255,.16); color: inherit; background: rgba(255,255,255,.09); cursor: pointer; }
.play { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #f4ffe9; color: #11170e; }
.utility, select { min-height: 36px; border-radius: 999px; font-size: 11px; }
.icon-button { width: 38px; padding: 0; }
.utility[aria-pressed="true"] { color: #11170e; background: #f4ffe9; }
.timeline { min-width: 0; }
.timeline > input { width: 100%; margin: 0; accent-color: #dffc9e; }
.time { display: grid; grid-template-columns: 46px 1fr 46px; color: rgba(255,255,255,.56); font-size: 8px; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.time span:nth-child(2) { color: rgba(255,255,255,.82); text-align: center; }
.time span:last-child { text-align: right; }
.disclosure { position: absolute; z-index: 4; right: clamp(20px, 5vw, 70px); bottom: 92px; max-width: 280px; color: rgba(245,255,232,.68); text-align: right; }
.disclosure strong { display: block; margin-bottom: 5px; color: #e8ffbc; font-size: 8px; letter-spacing: .18em; }
.disclosure span { font-size: 9px; line-height: 1.5; }
.disclosure a { color: inherit; text-decoration-color: rgba(232,255,188,.55); text-underline-offset: 2px; }
.fallback { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; padding: 24px; background: #111; color: #fff; text-align: center; }
.fallback[hidden] { display: none; }
@media (max-width: 720px) {
  .topbar { padding-inline: 17px; }
  .topbar p { display: none; }
  .title-block { top: 9%; left: 18px; }
  .title-block h1 { font-size: clamp(38px, 12vw, 58px); }
  .caption { top: 23%; right: 18px; max-width: 130px; text-align: right; }
  .sun-control { left: 16px; transform: translateY(-30%) scale(.86); transform-origin: left center; }
  .disclosure { right: 17px; bottom: 88px; max-width: 210px; }
  .disclosure span { display: none; }
  .transport { right: 9px; bottom: max(8px, env(safe-area-inset-bottom)); left: 9px; grid-template-columns: 40px minmax(0,1fr) 56px 36px 36px; gap: 6px; padding: 8px; }
  .play { width: 38px; height: 38px; }
  .time { grid-template-columns: 38px 1fr 38px; letter-spacing: .03em; }
}
@media (prefers-reduced-motion: reduce) { .film::after { display: none; } }
