:root {
  --primary-color: #1458e4;
  --secondary-color: #ffffff;
  --vw: 1440;
  --multiplier: 100vw;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "NB International";
  src: url("/assets/fonts/NBInternationalRegular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

::-webkit-scrollbar {
  display: none;
}

body {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-family: "NB International", sans-serif;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a,
p {
  text-decoration: none;
  color: currentColor;
}

.outro {
  width: 100%;
  min-height: 100dvh;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(30 / var(--vw) * var(--multiplier));
}

.scrolling {
  position: relative;
  width: 100%;
  height: 180dvh;
}

.scrolling-content {
  position: relative;
  width: 100%;
  height: 100dvh;
}

.scrolling .scrolling-content .title {
  max-width: 100vw;
  width: 100%;
  font-size: 12vw;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0.75vw;
  font-weight: 400;
  position: absolute;
  left: 0;
  background-color: var(--primary-color);
  bottom: 0;
}

.title:nth-child(3) {
  transform: translateY(-3rem);
}

.title:nth-child(2) {
  transform: translateY(-6rem);
}

.title:nth-child(1) {
  transform: translateY(-9rem);
}

.wrapper-video {
  --mask-path: inset(20% 40% 20% 40% round 15px);
  width: 100%;
  height: 100dvh;
  position: absolute;
  top: 0;
  left: 0;
  clip-path: var(--mask-path);
  will-change: clip-path;
}

.play-btn {
  position: absolute;
  left: 50%;
  top: 70%;
  transform: translate(-50%, -50%);
  width: 18%;
  border-radius: 10px;
  border: 1px solid var(--secondary-color);
  overflow: hidden;
  cursor: pointer;
  will-change: top;
}

.marquee-inner {
  display: flex;
  width: fit-content;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  will-change: transform;
}

.marquee-inner p {
  flex-shrink: 0;
  font-size: calc(20 / var(--vw) * var(--multiplier));
  font-weight: 500;
}

.marquee-wrapper {
  transition: transform 0.2s ease-out;
}

.marquee-wrapper.bottom .marquee-inner {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.marquee-wrapper.bottom {
  position: absolute;
}

.play-btn:hover .marquee-wrapper.top {
  transform: translateY(-100%);
}

.play-btn:hover .marquee-wrapper.bottom {
  transform: translateY(-100%);
}

.site {
  position: fixed;
  font-weight: 400;
  text-transform: uppercase;
  font-size: calc(20 / var(--vw) * var(--multiplier));
  top: 1rem;
  left: 1rem;
  z-index: 11;
}

.site::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  width: 100%;
  height: 2px;
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.24, 0.43, 0.15, 0.97);
}

.site:hover::before {
  transform: scaleX(0);
  transform-origin: right;
}

@media (max-width: 768px) {
  .wrapper-video {
    --mask-path: inset(20% 20% 20% 20% round 15px);
    clip-path: var(--mask-path);
  }

  .play-btn {
    width: 55%;
  }

  .marquee-inner p {
    font-size: calc(40 / var(--vw) * var(--multiplier));
  }
}
