/* Homepage (src/pages/index.html). Scoped to body.home so the shared
   header/footer styles in styles.css + redesign.css stay as they are.

   Palette comes straight from the app: paper #FAFAFD, ink #2C2418,
   raspberry #D63E78, lavender #ECE8F5, and the gallery wall's plaster
   #EEE3D3. Type: Newsreader (display), Plus Jakarta Sans (body),
   Caveat (handwritten notes, used sparingly).

   The phone mockups are storyboards driven by home.js: classes s1…sN are
   added in order (cumulatively) through each loop, so each rule below
   describes "from this step on". `.js` gates any state that would hide
   content, so the page reads fine without JavaScript. */

.home {
    --lav: #ece8f5;
    --plaster: #eee3d3;
    --page: #fffdf8;
    --pink-tint: #fdeaf1;
    --funny: #f07e3a; --funny-soft: #fcdcc0; --funny-ink: #8a4416;
    --joy: #f5a623; --joy-soft: #ffe7b0; --joy-ink: #8a5b13;
    --wonder: #4f8fcc; --wonder-soft: #cfe1f4; --wonder-ink: #3a5b7a;
    --sea: #3fa8a1; --sea-soft: #c9ece9;
    --shadow-soft: 0 1px 2px rgba(44, 36, 24, .06), 0 10px 28px rgba(44, 36, 24, .08);
    --shadow-paper: 0 2px 4px rgba(60, 40, 20, .10), 0 14px 30px rgba(60, 40, 20, .16);
    --spring: cubic-bezier(.2, .9, .25, 1.12);
    --ease: cubic-bezier(.3, .7, .2, 1);
    --wrap: 1180px;
}

.home main { display: block; }
:where(.home main) :where(h1, h2, h3, p, figure, blockquote, ul) { margin: 0; }
:where(.home main) ul { padding: 0; list-style: none; }
.home main img { display: block; max-width: 100%; height: auto; }
.home [hidden] { display: none !important; }
.home :focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

/* ── Shared type + layout ────────────────────────────────────────────── */
.h-hand { font-family: var(--hand); font-weight: 600; color: var(--pink-dark); font-size: 1.45rem; line-height: 1.1; }
.h-h2 {
    font-family: var(--display); font-weight: 500; color: var(--ink);
    font-size: clamp(2rem, 3.2vw + .6rem, 3.2rem); line-height: 1.05; letter-spacing: -.022em; text-wrap: balance;
}
.h-sub { margin-top: 1.1rem; font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 34rem; text-wrap: pretty; }
.h-section { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 10vw, 8.5rem) 24px 0; }

.h-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.h-feature--flip .feat-visual { order: -1; }
.h-feature--band { max-width: var(--wrap); margin: 0 auto; }
.feat-visual { position: relative; display: flex; justify-content: center; }
.feat-visual::before { content: ""; position: absolute; inset: 6% 2% 0; background: radial-gradient(closest-side, rgba(236, 232, 245, .9), transparent); z-index: -1; }
.h-band { padding: clamp(4.5rem, 9vw, 7rem) 24px; margin-top: clamp(5rem, 10vw, 8.5rem); }
.h-band--lav { background: var(--lav); }
.h-band--lav .feat-visual::before { background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent); }

