/* ── 01 · Hero / cover ─────────────────────────────────────────────────── */
#hero {
  --u: min(1vw, 1.55vh);
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
}
#hero .hero__glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(40% 45% at 18% 70%, rgba(245, 210, 127, .28), transparent 70%),
    radial-gradient(35% 40% at 85% 20%, rgba(244, 197, 213, .45), transparent 70%),
    radial-gradient(30% 35% at 70% 92%, rgba(169, 193, 154, .18), transparent 70%);
  pointer-events: none;
}

#hero .hero__comp {
  position: relative;
  width: calc(var(--u) * 92);
  height: calc(var(--u) * 56);
  margin-top: calc(var(--u) * 3);
}

/* name lettering: original PDF letterforms, one mask per glyph */
#hero .hero__name { position: absolute; inset: 0; margin: 0; }
#hero .hero__word { position: absolute; display: block; }
#hero .hero__word--first { left: 9%; top: 0; width: 85%; aspect-ratio: 1076 / 327; }
#hero .hero__word--last { left: 28%; top: 45%; width: 68%; aspect-ratio: 948 / 372; }
#hero .glyph {
  position: absolute; top: 0; height: 100%;
  left: calc(var(--x) / var(--W) * 100%);
  width: calc(var(--w) / var(--W) * 100%);
  display: block;
}
#hero .glyph__ink {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; max-width: none;
  transform-origin: 50% 100%;
  will-change: transform;
  user-select: none; -webkit-user-drag: none;
}

/* the girl */
#hero .hero__girl {
  position: absolute; z-index: 4;
  left: 5%; bottom: -7%;
  height: 92%;
  aspect-ratio: 332 / 950;
}
#hero .hero__walker { position: absolute; inset: 0; will-change: transform; }
#hero .hero__body { position: absolute; inset: 0; transform-origin: 50% 100%; }
#hero .hero__still, #hero .hero__rig { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero .hero__rig { opacity: 0; }
#hero .hero__rig img { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero .hero__leg--near { transform-origin: 46% 55.5%; }
#hero .hero__leg--far { transform-origin: 66% 55.5%; }
#hero .hero__shadow {
  position: absolute; left: 4%; right: -12%; bottom: 0.5%; height: 5%;
  background: radial-gradient(closest-side, rgba(58, 42, 42, .32), rgba(58, 42, 42, 0));
  transform-origin: 50% 50%;
}
#hero .hero__bubble {
  position: absolute; left: 72%; top: 2%;
  margin: 0; white-space: nowrap;
  font-family: var(--font-hand); font-size: clamp(16px, calc(var(--u) * 1.6), 24px);
  background: var(--card); color: var(--ink);
  padding: .35em .9em .4em; border-radius: 1.2em 1.2em 1.2em .2em;
  border: 2px solid var(--ink);
  box-shadow: 3px 4px 0 var(--pink);
  transform-origin: 0% 100%;
  opacity: 0;
}
#hero .hero__bubble span { color: var(--pink); }

/* handwritten notes */
#hero .hero__note {
  position: absolute; margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(22px, calc(var(--u) * 2.6), 40px);
  line-height: 1; white-space: nowrap; color: var(--ink);
}
#hero .hero__note--hi { left: -6%; top: 40%; rotate: -11deg; }
#hero .hero__note--welcome { right: 0%; bottom: 10%; rotate: -7deg; }
#hero .hero__arrow-hi { position: absolute; left: -3%; top: 47%; width: 9%; rotate: 16deg; }
#hero .hero__underline { position: absolute; right: 1%; bottom: 4%; width: 30%; rotate: -6deg; }

#hero .hero__dd { position: absolute; z-index: 5; }
#hero .hero__dd--1 { width: 4.5%; left: 3%; top: 6%; }
#hero .hero__dd--2 { width: 3.6%; left: 98%; top: 10%; }
#hero .hero__dd--3 { width: 3%; left: 22%; top: 44%; }
#hero .hero__dd--4 { width: 2.8%; left: 95%; top: 54%; }
#hero .hero__dd--5 { width: 4.2%; left: -4%; top: 70%; }
#hero .hero__dd--6 { width: 3.4%; left: 56%; top: 36%; }
#hero .hero__dd--7 { width: 4%; left: 101%; top: 82%; }

#hero .hero__tag {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  margin: 0; font-size: 12px; color: var(--ink-soft); white-space: nowrap;
}
#hero .hero__tag i { font-style: normal; color: var(--pink); margin: 0 .4em; }

#hero .hero__cue {
  position: absolute; right: calc(var(--gutter) + 90px); bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-hand); font-size: 18px; color: var(--ink-soft);
}
#hero .hero__cue .dd { width: 16px; height: 28px; }

#hero .hero__trail {
  position: absolute; left: 0; right: 0; bottom: 9%; height: 14px; width: 100%;
  fill: none; overflow: visible; pointer-events: none; z-index: 1;
}
#hero .hero__trail path { stroke: var(--pink); stroke-width: 3px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1 9; opacity: .7; }

/* no-JS / reduced motion fallbacks keep everything visible */
html:not(.js) #hero .hero__bubble { display: none; }

/* ── Tablet & phone: portrait-friendly stacking ───────────────────────── */
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  #hero { --u: 1vw; min-height: 640px; }
  #hero .hero__comp { width: 94vw; height: min(150vw, 82svh); margin-top: 40px; }
  #hero .hero__word--first { left: 2%; top: 4%; width: 96%; }
  #hero .hero__word--last { left: 16%; top: calc(4% + 31vw); width: 82%; }
  #hero .hero__girl { left: 2%; bottom: 0; height: 56%; }
  #hero .hero__note--hi { left: 36%; top: auto; bottom: 34%; rotate: -8deg; font-size: 26px; }
  #hero .hero__arrow-hi { left: 26%; top: auto; bottom: 26%; width: 12%; rotate: 150deg; }
  #hero .hero__note--welcome { right: 2%; bottom: 14%; font-size: 24px; }
  #hero .hero__underline { right: 2%; bottom: 10%; width: 54%; }
  #hero .hero__dd--3, #hero .hero__dd--6 { display: none; }
  #hero .hero__dd--1 { width: 8%; } #hero .hero__dd--2 { width: 7%; left: 88%; top: 2%; }
  #hero .hero__dd--4 { width: 6%; left: 88%; top: 60%; } #hero .hero__dd--5 { width: 9%; left: 70%; top: 70%; }
  #hero .hero__dd--7 { width: 8%; left: 86%; top: 88%; }
  #hero .hero__tag { white-space: normal; text-align: center; width: 90vw; bottom: 46px; line-height: 1.7; }
  #hero .hero__cue { display: none; }
  #hero .hero__bubble { display: none; }
  #hero .hero__trail { display: none; }
}
