/* Coming-soon homepage. The star is the DALL·E scene (/img/coming-soon.webp, brief in
   art/coming-soon-dalle.md), shown whole in a framed card so Rocko is never cropped.
   Phones get the tall crop (coming-soon-tall.webp); the headline floats in the
   painting's open sky on both. Everything moving is CSS only and stops under prefers-reduced-motion. */
body.soon {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255,255,255,.75), transparent 70%),
    linear-gradient(180deg, #8fc6f2 0%, #bfe0f7 45%, #e9f3d0 75%, #a9d77a 100%);
  background-attachment: scroll;
  background-color: var(--sky);
  overflow-x: hidden;
}

.cs {
  position: relative;
  max-width: 980px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: clamp(20px, 5vh, 56px);
}

/* ---------- headline ---------- */
.cs-head { position: relative; z-index: 2; }
.cs-brand {
  margin: 0 0 6px; font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 700;
  display: inline-block; padding: 4px 18px; border-radius: 999px;
  background: rgba(255,255,255,.82); box-shadow: var(--shadow);
}
.cs-brand .rk { color: var(--brand); }
.cs-brand .kids span { display: inline-block; }
.cs-brand .kids span:nth-child(1) { color: #3AA0FF; transform: rotate(-6deg); }
.cs-brand .kids span:nth-child(2) { color: #FFB020; transform: translateY(-2px); }
.cs-brand .kids span:nth-child(3) { color: #35D07A; transform: rotate(5deg); }
.cs-brand .kids span:nth-child(4) { color: #FF5FA8; transform: translateY(2px) rotate(-4deg); }

.cs-title {
  font-size: clamp(3.2rem, 13vw, 7.5rem);
  line-height: .95; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .28em;
  /* white outline + soft drop so it reads over any part of the painting */
  -webkit-text-stroke: .06em #fff; paint-order: stroke fill;
  filter: drop-shadow(0 6px 10px rgba(20,40,70,.28));
}
.cs-title .w { white-space: nowrap; }
.cs-title .w span { display: inline-block; animation: hop 2.4s ease-in-out infinite; }
.cs-title .w span:nth-child(5n+1) { color: var(--brand); }
.cs-title .w span:nth-child(5n+2) { color: #3AA0FF; }
.cs-title .w span:nth-child(5n+3) { color: #FFB020; }
.cs-title .w span:nth-child(5n+4) { color: #35D07A; }
.cs-title .w span:nth-child(5n+5) { color: #FF5FA8; }
/* a wave runs through the letters */
.cs-title .w span:nth-child(1) { animation-delay: 0s; }
.cs-title .w span:nth-child(2) { animation-delay: .08s; }
.cs-title .w span:nth-child(3) { animation-delay: .16s; }
.cs-title .w span:nth-child(4) { animation-delay: .24s; }
.cs-title .w span:nth-child(5) { animation-delay: .32s; }
.cs-title .w span:nth-child(6) { animation-delay: .40s; }
.cs-title .w + .w span:nth-child(1) { animation-delay: .52s; }
.cs-title .w + .w span:nth-child(2) { animation-delay: .60s; }
.cs-title .w + .w span:nth-child(3) { animation-delay: .68s; }
.cs-title .w + .w span:nth-child(4) { animation-delay: .76s; }
.cs-title .w + .w span:nth-child(5) { animation-delay: .84s; }
@keyframes hop {
  0%, 60%, 100% { transform: translateY(0) rotate(0); }
  30%           { transform: translateY(-.14em) rotate(-4deg); }
}

.cs-sub {
  margin: 14px auto 0; max-width: 30ch; text-wrap: balance;
  font-size: clamp(1.15rem, 3.6vw, 1.6rem); font-weight: 600; color: #1c2434;
  background: rgba(255,255,255,.86); padding: 10px 22px; border-radius: 22px;
  box-shadow: var(--shadow);
}

/* ---------- the DALL·E scene ---------- */
.cs-hero { position: relative; z-index: 1; width: 100%; }
.cs-frame {
  position: relative; overflow: hidden;
  border-radius: 34px; border: 6px solid #fff;
  box-shadow: 0 22px 50px rgba(20,60,90,.28), 0 2px 6px rgba(20,60,90,.12);
  background: #bfe0f7;
  aspect-ratio: 1024 / 1536;            /* phones get the tall painting */
}
@media (min-width: 700px) { .cs-frame { aspect-ratio: 1374 / 1145; } }
.cs-scene {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform-origin: 62% 55%;
  animation: breathe 22s ease-in-out infinite alternate;
}
/* a slow, gentle push-in so the painting feels alive */
@keyframes breathe {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* the subtitle rides on the bottom edge of the frame like a ribbon */
.cs-hero .cs-sub {
  position: relative; z-index: 2;
  margin: -34px auto 0; width: fit-content; max-width: min(92%, 34ch);
}

/* the headline floats in the painting's open sky (both crops leave room for it) */
.cs-head {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0;
  padding: 5% 8px 0;
}
@media (min-width: 700px) {
  .cs-head { padding-top: 2.6%; }
  .cs-title { font-size: clamp(3.6rem, 9vw, 6.6rem); }
}

/* ---------- "what's coming" bubbles ---------- */
.cs-bubbles {
  list-style: none; margin: 18px 0 0; padding: 0; position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
}
.cs-bubbles li {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: #fff; border: 5px solid var(--c);
  font-size: .95rem; font-weight: 700; color: #1c2434;
  box-shadow: var(--shadow-lift);
  animation: float 3.6s ease-in-out infinite;
}
.cs-bubbles li span { font-size: 2rem; line-height: 1.1; }
.cs-bubbles li:nth-child(2) { animation-delay: -.7s; }
.cs-bubbles li:nth-child(3) { animation-delay: -1.4s; }
.cs-bubbles li:nth-child(4) { animation-delay: -2.1s; }
.cs-bubbles li:nth-child(5) { animation-delay: -2.8s; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

.cs-grownups { margin-top: 28px; position: relative; z-index: 2; }

/* ---------- paint blobs drifting in the sky ---------- */
.cs-sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  opacity: .55; filter: blur(.5px);
  animation: drift 14s ease-in-out infinite alternate;
}
.b1 { width: 70px; height: 62px; left: 6%;  top: 14%; background: #FF5FA8; }
.b2 { width: 46px; height: 50px; left: 86%; top: 10%; background: #3AA0FF; animation-duration: 11s; }
.b3 { width: 34px; height: 30px; left: 18%; top: 52%; background: #FFB020; animation-duration: 16s; }
.b4 { width: 58px; height: 52px; left: 78%; top: 46%; background: #35D07A; animation-duration: 12s; }
.b5 { width: 28px; height: 26px; left: 52%; top: 6%;  background: #9b6bff; animation-duration: 18s; }
.b6 { width: 40px; height: 44px; left: 92%; top: 72%; background: #F04E37; animation-duration: 13s; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(0); }
  to   { transform: translate(-30px, 24px) rotate(40deg); }
}

@media (max-width: 520px) {
  .cs-bubbles li { width: 80px; height: 80px; font-size: .85rem; border-width: 4px; }
  .cs-bubbles li span { font-size: 1.6rem; }
  .blob { opacity: .4; }
  .cs-frame { border-width: 4px; border-radius: 24px; }
  .cs-hero .cs-sub { margin-top: -22px; }
  .cs-title { font-size: clamp(2.6rem, 14vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-title .w span, .cs-scene, .cs-bubbles li, .blob { animation: none; }
}
.cs-sub .nw { white-space: nowrap; }
