:root {
  color-scheme: light;
  --fallback: #2b9fb6;
  --copyright: #07364a;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--fallback);
}

body {
  min-height: 100svh;
  font-family: Arial, Helvetica, sans-serif;
}

.splash {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(18px, 3vw, 44px);
  isolation: isolate;
  overflow: hidden;
}

.background {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--fallback);
  background-image: url("assets/aerial-ocean-desktop.jpg");
  background-image: image-set(
    url("assets/aerial-ocean-desktop.webp") type("image/webp"),
    url("assets/aerial-ocean-desktop.jpg") type("image/jpeg")
  );
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.008);
  animation: background-in 1s ease-out forwards;
}

.brand {
  display: block;
  width: min(51.3vw, 675px);
  max-height: 92svh;
  opacity: 0;
  transform: translateY(12px) scale(.975);
  animation: logo-in 7s cubic-bezier(.18,.72,.18,1) .65s forwards;
  filter:
    drop-shadow(0 18px 34px rgba(0, 20, 43, .48))
    drop-shadow(0 3px 4px rgba(0, 12, 26, .72));
  will-change: opacity, transform;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 92svh;
  object-fit: contain;
}

.copyright {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 2;
  max-width: calc(100% - 32px);
  margin: 0;
  color: var(--copyright);
  font-size: clamp(10px, .72vw, 12px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .025em;
  text-align: right;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .95),
    0 0 8px rgba(255, 255, 255, .9);
  opacity: .88;
  user-select: none;
}

@media (max-width: 720px) {
  .splash { padding: 12px; }

  .background {
    background-image: url("assets/aerial-ocean-mobile.jpg");
    background-image: image-set(
      url("assets/aerial-ocean-mobile.webp") type("image/webp"),
      url("assets/aerial-ocean-mobile.jpg") type("image/jpeg")
    );
    background-position: 50% 50%;
  }

  .brand {
    width: min(83.7vw, 486px);
    max-height: 88svh;
    transform: translateY(9px) scale(.98);
  }

  .brand img { max-height: 88svh; }

  .copyright {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    max-width: calc(100% - 20px);
    font-size: clamp(8.5px, 2.45vw, 10px);
    letter-spacing: 0;
  }
}

@media (max-width: 420px) {
  .copyright {
    max-width: 92%;
    line-height: 1.25;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .brand {
    width: min(41.85vw, 554px);
    max-height: 90svh;
  }
  .brand img { max-height: 90svh; }

  .copyright {
    right: 10px;
    bottom: 7px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .background,
  .brand {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes background-in {
  from { opacity: 0; transform: scale(1.012); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes logo-in {
  0%   { opacity: 0; transform: translateY(12px) scale(.975); }
  28%  { opacity: .08; }
  58%  { opacity: .48; }
  82%  { opacity: .88; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
