:root {
  color-scheme: light;
  background: #008fe8;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #008fe8;
}

body {
  min-height: 100svh;
}

.landing {
  position: relative;
  isolation: isolate;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  background: #008fe8;
}

.background {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  overflow: hidden;
  background: #008fe8;
}

.background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 43%, rgb(255 255 255 / 7%), transparent 35%),
    linear-gradient(to bottom, rgb(0 54 116 / 6%), transparent 24%, transparent 76%, rgb(0 27 55 / 12%));
}

.cloud-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.drifting-cloud {
  position: absolute;
  top: var(--top);
  left: -22vw;
  display: block;
  width: var(--width);
  height: auto;
  opacity: var(--opacity);
  filter: drop-shadow(0 0.2rem 0.3rem rgb(83 164 221 / 16%));
  user-select: none;
  will-change: transform;
  animation: cloud-drift var(--duration) linear var(--delay) infinite;
}

.cloud-a {
  --top: 7%;
  --width: clamp(4rem, 7vw, 7.5rem);
  --opacity: 0.4;
  --duration: 86s;
  --delay: -48s;
  --flip: 1;
  --static-left: 11%;
}

.cloud-b {
  --top: 15%;
  --width: clamp(3.25rem, 5vw, 5.75rem);
  --opacity: 0.3;
  --duration: 108s;
  --delay: -16s;
  --flip: -1;
  --static-left: 39%;
}

.cloud-c {
  --top: 23%;
  --width: clamp(3.5rem, 6vw, 6.5rem);
  --opacity: 0.34;
  --duration: 96s;
  --delay: -73s;
  --flip: 1;
  --static-left: 64%;
}

.cloud-d {
  --top: 10%;
  --width: clamp(4rem, 7.5vw, 8rem);
  --opacity: 0.38;
  --duration: 118s;
  --delay: -92s;
  --flip: -1;
  --static-left: 82%;
}

.brand-stage {
  position: absolute;
  top: 47%;
  left: 50%;
  z-index: 1;
  width: min(33vw, 31.5rem);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1.4rem 1.25rem rgb(0 30 65 / 28%));
  will-change: transform;
}

.brand-stage picture {
  display: block;
  width: 100%;
}

.floating-logo {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: 50% 62%;
  animation: float 5.2s ease-in-out infinite;
  will-change: transform;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(-0.65deg) scale(1);
  }
  50% {
    transform: translate3d(0, -0.9rem, 0) rotate(0.65deg) scale(1.012);
  }
}

@keyframes cloud-drift {
  0% {
    transform: translate3d(-12vw, 0, 0) scaleX(var(--flip));
  }
  50% {
    transform: translate3d(70vw, -0.35rem, 0) scaleX(var(--flip));
  }
  100% {
    transform: translate3d(144vw, 0, 0) scaleX(var(--flip));
  }
}

@media (min-aspect-ratio: 16 / 9) {
  .brand-stage {
    width: min(30vw, 31.5rem);
    top: 46%;
  }
}

@media (max-width: 700px) {
  .landing {
    min-height: 31rem;
  }

  .background img {
    object-fit: cover;
    object-position: 50% 50%;
    transform: none;
  }

  .atmosphere {
    background:
      radial-gradient(circle at 50% 28%, rgb(255 255 255 / 9%), transparent 34%),
      linear-gradient(to bottom, rgb(0 61 126 / 4%), transparent 62%, rgb(0 27 55 / 10%));
  }

  .brand-stage {
    top: 45%;
    width: min(78vw, 25rem);
    filter: drop-shadow(0 0.85rem 0.75rem rgb(0 30 65 / 26%));
  }

  .cloud-a {
    --top: 6%;
    --width: 22vw;
  }

  .cloud-b {
    --top: 16%;
    --width: 17vw;
  }

  .cloud-c {
    --top: 25%;
    --width: 19vw;
  }

  .cloud-d {
    display: none;
  }

  @keyframes float {
    0%, 100% {
      transform: translate3d(0, 0, 0) rotate(-0.45deg) scale(1);
    }
    50% {
      transform: translate3d(0, -0.55rem, 0) rotate(0.45deg) scale(1.008);
    }
  }
}

@media (max-width: 700px) and (max-height: 670px) {
  .brand-stage {
    top: 44%;
    width: min(72vw, 23rem);
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .brand-stage {
    top: 46%;
    width: min(36vw, 24rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-logo {
    animation: none;
  }

  .drifting-cloud {
    left: var(--static-left);
    animation: none;
    transform: scaleX(var(--flip));
  }
}
