:root {
    --blue: #1E6FE0;
    --blue-dark: #1E5FD0;
    --sky: #E9F4FF;
    --pink: #FF2E7E;
    --yellow: #FFD21F;
    --ink: #111111;
    --muted: #4A5563;
    --white: #FFFFFF;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: "Nunito", system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
    font-size: 17px;
  }
  img { max-width: 100%; display: block; }
  a { color: var(--blue); }

  h1, h2, h3 { margin: 0; line-height: 1.05; font-family: "Luckiest Guy", cursive; font-weight: 400; }
  .display { font-family: "Luckiest Guy", "Permanent Marker", cursive; font-weight: 400; letter-spacing: 0.5px; }
  .marker { font-family: "Permanent Marker", cursive; }
  .script { font-family: "Knewave", cursive; }

  .wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }

  /* Top bar */
  .topbar {
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 8px 12px;
    font-weight: 800;
    font-size: 15px;
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px 24px;
    min-height: 58px;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 999px;
    border: 3px solid var(--blue);
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    background: var(--white);
    color: var(--blue);
  }
  .btn.solid { background: var(--pink); border-color: var(--pink); color: var(--white); font-family: "Luckiest Guy", cursive; letter-spacing: 0.5px; font-weight: 400; font-size: 20px; }
  .paypal-submit { appearance: none; -webkit-appearance: none; }
  .give-box form { margin-top: 12px; }

  /* Hero */
  .hero { padding: 0; background: linear-gradient(180deg, var(--sky), var(--white)); overflow: hidden; }
  .hero .wrap > div:first-child { padding: 0; display: flex; flex-direction: column; justify-content: center; }
  .hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: stretch; }
  .hero h1 { font-size: clamp(32px, 4.1vw, 50px); color: var(--ink); }
  .hero h1 .accent { color: var(--blue); }
  .hero h1 .title-journey { white-space: nowrap; }
  .hero h1 .underline {
    background: linear-gradient(transparent 70%, var(--yellow) 70%, var(--yellow) 92%, transparent 92%);
  }
  .hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 18px 0 24px; }
  .hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero-art { position: relative; width: 110%; min-height: 0; aspect-ratio: 900 / 1131; align-self: end; background: transparent; overflow: visible; }
  .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; display: block; }

  /* Progress */
  .progress-card {
    width: 85%;
    margin-top: 24px;
    background: var(--white);
    border: 2.5px solid var(--ink);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 5px 5px 0 var(--blue);
  }
  .progress-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .progress-top .raised { font-family: "Luckiest Guy", cursive; font-size: 29px; color: var(--blue); }
  .progress-top .goal { font-weight: 800; color: var(--muted); }
  .bar { position: relative; height: 19px; background: #DDE7F5; border-radius: 999px; margin: 13px 0 10px; overflow: hidden; border: 2px solid var(--ink); }
  .bar .fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--blue), var(--pink)); border-radius: 999px; transition: width 0.8s ease; }
  .milestones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .milestone { font-size: 12px; color: var(--muted); border-right: 3px solid var(--yellow); padding-right: 8px; text-align: right; }
  .milestone.done { border-right-color: var(--pink); color: var(--ink); }
  .milestone strong { display: block; font-size: 15px; color: var(--ink); font-weight: 800; }

  /* Sections */
  section.block { padding: 64px 0; }
  section.block h2 { font-size: clamp(32px, 4.5vw, 50px); color: var(--ink); margin-bottom: 18px; }
  section.block h2 .blue { color: var(--blue); }
  .eyebrow { font-family: "Nunito", system-ui, sans-serif; font-weight: 800; color: var(--pink); font-size: 18px; margin-bottom: 6px; }

  /* Story */
  .story { background: var(--sky); position: relative; overflow: hidden; }
  .story .story-wrap { position: relative; max-width: 1120px; }
  .story-intro { max-width: 1000px; margin: 0 auto 24px; }
  .story-beat { display: grid; grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1000px; margin: 0 auto; }
  .story-beat-club { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); }
  .story-art { position: relative; min-width: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: visible; }
  .story-frame { position: relative; z-index: 1; width: min(100%, 340px); padding: 10px 11px 0; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; box-shadow: 7px 7px 0 var(--blue); transform: rotate(-2deg); transition: transform 700ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 550ms ease; }
  .story-art-older .story-frame { transform: rotate(2deg); }
  .story-card-head { min-height: 30px; padding: 0 2px 8px; display: flex; align-items: center; gap: 8px; font-family: "Nunito", system-ui, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: 0.6px; }
  .story-card-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 3px var(--sky); }
  .story-card-meta { margin-left: auto; color: var(--muted); font-size: 10px; }
  .story-window { position: relative; isolation: isolate; width: calc(100% + 22px); aspect-ratio: 0.82; margin: 0 -11px; overflow: visible; background: var(--white); }
  .story-background-image, .story-contained-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
  .story-background-image { z-index: 0; clip-path: inset(0 round 0 0 12px 12px); }
  .story-contained-image { z-index: 1; transform: scale(1.15); }
  .story-art-older { padding-bottom: 76px; }
  .story-popout-image { display: block; position: absolute; z-index: 3; top: 50%; left: 50%; width: 154%; max-width: none; height: auto; transform: translate(-50%, calc(-50% - 50px)); transform-origin: center center; filter: drop-shadow(0 7px 4px rgba(17, 17, 17, 0.2)); pointer-events: none; }
  .story-art figcaption { position: relative; z-index: 3; margin-top: 18px; font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 14px; color: var(--blue); }
  .story-copy { max-width: 620px; }
  .story-copy p { font-size: 18px; margin: 0 0 16px; }
  .story-copy p:last-child { margin-bottom: 0; }
  .story-connector { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; margin: 8px auto; color: var(--ink); }
  .story-connector::before, .story-connector::after { content: ""; height: 17px; border-left: 2px dashed var(--yellow); }
  .story-connector span { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 24px; }
  .story.scroll-motion .story-frame { opacity: 0.72; transform: scale(0.94) rotate(-3deg); }
  .story.scroll-motion .story-art-older .story-frame { transform: scale(0.94) rotate(3deg); }
  .story.scroll-motion .story-art.in-view .story-frame { opacity: 1; transform: scale(1) rotate(0); }
  .story.scroll-motion .story-popout-image { opacity: 0.65; transform: translate(-50%, calc(-50% - 24px)) scale(0.97); transition: transform 750ms cubic-bezier(0.2, 0.75, 0.25, 1), opacity 550ms ease; }
  .story.scroll-motion .story-art.in-view .story-popout-image { opacity: 1; transform: translate(-50%, calc(-50% - 50px)) scale(1); }

  /* Gifts */
  .tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 10px; }
  .tiers { position: relative; isolation: isolate; }
  .tiers::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -18px -12px; opacity: 0.42; background-repeat: no-repeat; background-size: 76px auto, 72px auto, 82px auto; background-position: 2% 16%, 96% 18%, 1% 84%; background-image: url("./assets/tier-decoration-1.svg"), url("./assets/tier-decoration-2.svg"), url("./assets/tier-decoration-3.svg"); }
  .tier {
    background: var(--white);
    border: 3px solid var(--ink);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .tier .name { font-family: "Luckiest Guy", cursive; font-size: 26px; }
  .tier .price { font-family: "Luckiest Guy", cursive; font-size: 40px; color: var(--blue); line-height: 1; }
  .tier ul { margin: 0; padding-left: 18px; font-size: 16px; color: var(--muted); }
  .tier li { margin-bottom: 4px; }
  .tier.top { background: var(--ink); color: var(--white); }
  .tier.top .price { color: var(--yellow); }
  .tier.top ul { color: #DDE3EA; }
  .tier.ace { background: var(--yellow); }
  .tier.ace .price { color: var(--pink); }
  .tier.ace ul { color: var(--ink); }
  .tier .note { font-size: 14px; font-weight: 800; color: var(--ink); margin-top: auto; }
  .gift-note { margin-top: 18px; font-size: 16px; color: var(--muted); max-width: 760px; }

  /* Give */
  .give { background: var(--ink); color: var(--white); }
  section.block.give h2 { color: var(--white); }
  .give > .wrap > p { color: #DDE3EA; max-width: 680px; }
  .give-box p { color: var(--ink); }
  .give-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
  .give-box { background: var(--white); color: var(--ink); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; }
  .give-box > p:last-child { margin-top: auto !important; padding-top: 14px; }
  .give-box h3 { font-family: "Luckiest Guy", cursive; font-weight: 400; font-size: 24px; color: var(--blue); margin-bottom: 10px; }
  .give-box ol { padding-left: 20px; margin: 0; }
  .give-box li { margin-bottom: 8px; }
  .give-box .btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

  /* Supporters */
  .supporters-viewport { max-width: 760px; max-height: 260px; overflow: hidden; margin: 18px auto 0; }
  .supporters-track { display: grid; gap: 12px; }
  .supporters-track.scrolling { animation: supporter-scroll 32s linear infinite; }
  .supporters-viewport:hover .supporters-track,
  .supporters-viewport:focus-within .supporters-track { animation-play-state: paused; }
  .supporter-card { background: var(--white); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; box-shadow: 4px 4px 0 var(--blue); }
  .supporter-card-head { display: flex; align-items: center; gap: 10px; }
  .supporter-ball { display: block; flex: 0 0 32px; width: 32px; height: 32px; object-fit: contain; }
  .supporter-name { font-family: "Luckiest Guy", cursive; font-size: 19px; font-weight: 400; }
  .supporter-message { margin: 7px 0 0 42px; color: var(--muted); font-size: 16px; }
  .supporters-empty { color: var(--muted); font-size: 17px; }
  @keyframes supporter-scroll { to { transform: translateY(-50%); } }
  @media (prefers-reduced-motion: reduce) {
  .supporters-viewport { max-height: none; height: auto !important; overflow: visible; }
  .supporters-track.scrolling { animation: none; }
}

  /* Mobile */
  @media (max-width: 860px) {
    .hero .wrap, .give-grid { grid-template-columns: 1fr; }
    .story .story-wrap { max-width: 680px; }
    .story-intro { margin-bottom: 18px; }
    .story-beat, .story-beat-club { grid-template-columns: 1fr; gap: 12px; }
    .story-art { width: 100%; }
    .story-frame { width: min(100%, 300px); }
    .story-art-older { padding-bottom: 68px; }
    .story-popout-image { width: 154%; top: 50%; transform: translate(-50%, calc(-50% - 15px)); }
    .story.scroll-motion .story-art.in-view .story-popout-image { transform: translate(-50%, calc(-50% - 15px)) scale(1); }
    .milestones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .milestone { border-right: 0; border-top: 3px solid var(--yellow); padding: 6px 3px 0; text-align: center; font-size: 11px; }
    .milestone.done { border-top-color: var(--pink); }
    .milestone strong { font-size: 13px; }
    .tier.ace { grid-column: span 2; }
    .story-art-older { grid-row: 2; }
    .story-beat-club .story-copy { grid-row: 1; }
    .story-beat-club .story-art-older { grid-row: 2; }
    .story-copy p { font-size: 17px; }
    .story-connector { margin: 10px auto; }
    .hero-art { order: -1; }
    .hero .wrap > div:first-child { padding: 28px 0; }
    .hero-art { width: 100%; max-width: 330px; min-height: 0; margin: 0 auto; align-self: auto; }
    .hero h1 .title-journey { white-space: normal; }
    .hero-art img { position: static; width: 100%; height: auto; max-width: 100%; margin: 0 auto; }
    .progress-card { width: 100%; }
  }
  @media (max-width: 560px) {
    .tier.ace { grid-column: 1 / -1; }
  }
