.launch-splash:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 50% 38%, #08634f, #043e32 59%, #02271f 100%);
  color: #fff;
  text-align: center;
  animation: onlymates-launch-exit .2s ease 2.3s both;
}

.launch-splash::before,
.launch-splash::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: max(80vw, 460px);
  height: max(25vh, 170px);
  border-radius: 50% 50% 45% 60%;
  background: linear-gradient(0deg, #0ba577, #064938 45%, #03382d 86%);
  opacity: .64;
  pointer-events: none;
}

.launch-splash::before { top: -12vh; left: -28%; transform: rotate(-17deg); }
.launch-splash::after { bottom: -15vh; right: -27%; transform: rotate(164deg); }

.launch-content {
  display: grid;
  justify-items: center;
  gap: clamp(7px, 1.9vmin, 13px);
  max-width: 100%;
}

.launch-mark {
  width: clamp(128px, 42vmin, 208px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 14px #061f1b7a);
  overflow: visible;
}

.launch-roof { animation: onlymates-launch-draw .72s ease-out .1s both; }
.launch-window { animation: onlymates-launch-visible .25s ease-out .78s both; }
.launch-roommate { animation: onlymates-launch-rise .4s ease-out 1.02s both; }
.launch-roommate-second { animation-delay: 1.2s; }

.launch-wordmark {
  margin: 0;
  font-size: clamp(38px, 10.8vw, 64px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.055em;
  animation: onlymates-launch-rise .42s ease-out 1.43s both;
}

.launch-wordmark span { color: #a5efc8; }

@supports (background-clip: text) {
  .launch-wordmark span {
    color: transparent;
    background: linear-gradient(90deg, #c2f8dc, #61e4aa);
    background-clip: text;
  }
}

.launch-tagline {
  margin: 0;
  color: #d7f4e6;
  font-size: clamp(12px, 2.7vw, 14px);
  font-weight: 650;
  letter-spacing: .09em;
  line-height: 1.45;
  animation: onlymates-launch-visible .34s ease-out 1.78s both;
}

.launch-tagline span { white-space: nowrap; }

@keyframes onlymates-launch-draw {
  from { stroke-dasharray: 1; stroke-dashoffset: 1; }
  to { stroke-dasharray: 1; stroke-dashoffset: 0; }
}

@keyframes onlymates-launch-visible {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes onlymates-launch-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes onlymates-launch-exit {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (max-height: 400px) {
  .launch-mark { width: clamp(90px, 37vmin, 140px); }
  .launch-wordmark { font-size: clamp(32px, 9vw, 44px); }
}

@media (prefers-reduced-motion: reduce) {
  .launch-splash:not([hidden]) { display: none; animation: none; }
}
