:root {
  color-scheme: dark;
  --page-padding: clamp(18px, 2.2vw, 42px);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
}

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

.landing {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.brand {
  --logo-x: 0px;
  --logo-y: 0px;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: clamp(108px, 8.5vw, 170px);
  transform: translate(-50%, -50%) translate3d(var(--logo-x), var(--logo-y), 0);
  transition: transform 180ms ease-out;
  will-change: transform;
}

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

.contact {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  color: rgba(255,255,255,.48);
  font-size: clamp(10px, .62vw, 13px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.contact:hover,
.contact:focus-visible {
  color: #fff;
}

.contact:focus-visible {
  outline: 1px solid rgba(255,255,255,.7);
  outline-offset: 5px;
}

.character {
  --mouse-x: 0px;
  --mouse-y: 0px;
  position: absolute;
  z-index: 1;
  right: clamp(-76px, -3.5vw, -28px);
  bottom: clamp(-118px, -7vw, -46px);
  width: clamp(215px, 15.7vw, 325px);
  transform: translate3d(var(--mouse-x), var(--mouse-y), 0);
  transition: transform 180ms ease-out;
  pointer-events: none;
  user-select: none;
}

.character img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(115, 163, 220, .12));
}

@media (max-width: 700px) {
  .brand {
    top: 44%;
    width: clamp(105px, 31vw, 145px);
  }

  .character {
    right: clamp(-74px, -15vw, -38px);
    bottom: clamp(-94px, -15vw, -58px);
    width: clamp(205px, 56vw, 285px);
  }

  .contact {
    bottom: max(15px, env(safe-area-inset-bottom));
    font-size: 11px;
  }
}

@media (max-height: 560px) {
  .brand { top: 45%; }
  .character {
    width: clamp(180px, 25vh, 235px);
    bottom: -82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .character { transition: none; }
}
