/* ==========================================================================
   The Penelope Neuroblastoma Foundation — redesign, v2 (tightened)
   One 12-column grid, one spacing scale, one type scale.
   Palette from the original nursery illustrations.
   ========================================================================== */

:root {
  /* colour */
  --paper: #fdf4f2;
  --white: #ffffff;
  --blush: #f9e1e3;
  --peach: #f4cfc2;
  --ink: #2f3a57;
  --ink-soft: #586079;
  --pink: #e26a99;
  --pink-deep: #b8396d;
  --pink-press: #8e2753;
  --mustard: #d9a441;
  --teal: #23706f;

  /* type */
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --fs-small: .9375rem;
  --fs-body: 1.125rem;
  --fs-lede: clamp(1.1875rem, 1.05rem + .45vw, 1.375rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .5vw, 1.625rem);
  --fs-h2: clamp(2.125rem, 1.55rem + 2.1vw, 3.375rem);
  --fs-title: clamp(2.75rem, 1.8rem + 3.6vw, 5rem);
  --fs-hero: clamp(3.1rem, 1.6rem + 5.6vw, 6.6rem);

  /* space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 74rem;
  --col-gap: clamp(1.25rem, 3vw, 2.5rem);
  --sp-section: clamp(4.5rem, 2.8rem + 6vw, 8rem);
  --sp-head: clamp(3.5rem, 2.4rem + 4.5vw, 6.5rem);
  --sp-stack: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);  /* heading block → content */

  --radius: 1.75rem;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.65 var(--sans);
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--pink-deep); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; max-width: 60ch; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 560; color: var(--ink); margin: 0;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 96; text-wrap: balance; }
h1 { font-size: var(--fs-title); line-height: 1; letter-spacing: -.028em; }
h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 36; }
.lede { font-size: var(--fs-lede); line-height: 1.5; max-width: 34em; }
.small { font-size: var(--fs-small); }
.muted { color: var(--ink-soft); }
/* consistent vertical stack inside text blocks */
.stack > * + * { margin-top: 1.25rem; }
.stack > h1 + *, .stack > h2 + * { margin-top: 1.5rem; }
.stack > * + .btn-row, .stack > * + .textlink { margin-top: 2rem; }
.stack > p + p { margin-top: 1rem; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: #fff;
  padding: .7rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; position: relative; }
.narrow { width: min(100% - 2 * var(--gutter), 44rem); margin-inline: auto; }
.section { padding-block: var(--sp-section); position: relative; }
.section.flush-top { padding-top: 0; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--sp-stack); align-items: center; }
.c-1-5 { grid-column: 1 / span 5; }  .c-1-6 { grid-column: 1 / span 6; }  .c-1-7 { grid-column: 1 / span 7; }
.c-7-6 { grid-column: 7 / span 6; }  .c-8-5 { grid-column: 8 / span 5; }  .c-9-4 { grid-column: 9 / span 4; }
.c-6-7 { grid-column: 6 / span 7; }  .c-full { grid-column: 1 / -1; }
.align-end { align-self: end; }
@media (max-width: 860px) { .grid > [class*="c-"] { grid-column: 1 / -1; } }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 1.25rem;
  align-items: end; margin-bottom: var(--sp-stack); }
.section-head > h2 { grid-column: 1 / span 6; }
.section-head > .lede, .section-head > .textlink { grid-column: 8 / span 5; }
.section-head > .textlink { justify-self: end; }
@media (max-width: 860px) { .section-head > * { grid-column: 1 / -1 !important; justify-self: start !important; } }

.deco { position: absolute; pointer-events: none; user-select: none; z-index: 0; }
.deco img { width: 100%; }

/* ---------- Bands with a scalloped edge (picture-book cloud trim) ---------- */
.band { position: relative; background: var(--band); --band: #fff; }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; pointer-events: none;
  background: radial-gradient(circle at 18px 18px, var(--band) 17.5px, transparent 18.5px) 0 0 / 36px 18px repeat-x; }
