:root {
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  background: #07131d;
  color: #f4efe5;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #07131d;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

.launch {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background-color: #07131d;
  background-image: url("assets/earth-europe-night-desktop.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.launch__veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(2, 10, 17, 0.12);
  pointer-events: none;
}

.brand {
  position: absolute;
  z-index: 2;
  top: clamp(20%, 25vh, 30%);
  left: 50%;
  display: flex;
  width: min(43vw, 690px);
  min-width: 420px;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  animation: reveal 850ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand__lockup {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand h1 {
  margin: clamp(-4px, -0.3vw, -1px) 0 0;
  color: #f4efe5;
  font-size: clamp(1.1rem, 1.55vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-align: center;
}

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

.route svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route__line {
  fill: none;
  opacity: 0;
  stroke: rgba(244, 239, 229, 0.62);
  stroke-width: 1.65;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transition: opacity 440ms ease;
}

.aircraft {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 180ms ease;
}

.aircraft__body {
  fill: #f2ad3d;
  stroke: rgba(244, 239, 229, 0.32);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.aircraft__light {
  fill: #fff8e9;
  animation: nav-light 1.2s ease-in-out infinite;
}

.domain {
  position: absolute;
  z-index: 2;
  right: max(3.2vw, calc(env(safe-area-inset-right) + 1rem));
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
  margin: 0;
  color: rgba(244, 239, 229, 0.8);
  font-size: clamp(0.7rem, 0.8vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: domain-reveal 850ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes nav-light {
  0%,
  58%,
  100% {
    opacity: 0.2;
  }
  70% {
    opacity: 1;
  }
}

@keyframes domain-reveal {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 680px) {
  .launch {
    background-image: url("assets/earth-europe-night-mobile.png");
    background-position: center center;
  }

  .launch__veil {
    background: rgba(2, 10, 17, 0.08);
  }

  .brand {
    top: max(13vh, calc(env(safe-area-inset-top) + 3.5rem));
    width: min(84vw, 430px);
    min-width: 0;
  }

  .brand h1 {
    margin-top: -1px;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    letter-spacing: 0.065em;
  }

  .route {
    inset: 0;
  }

  .domain {
    right: 50%;
    bottom: max(1.4rem, calc(env(safe-area-inset-bottom) + 0.8rem));
    font-size: 0.67rem;
    transform: translateX(50%);
    white-space: nowrap;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translate(-50%, 10px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }
}

@media (max-height: 620px) and (min-width: 681px) {
  .brand {
    top: 13vh;
    width: min(36vw, 520px);
  }

  .domain {
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .domain,
  .aircraft__light {
    animation: none;
  }

  .route__line {
    transition: none;
  }
}
