:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  background: center / cover no-repeat url("../images/bg.png");
  background-attachment: fixed;
}

body {
  display: grid;
  min-height: 100vh;
  grid-template-rows: 1fr auto;
}

main {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.video-frame {
  position: relative;
  width: min(75vw, 1200px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0.75rem;
}

.paint-reveal {
  position: fixed;
  z-index: 2;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}

.paint-stroke {
  fill: none;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  stroke-linecap: round;
  animation: brush-reveal 1.6s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.paint-stroke-one {
  animation-delay: 100ms;
}

.paint-stroke-two {
  stroke-dashoffset: -2000;
  animation-delay: 650ms;
}

.paint-stroke-three {
  animation-delay: 1.2s;
}

@keyframes brush-reveal {
  to {
    stroke-dashoffset: 0;
  }
}

.legal-disclaimer {
  margin: 0;
  padding: 0 1rem 1rem;
  color: #25382c;
  font: 0.75rem / 1.35 system-ui, sans-serif;
}

@media (max-width: 640px) {
  main {
    padding: 1rem;
  }

  .video-frame {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paint-reveal {
    animation: none;
    display: none;
  }
}
