/* A volumetric cloud sea fills the opening sky and scrolls away with it.
   Distant fragments, mid-height banks and large foreground masses share one
   transparent canvas; the wind remains a separate layer in front. */
.cloud-forms {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
  /* Cloud density is baked into the canvas alpha, so no blend mode is needed;
     the mask only softens the top and bottom of the band. */
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, #000 12%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    transparent 0%, #000 12%, #000 82%, transparent 100%);
}

@media (max-width: 760px) {
  .cloud-forms {
    height: 76vh;
    height: 76svh;
  }
}

.creation-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* The wind is the bottom layer: the canvas sits behind <main>, so page content
   always draws over it. Opaque sections (the dark bands) simply cover it. */
main {
  position: relative;
  z-index: 1;
}

.hero {
  touch-action: pan-y;
}

.hero-title {
  z-index: 2;
  width: max-content;
  max-width: none;
  margin-left: 0;
  padding: 0.12em 0.1em 0.18em 0;
  overflow: visible;
  font-size: clamp(6.5rem, 15.5vw, 14rem);
  line-height: 1;
}

/* Desktop: the title owns the width; the copy sits under it as one calm band
   (statement left, intro and actions right) instead of a left/right split. */
@media (min-width: 761px) {
  .hero {
    grid-template-rows: 1fr auto auto;
    row-gap: 0;
  }

  .hero-direction {
    display: none;
  }

  .hero-title {
    grid-column: 1 / 13;
    grid-row: 2;
    align-self: end;
    font-size: clamp(8rem, 24vw, 22rem);
    margin-bottom: clamp(1rem, 3vh, 2rem);
  }

  .hero-copy {
    grid-column: 1 / 13;
    grid-row: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: end;
    max-width: none;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
  }

  .hero-statement {
    grid-row: 1 / 3;
    margin: 0;
  }

  .hero-intro {
    grid-column: 2;
    margin: 0 0 1.25rem;
  }

  .hero-actions {
    grid-column: 2;
  }

  .hero-meta {
    grid-row: 1;
  }
}

.creation-caption {
  position: absolute;
  z-index: 6;
  top: 13%;
  right: var(--page-pad);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
  pointer-events: none;
}

.creation-caption span {
  color: var(--blue);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.creation-hint {
  position: absolute;
  z-index: 6;
  top: 25%;
  right: var(--page-pad);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--blue);
  font-size: 0.72rem;
  line-height: 1.5;
  pointer-events: none;
}

.creation-hint::before {
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.hint-touch {
  display: none;
}

@media (max-width: 1000px) {
  .hero-title {
    font-size: clamp(6rem, 15vw, 10rem);
  }

  .creation-caption {
    top: 14%;
  }

  .creation-hint {
    top: 25%;
  }
}

@media (max-width: 760px) {
  .hero {
    justify-content: flex-end;
    padding-top: 7rem;
    padding-bottom: 2rem;
  }

  .creation-caption,
  .hero-direction {
    display: none;
  }

  .creation-hint {
    top: 7rem;
    right: var(--page-pad);
    font-size: 0.68rem;
  }

  .hint-desktop {
    display: none;
  }

  .hint-touch {
    display: inline;
  }

  .hero-title {
    order: 1;
    align-self: flex-start;
    margin: 0 0 2.5rem;
    padding: 0.08em 0.08em 0.12em 0;
    font-size: clamp(5.25rem, 25vw, 7rem);
    line-height: 0.94;
  }

  .hero-copy {
    align-self: flex-start;
    width: 100%;
  }
}

@media (max-width: 390px) {
  .hero-title {
    margin-bottom: 2rem;
    font-size: 25vw;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .hero {
    padding-top: 5.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-title {
    margin-bottom: 1.25rem;
  }

  .hero-statement {
    margin-bottom: 0.75rem;
    font-size: 1.85rem;
  }

  .hero-intro {
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .creation-hint {
    top: 5.5rem;
  }

  .hero-meta {
    display: none;
  }
}

