@layer moonshot-pages {
  .fan-launch {
    padding-block: clamp(76px, 8vw, 125px) 52px;
    /* The first screen is the whole window, so step one never shows above the fold (Adam, November 29, 2026: "i never want to see dream up a hero above the fold"). */
    min-height: 100vh;
    min-height: 100svh;
  }

  .fan-launch::before {
    background-image: url('/creator-art/sky-background.webp');
    mask-image: linear-gradient(black 75%, transparent);
  }

  .fan-launch .cloud-bank {
    top: 8%;
    left: -15%;
    width: clamp(430px, 59vw, 960px);
  }

  .fan-launch .cloud-gap {
    inset: auto -15% -1% auto;
    width: clamp(490px, 69vw, 1100px);
    scale: -1 1;
  }

  #characters .cloud-trail {
    inset: auto auto 5% -18%;
    width: clamp(330px, 55vw, 780px);
  }
  #characters .cloud-bank {
    top: 11%;
    right: -20%;
    width: clamp(360px, 57vw, 820px);
    opacity: .68;
    scale: -1 1;
  }
  #stories .cloud-puff {
    inset: 5% -9% auto auto;
    width: clamp(320px, 48vw, 690px);
    opacity: .75;
  }
  #stories .cloud-wisp {
    inset: auto 2% 4% auto;
    width: clamp(240px, 38vw, 570px);
  }
  #stories .cloud-bank {
    inset: auto auto -5% -17%;
    width: clamp(380px, 56vw, 820px);
  }
  .observatory .cloud-trail {
    inset: 10% -12% auto auto;
    width: clamp(310px, 52vw, 760px);
  }
  .observatory .cloud-puff {
    inset: auto auto 12% -16%;
    width: clamp(340px, 57vw, 820px);
  }
  .observatory .cloud-bank {
    right: -21%;
    bottom: -7%;
    width: clamp(380px, 68vw, 980px);
    scale: -1 1;
  }

  .fan-launch .launch-hero {
    width: min(1140px, 92%);
    margin-inline: auto;
    grid-template-columns: 1fr;
    row-gap: clamp(16px, 2.5vw, 34px);
  }

  .fan-launch .invitation { grid-row: 2; text-align: center; }
  .fan-launch .invitation h1 {
    margin-inline: auto;
    max-width: 24ch;
    font-size: clamp(36px, 4.4vw, 64px);
  }
  .fan-launch .launch-actions { justify-content: center; }
  .fan-launch .follow { inset-inline: 0; transform: none; justify-content: center; }

  .fan-proof {
    container-type: inline-size;
    grid-row: 1;
    position: relative;
    display: block;
    /* Smaller than the headline's pull, so the eye lands on the words first (Adam, November 29, 2026:
       "the image of hte childs text and the output drawings are a bit large, it take syour eyes away from the main text"). */
    width: min(100%, 780px, 60vw);
    aspect-ratio: 2.8;
    margin: 0;
    justify-self: center;
  }

  /* These two windows show the original pencil marks at their original proportions. */
  .fan-note, .fan-arrow {
    position: absolute;
    background-image: url('/assets/oven-mitt-dragon/handwritten-note.webp');
    background-repeat: no-repeat;
  }

  .fan-note {
    z-index: 3;
    left: 2%;
    top: 6%;
    width: 41%;
    aspect-ratio: 525 / 404;
    filter: brightness(1.045) saturate(.86);
    background-size: 119.0476% 100%;
    clip-path: polygon(2.67% 23.51%, 15.24% 19.55%, 29.90% 16.83%, 64.19% 9.41%, 74.29% 7.18%, 91.81% 2.97%, 93.33% 2.97%, 93.14% 9.16%, 94.48% 17.82%, 95.05% 25.99%, 96.38% 34.65%, 97.33% 42.82%, 96.76% 48.27%, 96.76% 54.95%, 98.10% 64.85%, 99.05% 76.98%, 97.71% 78.96%, 91.05% 80.20%, 86.48% 82.67%, 83.24% 85.15%, 79.05% 85.40%, 75.81% 88.12%, 72.00% 88.86%, 68.95% 88.12%, 62.86% 88.61%, 58.10% 90.84%, 53.71% 90.35%, 49.33% 90.84%, 42.10% 94.31%, 35.62% 93.07%, 29.14% 92.33%, 23.81% 94.80%, 18.86% 95.54%, 13.52% 98.02%, 8.95% 99.26%, 7.43% 97.28%, 7.43% 90.35%, 6.67% 83.91%, 5.71% 76.24%, 6.67% 73.02%, 5.14% 67.82%, 4.76% 61.63%, 4.00% 55.94%, 2.86% 49.50%, 3.81% 44.31%, 3.05% 38.86%, 1.33% 32.92%, 1.14% 30.20%, 3.62% 28.47%);
  }

  /* Sample blank paper beside the tape to carry the note's texture to its top edge. */
  .fan-note::after {
    content: '';
    position: absolute;
    left: 28.19%;
    top: 8.17%;
    width: 36.95%;
    height: 17.08%;
    background: url('/assets/oven-mitt-dragon/handwritten-note.webp') 60.5954% 13.1579% / 1157.4074% 1683.3333% no-repeat;
    clip-path: polygon(0.00% 44.93%, 97.94% 0.00%, 100.00% 49.28%, 92.78% 56.52%, 74.23% 65.22%, 51.03% 76.81%, 28.87% 86.96%, 6.19% 100.00%, 1.03% 84.06%);
  }

  .fan-arrow {
    z-index: 4;
    left: 40.5%;
    top: 42%;
    width: 10%;
    aspect-ratio: 125 / 92;
    background-size: 500% 439.1304%;
    background-position: 100% 45.8333%;
    clip-path: polygon(2.40% 79.35%, 10.40% 60.87%, 21.60% 45.65%, 36.80% 33.70%, 53.60% 27.17%, 68.00% 27.17%, 63.20% 15.22%, 65.60% 7.61%, 72.00% 4.35%, 78.40% 7.61%, 97.60% 41.30%, 97.60% 48.91%, 73.60% 70.65%, 67.20% 71.74%, 62.40% 64.13%, 64.00% 55.43%, 69.60% 48.91%, 54.40% 48.91%, 38.40% 55.43%, 24.80% 68.48%, 14.40% 90.22%, 7.20% 95.65%, 2.40% 90.22%);
  }

  .fan-sheets { position: absolute; inset: 0 0 0 49%; }
  .fan-sheet {
    top: 15%;
    width: 49%;
    transform-origin: center 80%;
  }
  .fan-sheet img { display: block; width: 100%; height: auto; }
  .fan-sheet:nth-child(1) { left: 37%; rotate: 23deg; }
  .fan-sheet:nth-child(2) { left: 8%; top: 5%; rotate: -10deg; }
  .fan-sheet:last-child { left: 16%; top: 33%; width: 68%; rotate: -4deg; }

  .fan-proof .departure { --launch-scale: .66; top: 22%; left: 116%; }

  @media (min-width: 701px) and (max-width: 960px) {
    .fan-proof .departure { top: 4%; left: 112%; }
  }

  @media (max-width: 700px) {
    #characters .cloud-bank { top: 26%; right: -31%; }
    #stories .cloud-puff { top: 10%; right: -27%; }
    .observatory .cloud-trail { top: 12%; right: -30%; }
    .observatory .cloud-bank { bottom: -3%; right: -30%; }
    .fan-launch { padding-block: 76px 84px; }
    .fan-launch .launch-hero { row-gap: 23px; }
    .fan-launch .invitation { grid-row: 1; }
    /* The headline is the biggest thing on the phone, so the eye lands there first (Adam, November 30, 2026:
       "heading text could be larger to pull the eyes"). */
    .fan-launch .invitation h1 { max-width: 15ch; margin-bottom: 23px; font-size: clamp(38px, 11vw, 50px); }
    .fan-launch .launch-actions { gap: 10px 14px; }
    /* Stacked, not squeezed side by side: the kid's note on top, the arrow pointing down to the pages under it,
       and the rocket waiting beside the note (Adam, November 30, 2026: "why not switch it to verticaly"). */
    .fan-proof { grid-row: 2; aspect-ratio: 1; width: min(78%, 340px); }
    .fan-note { top: 0; left: 0; width: 54%; }
    .fan-arrow { top: 36%; left: 44%; width: 12%; rotate: 62deg; }
    .fan-sheets { inset: 47% 4% 0 6%; }
    .fan-sheet { width: 46%; }
    .fan-sheet:nth-child(1) { left: 50%; top: 2%; }
    .fan-sheet:nth-child(2) { left: 6%; top: 0; }
    .fan-sheet:last-child { width: 70%; left: 15%; top: 14%; }
    .fan-proof .departure { --launch-scale: .56; top: 12%; left: 90%; }
  }
  /* Short phones keep the note and pages above "See how!". */
  @media (max-width: 700px) and (max-height: 720px) {
    .fan-proof { width: min(66%, 290px); }
    .fan-proof .departure { top: 20%; }
  }
}

/* The shared paper surface is unlayered. Position the hero sheets as a fan. */
.fan-sheets .ui-paper {
  position: absolute;
  padding: 1.8%;
  --ui-paper-background: #fffefa;
}
