:root {
  color-scheme: dark;
  background: #000;
  color: #f2f0eb;
  font-family: system-ui, sans-serif;
}

body { margin: 0; }

.stage {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100svh;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  isolation: isolate;
}

.is-scrubbing { min-height: 500svh; }
.is-scrubbing .stage { position: sticky; top: 0; }

.heading { z-index: 1; }

h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 540;
  letter-spacing: -.07em;
  line-height: 1;
}

video {
  grid-row: 2;
  justify-self: center;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.guide {
  grid-row: 3;
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.25rem;
  color: #b9b7b0;
}

[hidden] { display: none; }
.guide p { margin: 0; font-size: .875rem; }

.track {
  width: clamp(4rem, 14vw, 11rem);
  height: 2px;
  background: #34322e;
}

.fill {
  height: 100%;
  background: #f5a35b;
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

.fallback { grid-row: 3; }
