/* Give the paper menu its own textile space above the portrait. */
.hero-scene {
  --hero-menu-space: calc(var(--eva-toolbar-desktop) + 8px + env(safe-area-inset-top, 0px));
  --hero-photo-height: clamp(0px, 64vw, 921.6px);
  height: calc(var(--hero-photo-height) + var(--hero-menu-space));
  background: var(--plum) url('../assets/perf/plum-soft-desktop-v1.webp') center top / 100% auto;
}

.hero-visual {
  top: var(--hero-menu-space);
  bottom: auto;
  height: var(--hero-photo-height);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px);
  mask-image: linear-gradient(to bottom, transparent, #000 48px);
}

/* Uneven, feathered ink along the top edge; the portrait stays intact. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 60px;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 12% 0, #2b172299, transparent 68%),
    radial-gradient(ellipse at 70% 0, #2b172270, transparent 62%);
}

.hero-content,
.hero-scene::before {
  top: var(--hero-menu-space);
}

.latest-scene {
  padding-top: clamp(28px, 3.4vw, 49px);
}

.hello-note { left: 33%; }

@media (min-width: 701px) and (max-width: 1000px) {
  .hello-note {
    left: auto;
    right: 7%;
    top: auto;
    bottom: 4%;
    width: 28%;
    transform: rotate(3deg);
  }
}

@media (max-width: 700px) {
  .hero-scene {
    --hero-menu-space: calc(var(--eva-toolbar-mobile) + 6px + env(safe-area-inset-top, 0px));
    --hero-photo-height: 480px;
    height: calc(520px + var(--hero-menu-space));
    background-image: url('../assets/perf/plum-soft-mobile-v1.webp');
    background-size: 100% auto;
  }

  .hero-visual {
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 36px);
    mask-image: linear-gradient(to bottom, transparent, #000 36px);
  }

  .hero-visual::before { height: 42px; }
  .hello-note { left: auto; top: 390px; }
  .hero-introduction .pill-link { margin-top: 12px; }
  .latest-scene { padding-top: 32px; }
}

@media (max-width: 380px) {
  .hello-note { top: 390px; }
}
