@font-face {
  font-family: "Unbounded";
  src: url("/assets/unbounded-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fdfcfb;
  --ink: #000000;
  --hot: #ff4b12;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  width: 100%;
  height: 100svh;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  -webkit-font-smoothing: antialiased;
}

.teaser {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.masthead {
  position: absolute;
  z-index: 1;
  top: -3%;
  left: 50%;
  display: flex;
  width: 100vw;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: "Unbounded", sans-serif;
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.brand-burn {
  display: inline-flex;
  align-items: center;
  margin-left: 0.13em;
  padding: 0.18em 0.3em 0.2em;
  transform: rotate(-2deg);
  background: var(--hot);
  color: #ffffff;
  font: inherit;
}

.brand-burn img {
  width: auto;
  height: 0.8em;
  margin-right: 0.16em;
  object-fit: contain;
}

h1 {
  margin: clamp(5px, 0.7vw, 8px) 0 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(18px, 2.3vw, 33px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

h1 span {
  display: block;
}

h1 .hot {
  margin-top: 0.14em;
  color: var(--hot);
}

.film {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1280px, 92vw, calc(92svh * 16 / 9));
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
}

.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: transparent;
  object-fit: contain;
}

@media (max-width: 720px) {
  .film {
    width: 170vw;
  }

  .masthead {
    top: max(-18%, calc((100% - 100svh) / 2 + 12px));
  }

  .brand {
    font-size: clamp(18px, 5.4vw, 22px);
  }

  h1 {
    margin-top: 6px;
    font-size: clamp(26px, 7.9vw, 32px);
  }
}

@media (max-height: 600px) and (min-aspect-ratio: 4 / 3) {
  .film {
    width: 115vw;
  }

  .masthead {
    top: calc((100% - 100svh) / 2 + 8px);
    width: calc(100vw - 32px);
    align-items: flex-start;
    text-align: left;
  }

  .brand {
    font-size: clamp(18px, 4.8vh, 24px);
  }

  h1 {
    margin-top: 6px;
    font-size: clamp(26px, 7vh, 36px);
  }
}
