
:root {
  --sky: #e7efff;
  --ink: #253d70;
  --violet: #8067c2;
  --violet-shadow: #b8a4e9;
  --blue: #d1e6ff;
  --blue-shadow: #92b9eb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; line-height: 1.5; -webkit-text-size-adjust: 100%; }

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--sky);
  color: var(--ink);
  font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
  font-stretch: condensed;
  text-rendering: geometricPrecision;
}

a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dream-page {
  max-width: 1500px;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, #fafaff 0, #edf1ff 48%, #e3ebff 100%);
}

.dream-scene {
  position: relative;
  min-height: 790px;
}

.dream-stage {
  position: absolute;
  z-index: 0;
  top: 20px;
  left: 50%;
  width: min(58vw, 660px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.dream-stage img {
  display: block;
  position: absolute;
  height: auto;
  image-rendering: pixelated;
}

.surf-rider {
  z-index: 2;
  top: 39.63%;
  left: 32.60625%;
  width: 34.7875%;
  animation: rider-float 6.8s ease-in-out infinite;
}

.scene-cloud {
  z-index: 1;
  filter: saturate(0.48) brightness(1.14);
  animation: cloud-sway 8s ease-in-out infinite;
}

.scene-cloud--1 {
  top: 35%;
  left: 11%;
  width: 78%;
  --drift-x: 10px;
  --drift-y: -9px;
  animation-duration: 8.2s;
  filter: saturate(0.34) brightness(1.18);
}

.scene-cloud--2 {
  top: 38.25%;
  left: -11.75%;
  width: 52.5%;
  --drift-x: -12px;
  --drift-y: 7px;
  animation-duration: 10.5s;
  animation-delay: -3s;
  filter: saturate(0.53) brightness(1.14);
}

.scene-cloud--3 {
  top: 48.35%;
  right: -10%;
  width: 48%;
  --drift-x: 14px;
  --drift-y: -5px;
  animation-duration: 9.4s;
  animation-delay: -5s;
  filter: saturate(0.42) brightness(1.17);
}

.scene-cloud--4 {
  z-index: 0;
  top: 20.1%;
  left: 0.25%;
  width: 34.5%;
  --drift-x: -9px;
  --drift-y: -10px;
  animation-duration: 11.3s;
  animation-delay: -6s;
  filter: saturate(0.58) brightness(1.12);
}

.scene-cloud--5 {
  z-index: 0;
  top: 22.25%;
  right: 3.25%;
  width: 28.5%;
  --drift-x: 8px;
  --drift-y: 8px;
  animation-duration: 7.9s;
  animation-delay: -2s;
  filter: saturate(0.45) brightness(1.16);
}

.scene-cloud--6 {
  z-index: 0;
  top: 2%;
  left: 28%;
  width: 44%;
  --drift-x: -7px;
  --drift-y: 9px;
  animation-duration: 10.8s;
  animation-delay: -4s;
  filter: saturate(0.35) brightness(1.13);
}

.scene-cloud--7 {
  z-index: 0;
  top: 80%;
  left: 30%;
  width: 40%;
  --drift-x: 11px;
  --drift-y: -8px;
  animation-duration: 9.7s;
  animation-delay: -1s;
  filter: saturate(0.3) brightness(1.14);
}

.lower-cloud {
  display: none;
}

.link-orbit {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.link-cloud {
  position: absolute;
  width: min(24vw, 300px);
  pointer-events: auto;
}

.link-cloud--listen {
  top: 31%;
  left: 4.5%;
}

.link-cloud--social {
  top: 36%;
  right: 4.5%;
}

.link-cloud--press {
  bottom: 7%;
  left: 50%;
  width: max-content;
  text-align: center;
  transform: translateX(-50%);
}

.link-cloud h2 {
  display: inline-block;
  margin: 0 0 17px 12px;
  padding: 8px 13px 6px;
  background: var(--violet);
  box-shadow: 5px 5px 0 var(--violet-shadow);
  color: white;
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: cloud-float 6s ease-in-out infinite;
}

.link-cloud--social h2 {
  margin-left: 37%;
  animation-delay: -2s;
}

.link-cloud--press h2 {
  margin: 0 0 17px;
  animation-delay: -3s;
}

.link-cloud ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-cloud--social ul { align-items: flex-end; }
.link-cloud--press ul { align-items: center; }

.link-cloud li {
  max-width: 100%;
  animation: cloud-float 6s ease-in-out infinite;
}

.link-cloud li:nth-child(2) { animation-delay: -1s; margin-left: 17px; }
.link-cloud li:nth-child(3) { animation-delay: -3s; margin-left: 4px; }
.link-cloud li:nth-child(4) { animation-delay: -2s; margin-left: 22px; }
.link-cloud li:nth-child(5) { animation-delay: -4s; margin-left: 8px; }
.link-cloud--social li:nth-child(2) { margin-right: 17px; }
.link-cloud--social li:nth-child(3) { margin-right: 4px; }
.link-cloud--social li:nth-child(4) { margin-right: 22px; }
.link-cloud--social li:nth-child(5) { margin-right: 8px; }

.link-cloud a {
  display: inline-block;
  max-width: 100%;
  padding: 11px 17px 10px;
  border: 2px solid #edf6ff;
  border-radius: 34px 29px 33px 28px;
  background: var(--blue);
  box-shadow: 0 5px 0 var(--blue-shadow), 0 11px 20px rgb(87 122 180 / 13%);
  color: var(--ink);
  font-size: clamp(1.13rem, 2.1vw, 1.95rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.link-cloud a:hover,
.link-cloud a:focus-visible {
  background: #ff9a37;
  box-shadow: 0 7px 0 #dc6b17, 0 14px 25px rgb(196 104 31 / 24%);
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

@keyframes rider-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes cloud-sway {
  0%, 100% { transform: translate(0, 0) rotate(-1.5deg); }
  50% { transform: translate(var(--drift-x), var(--drift-y)) rotate(1.5deg); }
}

@keyframes cloud-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (max-width: 760px) {
  .dream-page { min-height: 100svh; }
  .dream-scene { min-height: 100svh; padding-bottom: 180px; }

  .dream-stage {
    position: relative;
    top: auto;
    left: auto;
    width: min(100vw, 480px);
    margin: 0 auto;
    transform: none;
  }

  .surf-rider { top: 87.46%; width: 37.3175%; left: 31.34125%; }
  .scene-cloud--2 { left: 5%; width: 46%; }
  .scene-cloud--3 { right: 6%; width: 44%; }
  .scene-cloud--4 { left: 4%; }
  .scene-cloud--5 { right: 6%; }
  .scene-cloud--6 { top: 0; }
  .scene-cloud--7 { top: 140%; left: 20%; width: 60%; }

  .lower-cloud {
    display: block;
    position: absolute;
    z-index: 0;
    height: auto;
    pointer-events: none;
    image-rendering: pixelated;
    filter: saturate(0.35) brightness(1.15);
    animation: cloud-sway 9s ease-in-out infinite;
  }

  .lower-cloud--left {
    bottom: 20px;
    left: 6%;
    width: clamp(165px, 50vw, 245px);
    --drift-x: -8px;
    --drift-y: -6px;
  }

  .lower-cloud--right {
    bottom: 55px;
    right: 6%;
    width: clamp(145px, 38vw, 210px);
    --drift-x: 9px;
    --drift-y: 7px;
    animation-delay: -3s;
  }

  .link-orbit {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: clamp(105px, 34vw, 160px);
    align-items: start;
    margin-top: max(-240px, -48vw);
    padding: 0 4%;
    pointer-events: auto;
  }

  .link-cloud {
    position: static;
    width: auto;
  }

  .link-cloud--listen { justify-self: start; }
  .link-cloud--social { justify-self: end; text-align: right; }

  .link-cloud--press {
    grid-column: 1 / -1;
    justify-self: center;
    width: max-content;
    transform: none;
  }

  .link-cloud h2 {
    margin-left: 3px;
    padding: 6px 8px 5px;
    font-size: 0.7rem;
  }

  .link-cloud--social h2 { margin-left: 0; }
  .link-cloud--press h2 { margin-left: 0; }
  .link-cloud ul { gap: 14px; }

  .link-cloud a {
    padding: 10px 10px 8px;
    font-size: clamp(0.94rem, 3.3vw, 1.36rem);
  }

  .link-cloud--press a { font-size: 1.24rem; }
  .link-cloud li:nth-child(n) { margin-left: 0; margin-right: 0; }
}

@media (max-width: 390px) {
  .link-cloud a { font-size: 0.94rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