.band::before { top: -17px; }
.band::after { bottom: -17px; transform: scaleY(-1); }
.band.no-bottom::after { display: none; }
.band-white { --band: #fff; }
.band-ink { --band: var(--ink); color: #fff; }
.band-pink { --band: var(--pink-deep); color: #fff; }
.band-blush { --band: var(--blush); }
.band-ink h2, .band-ink h3, .band-pink h2 { color: #fff; }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem;
  font: 650 1rem/1 var(--sans); text-decoration: none; padding: 0 1.6rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s; cursor: pointer; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink-deep); color: #fff; box-shadow: 0 3px 0 var(--pink-press); }
.btn-primary:hover { background: #a42f60; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--pink-press); }
.btn-quiet { color: var(--ink); border-color: currentColor; background: transparent; }
.btn-quiet:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.btn-light:hover { color: var(--pink-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; }
.textlink { display: inline-block; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink);
  text-decoration-thickness: 3px; text-underline-offset: .32em; }
.textlink:hover { color: var(--pink-deep); }
.band-ink .textlink, .band-pink .textlink { color: #fff; text-decoration-color: rgba(255,255,255,.7); }
.band-ink .textlink:hover, .band-pink .textlink:hover { text-decoration-color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(47,58,87,.1); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 5rem; }
.nav-logo { margin-right: auto; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: .125rem; list-style: none; padding: 0; margin: 0 .75rem 0 0; }
.nav-links a { display: block; padding: .55rem .8rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: 1rem; }
.nav-links a:hover { background: var(--blush); }
.nav-links a[aria-current="page"] { background: var(--blush); }
.nav-donate { min-height: 2.75rem; padding: 0 1.25rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: transparent;
  color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor;
  border-radius: 2px; position: relative; transition: transform .3s var(--ease), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav { min-height: 4.25rem; gap: .625rem; }
  .nav-logo img { height: 38px; }
  .nav-toggle { display: grid; }
  .nav-links { position: absolute; left: 0; right: 0; top: calc(100% + .25rem); flex-direction: column; margin: 0;
    background: #fff; border-radius: 1.5rem; padding: .75rem; box-shadow: 0 24px 50px -20px rgba(47,58,87,.45); display: none; }
  .nav-open .nav-links { display: flex; animation: drop .28s var(--ease); }
  .nav-links a { padding: .9rem 1rem; font-size: 1.125rem; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Polaroid ---------- */
.polaroid { background: #fff; padding: 10px 10px 42px; border-radius: 3px; width: 100%;
  box-shadow: 0 1px 2px rgba(47,58,87,.14), 0 18px 32px -16px rgba(47,58,87,.38); transform: rotate(var(--r, 0deg)); }
.polaroid img { width: 100%; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; background: var(--blush); }
.media { position: relative; width: 100%; max-width: var(--mw, 26rem); justify-self: center; }
.tape::before { content: ""; position: absolute; top: -13px; left: 50%; width: 30%; height: 26px; transform: translateX(-50%) rotate(-3deg);
  z-index: 2; background: rgba(244, 207, 194, .88); }

/* ---------- Home hero ---------- */
.hero { padding-top: calc(var(--sp-head) + 1.5rem); }
.hero .grid { align-items: end; }
.hero h1 { font-size: var(--fs-hero); line-height: .96; letter-spacing: -.035em; position: relative; z-index: 1; }
.hero-side { position: relative; z-index: 1; padding-bottom: .4rem; }
.hero .deco-cloud { width: clamp(120px, 14vw, 210px); left: calc(-1 * clamp(2rem, 6vw, 6rem)); top: calc(-1 * clamp(2rem, 4vw, 3.5rem)); opacity: .85; }
.hero .deco-bee { width: clamp(90px, 9vw, 136px); left: 33%; top: calc(-1 * clamp(4rem, 7vw, 6.5rem)); }
.hero .deco-sun { width: clamp(80px, 8vw, 120px); right: calc(-1 * clamp(.5rem, 3vw, 3.5rem)); top: calc(-1 * clamp(4.5rem, 8vw, 7.5rem)); }

/* washing line */
.line { position: relative; overflow: hidden; height: clamp(290px, 27vw, 390px); margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.line svg.string { position: absolute; inset: 0 0 auto 0; width: 100%; height: 120px; overflow: visible; }
.line-track { position: absolute; inset: 0; }
.line .pin { position: absolute; left: 0; top: 0; width: var(--w, 190px); padding: 9px 9px 36px; transform-origin: 50% 0; will-change: transform; }
.line .pin::before { content: ""; position: absolute; left: 50%; top: -14px; width: 13px; height: 32px; margin-left: -6.5px; z-index: 2;
  background: linear-gradient(90deg, #e2b765 0 45%, #c99642 45% 55%, #e2b765 55%); border-radius: 4px; box-shadow: 0 2px 2px rgba(47,58,87,.25); }

/* ---------- Home: story ---------- */
.story-photo .deco-heart { width: 26%; left: -10%; top: -8%; z-index: 3; }
.signature { width: 190px; }

/* ---------- Gifts band ---------- */
.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 3rem; }
.pillar { display: flex; flex-direction: column; }
.pillar-art { height: 132px; display: flex; align-items: flex-end; margin-bottom: 1.5rem; }
.pillar-art img { height: 124px; width: auto; }
.pillar h3 { margin-bottom: .6rem; }
.pillar p { color: var(--ink-soft); max-width: 30ch; }
.pillar .partner { margin-top: auto; padding-top: 1.5rem; }
.pillar .partner img { height: 30px; width: auto; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar-art { height: 104px; } .pillar-art img { height: 96px; } }
.promise { margin-top: var(--sp-stack); padding-top: var(--sp-stack); border-top: 2px dashed var(--peach);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem clamp(1.25rem, 3vw, 2.5rem); }
.promise .big { flex: none; font: 600 clamp(3.5rem, 2.4rem + 4vw, 6rem)/.9 var(--serif); color: var(--pink-deep);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; letter-spacing: -.03em; }
.promise p { font: 500 var(--fs-h3)/1.3 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 48; max-width: 24ch; margin: 0; }

/* ---------- Run band ---------- */
.figure { font: 600 clamp(3.6rem, 2rem + 6.4vw, 7.25rem)/.9 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--mustard); letter-spacing: -.035em; margin: 0; }
.figure sup { font-size: .42em; vertical-align: .95em; margin-right: .04em; }
.band-ink .lede { color: #fff; }
.band-ink .deco-stars { width: 120px; right: 0; top: calc(-1 * var(--sp-section) + 2.5rem); opacity: .9; }

/* ---------- Neuroblastoma blob ---------- */
.blob { border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%; overflow: hidden; aspect-ratio: 1; width: 100%; max-width: 24rem; justify-self: center;
  box-shadow: 0 0 0 12px #fff, 0 0 0 14px var(--peach); }
.blob img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- News list ---------- */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 2px dashed var(--peach); }
.news-list li { border-bottom: 2px dashed var(--peach); }
.news-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: center;
  padding-block: 1.75rem; text-decoration: none; color: inherit; }
.news-item .polaroid { grid-column: 1 / span 3; --r: -2deg; padding: 7px 7px 24px; transition: transform .3s var(--ease); }
.news-item > div { grid-column: 5 / span 7; }
.news-item:hover .polaroid { transform: rotate(1deg) scale(1.03); }
.news-item h3 { margin: .2rem 0 .4rem; }
.news-item:hover h3 { color: var(--pink-deep); }
.news-item p { color: var(--ink-soft); margin: 0; }
.news-tag { display: block; font-size: var(--fs-small); font-weight: 650; color: var(--teal); }
.news-tag.past { color: var(--ink-soft); }
@media (max-width: 860px) { .news-item .polaroid { grid-column: 1 / span 4; } .news-item > div { grid-column: 5 / span 8; } }
@media (max-width: 560px) { .news-item h3 { font-size: 1.15rem; } .news-item p { display: none; } }

/* ---------- Donate band ---------- */
.give { overflow: visible; }
.give .lede { color: #fbe3ec; }
.give-art { position: relative; height: clamp(220px, 24vw, 320px); }
.give-art .deco-balloon { width: 46%; right: 8%; top: 0; animation: float 9s ease-in-out infinite; }
.give-art .deco-tree { width: 40%; left: 12%; bottom: calc(-1 * var(--sp-section) - 2px); }
@media (max-width: 860px) { .give-art { display: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* ---------- Page heads ---------- */
.page-head { padding-top: var(--sp-head); padding-bottom: calc(var(--sp-section) * .55); }
.page-head .lede { max-width: 32em; }
.page-head .deco-a { width: clamp(100px, 12vw, 176px); right: 0; bottom: calc(-1 * var(--sp-section) * .3); }
.page-head .deco-b { width: clamp(52px, 5.5vw, 84px); right: 22%; top: -.5rem; }
@media (max-width: 860px) {
  .page-head .deco-a { width: 84px; right: -.5rem; bottom: auto; top: calc(-1 * var(--sp-head) + 1rem); }
  .page-head .deco-b { display: none; }
}

/* ---------- Story timeline ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 3px dotted var(--pink); margin-left: -1.5px; }
.chapter { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.chapter .grid { align-items: center; }
.chapter-text { grid-column: 1 / span 5; }
.chapter-photos { grid-column: 8 / span 5; position: relative; }
.chapter:nth-child(even) .chapter-text { grid-column: 8 / span 5; grid-row: 1; }
.chapter:nth-child(even) .chapter-photos { grid-column: 1 / span 5; grid-row: 1; }
.chapter::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--pink); }
.chapter-date { display: block; font-weight: 650; color: var(--teal); margin-bottom: .6rem; }
.chapter h2 { font-size: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem); }
.chapter-photos .polaroid { width: 72%; margin-inline: auto; }
.chapter-photos .polaroid + .polaroid { position: absolute; width: 50%; right: 0; bottom: -14%; }
.chapter-photos.has-two .polaroid:first-child { margin-left: 0; }
@media (max-width: 860px) {
  .timeline::before { left: 10px; }
  .chapter { padding-left: 2.75rem; }
  .chapter::after { left: 10px; top: calc(clamp(2.5rem, 5vw, 4.5rem) + .7rem); }
  .chapter .chapter-text, .chapter .chapter-photos, .chapter:nth-child(even) .chapter-text, .chapter:nth-child(even) .chapter-photos { grid-column: 1 / -1; grid-row: auto; }
  .chapter-photos { padding-bottom: 1.5rem; }
  .chapter-photos .polaroid { width: 70%; margin-left: 0; }
  .chapter-photos .polaroid + .polaroid { width: 48%; bottom: -2%; }
}
.pullquote { text-align: center; }
.pullquote blockquote { margin: 0; }
.pullquote blockquote p { font: italic 500 var(--fs-h2)/1.12 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 120;
  max-width: 20ch; margin: 0 auto; text-wrap: balance; }
.pullquote blockquote p::before { content: "\201C"; } .pullquote blockquote p::after { content: "\201D"; }
.pullquote .after { max-width: 46ch; margin: 1.75rem auto 0; color: var(--ink-soft); }
.pullquote .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.partner-card { background: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-direction: column; }
.partner-card .logo { height: 38px; width: auto; margin-bottom: 1.75rem; }
.partner-card h3 { margin-bottom: .75rem; }
.partner-card p { color: var(--ink-soft); }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: auto 0 0; padding: 1.25rem 0 0; list-style: none; }
.chips li { background: var(--blush); font-weight: 650; font-size: var(--fs-small); padding: .3rem .85rem; border-radius: 999px; }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }

/* ---------- TV-framed video ---------- */
.tv { position: relative; width: 100%; max-width: 52rem; margin-inline: auto; }
.tv-frame { width: 100%; position: relative; z-index: 2; pointer-events: none; }
.tv-screen { position: absolute; z-index: 1; left: 4.6%; right: 4.6%; top: 5.2%; bottom: 21%; border-radius: 6px; overflow: hidden; background: var(--ink); }
.tv-screen iframe { width: 100%; height: 100%; border: 0; }
.video-title { text-align: center; font-size: var(--fs-h3); margin-bottom: 2rem; }

/* ---------- Facts ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem var(--col-gap); margin: 0; }
.facts div { border-top: 2px dashed var(--peach); padding-top: 1.5rem; }
.facts dt { font: 560 var(--fs-h3)/1.2 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 36; margin-bottom: .5rem; }
.facts dd { margin: 0; color: var(--ink-soft); max-width: 40ch; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-head { padding-top: var(--sp-head); }
.article-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); line-height: 1.04; }
.article-photo { max-width: 42rem; margin: var(--sp-stack) auto; }
.article-body { font-size: 1.1875rem; line-height: 1.75; }
.back { display: inline-block; margin-bottom: 2rem; font-weight: 650; }
.notice { background: var(--blush); border-radius: 1rem; padding: 1rem 1.25rem; margin-bottom: 2rem; }

/* ---------- Donate page ---------- */
.donate-form { grid-column: 1 / span 7; align-self: start; background: #fff; border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.75rem);
  min-height: 460px; box-shadow: 0 30px 60px -40px rgba(47,58,87,.45); }
.donate-notes { grid-column: 9 / span 4; align-self: start; display: grid; gap: 2rem; }
.donate-notes .big { font: 600 clamp(3rem, 2.2rem + 3vw, 4.5rem)/.9 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--pink-deep); letter-spacing: -.03em; margin-bottom: .5rem; }
.donate-notes h3 { margin-bottom: .4rem; }
.donate-notes p { color: var(--ink-soft); }
.donate-notes > div + div { border-top: 2px dashed var(--peach); padding-top: 2rem; }
@media (max-width: 860px) { .donate-form, .donate-notes { grid-column: 1 / -1; } }
.faq { border-top: 2px dashed var(--peach); margin-top: 2rem; }
.faq details { border-bottom: 2px dashed var(--peach); }
.faq summary { list-style: none; cursor: pointer; padding: 1.4rem 3rem 1.4rem 0; position: relative;
  font: 560 var(--fs-h3)/1.3 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 36; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .5rem; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 3px solid var(--pink-deep); border-bottom: 3px solid var(--pink-deep); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 0 1.5rem; color: var(--ink-soft); }
.after-faq { margin-top: 2rem; }

/* ---------- Contact ---------- */
.contact-lines { grid-column: 1 / span 4; align-self: start; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.contact-lines li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .5rem; align-items: start; }
.contact-lines svg { width: 22px; height: 22px; color: var(--pink-deep); margin-top: .2rem; }
.form { grid-column: 6 / span 7; background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.5rem); display: grid; gap: 1.25rem; }
@media (max-width: 860px) { .contact-lines, .form { grid-column: 1 / -1; } }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 650; margin-bottom: .4rem; font-size: var(--fs-small); }
.form label span { font-weight: 400; color: var(--ink-soft); }
.form input, .form textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid transparent;
  border-radius: 14px; padding: .8rem 1rem; transition: border-color .2s, background-color .2s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--pink-deep); background: #fff; }
.form textarea { min-height: 168px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-status { display: none; border-radius: 14px; padding: 1rem 1.25rem; font-weight: 600; margin: 0; }
.form-status.is-ok { display: block; background: #e3f1ef; color: var(--teal); }
.form-status.is-err { display: block; background: #fbe3e8; color: #9b1f45; }
.form.is-sent .field, .form.is-sent .row, .form.is-sent button { display: none; }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--sp-section); overflow: hidden; }
.site-footer.after-band { margin-top: 0; }
.site-footer:not(.after-band) { margin-top: var(--sp-section); }
.footer-grid { row-gap: 2.5rem; align-items: start; }
.footer-grid .c-1-5 p { color: var(--ink-soft); }
.footer-explore { grid-column: 7 / span 3; }
.footer-hello { grid-column: 10 / span 3; }
.footer-grid h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--pink-deep); text-decoration: underline; }
.footer-word { width: min(100%, 52rem); margin: var(--sp-stack) auto 0; display: block; }
.footer-small { font-size: var(--fs-small); color: var(--ink-soft); padding-block: 1.25rem 1.75rem; margin-top: 1rem;
  border-top: 1px solid rgba(47,58,87,.12); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
@media (max-width: 860px) {
  .footer-grid .footer-explore { grid-column: 1 / span 6 !important; }
  .footer-grid .footer-hello { grid-column: 7 / span 6 !important; }
}
@media (max-width: 480px) { .footer-grid .footer-col { grid-column: 1 / -1 !important; } .footer-grid a { overflow-wrap: anywhere; } }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost img { width: 160px; margin: 0 auto 2rem; }
.lost .lede { margin-inline: auto; }
.lost .btn-row { justify-content: center; }

/* ---------- Small screens: illustrations ---------- */
@media (max-width: 860px) {
  .hero { padding-top: calc(var(--sp-head) + 2rem); }
  .hero .deco-cloud { width: 104px; left: -2.25rem; top: -4.5rem; }
  .hero .deco-bee { width: 80px; left: auto; right: 28%; top: -4.75rem; }
  .hero .deco-sun { width: 72px; right: -.5rem; top: -5rem; }
  .band-ink .deco-stars { display: none; }
  .page-head { padding-top: calc(var(--sp-head) + 1.5rem); }
  .story-photo .deco-heart { width: 22%; left: -6%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* refinements */
.partner-card .logo { align-self: flex-start; }
.page-head .wrap > .stack { max-width: 40rem; }
.page-head .wrap.grid > .stack { max-width: none; }

/* ==========================================================================
   v3 — magic: motion & interaction
   All of it switches off under prefers-reduced-motion (see end of file).
   ========================================================================== */

/* Page-to-page cross-fade (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
.site-header { view-transition-name: site-header; }

/* Parallax: JS sets --py on each illustration; `translate` composes with animations */
.deco { translate: 0 var(--py, 0px); }

/* ---- Hero entrance: one orchestrated moment ---- */
.hero-title .w { display: inline-block; }
html.js .hero-title .w { opacity: 0; transform: translateY(.45em) rotate(3deg); animation: word-in .9s var(--ease) forwards;
  animation-delay: calc(.15s + var(--i) * .09s); }
@keyframes word-in { to { opacity: 1; transform: none; } }
html.js .hero .deco img { transform: scale(0); animation: pop-in .8s cubic-bezier(.34, 1.56, .64, 1) forwards; }
html.js .hero .deco-cloud img { animation-delay: .7s; }
html.js .hero .deco-bee img { animation-delay: .95s; }
html.js .hero .deco-sun img { animation-delay: 1.15s; }
@keyframes pop-in { to { transform: scale(1); } }
html.js .hero .hero-side { opacity: 0; animation: fade-up .8s var(--ease) .75s forwards; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---- Living illustrations ---- */
.hero .deco-bee { animation: bee 7s ease-in-out 2s infinite; }
@keyframes bee { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(10px, -8px) rotate(3deg); }
  50% { transform: translate(18px, 2px) rotate(-2deg); } 75% { transform: translate(6px, 6px) rotate(2deg); } }
.hero .deco-sun { animation: rock 6s ease-in-out 2s infinite; }
@keyframes rock { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.hero .deco-cloud, .page-head .deco-a[class*="cloud"] { animation: drift 11s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(-8px); } to { transform: translateX(14px); } }
.page-head .deco-a { animation: bob 5.5s ease-in-out infinite; }
.page-head .deco-b, .story-photo .deco-heart, .band-ink .deco-stars { animation: twinkle 3.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(1.08) rotate(-4deg); opacity: .85; } }
.deco { transform-origin: 50% 80%; }

/* night sky in the navy band */
.sky { position: absolute; inset: calc(-1 * var(--sp-section)) 0; pointer-events: none; z-index: 0; overflow: hidden; }
.sky i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: .15;
  animation: star 4s ease-in-out var(--d) infinite; }
@keyframes star { 0%, 100% { opacity: .12; transform: scale(.8); } 50% { opacity: .85; transform: scale(1.2); } }
.band-ink .wrap > *:not(.sky):not(.deco) { position: relative; z-index: 1; }
.band-ink h2 { margin-bottom: .25rem; }
.run-stat { margin-top: 2.25rem; padding-top: 2rem; border-top: 2px dashed rgba(255,255,255,.18); }
.run-stat p:not(.figure) { color: #d9dcea; max-width: 40ch; margin-top: .75rem; }
.figure span { font-variant-numeric: tabular-nums; }

/* ---- Washing line: swinging, flippable photos ---- */
.line { touch-action: pan-y; cursor: grab; }
.line .pin { padding: 0; background: none; box-shadow: none; perspective: 900px; }
.pin-card { all: unset; display: block; position: relative; width: 100%; transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); cursor: pointer; border-radius: 3px; }
.pin-card:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
.pin-card.is-flipped { transform: rotateY(180deg); }
.pin-face { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pin-front.polaroid { padding: 9px 9px 36px; transform: none; }
.pin-back { position: absolute; inset: 0; transform: rotateY(180deg); background: #fff; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(47,58,87,.14), 0 18px 32px -16px rgba(47,58,87,.38);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.25rem; }
.pin-back img { width: 78%; }
.pin-back svg { width: 30px; fill: var(--pink); }
.line .pin.drop { animation: pin-drop 1s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes pin-drop { from { opacity: 0; } to { opacity: 1; } }

/* ---- Story timeline draws itself ---- */
.timeline-progress { position: absolute; left: 50%; top: 0; width: 3px; margin-left: -1.5px; height: var(--progress, 0%);
  background: var(--pink-deep); border-radius: 3px; z-index: 0; transition: height .15s linear; }
.chapter::after { transition: background-color .4s, box-shadow .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1); background: var(--paper);
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--pink); }
.chapter.is-reached::after { background: var(--pink-deep); transform: scale(1.15); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--pink-deep); }
html.js .chapter .chapter-photos .polaroid { opacity: 0; transform: translateY(40px) rotate(0deg) scale(.96);
  transition: opacity .8s var(--ease), transform 1s cubic-bezier(.34, 1.3, .64, 1); }
html.js .chapter .chapter-photos .polaroid + .polaroid { transition-delay: .15s; }
html.js .chapter.is-in .chapter-photos .polaroid { opacity: 1; transform: rotate(var(--r, 0deg)); }
@media (max-width: 860px) { .timeline-progress { left: 10px; } }

/* ---- Pillars come alive on hover / focus ---- */
.pillar-art img { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 100%; }
.pillar:hover .pillar-art img, .pillar:focus-within .pillar-art img { animation: wiggle .9s ease-in-out; }
.pillar:nth-child(2):hover .pillar-art img { animation: lift 1.4s ease-in-out; }
.pillar:nth-child(3):hover .pillar-art img { animation: spin-soft 1.2s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 60% { transform: rotate(5deg); } }
@keyframes lift { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-18px) rotate(-3deg); } }
@keyframes spin-soft { from { transform: rotate(0); } to { transform: rotate(360deg); } }
html.js .pillar { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
html.js .pillar:nth-child(2) { transition-delay: .12s; } html.js .pillar:nth-child(3) { transition-delay: .24s; }
html.js .pillars.is-in .pillar { opacity: 1; transform: none; }

/* ---- Neuroblastoma cell: a slow, living blob ---- */
.blob { animation: morph 14s ease-in-out infinite; }
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%; }
  33% { border-radius: 45% 55% 60% 40% / 55% 42% 58% 45%; }
  66% { border-radius: 52% 48% 41% 59% / 40% 60% 40% 60%; } }

/* ---- Give band: balloon follows the pointer a little ---- */
.give-art .deco-balloon { translate: var(--bx, 0px) calc(var(--by, 0px) + var(--py, 0px)); transition: translate .6s var(--ease); }

/* ---- Hearts that float up from Donate buttons ---- */
.btn { position: relative; }
.heart-pop { position: absolute; left: var(--x); bottom: 60%; width: var(--size); height: var(--size); pointer-events: none; z-index: 5;
  animation: heart-up 1.1s ease-out forwards; }
.heart-pop svg { width: 100%; height: 100%; fill: var(--c); }
@keyframes heart-up { 0% { opacity: 0; transform: translate(0, 0) scale(.4) rotate(0); }
  15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), -70px) scale(1) rotate(var(--rot)); } }

/* ---- Footer signature writes itself in ---- */
html.js .footer-word { clip-path: inset(0 100% 0 0); transition: clip-path 2.4s cubic-bezier(.65, 0, .35, 1); }
html.js .footer-word.is-in { clip-path: inset(0 0 0 0); }

/* ---- Reduced motion: everything still, everything visible ---- */
@media (prefers-reduced-motion: reduce) {
  html.js .hero-title .w, html.js .hero .hero-side, html.js .hero .deco img, html.js .pillar,
  html.js .chapter .chapter-photos .polaroid { opacity: 1 !important; transform: none !important; animation: none !important; }
  html.js .chapter .chapter-photos .polaroid { transform: rotate(var(--r, 0deg)) !important; }
  html.js .footer-word { clip-path: none !important; }
  .deco, .blob, .sky i { animation: none !important; translate: none !important; }
  @view-transition { navigation: none; }
}

/* ---- Journey to $1 million ---- */
.journey { margin: 0 0 var(--sp-stack); position: relative; z-index: 1; }
.journey-stage { position: relative; width: 100%; aspect-ratio: 1000 / 240; }
.journey-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey-trail { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey-done { fill: none; stroke: var(--pink); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.journey-stops { list-style: none; margin: 0; padding: 0; }
.stop { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.stop::before { content: ""; position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.4); transition: background-color .4s, box-shadow .4s, transform .5s cubic-bezier(.34,1.56,.64,1); }
.stop.passed::before { background: var(--mustard); box-shadow: 0 0 0 3px var(--mustard), 0 0 18px rgba(217,164,65,.7); transform: scale(1.15); }
.stop span { position: absolute; left: 0; top: 18px; transform: translateX(-50%); white-space: nowrap; font-weight: 650; font-size: var(--fs-small); color: #d9dcea; transition: color .4s; }
.stop:first-child span { transform: none; left: -8px; }
.stop.passed span { color: #fff; }
.journey-goal { position: absolute; left: var(--x); top: var(--y); width: clamp(64px, 8vw, 104px); transform: translate(-50%, -72%); }
.stop:last-child::before { width: 20px; height: 20px; left: -10px; top: -10px; background: var(--pink); }
.journey-goal span { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); white-space: nowrap; margin-top: .35rem;
  font: 600 var(--fs-h3)/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--mustard); }
.journey-goal img { animation: rock 6s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(249, 225, 227, .35)); }
.journey-balloon { position: absolute; left: var(--x); top: var(--y); width: clamp(54px, 6.5vw, 92px); transform: translate(-50%, -112%); z-index: 2; }
.journey-balloon img { animation: float 5s ease-in-out infinite; }
.journey-here { position: absolute; left: 50%; bottom: calc(100% + .4rem); transform: translateX(-50%); white-space: nowrap;
  background: #fff; color: var(--ink); font-weight: 700; font-size: var(--fs-small); padding: .3rem .75rem; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.45); }
.journey-here::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; }
.journey.is-arriving .journey-here { opacity: 0; }
.journey .journey-here { transition: opacity .5s .2s; }
.run-row { margin-top: var(--sp-stack); }
.run-stat { margin-top: 0; padding-top: 0; border-top: 0; }
.run-stat .btn-row { margin-top: 1.75rem; }
@media (max-width: 760px) {
  .journey-stage { aspect-ratio: 1000 / 520; }
  .stop:nth-child(2) span, .stop:nth-child(4) span { display: none; }
  .journey-goal span { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .journey-goal img, .journey-balloon img { animation: none; } }
.band > .sky { inset: 0; }
@media (max-width: 760px) {
  .journey-stage { aspect-ratio: 1000 / 640; margin-top: 2.5rem; }
  .journey-goal { width: 60px; transform: translate(-50%, -70%); }
  .journey-goal span { left: auto; right: -4px; transform: none; font-size: 1.05rem; }
  .journey-balloon { width: 50px; }
  .journey-here { font-size: .8125rem; padding: .25rem .6rem; }
}

/* ==========================================================================
   v4 — revisions
   ========================================================================== */

/* Hero: keep the bee, flower and sun clear of the sticky nav */
.hero { padding-top: calc(var(--sp-head) + 3.5rem); }
.hero .deco-bee { top: calc(-1 * clamp(3.5rem, 6vw, 5.5rem)); }
.hero .deco-sun { top: calc(-1 * clamp(3.75rem, 6.5vw, 6rem)); }
.hero .deco-cloud { top: calc(-1 * clamp(1.75rem, 3vw, 2.75rem)); }

/* ---- Living photo: the bead strands sway ---- */
.polaroid.living { padding: 10px 10px 42px; }
.living-photo { position: relative; overflow: hidden; aspect-ratio: 968 / 1200; background: #6b4a32; }
.living-photo > img:first-child { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.polaroid .living-photo .strand { position: absolute; top: 0; aspect-ratio: auto; object-fit: fill; background: none;
  transform-origin: 50% 0; animation: strand-sway var(--dur) ease-in-out var(--d) infinite alternate;
  rotate: var(--push, 0deg); transition: rotate 1.6s cubic-bezier(.25, 1.6, .45, 1); will-change: transform; }
@keyframes strand-sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }
.living-photo.is-brushed .strand { transition-duration: .25s; }

/* ---- Pillars: partner badges sit with the illustrations ---- */
.pillar-art { gap: 1rem; justify-content: flex-start; }
.partner-badge { display: inline-flex; align-items: center; background: var(--paper); border-radius: 999px; padding: .55rem .95rem;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(47,58,87,.35); transform: rotate(var(--t, 0deg)); margin-bottom: .75rem; }
.partner-badge img { height: 24px !important; width: auto; }
.pillar .partner { display: none; }

/* ---- 100% badge ---- */
.promise-badge { width: clamp(150px, 15vw, 196px); aspect-ratio: 1; filter: drop-shadow(0 10px 18px rgba(47,58,87,.22)); }
.promise-badge svg { width: 100%; height: 100%; overflow: visible; }
.pb-scallop { fill: var(--mustard); }
.pb-ring { font: 700 15.5px var(--sans); fill: var(--ink); letter-spacing: .02em; }
.pb-spin { transform-origin: 100px 100px; animation: pb-spin 28s linear infinite; }
@keyframes pb-spin { to { transform: rotate(360deg); } }
.pb-core { fill: var(--pink-deep); }
.pb-num { font: 650 33px var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; fill: #fff; letter-spacing: -.02em; }
.promise-badge:hover .pb-spin { animation-duration: 6s; }
.promise-badge.home { position: absolute; right: 0; top: calc(-1 * var(--sp-section) - clamp(3.5rem, 6vw, 5.5rem)); transform: rotate(-8deg); z-index: 3; }
.band-white > .wrap { position: relative; }
.gifts-band-wrap { position: relative; }
.media.with-badge .promise-badge { position: absolute; left: -14%; bottom: -10%; z-index: 3; width: clamp(130px, 13vw, 170px); transform: rotate(-10deg); }
.donate-badge { display: flex; justify-content: flex-start; }
.donate-notes .donate-badge + div { border-top: 2px dashed var(--peach); padding-top: 2rem; }
@media (max-width: 860px) {
  .promise-badge.home { position: relative; right: auto; top: auto; margin: 2.5rem auto 0; display: block; transform: rotate(-6deg); width: 160px; }
  .media.with-badge .promise-badge { left: -4%; bottom: -12%; width: 120px; }
}

/* ---- Journey copy ---- */
.journey-here { font-size: .95rem; }

/* ---- News band on home ---- */
.news-band .deco-giraffe { width: clamp(80px, 9vw, 120px); right: 22%; top: calc(-1 * var(--sp-section) - 2.25rem); z-index: 2; }
.news-band .section-head h2 { font-size: var(--fs-h2); }
@media (max-width: 860px) { .news-band .deco-giraffe { width: 72px; top: calc(-1 * var(--sp-section) - .5rem); } }

/* ---- Footer: Penelope's name, shimmering ---- */
.footer-word { display: none; }
.footer-name { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: var(--sp-stack) auto 1.25rem; text-align: center; }
.name-shimmer { display: block; width: clamp(170px, 18vw, 230px); aspect-ratio: 1767 / 565;
  -webkit-mask: url(../images/penelope-type.png) center / contain no-repeat; mask: url(../images/penelope-type.png) center / contain no-repeat;
  background: linear-gradient(105deg, var(--teal) 0 30%, var(--pink) 42%, var(--mustard) 50%, var(--pink) 58%, var(--teal) 70% 100%);
  background-size: 320% 100%; animation: shimmer 7s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
.footer-heart { width: 16px; color: var(--pink); animation: beat 1.6s ease-in-out infinite; }
.footer-heart svg { width: 100%; fill: currentColor; display: block; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }
.footer-name p { margin: 0; font: italic 500 1rem/1.3 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink-soft); }

/* ---- Story header ---- */
.band.no-top::before { display: none; }
.story-head .story-head-text h1 { color: var(--ink); }
.story-head { padding-bottom: calc(var(--sp-section) * .8); }
.story-head .wrap { z-index: 2; }
.story-head-text { position: relative; z-index: 3; }
.story-portrait { z-index: 1; }

/* ---- Foundation: film poster in the TV ---- */
.tv-poster { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-decoration: none; color: #fff;
  background: radial-gradient(circle at 50% 120%, #3f4c70 0%, var(--ink) 65%); pointer-events: auto; z-index: 3; }
.tv-stars { position: absolute; inset: 0; }
.tv-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: .3; animation: star 4s ease-in-out var(--d) infinite; }
.tv-play { position: relative; width: clamp(64px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%; background: var(--pink-deep); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(226,106,153,.25); transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.tv-play svg { width: 44%; fill: #fff; margin-left: 6%; }
.tv-poster:hover .tv-play, .tv-poster:focus-visible .tv-play { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(226,106,153,.3); }
.tv-caption { position: relative; font: 600 var(--fs-h3)/1.2 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; text-align: center; }
.tv-caption small { display: block; font: 500 var(--fs-small)/1.4 var(--sans); color: #cfd3e3; margin-top: .25rem; }

/* ---- Neuroblastoma: grown-ups / kids ---- */
html.js [data-for="kids"] { display: none; }
html.js[data-audience="kids"] [data-for="kids"] { display: block; }
html.js[data-audience="kids"] [data-for="adults"] { display: none; }
.audience { display: inline-flex; gap: .5rem; padding: .4rem; background: #fff; border-radius: 999px; box-shadow: 0 8px 24px -14px rgba(47,58,87,.5); margin-top: 1.75rem; }
html:not(.js) .audience { display: none; }
.audience button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1.2rem .55rem .6rem; border-radius: 999px;
  font-weight: 650; color: var(--ink); transition: background-color .25s, color .25s; }
.audience button img { width: 38px; height: 38px; object-fit: contain; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.audience button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.audience button[aria-pressed="true"] img { transform: rotate(-8deg) scale(1.1); }
.audience button:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
html[data-audience="kids"] body { background: #fdf3e4; }
html[data-audience="kids"] .lede { font-size: calc(var(--fs-lede) * 1.06); }
.nb-figure { margin: 0; justify-self: center; text-align: center; width: 100%; max-width: 24rem; }
.nb-figure figcaption { margin-top: 1.75rem; color: var(--ink-soft); font-size: var(--fs-small); }
.flips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--col-gap); }
@media (max-width: 1000px) { .flips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flips { grid-template-columns: 1fr; } }
.flip { all: unset; display: block; position: relative; width: 100%; aspect-ratio: 4 / 5; cursor: pointer; perspective: 1000px; }
.flip-face { position: absolute; inset: 0; border-radius: var(--radius); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.3, 1.35, .5, 1); display: flex; flex-direction: column; padding: 1.5rem; }
.flip-front { background: var(--paper); align-items: center; justify-content: center; text-align: center; gap: 1.25rem; }
.flip-front img { height: 46%; width: auto; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.flip:hover .flip-front img { transform: rotate(-6deg) scale(1.06); }
.flip-q { display: block; font: 600 var(--fs-h3)/1.2 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36; }
.flip-hint { font-size: var(--fs-small); color: var(--ink-soft); }
.flip-back { background: var(--ink); color: #fff; transform: rotateY(180deg); justify-content: center; }
.flips li:nth-child(2) .flip-back { background: var(--teal); }
.flips li:nth-child(3) .flip-back { background: var(--pink-deep); }
.flips li:nth-child(4) .flip-back { background: #8a6420; }
.flip-a { display: block; font-size: 1.08rem; line-height: 1.55; }
.flip[aria-pressed="true"] .flip-front { transform: rotateY(-180deg); }
.flip[aria-pressed="true"] .flip-back { transform: rotateY(0); }
.flip:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; border-radius: var(--radius); }
.words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .85rem; }
.word { position: relative; }
.word summary { list-style: none; cursor: pointer; background: #fff; border-radius: 999px; padding: .8rem 1.35rem; font-weight: 700;
  box-shadow: 0 6px 16px -10px rgba(47,58,87,.55); transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .2s; }
.word summary::-webkit-details-marker { display: none; }
.word summary:hover { transform: translateY(-3px) rotate(-1.5deg); }
.word[open] summary { background: var(--mustard); color: var(--ink); }
.word p { position: absolute; z-index: 5; left: 0; top: calc(100% + .6rem); width: min(19rem, 80vw); margin: 0; background: var(--ink); color: #fff;
  padding: 1rem 1.15rem; border-radius: 1.1rem; font-size: 1rem; line-height: 1.5; box-shadow: 0 18px 30px -16px rgba(47,58,87,.7);
  animation: pop-bubble .35s cubic-bezier(.34,1.56,.64,1); }
.word p::before { content: ""; position: absolute; left: 1.4rem; top: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
@keyframes pop-bubble { from { opacity: 0; transform: translateY(-6px) scale(.9); } }
.care-note { margin: 2rem auto 0; max-width: 44ch; text-align: center; font-size: var(--fs-small); color: var(--ink-soft); }

/* ---- ELLE story ---- */
.elle-media { margin-block: var(--sp-stack); align-items: start; }
.story-clip { justify-self: center; width: 100%; max-width: 21rem; }
.clip-frame { position: relative; border-radius: 2rem; overflow: hidden; aspect-ratio: 9 / 16; background: var(--ink);
  box-shadow: 0 0 0 10px #fff, 0 28px 50px -24px rgba(47,58,87,.55); transform: rotate(-2deg); }
.clip { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-toggle { position: absolute; right: .85rem; bottom: .85rem; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; }
.clip-toggle svg { width: 18px; fill: currentColor; }
.clip-toggle .i-play { display: none; } .clip-toggle.is-paused .i-play { display: block; } .clip-toggle.is-paused .i-pause { display: none; }
.star-clip { margin: 0; justify-self: center; width: 100%; max-width: 19rem; padding-top: 2rem; }
.star-clip figcaption { margin-top: 1.25rem; text-align: center; font: italic 500 1rem/1.4 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink-soft); }
.elle-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); max-width: 52rem; margin-top: var(--sp-stack); }
@media (max-width: 640px) { .elle-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; } .elle-strip .polaroid { padding: 6px 6px 22px; } }

@media (prefers-reduced-motion: reduce) {
  .polaroid .living-photo .strand, .pb-spin, .name-shimmer, .footer-heart, .tv-stars i { animation: none !important; }
}
@media (max-width: 860px) {
  .audience { display: flex; width: 100%; max-width: 26rem; }
  .audience button { flex: 1; justify-content: center; padding: .5rem .75rem; font-size: .95rem; white-space: nowrap; }
  .audience button img { width: 30px; height: 30px; }
}
@media (max-width: 860px) { .page-head .deco-a { width: 64px; top: calc(-1 * var(--sp-head) - .5rem); right: 0; } }

/* ---- v5: a second balloon over "New treatment options" ---- */
.pillar-art-balloons { position: relative; }
.balloon-two { display: block; align-self: flex-start; margin-left: .25rem; }
.pillar-art .balloon-two img { height: 78px; animation: float 7s ease-in-out -2.5s infinite; transform-origin: 50% 100%; }
.pillar:nth-child(2):hover .pillar-art .balloon-two img { animation: lift 1.6s ease-in-out .15s; }
@media (max-width: 860px) { .pillar-art .balloon-two img { height: 60px; } }
@media (prefers-reduced-motion: reduce) { .pillar-art .balloon-two img { animation: none; } }

/* ---- v5: Story header as a nursery mobile, drawn from the foundation's own illustrations ---- */
.band-nursery { --band: var(--blush); background-color: var(--blush);
  background-image: radial-gradient(rgba(255,255,255,.75) 1.6px, transparent 2.2px);
  background-size: 34px 34px; background-position: 0 6px; }
.nursery-mobile { position: absolute; inset: 0 var(--gutter); z-index: 4; pointer-events: none; max-width: calc(var(--max) + 8rem); margin: 0 auto; }
.nursery-mobile::before { content: ""; position: absolute; left: -2rem; right: -2rem; top: 0; height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 9px); opacity: .18; }
.mobile-piece { all: unset; position: absolute; top: 0; width: var(--w); transform: translateX(-50%); pointer-events: none;
  display: flex; flex-direction: column; align-items: center; }
.mobile-piece .mp-swing { display: contents; }
.mp-string { width: 1.5px; height: var(--len); background: var(--ink); opacity: .45; flex: none; }
.mobile-piece::before { content: ""; position: absolute; top: -3px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--mustard); }
.mp-art { display: block; width: 100%; pointer-events: auto; cursor: pointer; margin-top: -2px; }
.mp-art img { width: 100%; height: auto; display: block; transform-origin: 50% 0; transition: transform .9s cubic-bezier(.34, 1.4, .5, 1); }
/* the whole hanging piece pivots from its pin */
.mobile-piece { transform-origin: 50% 0; rotate: var(--a, 0deg);
  animation: mobile-sway var(--dur) ease-in-out var(--d) infinite alternate; }
@keyframes mobile-sway { from { transform: translateX(-50%) rotate(-3deg); } to { transform: translateX(-50%) rotate(3deg); } }
.mobile-piece.is-twirl .mp-art img { transform: rotateY(360deg); }
.mobile-piece:focus-visible .mp-art { outline: 3px solid var(--pink-deep); outline-offset: 6px; border-radius: 12px; }
html.js .mobile-piece { opacity: 0; translate: 0 -40px; transition: opacity .8s var(--ease), translate 1.1s cubic-bezier(.34, 1.5, .5, 1); }
html.js .nursery-mobile.is-in .mobile-piece { opacity: 1; translate: 0 0; }
html.js .nursery-mobile.is-in .mobile-piece:nth-child(2) { transition-delay: .08s; }
html.js .nursery-mobile.is-in .mobile-piece:nth-child(3) { transition-delay: .16s; }
html.js .nursery-mobile.is-in .mobile-piece:nth-child(4) { transition-delay: .24s; }
html.js .nursery-mobile.is-in .mobile-piece:nth-child(5) { transition-delay: .32s; }
html.js .nursery-mobile.is-in .mobile-piece:nth-child(6) { transition-delay: .4s; }
html.js .nursery-mobile.is-in .mobile-piece:nth-child(7) { transition-delay: .48s; }
@media (max-width: 860px) {
  .mobile-piece.hide-sm { display: none; }
  .mobile-piece:nth-child(1) { left: 6% !important; --w: 44px !important; }
  .mobile-piece:nth-child(3) { left: 62% !important; --len: 16px !important; --w: 96px !important; }
  .mobile-piece:nth-child(4) { left: 87% !important; --len: 64px !important; --w: 60px !important; }
  .mobile-piece:nth-child(6) { display: none; }
  .story-head { padding-top: calc(var(--sp-head) + 5.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-piece { animation: none; }
  html.js .mobile-piece { opacity: 1; translate: none; transition: none; }
  .mp-art img { transition: none; }
}
.tv-screen video { width: 100%; height: 100%; display: block; object-fit: cover; background: var(--ink); }
.video-note { text-align: center; color: var(--ink-soft); font-size: var(--fs-small); max-width: 34rem; margin: 1.25rem auto 0; }

/* ---- v6: fundraiser promo ticket on the homepage ---- */
.promo-wrap { padding-top: clamp(1rem, 3vw, 2.5rem); }
.promo-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; text-decoration: none; color: #fff;
  background: var(--ink); border-radius: 1.75rem; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(47,58,87,.7);
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 22px, #000 23px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 22px, #000 23px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent 22px, #000 23px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 50%, transparent 22px, #000 23px) right / 51% 100% no-repeat;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.promo-ticket:hover { transform: rotate(-.6deg) translateY(-4px); }
.promo-text { padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4.5vw, 4rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  border-right: 3px dashed rgba(255,255,255,.28); }
.promo-tag { font: 700 .8125rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; background: var(--mustard); color: var(--ink); padding: .5rem .8rem; border-radius: 999px; }
.promo-text h2 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.04; }
.promo-text p { color: rgba(255,255,255,.82); max-width: 34ch; margin: 0 0 .5rem; }
.promo-art { position: relative; min-height: 15rem; }
.promo-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.promo-ticket:hover .promo-art img { transform: scale(1.04) rotate(1deg); }
.promo-wrap.is-over { display: none; }
@media (max-width: 760px) {
  .promo-ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .promo-text { border-right: 0; border-bottom: 3px dashed rgba(255,255,255,.28); order: 2; }
  .promo-art { min-height: 13rem; order: 1; }
}
.journey { margin-top: clamp(4.5rem, 8vw, 7rem); }
@media (max-width: 760px) {
  .promo-text { border-bottom: 0; border-top: 3px dashed rgba(255,255,255,.28); }
}