/* ── Store buttons + QR ──────────────────────────────────────────────── */
.h-get { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-top: 2rem; }
.h-badges { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.home .store-badge img { height: 52px; width: auto; } /* beats the .home main img reset */
.h-qr { display: flex; align-items: center; gap: .85rem; padding-left: 1.5rem; border-left: 1px solid var(--line); }
.h-qr img { width: 64px; height: 64px; }
.h-qr p { font-size: .875rem; line-height: 1.4; color: var(--muted); max-width: 9.5rem; }
@media (max-width: 860px), (pointer: coarse) { .h-qr { display: none; } }

/* ── Hero ────────────────────────────────────────────────────────────── */
.h-hero {
    max-width: 1240px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 24px clamp(3rem, 6vw, 5rem);
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.h-hero-note { transform: rotate(-2deg); transform-origin: left; margin-bottom: 1rem; }
.h-hero-title {
    font-family: var(--display); font-weight: 500; color: var(--ink);
    font-size: clamp(2.9rem, 4.6vw + 1rem, 5.4rem); line-height: .98; letter-spacing: -.03em; text-wrap: balance;
}
.h-lede { margin-top: 1.5rem; font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 30rem; }

.h-hero-visual { perspective: 1800px; }
.book {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    transform: rotateX(12deg) rotateZ(-2.5deg); transform-style: preserve-3d;
    filter: drop-shadow(0 30px 40px rgba(60, 40, 20, .18)) drop-shadow(0 4px 8px rgba(60, 40, 20, .10));
}
.book::before {
    content: ""; position: absolute; inset: -10px -12px -12px; border-radius: 10px; background: #c94f7c; z-index: -1;
    background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 2px, transparent 2px 4px), repeating-linear-gradient(90deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px);
}
.book-page { position: relative; aspect-ratio: .74; background: var(--page); }
.book-page--left { border-radius: 4px 2px 2px 4px; background: linear-gradient(90deg, var(--page) 78%, #efe8dc 100%); }
.book-page--right { border-radius: 2px 4px 4px 2px; background: linear-gradient(270deg, var(--page) 80%, #efe8dc 100%); }
.book-page::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(120, 90, 50, .06)); }
.bk { position: absolute; transform: rotate(var(--r, 0deg)); }
.js .bk { opacity: 0; transform: translateY(-46px) rotate(calc(var(--r, 0deg) + 9deg)) scale(1.05); }
.js .is-ready .bk { opacity: 1; transform: rotate(var(--r, 0deg)); transition: opacity .45s ease var(--d, 0s), transform .9s var(--spring) var(--d, 0s); }
.bk-photo { top: 6%; left: 8%; width: 74%; background: #fff; padding: 6px 6px 0; box-shadow: var(--shadow-paper); }
.bk-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.bk-photo figcaption { font-size: clamp(.95rem, 1.3vw, 1.2rem); text-align: center; padding: .35rem 0 .45rem; color: var(--ink); }
.bk-photo::before { content: ""; position: absolute; top: -9px; left: 50%; width: 56px; height: 18px; transform: translateX(-50%) rotate(-4deg); background: rgba(255, 236, 180, .78); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.bk-note { top: 53%; left: 7%; width: 56%; background: #fff; border-radius: 10px; padding: .7rem .8rem .6rem; box-shadow: var(--shadow-soft); border-top: 3px solid var(--wonder); }
.bk-note p { font-family: var(--display); font-size: clamp(.8rem, 1.05vw, 1rem); line-height: 1.35; color: var(--ink); }
.bk-date { display: block; margin-top: .35rem; font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--quiet); }
.bk-stub { top: 76%; left: 27%; width: 68%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem; background: var(--funny-soft); border-radius: 12px; padding: .5rem .65rem; box-shadow: var(--shadow-soft); }
.bk-stub .seal { width: 28px; height: 28px; }
.bk-stub .wave { width: 100%; height: 22px; }
.bk-stub-time { font-family: var(--mono); font-size: .7rem; color: var(--funny-ink); }
.bk-stub-cap { grid-column: 1 / -1; font-size: .72rem; font-weight: 600; color: var(--funny-ink); }
.bk-frame { top: 4%; left: 46%; width: 46%; }
.bk-illo { top: 47%; left: 6%; width: 80%; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-paper); }
.bk-illo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.bk-illo figcaption { font-family: var(--display); font-size: clamp(.7rem, .9vw, .85rem); line-height: 1.35; padding: .55rem .7rem .65rem; color: var(--ink); }

/* ── Frames (drawn by home.js from the app's frame geometry) ─────────── */
.frame { position: relative; width: 100%; filter: drop-shadow(4px 8px 8px rgba(70, 45, 20, .24)) drop-shadow(0 1px 1px rgba(70, 45, 20, .18)); }
.frame-svg { position: absolute; inset: 0; overflow: visible; }
.frame-art { position: absolute; overflow: hidden; background: #fff; box-shadow: inset 0 1px 3px rgba(60, 40, 20, .3); }
.frame-art img { width: 100%; height: 100%; object-fit: cover; }

/* ── Ticker ──────────────────────────────────────────────────────────── */
.h-ticker { background: var(--lav); padding: 1.4rem 0 1.6rem; overflow: hidden; }
.h-ticker-note { text-align: center; font-size: 1.2rem; color: var(--muted); margin-bottom: .6rem; }
.h-ticker-track { display: flex; width: max-content; animation: h-ticker 60s linear infinite; }
.h-ticker-row { display: flex; gap: 3rem; padding-right: 3rem; }
.h-ticker-row span { font-family: var(--hand); font-size: 2rem; white-space: nowrap; color: var(--ink); }
.h-ticker-row span:nth-child(3n+1) { color: var(--pink-dark); }
.h-ticker-row span:nth-child(3n+2) { color: var(--wonder-ink); }
@keyframes h-ticker { to { transform: translateX(-50%); } }

/* ── You, probably ───────────────────────────────────────────────────── */
.h-probably { text-align: center; }
.probably-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 880px; margin: 2.5rem auto 0; text-align: left; }
.chat { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 1.25rem 1.25rem 1.4rem; box-shadow: var(--shadow-soft); }
.chat-head { text-align: center; margin-bottom: .9rem; }
.chat-head strong { display: block; font-size: .9rem; }
.chat-head span { font-size: .75rem; color: var(--quiet); }
.msg { width: fit-content; max-width: 80%; padding: .55rem .9rem; border-radius: 18px; font-size: .95rem; line-height: 1.4; margin-top: .45rem; }
.msg--them { background: var(--panel); border-bottom-left-radius: 6px; }
.msg--me { margin-left: auto; background: var(--pink); color: #fff; border-bottom-right-radius: 6px; }
.symptoms { background: var(--panel); border-radius: 28px; padding: 1.5rem 1.6rem; }
.symptoms h3 { font-size: 1.1rem; font-weight: 700; }
.symptoms-aside { font-size: 1.2rem; color: var(--muted); margin: .1rem 0 .8rem; }
.symptoms li { position: relative; padding-left: 2rem; margin-top: .8rem; line-height: 1.45; }
.symptoms li::before {
    content: ""; position: absolute; left: 0; top: .1rem; width: 1.25rem; height: 1.25rem; border-radius: 6px;
    background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.probably-turn { max-width: 36rem; margin: 3.5rem auto 0; }
.probably-turn .h-hand { font-size: 1.9rem; transform: rotate(-1.5deg); }
.probably-turn p:last-child { margin-top: .6rem; color: var(--muted); font-size: 1.125rem; }

/* ── Phone + app UI (matches the app as of 1.5.0) ────────────────────── */
.phone { position: relative; width: 300px; height: 620px; border-radius: 48px; background: #141317; padding: 10px; box-shadow: 0 0 0 2px #55535c, 0 40px 80px rgba(44, 36, 24, .22); flex: none; }
.phone--small { width: 284px; height: 590px; }
.phone-island { position: absolute; z-index: 30; top: 20px; left: 50%; width: 88px; height: 26px; border-radius: 13px; background: #141317; transform: translateX(-50%); }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--paper); font-size: 13px; line-height: 1.4; }
.screen::after { content: ""; position: absolute; inset: 0; z-index: 25; background: var(--paper); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.sb-fade .screen::after { opacity: 1; }
.sb-reset, .sb-reset * { transition: none !important; animation: none !important; }
.sb { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0 32px; height: 26px; font-weight: 700; font-size: 13px; }
.sb-bat { width: 22px; height: 11px; border: 1.5px solid rgba(44, 36, 24, .5); border-radius: 4px; position: relative; }
.sb-bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: var(--ink); border-radius: 1.5px; }
.tl-head { padding: 14px 18px 8px; }
.tl-kicker { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.tl-title { display: block; font-family: var(--display); font-size: 24px; line-height: 1.15; color: var(--ink); }
.meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.date { font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--quiet); }
.chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 8px 2px 6px; font-size: 9.5px; font-weight: 700; }
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip--funny { background: var(--funny-soft); color: var(--funny-ink); }
.chip--joy { background: var(--joy-soft); color: var(--joy-ink); }
.chip--wonder { background: var(--wonder-soft); color: var(--wonder-ink); }
.pill { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.pill b { margin-left: 3px; font-size: 11px; color: var(--muted); }
.pill--mine { background: var(--pink-tint); border-color: var(--pink); }
.pill--mine b { color: var(--pink); }
.tabbar { position: absolute; z-index: 6; left: 14px; right: 14px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; padding: 6px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-soft); }
.tab { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; }
.tab svg { width: 16px; height: 16px; }
.tab--on { background: var(--pink); color: #fff; }
.mcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-soft); margin-bottom: 12px; }
.mtext { font-family: var(--display); font-size: 14px; line-height: 1.38; color: var(--ink); padding: 10px 14px 0; }
.mcard .meta { padding: 0 14px 12px; }
.kid { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--pink); background: var(--pink-tint); font-size: 11px; font-weight: 700; }
.kid img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.kid--sm { padding: 1px 8px 1px 2px; font-size: 9.5px; margin-left: auto; }
.kid--sm img { width: 15px; height: 15px; }
.seal { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; box-shadow: inset 0 -2px 4px rgba(0,0,0,.18), 0 2px 5px rgba(44,36,24,.18); }
.seal::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.75); }
.seal-play { width: 0; height: 0; margin-left: 3px; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; position: relative; z-index: 1; }
.seal--funny { background: var(--funny); } .seal--joy { background: var(--joy); } .seal--wonder { background: var(--wonder); }
@keyframes h-press { 40% { transform: scale(.88); } 100% { transform: scale(1); } }

/* ── Photos & videos storyboard ──────────────────────────────────────── */
.tl-viewport { position: absolute; top: 96px; left: 0; right: 0; bottom: 0; overflow: hidden; padding: 4px 14px 0; }
.ph-new { max-height: 340px; transition: max-height .75s var(--ease), opacity .45s ease .15s, margin-bottom .75s var(--ease), transform .75s var(--spring); }
.js .anim-photos .ph-new { max-height: 0; opacity: 0; margin-bottom: 0; transform: scale(.94); }
.js .anim-photos.s4 .ph-new { max-height: 340px; opacity: 1; margin-bottom: 12px; transform: none; }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; width: 300%; transition: transform .6s var(--ease); }
.carousel-track img { width: 33.3333%; aspect-ratio: 4 / 3; object-fit: cover; }
.anim-photos.s5 .carousel-track { transform: translateX(-33.3333%); }
.anim-photos.s6 .carousel-track { transform: translateX(-66.6667%); }
.carousel-count { position: absolute; left: 10px; top: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(28, 22, 16, .6); color: #fff; font-size: 10px; font-weight: 700; }
.dots { display: flex; justify-content: center; gap: 4px; padding-top: 8px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); transition: background-color .3s; }
.dots i:nth-child(1) { background: var(--pink); }
.anim-photos.s5 .dots i:nth-child(1) { background: var(--line); }
.anim-photos.s5 .dots i:nth-child(2) { background: var(--pink); }
.anim-photos.s6 .dots i:nth-child(2) { background: var(--line); }
.anim-photos.s6 .dots i:nth-child(3) { background: var(--pink); }
.video { position: relative; }
.video img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.video-play .seal-play { border-left-color: var(--ink); }
.video-dur { position: absolute; right: 8px; bottom: 10px; padding: 1px 7px; border-radius: 999px; background: rgba(28, 22, 16, .65); color: #fff; font-size: 10px; font-weight: 700; }
.video-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.4); }
.video-bar i { display: block; height: 100%; width: 40%; background: #fff; }
.anim .video-bar i { animation: h-vbar 6s linear infinite; }
@keyframes h-vbar { from { width: 0; } to { width: 100%; } }
.picker { position: absolute; z-index: 8; left: 0; right: 0; bottom: 0; height: 63%; padding: 14px 14px 30px; background: #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 40px rgba(44, 36, 24, .18); transform: translateY(105%); transition: transform .55s var(--ease); }
.anim-photos.s1 .picker { transform: none; }
.anim-photos.s4 .picker { transform: translateY(105%); }
.picker-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 10px; }
.picker-add { background: var(--pink); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 11px; }
.anim-photos.s3 .picker-add { animation: h-press .35s ease; }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pk { position: relative; border-radius: 6px; overflow: hidden; }
.pk img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: opacity .3s; }
.pk i { position: absolute; right: 5px; top: 5px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pink); color: #fff; box-shadow: 0 0 0 2px #fff; transform: scale(0); transition: transform .35s var(--spring); transition-delay: calc(var(--i, 0) * 380ms); }
.pk i svg { width: 13px; height: 13px; }
.anim-photos.s2 .pk--on i { transform: scale(1); }
.anim-photos.s2 .pk--on img { opacity: .8; }
.sb-still .picker { transform: translateY(105%); }

/* ── Camera-roll rescue ──────────────────────────────────────────────── */
.rescue {
    grid-column: 1 / -1; margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow-soft);
}
.rescue-note { transform: rotate(-2deg); transform-origin: left; }
.rescue-title { margin-top: .6rem; font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 1.8vw + .8rem, 2.3rem); line-height: 1.1; letter-spacing: -.015em; }
.rescue-copy p:last-child { margin-top: 1rem; color: var(--muted); line-height: 1.65; }
.rescue-visual { position: relative; padding-bottom: 2.5rem; }
.roll { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.rt { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--panel); transition: opacity .55s ease, filter .55s ease, transform .45s var(--spring), box-shadow .45s ease; }
.rt img { width: 100%; height: 100%; object-fit: cover; }
.rt--dupe img { filter: blur(1.2px) saturate(.85) brightness(1.06); transform: scale(1.12) rotate(4deg); }
.rt--junk { display: flex; flex-direction: column; gap: 9%; padding: 14% 12%; background: #eeebf3; }
.rt--junk b { display: block; height: 9%; border-radius: 3px; background: #d6d0e2; }
.rt--junk b:nth-child(2) { width: 70%; } .rt--junk b:nth-child(3) { width: 45%; }
.roll-scan { position: absolute; top: -3%; bottom: -3%; left: -18%; width: 16%; border-radius: 8px; background: linear-gradient(90deg, transparent, rgba(214, 62, 120, .28), transparent); pointer-events: none; opacity: 0; transition: left 2.1s linear, opacity .3s; }
.anim-roll.s1 .roll-scan { left: 102%; opacity: 1; }
.anim-roll.s2 .roll-scan { opacity: 0; }
.anim-roll.s2 .rt--junk, .anim-roll.s2 .rt--dupe { opacity: .12; filter: grayscale(1); }
.anim-roll.s2 .rt:not(.rt--keep):not(.rt--junk):not(.rt--dupe) { opacity: .4; }
.rt--keep { transition-delay: calc(var(--k, 0) * 120ms); }
.anim-roll.s3 .rt--keep { transform: scale(1.1); z-index: 2; box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--pink), 0 10px 20px rgba(44, 36, 24, .2); }
.daycard { position: absolute; right: -1.5rem; bottom: -1rem; z-index: 3; width: 56%; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: 0 24px 50px rgba(44, 36, 24, .22); transition: opacity .55s ease, transform .7s var(--spring); }
.js .anim-roll .daycard { opacity: 0; transform: translateY(30px) scale(.95); }
.js .anim-roll.s4 .daycard { opacity: 1; transform: none; }
.daycard-pics { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 3 / 2; }
.daycard-pics img { width: 100%; height: 100% !important; min-height: 0; object-fit: cover; border-radius: 8px; }
.daycard-pics img:first-child { grid-row: span 2; }
.daycard-title { margin-top: 10px; font-family: var(--display); font-size: 1.1rem; }
.daycard-meta { font-size: .78rem; color: var(--muted); }
.daycard-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.daycard-add { background: var(--pink); color: #fff; padding: 5px 12px; border-radius: 999px; }

/* ── Funny stuff (dictation) storyboard ──────────────────────────────── */
.say-stage { position: absolute; top: 40px; left: 0; right: 0; bottom: 0; }
.say-compose, .say-timeline { position: absolute; inset: 0; transition: transform .6s var(--ease), opacity .45s ease; }
.say-timeline { transform: translateX(100%); }
.anim-say.s5 .say-compose { transform: translateX(-35%); opacity: 0; }
.anim-say.s5 .say-timeline { transform: none; }
.cmp-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 6px; font-weight: 600; color: var(--pink); }
.cmp-save { background: var(--pink); color: #fff; padding: 3px 12px; border-radius: 999px; }
.anim-say.s4 .cmp-save { animation: h-press .35s ease; }
.cmp-body { padding: 8px 20px; }
.cmp-date { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.cmp-text { font-family: var(--display); font-size: 20px; line-height: 1.42; margin-top: 12px; color: var(--ink); }
.cmp-text span { display: inline-block; transition: opacity .25s ease, transform .35s var(--spring); transition-delay: calc(var(--w) * 260ms); }
.js .anim-say .cmp-text span { opacity: 0; transform: translateY(6px); }
.js .anim-say.s2 .cmp-text span { opacity: 1; transform: none; }
.cmp-tags { position: absolute; left: 20px; right: 20px; bottom: 82px; display: flex; gap: 6px; }
.cmp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 14px 18px 26px; border-top: 1px solid var(--line); background: #fff; }
.mic-live { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sea-soft); color: var(--ink); }
.mic-live svg { width: 20px; height: 20px; }
.anim-say.s1 .mic-live { animation: h-ring 1.3s ease-out infinite; }
.anim-say.s3 .mic-live { animation: none; }
@keyframes h-ring { 0% { box-shadow: 0 0 0 0 rgba(63, 168, 161, .45); } 100% { box-shadow: 0 0 0 14px rgba(63, 168, 161, 0); } }
.bars { flex: 1; display: flex; align-items: center; gap: 3px; height: 28px; }
.bars i { flex: 1; height: 20%; border-radius: 2px; background: var(--sea); opacity: .7; }
.anim-say.s1 .bars i { animation: h-bar .55s ease-in-out infinite alternate; }
.anim-say.s3 .bars i { animation: none; }
.bars i:nth-child(3n) { animation-delay: -.2s !important; } .bars i:nth-child(3n+1) { animation-delay: -.4s !important; } .bars i:nth-child(4n) { animation-duration: .7s !important; }
@keyframes h-bar { from { height: 15%; } to { height: 95%; } }
.cmp-bar .cmp-illus { font-size: 11px; font-weight: 700; color: var(--sea); }
.say-timeline .tl-head { padding-top: 10px; }
.qcard { margin: 0 14px 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-soft); border-top: 3px solid var(--funny); }
.qcard p { font-family: var(--display); font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.qcard .meta { justify-content: flex-start; }
.qcard .meta .chip { margin-left: auto; }
.qcard .meta .kid--sm + .chip { margin-left: 0; }
.qcard--wonder { border-top-color: var(--wonder); }
.qcard--joy { border-top-color: var(--joy); }
.js .anim-say .qcard--new { opacity: 0; }
.js .anim-say.s6 .qcard--new { opacity: 1; animation: h-land 1.6s var(--spring); }
@keyframes h-land {
    0% { opacity: 0; transform: translateY(-18px) scale(.96); box-shadow: 0 0 0 0 rgba(214, 62, 120, 0); }
    25% { opacity: 1; transform: none; box-shadow: 0 0 0 4px rgba(214, 62, 120, .22); }
    100% { box-shadow: 0 1px 2px rgba(44, 36, 24, .06), 0 10px 28px rgba(44, 36, 24, .08); }
}

/* ── Voice storyboard ────────────────────────────────────────────────── */
.voice-stat { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(44, 36, 24, .12); max-width: 30rem; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.voice-stat strong { font-family: var(--display); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--pink-dark); margin-right: .35rem; vertical-align: -.25rem; }
.voice-stat span { display: block; margin-top: .4rem; font-size: .8rem; color: var(--quiet); }
.rec { position: absolute; top: 40px; left: 0; right: 0; bottom: 0; padding: 34px 22px 0; text-align: center; transition: opacity .5s; }
.rec-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #e2553f; }
.anim-voice.s1 .rec-dot { animation: h-blink 1s steps(1) infinite; }
.anim-voice.s2 .rec-dot { animation: none; background: var(--quiet); }
.rec-state { font-size: 0; }
.rec-state::before { content: "Recording"; font-size: 13px; }
.anim-voice.s2 .rec-state::before { content: "Got it"; }
@keyframes h-blink { 50% { opacity: .15; } }
.rec-timer { margin-top: 10px; font-family: var(--mono); font-size: 40px; line-height: 1; color: var(--ink); letter-spacing: -.02em; min-height: 40px; }
.rec-wave { position: relative; height: 108px; margin: 34px 4px 10px; }
.rec-bars { display: flex; align-items: center; gap: 4px; height: 100%; }
.rec-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; background: var(--funny); transform-origin: center; transition: transform .3s var(--spring), opacity .4s ease; transition-delay: calc(var(--b) * 170ms); }
.js .anim-voice .rec-bars i { transform: scaleY(0.04); }
.js .anim-voice.s1 .rec-bars i { transform: none; }
.anim-voice.s3 .rec-bars i { transition-delay: 0s; }
.anim-voice.s3 .rec-bars i:nth-child(-n+3), .anim-voice.s3 .rec-bars i:nth-last-child(-n+3) { opacity: .22; }
.trim { position: absolute; top: -8px; bottom: -8px; width: 10px; border-radius: 5px; background: var(--ink); opacity: 0; transition: left .9s var(--ease), right .9s var(--ease), opacity .3s; }
.trim::after { content: ""; position: absolute; left: 4px; top: 40%; bottom: 40%; width: 2px; border-radius: 1px; background: #fff; }
.trim--l { left: -6px; } .trim--r { right: -6px; }
.anim-voice.s3 .trim { opacity: 1; }
.anim-voice.s3 .trim--l { left: 11%; }
.anim-voice.s3 .trim--r { right: 11%; }
.rec-hint { font-size: 11px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.anim-voice.s3 .rec-hint { opacity: 1; }
.rec-btn { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 4px solid #e8e2ea; transition: opacity .3s; }
.rec-btn i { width: 46px; height: 46px; border-radius: 50%; background: #e2553f; transition: width .35s var(--ease), height .35s var(--ease), border-radius .35s var(--ease); }
.anim-voice.s1 .rec-btn i { width: 24px; height: 24px; border-radius: 6px; }
.anim-voice.s2 .rec-btn i { width: 46px; height: 46px; border-radius: 50%; background: var(--quiet); }
.rec-saved { position: absolute; left: 14px; right: 14px; bottom: 22px; transform: translateY(140%); transition: transform .7s var(--spring); }
.anim-voice.s4 .rec-saved { transform: none; }
.anim-voice.s4 .rec-btn { opacity: 0; }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); }
.ticket-band { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ticket-band--funny { background: var(--funny-soft); }
.ticket-band .wave { flex: 1; height: 26px; }
.ticket-time { font-family: var(--mono); font-size: 11px; white-space: nowrap; color: var(--funny-ink); }
.ticket-tear { position: relative; border-top: 1.5px dashed var(--line); }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); }
.ticket-tear::before { left: -9px; } .ticket-tear::after { right: -9px; }
.ticket-cap { padding: 10px 14px 12px; }
.ticket-cap p { font-family: var(--display); font-size: 14px; line-height: 1.38; color: var(--ink); }

/* ── Drawings: scan storyboard + gallery wall ────────────────────────── */
.h-wall { position: relative; margin-top: clamp(5rem, 10vw, 8.5rem); }
.h-band + .h-wall { margin-top: 0; }
.h-wall { padding: clamp(4.5rem, 8vw, 6.5rem) 24px clamp(3rem, 6vw, 4.5rem); background-color: var(--plaster); background-image: url("/assets/images/home/plaster-noise.png"); background-blend-mode: soft-light; }
.h-wall .h-sub { color: #6b5a45; }
.h-wall .feat-visual::before { background: radial-gradient(closest-side, rgba(255, 253, 247, .65), transparent); }
.scan-cam { position: absolute; inset: 0; background: #1d1b20; transition: background-color .8s ease; }
.scan-hint { position: absolute; top: 64px; left: 0; right: 0; text-align: center; color: #fff; font-size: 12px; font-weight: 700; transition: opacity .3s; }
.scan-shutter { position: absolute; left: 50%; bottom: 34px; width: 58px; height: 58px; transform: translateX(-50%); border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #1d1b20, 0 0 0 7px #fff; transition: opacity .3s; }
.anim-scan.s2 .scan-cam { background: var(--paper); }
.anim-scan.s2 .scan-hint, .anim-scan.s2 .scan-shutter { opacity: 0; }
.anim-scan .sb { color: #fff; transition: color .8s; }
.anim-scan .sb-bat { border-color: rgba(255,255,255,.6); }
.anim-scan .sb-bat::after { background: #fff; }
.anim-scan.s2 .sb { color: var(--ink); }
.anim-scan.s2 .sb-bat { border-color: rgba(44, 36, 24, .5); }
.anim-scan.s2 .sb-bat::after { background: var(--ink); }
.scan-stage { position: absolute; top: 120px; left: 0; right: 0; display: grid; justify-items: center; }
.scan-paper, .scan-framed { grid-area: 1 / 1; }
.scan-placard { grid-area: 2 / 1; }
.scan-paper { position: relative; align-self: center; width: 212px; background: #fff; padding: 6px; box-shadow: 0 18px 30px rgba(0,0,0,.35); transform: perspective(700px) rotateX(30deg) rotateZ(-11deg) scale(.9) translateY(14px); transition: transform .9s var(--ease), opacity .3s, box-shadow .9s; }
.scan-paper img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.anim-scan.s2 .scan-paper { transform: none; box-shadow: var(--shadow-paper); }
.anim-scan.s4 .scan-paper { opacity: 0; }
.c { position: absolute; width: 18px; height: 18px; border: 3px solid var(--pink); }
.c1 { left: -6px; top: -6px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.c2 { right: -6px; top: -6px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.c3 { right: -6px; bottom: -6px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.c4 { left: -6px; bottom: -6px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.anim .c { animation: h-blink .9s steps(1) infinite; }
.anim-scan.s1 .c { animation: none; border-color: var(--sea); }
.anim-scan.s2 .c { opacity: 0; transition: opacity .4s .4s; }
.scan-framed { width: 236px; margin-top: 18px; transition: opacity .45s ease, transform .6s var(--spring); }
.js .anim-scan .scan-framed { opacity: 0; transform: scale(1.06); }
.js .anim-scan.s4 .scan-framed { opacity: 1; transform: none; }
.scan-framed .frame { transform: rotate(-2deg); transform-origin: 50% -12%; }
.anim-scan.s5 .scan-framed .frame { animation: h-hang 1.8s cubic-bezier(.3, .2, .3, 1) both; }
@keyframes h-hang { 0% { transform: rotate(-2deg); } 20% { transform: rotate(7deg); } 42% { transform: rotate(-6deg); } 62% { transform: rotate(3deg); } 82% { transform: rotate(-3deg); } 100% { transform: rotate(-2deg); } }
.scan-flash { position: absolute; inset: 0; z-index: 9; background: #fff; opacity: 0; pointer-events: none; }
.anim-scan.s3 .scan-flash { animation: h-flash .5s ease-out; }
@keyframes h-flash { 0% { opacity: 0; } 25% { opacity: .9; } 100% { opacity: 0; } }
.scan-placard { margin-top: 26px; padding: 8px 14px; background: #fffdf7; border-radius: 3px; box-shadow: 0 1px 2px rgba(70, 45, 20, .18), 0 4px 10px rgba(70, 45, 20, .08); text-align: center; transition: opacity .45s, transform .5s var(--spring); }
.js .anim-scan .scan-placard { opacity: 0; transform: translateY(10px); }
.js .anim-scan.s6 .scan-placard { opacity: 1; transform: none; }
html:not(.js) .scan-cam { background: var(--paper); }
html:not(.js) .scan-hint, html:not(.js) .scan-shutter, html:not(.js) .scan-paper { display: none; }

.wall { position: relative; max-width: 1100px; margin: clamp(5rem, 8vw, 6.5rem) auto 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-evenly; align-items: start; gap: 4rem 3rem; }
.piece { width: var(--w); margin-top: var(--top); cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.piece .frame { width: 100%; transform: rotate(var(--tilt)); transform-origin: 50% -10%; }
.piece.is-swinging .frame { animation: h-swing 1.9s cubic-bezier(.3, .2, .3, 1) both; }
@keyframes h-swing {
    0% { transform: rotate(var(--tilt)); }
    18% { transform: rotate(calc(var(--tilt) + 6deg)); }
    40% { transform: rotate(calc(var(--tilt) - 4deg)); }
    60% { transform: rotate(calc(var(--tilt) + 2.2deg)); }
    80% { transform: rotate(calc(var(--tilt) - .9deg)); }
    100% { transform: rotate(var(--tilt)); }
}
.placard { display: block; width: max-content; margin-top: 1.6rem; padding: .55rem .85rem .6rem; text-align: center; background: #fffdf7; border-radius: 3px; box-shadow: 0 1px 2px rgba(70, 45, 20, .18), 0 4px 10px rgba(70, 45, 20, .08); }
.placard-title { display: block; font-family: var(--hand); font-weight: 700; font-size: 1.35rem; line-height: 1.05; color: var(--ink); }
.placard-by { display: block; margin-top: .2rem; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.scan-placard .placard-title { font-size: 1.15rem; }
.scan-placard .placard-by { font-size: .7rem; }
.wall-hint { text-align: center; margin-top: 2.5rem; font-size: 1.3rem; color: #8a7458; }
@media (hover: none) { .wall-hint::after { content: " (tap)"; } }

/* ── Drawn as themselves ─────────────────────────────────────────────── */
.h-drawn { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.drawn-said { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 1.6vw + .6rem, 1.75rem); line-height: 1.35; color: var(--ink); max-width: 34rem; text-wrap: pretty; }
.drawn-pic { position: relative; margin-top: 1.5rem; background: #fff; padding: 10px 10px 34px; box-shadow: var(--shadow-paper); transform: rotate(-1.5deg); width: min(100%, 36rem); }
.drawn-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.js .drawn-pic img {
    -webkit-mask-image: linear-gradient(100deg, #000 45%, transparent 55%); mask-image: linear-gradient(100deg, #000 45%, transparent 55%);
    -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0;
    filter: blur(6px) saturate(.6);
    transition: -webkit-mask-position 1.8s var(--ease), mask-position 1.8s var(--ease), filter 1.4s ease .5s;
}
.js .is-painted .drawn-pic img { -webkit-mask-position: 0 0; mask-position: 0 0; filter: none; }
.drawn-wait { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: .4rem .9rem; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: var(--shadow-soft); font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: opacity .4s; }
.drawn-wait::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--pink); animation: h-blink 1s steps(1) infinite; }
.is-painted .drawn-wait, html:not(.js) .drawn-wait { opacity: 0; }
.drawn-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.drawn-nav button { all: unset; cursor: pointer; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.6rem; line-height: 1; color: var(--ink); box-shadow: var(--shadow-soft); }
.drawn-nav button:hover { border-color: var(--pink); color: var(--pink); }
.drawn-nav button:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.drawn-count { font-size: .9rem; color: var(--muted); min-width: 3.5rem; text-align: center; }

/* ── Family storyboard ───────────────────────────────────────────────── */
.family-visual { gap: 1.5rem; align-items: center; }
.detail-img img { width: 100%; aspect-ratio: 4 / 3.5; object-fit: cover; }
.comment-input { position: absolute; left: 14px; right: 14px; bottom: 22px; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 11.5px; color: var(--quiet); }
.comment-input span:last-child { margin-left: auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 13px; }
.detail-body { position: relative; padding: 14px 16px; }
.detail-text { font-family: var(--display); font-size: 15px; line-height: 1.4; color: var(--ink); }
.detail-comments { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); }
.detail-comments svg { width: 15px; height: 15px; }
.anim-family.s1 .pill { animation: h-bump .5s var(--spring); }
.anim-family.s4 .pill { animation: h-bump2 .5s var(--spring); }
@keyframes h-bump { 40% { transform: scale(1.18); } }
@keyframes h-bump2 { 40% { transform: scale(1.18); } }
.react-float { position: absolute; left: 30px; top: 70px; font-size: 22px; opacity: 0; pointer-events: none; }
.anim-family.s1 .react-float { animation: h-float 1.4s ease-out; }
.anim-family.s4 .react-float { animation: h-float2 1.4s ease-out; }
@keyframes h-float { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(-14px) scale(1.15); } 100% { opacity: 0; transform: translateY(-70px) scale(1); } }
@keyframes h-float2 { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(-14px) scale(1.15); } 100% { opacity: 0; transform: translateY(-70px) scale(1); } }
.comment { display: flex; gap: 8px; margin-top: 12px; transition: opacity .45s ease, transform .55s var(--spring); }
.comment b { font-size: 11px; }
.comment p { font-size: 12px; line-height: 1.35; color: var(--ink); }
.js .anim-family .comment { opacity: 0; transform: translateY(12px); }
.js .anim-family.s2 .comment--1, .js .anim-family.s3 .comment--2 { opacity: 1; transform: none; }
.av { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 700; color: var(--ink); }
.av--rosa { background: #fbd6e1; } .av--sam { background: var(--blue); } .av--you { background: var(--yellow); }
.av--add { background: #fff; border: 1.5px dashed var(--quiet); color: var(--muted); }
.av--add svg { width: 14px; height: 14px; }
.family-people { width: 19.5rem; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: .6rem 1.1rem; box-shadow: var(--shadow-soft); }
.family-people li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; padding: .6rem 0; font-size: .92rem; font-weight: 600; }
.family-people li + li { border-top: 1px solid var(--line); }
.family-people li > span:nth-child(2) { white-space: nowrap; }
.family-people em { font-style: normal; font-size: .75rem; font-weight: 500; color: var(--quiet); white-space: nowrap; }
.fam-invite { color: var(--muted); font-weight: 500 !important; }

/* ── Keepsakes ───────────────────────────────────────────────────────── */
.keep-intro { max-width: 40rem; }
.keep-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.5rem); margin-top: 3rem; }
.keep img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-soft); }
.keep figcaption { margin-top: 1.25rem; }
.keep h3 { font-family: var(--display); font-weight: 500; font-size: 1.45rem; line-height: 1.2; }
.keep figcaption p { margin-top: .45rem; color: var(--muted); max-width: 32rem; line-height: 1.6; }
.keep--book { grid-column: 1 / span 8; grid-row: 1; }
.keep--book img { aspect-ratio: 3 / 2; object-fit: cover; }
.keep--card { grid-column: 9 / span 4; grid-row: 1; }
.keep--card img { aspect-ratio: 2 / 2.62; object-fit: cover; object-position: 50% 40%; }
.keep--film { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: center; background: var(--panel); border-radius: 28px; padding: 2rem 2.5rem; }
.keep--film figcaption { margin-top: 0; }
.film-card { position: relative; width: 15rem; background: #fff; padding: 8px 8px 0; transform: rotate(-2.5deg); box-shadow: var(--shadow-paper); }
.film-card::before { content: ""; position: absolute; z-index: 1; top: -9px; left: 50%; width: 60px; height: 18px; transform: translateX(-50%) rotate(3deg); background: rgba(255, 236, 180, .8); }
.film-still { position: relative; }
.keep .film-still img { aspect-ratio: 1; object-fit: cover; border-radius: 0; box-shadow: none; }
.film-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.film-play .seal-play { border-left-color: var(--ink); border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }
.film-len { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(28, 22, 16, .7); color: #fff; font-size: .72rem; font-weight: 700; }
.film-label { text-align: center; padding: .5rem 0 .6rem; color: var(--ink); font-size: 1.3rem; }

/* ── Promises ────────────────────────────────────────────────────────── */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.5rem; }
.promises li { border-top: 3px solid var(--pink); padding-top: 1.1rem; }
.promises li:nth-child(2) { border-color: var(--sea); }
.promises li:nth-child(3) { border-color: var(--joy); }
.promises h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.promises p { margin-top: .4rem; color: var(--muted); }

/* ── Final ───────────────────────────────────────────────────────────── */
.h-final { max-width: 46rem; margin: clamp(5rem, 10vw, 8rem) auto clamp(4rem, 8vw, 6rem); padding: 0 24px; text-align: center; }
.h-final .h-hand { font-size: 1.6rem; transform: rotate(-2deg); }
.h-final-title { font-family: var(--display); font-weight: 500; font-size: clamp(2.6rem, 5vw + .5rem, 4.4rem); line-height: 1; letter-spacing: -.03em; margin-top: .5rem; }
.h-final .h-sub { margin-left: auto; margin-right: auto; }
.h-get--center { justify-content: center; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
    .h-hero, .h-feature, .h-drawn, .rescue { grid-template-columns: 1fr; }
    .h-hero-visual { max-width: 640px; width: 100%; margin: 1rem auto 0; }
    .h-feature--flip .feat-visual { order: 0; }
    .keep--book, .keep--card, .keep--film { grid-column: 1 / -1; grid-row: auto; }
    .keep--card img { aspect-ratio: 4 / 3; }
    .rescue-visual { margin-right: 1rem; }
}
@media (max-width: 720px) {
    .h-hero { padding-top: 1.75rem; }
    .h-lede { font-size: 1.08rem; }
    .probably-grid { grid-template-columns: 1fr; }
    .promises { grid-template-columns: 1fr; gap: 1.5rem; }
    .h-ticker-row span { font-size: 1.6rem; }
    .phone { transform: scale(.92); transform-origin: top center; margin-bottom: -48px; }
    .family-visual { flex-direction: column; }
    .family-people { width: 100%; max-width: 20rem; }
    .keep--film { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 2rem 1.25rem; }
    .keep--film figcaption p { margin-left: auto; margin-right: auto; }
    .rescue { padding: 1.5rem 1.1rem 2rem; border-radius: 24px; }
    .roll { grid-template-columns: repeat(4, 1fr); }
    .roll .rt:nth-child(n+17) { display: none; }
    .daycard { width: 74%; right: -.5rem; }
    .wall { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 2rem; margin-left: -24px; margin-right: -24px; padding: 3rem 24px 1rem; scrollbar-width: none; }
    .wall::-webkit-scrollbar { display: none; }
    .piece { flex: none; scroll-snap-align: center; width: min(var(--w), 62vw); }
    .wall-hint::before { content: "swipe along · "; }
    .h-hero-visual { margin-bottom: 1.5rem; }
    .bk-note, .bk-illo figcaption, .bk-stub-cap { display: none; }
    .bk-photo { width: 82%; left: 7%; }
    .bk-photo figcaption { font-size: .8rem; padding: .2rem 0 .3rem; }
    .bk-stub { top: 66%; left: 8%; width: 84%; padding: .4rem .5rem; gap: .35rem; }
    .bk-stub .seal { width: 22px; height: 22px; }
    .bk-stub .seal::after { inset: 3px; }
    .bk-stub .seal-play { border-left-width: 7px; border-top-width: 5px; border-bottom-width: 5px; margin-left: 2px; }
    .bk-stub-time { font-size: .55rem; }
    .bk-frame { left: 22%; width: 60%; top: 5%; }
    .bk-illo { top: 58%; left: 8%; width: 84%; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .js .bk { opacity: 1; transform: rotate(var(--r, 0deg)); transition: none !important; }
    .h-ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .h-ticker-row[aria-hidden="true"] { display: none; }
    .h-ticker-row { flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; padding: 0 24px; }
    .piece.is-swinging .frame { animation: none; }
    .home .anim, .home .anim * { animation: none !important; transition: none !important; }
}

/* "Learn more" links to the feature pages */
.h-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-weight: 600; color: var(--pink-dark); text-decoration: none; }
.h-more svg { width: 16px; height: 16px; transition: transform .2s; }
.h-more:hover svg { transform: translateX(3px); }
