:root {
  color-scheme: light;
  font-family: "Jost", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #d9f1ef;
}

* {
  box-sizing: border-box;
}

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

body {
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
}

.site-logo {
  display: grid;
  width: 182px;
  height: 100px;
  place-content: center;
  gap: 4px;
  border-radius: 0 0 24px 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-top: 0;
  border-left: 0;
  background: rgba(247, 252, 248, 0.9);
  box-shadow: 0 7px 16px rgba(0, 105, 94, 0.08);
  color: #0b8388;
  text-align: center;
  text-decoration: none;
}

.site-logo strong {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.site-logo span {
  color: #ff6f86;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.hero {
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  perspective: 850px;
  transform-style: preserve-3d;
  background: #d9f1ef;
  isolation: isolate;
}

.hero__background,
.hero__depth,
.hero__layer,
.hero__celestial,
.hero__hotspots {
  position: absolute;
  inset: 0;
}

.hero__background {
  z-index: 0;
  inset: -2.5%;
  width: 105%;
  height: 105%;
  transform: translate3d(
      calc(var(--hero-parallax-x) * -0.12),
      calc(var(--hero-parallax-y) * -0.08),
      -90px
    )
    scale(1.1);
  filter: saturate(0.88) brightness(1.035);
  will-change: transform;
}

.hero__background img,
.hero__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__water {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}

.hero__depth {
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero__layer {
  width: 100%;
  height: 100%;
  will-change: transform;
}

.hero__layer--middle {
  z-index: 1;
  transform: translate3d(
      calc(var(--hero-parallax-x) * 0.42),
      calc(var(--hero-parallax-y) * 0.28),
      65px
    )
    scale(1.055);
  filter: saturate(0.98) drop-shadow(0 -3px 0 rgba(239, 255, 247, 0.42)) drop-shadow(0 18px 12px rgba(0, 82, 67, 0.24));
}

.hero__layer--front {
  z-index: 2;
  transform: translate3d(
      calc(var(--hero-parallax-x) * 0.82),
      calc(var(--hero-parallax-y) * 0.56),
      145px
    )
    scale(1.095);
  filter: saturate(1.08) contrast(1.02) drop-shadow(0 -4px 0 rgba(247, 255, 240, 0.5)) drop-shadow(0 -11px 16px rgba(0, 76, 61, 0.25));
}

.portal {
  display: block;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hero .portal {
  isolation: isolate;
}

.hero .portal::before,
.hero .portal::after {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.hero .portal::before {
  content: "";
  z-index: 0;
  inset: -16%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255, 252, 202, 0.5), rgba(255, 255, 255, 0.08) 54%, rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 0 0 8px rgba(255, 246, 156, 0.12), 0 12px 26px rgba(18, 118, 103, 0.18);
  transform: scale(0.82);
  animation: portal-hint 6.8s infinite ease;
}

.hero .portal::after {
  content: attr(data-tip);
  z-index: 3;
  left: 50%;
  bottom: calc(100% + 10px);
  min-width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(247, 252, 248, 0.88);
  box-shadow: 0 6px 15px rgba(0, 92, 82, 0.12);
  color: #0b8388;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  transform: translate(-50%, 6px) rotate(-2deg);
  backdrop-filter: blur(8px);
}

.hero .portal img {
  position: relative;
  z-index: 1;
}

.hero .portal:is(:hover, :focus-visible, :active, .is-tapped)::before {
  opacity: 1;
  transform: scale(1);
  animation-play-state: paused;
}

.hero .portal:is(:hover, :focus-visible, :active, .is-tapped)::after {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
}

.hero .portal:is(:hover, :focus-visible, :active, .is-tapped) img {
  filter: saturate(1.08) brightness(1.04) drop-shadow(0 9px 10px rgba(0, 94, 80, 0.18));
}

.hero .portal:active::before {
  filter: brightness(1.08);
  transform: scale(0.94);
}

.hero__hotspot--sun::before,
.hero__hotspot--sun::after {
  clip-path: none;
}

.portal:focus-visible,
.site-logo:focus-visible {
  outline: 4px solid #ff6f86;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.95);
}

.hero__characters {
  position: absolute;
  z-index: 8;
  bottom: -17.57%;
  left: 58.92%;
  width: 23.31%;
  border-radius: 32%;
  translate: 50% -20%;
  animation: characters-run 10s infinite ease;
  will-change: transform, translate, rotate;
}

.hero__characters img {
  width: 100%;
  height: auto;
  animation: characters-step 0.4s infinite alternate;
}

.hero__celestial {
  z-index: 4;
  pointer-events: none;
}

.hero__moon,
.hero__sun {
  position: absolute;
}

.hero__moon {
  top: 6.2%;
  left: 20.5%;
  width: 5.8%;
  animation: moon-rock 6.4s infinite ease-in-out;
}

.hero__sun {
  top: 42%;
  left: 72%;
  width: 11%;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 78% 63%, 55% 57%, 30% 64%, 0 59%);
}

.hero__sun img {
  animation: sun-rock 4.8s infinite ease-in-out;
}

.hero__moon img,
.hero__sun img,
.hero__bird img {
  width: 100%;
  height: auto;
}

.hero__bird {
  position: absolute;
  z-index: 7;
  border-radius: 50%;
}

.hero__bird--yellow {
  top: 40%;
  left: 25.62%;
  width: 5.62%;
  animation: bird-yellow-enter 1.4s 0.2s both cubic-bezier(0.14, 0.84, 0.65, 1.01), bird-float 4.6s 1.8s infinite ease-in-out;
}

.hero__bird--yellow img {
  scale: -1 1;
}

.hero__bird--blue {
  top: 20%;
  left: 36.92%;
  width: 5.38%;
  animation: bird-blue-enter 1.4s both cubic-bezier(0.14, 0.84, 0.65, 1.01), bird-float 5.2s 1.5s infinite ease-in-out reverse;
}

.hero__brand {
  position: absolute;
  z-index: 9;
  top: 16.5%;
  right: clamp(128px, 16vw, 240px);
  width: 350px;
  color: #fffef7;
  text-align: right;
  text-shadow: 0 4px 0 rgba(11, 131, 136, 0.32), 0 9px 20px rgba(0, 97, 84, 0.16);
}

.hero__eyebrow {
  display: inline-block;
  margin: 0;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 246, 156, 0.9);
  color: #0b8388;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-shadow: none;
  transform: rotate(-3deg);
}

.hero__brand h1 {
  margin: 6px 0 0;
  color: #fff;
  font-size: 74px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero__description {
  display: inline-block;
  max-width: 330px;
  margin: 12px 0 0;
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(247, 252, 248, 0.86);
  box-shadow: 0 7px 18px rgba(0, 92, 82, 0.08);
  color: #24645d;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-shadow: none;
}

.hero__hotspots {
  z-index: 10;
  pointer-events: none;
}

.hero__hotspot {
  position: absolute;
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.001);
  pointer-events: auto;
}

.hero__hotspot--moon {
  top: 6.2%;
  left: 20.5%;
  width: 5.8%;
}

.hero__hotspot--sun {
  top: 42%;
  left: 72%;
  width: 11%;
}

.hero__characters::before { animation-delay: 0s; }
.hero__bird--yellow::before { animation-delay: 0.6s; }
.hero__bird--blue::before { animation-delay: 1.2s; }
.hero__hotspot--moon::before { animation-delay: 1.8s; }
.hero__hotspot--sun::before { animation-delay: 2.4s; }

@keyframes portal-hint {
  0%, 12%, 100% {
    opacity: 0;
    transform: scale(0.82);
  }
  24% {
    opacity: 0.18;
    transform: scale(0.96);
  }
  36% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@keyframes moon-rock {
  0%, 100% { rotate: 0deg; }
  50% { rotate: -8deg; }
}

@keyframes sun-rock {
  0%, 100% { rotate: 0deg; }
  50% { rotate: -8deg; }
}

@keyframes bird-yellow-enter {
  from { transform: translate3d(-548%, 0, 0) rotate(-25deg); }
  to { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes bird-blue-enter {
  from { transform: translate3d(822%, 0, 0) rotate(30deg); }
  to { transform: translate3d(0, 0, 0) rotate(0deg); }
}

@keyframes bird-float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -9%; rotate: 7deg; }
}

@keyframes characters-run {
  0%, 100% { transform: rotateZ(0deg); rotate: y 0deg; translate: 50% -20%; }
  44% { transform: rotateZ(0deg); rotate: y 0deg; }
  50% { transform: rotateZ(20deg); rotate: y 180deg; translate: -20% 5%; }
  94% { transform: rotateZ(20deg); rotate: y 180deg; }
}

@keyframes characters-step {
  50% { rotate: 2deg; translate: 0 -5%; }
}

@media (max-width: 767px) {
  .site-logo {
    width: 134px;
    height: 68px;
    border-radius: 0 0 14px 0;
  }

  .site-logo strong {
    font-size: 20px;
  }

  .site-logo span {
    font-size: 8.5px;
  }

  .hero {
    height: 100svh;
    min-height: 0;
  }

  .hero__background img {
    object-position: 50% center;
  }

  .hero__layer img {
    object-position: 18% center;
  }

  .hero__layer--middle {
    transform: translate3d(
        calc(var(--hero-parallax-x) * 0.34),
        calc((var(--hero-parallax-y) * 0.24) + 4px),
        45px
      )
      scale(1.06);
  }

  .hero__layer--front {
    transform: translate3d(
        calc(var(--hero-parallax-x) * 0.74),
        calc((var(--hero-parallax-y) * 0.5) + 9px),
        100px
      )
      scale(1.1);
  }

  .hero__brand {
    top: 22%;
    right: clamp(58px, 16vw, 78px);
    width: clamp(156px, 43%, 190px);
  }

  .hero__eyebrow {
    padding: 4px 10px;
    font-size: 10.5px;
  }

  .hero__brand h1 {
    margin-top: 6px;
    font-size: 42px;
  }

  .hero__description {
    max-width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    font-size: 10.5px;
  }

  .hero__moon,
  .hero__hotspot--moon {
    top: 12.5%;
    left: clamp(20px, 7.5%, 56px);
    width: clamp(46px, 13%, 60px);
  }

  .hero__sun,
  .hero__hotspot--sun {
    top: 38%;
    right: 10%;
    left: auto;
    width: clamp(68px, 20%, 96px);
  }

  .hero__bird--yellow {
    top: 34%;
    left: 23%;
    width: clamp(44px, 13%, 60px);
  }

  .hero__bird--blue {
    top: 25%;
    left: 37%;
    width: clamp(44px, 13%, 60px);
  }

  .hero__characters {
    right: 2.5%;
    bottom: 2%;
    left: auto;
    width: clamp(110px, 33%, 160px);
    animation-name: characters-run-mobile;
  }

  .hero .portal::after {
    bottom: calc(100% + 8px);
    padding: 6px 10px;
    font-size: 11px;
  }
}

@media (max-width: 360px) and (orientation: portrait),
  (max-height: 600px) and (orientation: portrait) {
  .site-logo {
    width: 112px;
    height: 58px;
    border-radius: 0 0 12px 0;
  }

  .site-logo strong { font-size: 18px; }
  .site-logo span { font-size: 7.5px; }

  .hero__brand {
    top: 18%;
    right: 5%;
    width: clamp(142px, 44vw, 160px);
  }

  .hero__eyebrow {
    padding: 3px 8px;
    font-size: 9.5px;
  }

  .hero__brand h1 {
    margin-top: 5px;
    font-size: 38px;
  }

  .hero__description {
    margin-top: 8px;
    padding: 8px 11px;
    font-size: 10px;
    line-height: 1.45;
  }

  .hero__moon,
  .hero__hotspot--moon {
    top: 14%;
    left: 7%;
    width: 42px;
  }

  .hero__bird--blue {
    top: 28%;
    left: 13%;
    width: 42px;
  }

  .hero__bird--yellow {
    top: 38%;
    left: 17%;
    width: 42px;
  }

  .hero__sun,
  .hero__hotspot--sun {
    top: 43%;
    right: 7%;
    width: 58px;
  }

  .hero__characters {
    right: 3%;
    bottom: 0.5%;
    width: clamp(94px, 30%, 112px);
  }
}

@keyframes characters-run-mobile {
  0%, 100% { transform: rotateZ(0deg); rotate: y 0deg; translate: 5% -15%; }
  44% { transform: rotateZ(0deg); rotate: y 0deg; }
  50% { transform: rotateZ(14deg); rotate: y 180deg; translate: -18% -8%; }
  94% { transform: rotateZ(14deg); rotate: y 180deg; }
}

@media (min-width: 481px) and (max-width: 767px) and (orientation: portrait) {
  .hero__brand { top: 18%; right: 7%; }
  .hero__sun, .hero__hotspot--sun { right: 15%; }
  .hero__characters { right: 8%; bottom: 2%; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 100svh;
    min-height: 100svh;
  }

  .site-logo {
    width: 164px;
    height: 90px;
  }

  .hero__background img { object-position: 50% 54%; }
  .hero__layer img { object-position: 38% 54%; }
  .hero__brand { top: 16%; right: 7%; width: clamp(200px, 38%, 260px); }
  .hero__brand h1 { font-size: 58px; }
  .hero__description { font-size: 14px; }
  .hero__moon, .hero__hotspot--moon { top: 10%; left: 14%; width: clamp(44px, 8%, 58px); }
  .hero__sun, .hero__hotspot--sun { top: 40%; right: 19%; width: clamp(64px, 11%, 86px); }
  .hero__bird--yellow { top: 42%; left: 27%; width: 50px; }
  .hero__bird--blue { top: 21%; left: 39%; width: 50px; }
  .hero__characters { right: 9%; bottom: 1%; width: clamp(112px, 19%, 150px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__background,
  .hero__layer {
    transform: none;
  }

  .hero__moon,
  .hero__sun img,
  .hero__bird,
  .hero__characters,
  .hero__characters img,
  .hero .portal::before {
    animation: none;
  }

  .hero__water {
    opacity: 0.5;
  }
}
