/* Hi Dood — home page. Needs styles.css (and book.css for the book object). */
.hero { position: relative; margin-top: -78px; padding: 132px 0 clamp(130px, 14vw, 190px); min-height: min(920px, 100svh); display: grid; align-items: center; overflow: hidden; background: linear-gradient(var(--sky) 60%, var(--sky-soft)); }
.hero-in { position: relative; z-index: 2; width: min(980px, 100% - 32px); margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: 18px; }
.kicker span { display: inline-block; font: 800 clamp(.9rem, 2.4vw, 1.1rem)/1.2 var(--body); background: var(--white); border: var(--line); border-radius: 999px; padding: 9px 18px; transform: rotate(-2deg); animation: drop .6s cubic-bezier(.3, 1.5, .5, 1) .1s both; }
.hero-lockup { width: 100%; margin: 6px 0 0; }
.lockup { width: min(860px, 100%); margin-inline: auto; overflow: visible; filter: drop-shadow(0 10px 0 rgba(91, 70, 54, .14)); }
.lockup--stack { display: none; }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4; max-width: 34ch; font-weight: 700; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 4px; }
.hero-note { font: 800 1rem/1 var(--body); display: inline-flex; align-items: center; gap: 8px; }
.hero .sunball { right: 6%; top: 118px; animation: sunrise 1.1s cubic-bezier(.2, 1.3, .4, 1) .2s both; }
@keyframes sunrise { from { transform: translateY(46vh) scale(.6); opacity: 0; } }
/* hero motion: letters hop in, Dood peeks up, paw lands — all inside the first second */
.wm-l { animation: hop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.wm-l0 { animation-delay: .05s; } .wm-l1 { animation-delay: .12s; } .wm-l2 { animation-delay: .19s; } .wm-l3 { animation-delay: .26s; } .wm-l4 { animation-delay: .33s; } .wm-l5 { animation-delay: .4s; }
@keyframes hop { from { translate: 0 90px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.bar .wm-l, .book .wm-l { animation: none; }
.lk-dood { animation: peek .8s cubic-bezier(.3, 1.5, .5, 1) .35s both, bob 3.2s ease-in-out 1.3s infinite; }
@keyframes peek { from { transform: translateY(400px); } to { transform: translateY(0); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.lk-paw { animation: pawin .45s cubic-bezier(.3, 1.6, .5, 1) .85s both; }
@keyframes pawin { from { translate: 0 60px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.wm-heart { transform-box: fill-box; transform-origin: 50% 80%; animation: beat 1.6s ease-in-out 1.2s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } }
@keyframes drop { from { translate: 0 -30px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
/* Entrances are retired after they play or when motion is paused, so the hero never rests at its invisible first frame. */
html.entered .wm-l, html.entered .kicker span, html.entered .lk-paw, html.entered .hero .sunball { animation: none; }
html.entered .lk-dood { animation: bob 3.2s ease-in-out infinite; }

/* big statement */
.say { text-align: center; }
.say .t-hero { max-width: 15ch; margin-inline: auto; }
.say .sub { margin-top: 26px; max-width: 50ch; }
.trio { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.trio li { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(1.2rem, 2.6vw, 1.6rem)/1 var(--display); padding: 14px 26px; border: var(--line); border-radius: 999px; box-shadow: var(--pop); background: var(--white); }
.trio li:nth-child(1) { background: var(--sun); rotate: -3deg; } .trio li:nth-child(2) { background: var(--sky-soft); rotate: 2deg; } .trio li:nth-child(3) { background: var(--rose); rotate: -1.5deg; }

/* say-hi teaser card */
.mini-scene { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: linear-gradient(var(--sky), var(--sky-soft) 75%); isolation: isolate; }
.mini-scene::after { content: ""; position: absolute; left: -8%; right: -8%; bottom: -1px; height: 27%; background: #FFEE93; border-top: var(--line); border-radius: 50% 50% 0 0 / 70% 70% 0 0; z-index: -1; }
.mini-scene .dood { position: absolute; right: 9%; bottom: 7%; width: 46%; }
.mini-scene .bubble-s { position: absolute; left: 6%; top: 9%; max-width: 56%; background: var(--white); border: var(--line); border-radius: 26px 26px 26px 8px; padding: 12px 18px; font: 800 clamp(1rem, 1.9vw, 1.25rem)/1.3 var(--body); box-shadow: 0 5px 0 var(--ink); }
.mini-scene .hand-s { position: absolute; left: 9%; bottom: 13%; width: 24%; animation: reach 3.6s ease-in-out infinite; }
.mini-scene .hand-s svg { width: 100%; overflow: visible; }
@keyframes reach { 0%, 100% { translate: 0 0; } 50% { translate: 34% -6%; } }
.hand-mitt { fill: var(--sun); } .hand-cuff { fill: var(--rose); } .hand-ink { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.steps-s { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; counter-reset: st; }
.steps-s li { counter-increment: st; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: var(--line); border-radius: 999px; background: var(--white); font: 800 1rem/1 var(--body); }
.steps-s li::before { content: counter(st); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); font: 700 1.05rem/1 var(--display); }

/* grown-ups strip */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.doors .tile { padding-bottom: 22px; }
.doors .more { margin-top: 4px; }

@media (max-width: 860px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .hero { padding: 112px 0 120px; min-height: 0; }
  .lockup--wide { display: none; }
  .lockup--stack { display: block; width: min(430px, 100%); }
  .hero .cta .btn { flex: 1 1 100%; }
  .hero .cta { width: 100%; }
  .hero .sunball { top: 88px; right: -16px; }
}
