@charset "UTF-8";

:root {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #000;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  font-family: Arial, sans-serif;
  line-height: 1;
}

img,
video {
  display: block;
  max-width: 100%;
}

.landing {
  --design-scale: min(1px, calc(100svh / 1080));
  --landing-video-width: calc(602 * var(--design-scale));
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: calc(27 * var(--design-scale)) 12px 24px;
  background: url("img/bg.webp") center top / cover no-repeat #000;
}

.landing__content {
  width: var(--landing-video-width);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(24 * var(--design-scale));
}

.landing__logo {
  width: calc(305 * var(--design-scale));
  max-width: 50.66%;
  height: auto;
  margin-left: calc(3 * var(--design-scale));
  user-select: none;
}

.landing__video-card {
  position: relative;
  box-sizing: content-box;
  width: calc(100% - 2 * var(--frame-width));
  --frame-width: calc(5 * var(--design-scale));
  --frame-radius: var(--frame-width);
  aspect-ratio: 1 / 1;
  padding: var(--frame-width);
  border-radius: var(--frame-radius);
}

.landing__video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--frame-width);
  border-radius: inherit;
  background: linear-gradient(
    -24deg,
    #fffc8b 0%,
    #ab7a15 14.16%,
    #fdb520 31%,
    #fffc8b 49.88%,
    #fdb520 64.4%,
    #ab7a15 77.69%,
    #fffc8b 88.65%,
    #fdb520 100%
  );
  /* Cut out the center: the same border width on all four sides. */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.landing__video,
.landing__poster {
  position: absolute;
  inset: var(--frame-width);
  width: calc(100% - 2 * var(--frame-width));
  height: calc(100% - 2 * var(--frame-width));
  object-fit: cover;
  background: #070527;
}

.landing__poster {
  z-index: 1;
  pointer-events: none;
}

.landing__poster--hidden {
  display: none;
}

.landing__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: calc(112 * var(--design-scale));
  height: calc(112 * var(--design-scale));
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.55));
}

.landing__play--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
}

.landing__play-image {
  width: 100%;
  height: auto;
  animation: landing-play-pulse 2s ease-in-out infinite;
}

.landing__cta {
  width: 60%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  filter: drop-shadow(0 3px 6px #0008);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.landing__cta-image {
  width: 100%;
  height: auto;
}

.landing__cta--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.landing__cta:focus-visible,
.landing__play:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

@keyframes landing-cta-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

@keyframes landing-play-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@media (max-width: 575px) {
  .landing {
    --landing-video-width: 100%;
    padding: 10px 12px 12px;
    background-image: url("img/bg-mobile.webp");
    background-size: auto 100svh;
    background-attachment: fixed;
  }

  .landing__content {
    width: 100%;
    max-width: min(430px, calc((100svh - 104px) * 0.47));
    gap: 10px;
  }

  .landing__logo {
    width: 42%;
    max-width: 42%;
    margin-left: 0;
  }

  .landing__video-card {
    --frame-width: 3px;
    aspect-ratio: 1080 / 1920;
  }

  .landing__play {
    width: 19.48vw;
    height: 19.48vw;
  }

  .landing__cta {
    width: 72%;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing__play-image { animation: none; }
}
