:root {
  color-scheme: light;
  --viewport-height: 100svh;
  --scroll-travel: 0.25;
  --parallax-y: 0px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: #69cffb;
  overscroll-behavior-y: none;
}

body { margin: 0; }

/* 100% for the scene plus 25% for a short, natural scroll. JS pins the
   measurement so mobile browser toolbars do not make the artwork jump. */
.world {
  position: relative;
  height: calc(var(--viewport-height) * (1 + var(--scroll-travel)));
}

.scene {
  position: sticky;
  top: 0;
  height: var(--viewport-height);
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

.layer {
  position: absolute;
  transform: translate3d(0, var(--parallax-y), 0);
  will-change: transform;
}

.background {
  z-index: 0;
  inset: 0 0 auto;
  height: 125%;
  pointer-events: none;
}

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

.domain {
  z-index: 1;
  left: 43%;
  top: 29%;
  width: 54%;
  text-align: center;
}

h1 {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  font-family: "Arial Rounded MT Bold", "Arial Black", "Trebuchet MS", sans-serif;
  font-weight: 900;
  font-size: clamp(72px, 18.5vw, 310px);
  line-height: 1.12;
  letter-spacing: -0.065em;
  filter: drop-shadow(0 9px 0 #ffffff) drop-shadow(0 12px 15px #9477c43b);
}

.letter {
  display: inline-block;
  color: var(--letter-color);
  -webkit-text-stroke: clamp(7px, 1.25vw, 22px) white;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--letter-depth), 0 6px 0 var(--letter-depth);
}

.letter-pink { --letter-color: #f842a9; --letter-depth: #cc258b; }
.letter-orange { --letter-color: #ffb334; --letter-depth: #f28d16; }
.letter-cyan { --letter-color: #23c2f3; --letter-depth: #079ed8; }
.letter-blue { --letter-color: #188dff; --letter-depth: #1361dc; }
.letter-purple { --letter-color: #a952f7; --letter-depth: #8238d2; }

.mascot {
  z-index: 2;
  left: 5%;
  top: 6%;
  width: 53%;
  height: 84%;
  pointer-events: none;
}

.mascot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 20px 22px #ed65aa22);
}

/* Portrait screens: the word floats above, and slightly behind, the face. */
@media (max-aspect-ratio: 1/1) {
  .background img { object-position: 48% center; }
  .domain { left: 5%; top: 29%; width: 90%; }
  h1 { font-size: clamp(80px, 29vw, 240px); }
  .letter { -webkit-text-stroke-width: clamp(7px, 2.4vw, 17px); }
  .mascot {
    --mascot-width: min(94vw, calc(var(--viewport-height) * 0.60));
    left: calc((100% - var(--mascot-width)) / 2);
    top: calc(29% + 60px);
    width: var(--mascot-width);
    height: auto;
  }
  .mascot img { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .layer { transform: none; will-change: auto; }
}
