/* =========================================================
   Ami Express — Amadeus turns 2
   Nordic baby pastels · ink outlines · pop-art shadows
   One wooden toy track runs through the whole story.
   ========================================================= */

:root {
  --ink: #2B2F4A;
  --ink-soft: #545979;
  --cream: #FFF8EE;
  --white: #FFFFFF;
  --butter: #FBE7A1;
  --butter-deep: #F7D774;
  --blush: #F9D6DC;
  --pink: #F4A9BC;
  --sky: #CFE3F3;
  --blue: #A7CBEA;
  --blue-deep: #7FAFD9;
  --mint: #CDEBD9;
  --sage: #9FD3B5;
  --lilac: #DCD0F5;
  --lav: #BBA8EC;
  --peach: #FBD3B8;
  --coral: #F59A8C;
  --tan: #F3DDBF;
  --tan-deep: #E2BF95;
  --wood: #EDCB9C;
  --night: #3B3F6B;

  --display: 'Mochiy Pop One', 'M PLUS Rounded 1c', ui-rounded, system-ui, sans-serif;
  --body: 'M PLUS Rounded 1c', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Gaegu', 'M PLUS Rounded 1c', cursive;

  --line: 3px;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 22px;
  --topbar: 68px;
  --gutter: 16px;
  --maxw: 1040px;
  --lane: 48px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: calc(var(--topbar) + 8px);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 500;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .8s ease;
}
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0 0 .7em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
address { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

.display { font-family: var(--display); font-weight: 400; letter-spacing: -.005em; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr-only--focusable:focus {
  position: fixed !important; z-index: 100; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--white); padding: 10px 16px; border: var(--line) solid var(--ink); border-radius: 999px;
}
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }

/* hold the hero until the intro animation takes over (head script drops this after 4s as a safety net) */
.is-motion:not(.motion-ready) .hero__grid,
.is-motion:not(.motion-ready) .hero .deco-layer,
.is-motion:not(.motion-ready) .hero__nap { visibility: hidden; }

/* split text */
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }

/* deco + art helpers */
.deco-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.deco { position: absolute; }
.deco svg, [data-art] > svg { width: 100%; height: auto; overflow: visible; }

/* ---------- buttons, pills, chips ---------- */

.btn {
  --bg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 10px 22px;
  border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--bg); color: var(--ink);
  font-weight: 800; font-size: 16px; line-height: 1.1; text-decoration: none; text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { --bg: var(--coral); }
.btn--ghost { --bg: transparent; box-shadow: none; }
.btn--ghost:hover { --bg: var(--white); }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: .35em;
  padding: 6px 14px; border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--white); font-weight: 700; font-size: 15px;
}
.chip--butter { background: var(--butter); }
.chip--sky { background: var(--sky); }

.eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--cream);
}

.lede {
  font-weight: 800;
  font-size: clamp(21px, 5vw, 30px);
  line-height: 1.24;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.lede em, .sweet__end em { font-style: normal; background: linear-gradient(transparent 58%, var(--butter-deep) 58% 90%, transparent 90%); }

/* ---------- top bar ---------- */

.topbar {
  position: fixed; z-index: 60; inset: 0 0 auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: var(--topbar);
  padding: 10px max(var(--gutter), env(safe-area-inset-left)) 0;
  pointer-events: none;
}
.pill {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 16px 6px 8px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 999px;
  box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
}
.pill:hover { transform: translateY(-2px) rotate(-1deg); }
.brand { position: relative; overflow: hidden; padding-bottom: 9px; max-width: calc(100vw - 130px); }
.brand__icon { width: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__text b { font-family: var(--display); font-weight: 400; font-size: 15px; }
.brand__now { font-size: 12px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__now-name { display: inline-block; color: var(--ink); }
.brand__rail { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; border-radius: 2px; }
.brand__rail::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); opacity: .25;
}
.brand__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: var(--coral); transform-origin: left center; transform: scaleX(0);
}
.pill--rsvp {
  padding: 6px 18px; background: var(--coral);
  font-family: var(--display); font-size: 17px; flex-direction: column; gap: 0; line-height: 1.05; justify-content: center;
}
.pill__sub { font-family: var(--body); font-weight: 800; font-size: 11px; letter-spacing: .04em; }

/* ---------- photo treatments ---------- */

.sticker-photo img, .sticker-img {
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(4px 5px 0 rgba(43, 47, 74, .85));
}
.polaroid {
  background: var(--white); padding: 10px 10px 0;
  border: var(--line) solid var(--ink); border-radius: 10px; box-shadow: var(--shadow);
}
.polaroid img { border-radius: 4px; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.polaroid figcaption { font-family: var(--hand); font-size: 22px; text-align: center; padding: 4px 0 6px; }

/* ---------- marquee ---------- */

.marquee {
  position: relative; z-index: 5; overflow: hidden;
  background: var(--ink); color: var(--butter);
  border-block: 3px solid var(--ink);
  transform: rotate(-1.5deg) scale(1.03);
  margin: -6px 0;
}
.marquee__inner { display: flex; width: max-content; will-change: transform; }
.marquee span { font-family: var(--display); font-size: 18px; padding: 10px 18px; white-space: nowrap; }
html:not(.is-motion):not(.is-reduced) .marquee__inner { animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--topbar) + 28px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero .cloud-a { width: 34vw; max-width: 260px; top: 15%; left: -8vw; }
.hero .cloud-b { width: 30vw; max-width: 220px; top: 9%; right: -6vw; }
.hero .cloud-c { width: 22vw; max-width: 160px; bottom: 30%; right: 34%; opacity: .9; }
.hero .rainbow { width: 46vw; max-width: 300px; bottom: -2px; right: -10vw; opacity: .95; }
.hero .star-a { width: 34px; top: 24%; left: 46%; }
.hero .star-b { width: 26px; top: 14%; left: 18%; }
.hero .star-c { width: 30px; top: 58%; left: 5%; }
.hero .star-d { width: 22px; top: 70%; right: 6%; }
.hero .star-e { width: 26px; top: 36%; right: 8%; }

.hero__grid {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 8px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 4px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: 14px; box-shadow: var(--shadow-sm);
}
.kicker__dot { color: var(--coral); }

.hero__title { font-family: var(--display); font-size: clamp(54px, 15.5vw, 132px); line-height: .92; margin: 14px 0 18px; }
.hero__name {
  display: block; color: var(--white);
  -webkit-text-stroke: .055em var(--ink); paint-order: stroke fill;
  text-shadow: .05em .06em 0 var(--ink); letter-spacing: -.02em;
}
.hero__name .ch:nth-of-type(7n+1) { color: var(--pink); }
.hero__name .ch:nth-of-type(7n+2) { color: var(--butter-deep); }
.hero__name .ch:nth-of-type(7n+3) { color: var(--blue); }
.hero__name .ch:nth-of-type(7n+4) { color: var(--sage); }
.hero__name .ch:nth-of-type(7n+5) { color: var(--lav); }
.hero__name .ch:nth-of-type(7n+6) { color: var(--peach); }
.hero__name .ch:nth-of-type(7n+7) { color: var(--coral); }
.hero__turns { display: flex; align-items: flex-end; gap: .12em; font-size: .62em; margin-top: .1em; }
.balloon { position: relative; display: inline-block; font-size: 2.1em; line-height: .85; margin: 0 .04em 0 .08em; }
.balloon__num {
  display: inline-block; position: relative; color: var(--pink);
  -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; text-shadow: .04em .05em 0 var(--ink);
}
.balloon__num::after {
  content: ''; position: absolute; left: 22%; top: 16%; width: .14em; height: .08em;
  background: var(--white); border-radius: 50%; transform: rotate(-35deg); opacity: .95;
}
.balloon__string { position: absolute; left: 46%; top: 92%; width: .16em; height: auto; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 20px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__art { position: relative; justify-self: end; width: min(54vw, 360px); margin-top: -14px; margin-right: 2vw; }
.hero__photo img { width: 100%; transform: rotate(3deg); }
.badge-star {
  position: absolute; left: -12%; bottom: 14%;
  display: grid; place-items: center; align-content: center; width: 92px; height: 92px;
  background: var(--butter-deep); border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: var(--shadow-sm); transform: rotate(-12deg);
  font-family: var(--display); line-height: 1; text-align: center;
}
.badge-star span { color: var(--coral); font-size: 16px; -webkit-text-stroke: 1px var(--ink); }
.badge-star b { font-weight: 400; font-size: 14px; margin-top: 2px; }

.hero__nap { position: absolute; z-index: 1; left: 2vw; bottom: 3vh; width: min(42vw, 260px); }
.hero__nap-cloud { width: 100%; }
.hero__mascot { position: absolute; width: 54%; left: 22%; bottom: 46%; }
.zzz { position: absolute; left: 70%; bottom: 92%; font-family: var(--display); color: var(--blue-deep); pointer-events: none; }
.zzz i { position: absolute; font-style: normal; -webkit-text-stroke: 1px var(--ink); }
.zzz i:nth-child(1) { font-size: 16px; left: 0; bottom: 0; }
.zzz i:nth-child(2) { font-size: 22px; left: 16px; bottom: 18px; }
.zzz i:nth-child(3) { font-size: 30px; left: 34px; bottom: 40px; }

/* =========================================================
   STORY + TRACK
   ========================================================= */

.story { position: relative; isolation: isolate; }
.track { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.track__svg { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; }
.track__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.track__outline { stroke: var(--ink); stroke-width: 26; }
.track__wood { stroke: var(--wood); stroke-width: 20; }
.track__groove { stroke: #C99D69; stroke-width: 12; }
.track__center { stroke: var(--wood); stroke-width: 6; }

.track__stops { position: absolute; inset: 0; z-index: 1; }
.stop-dot {
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  display: grid; place-items: center;
  background: var(--c, var(--white)); border: var(--line) solid var(--ink); border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--display); font-size: 14px; line-height: 1;
}
.stop-dot.is-ding { animation: ding .6s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes ding { 0% { transform: scale(1); } 35% { transform: scale(1.45) rotate(-12deg); } 70% { transform: scale(.92) rotate(6deg); } 100% { transform: scale(1); } }

.track__train, .track__puffs { position: absolute; inset: 0; z-index: 6; }
.tcar { position: absolute; left: 0; top: 0; width: 46px; will-change: transform; }
.tcar--engine { width: 60px; }
.tcar svg { width: 100%; height: auto; filter: drop-shadow(2px 3px 0 rgba(43, 47, 74, .35)); }
.puff-p { position: absolute; left: 0; top: 0; width: 34px; margin: -12px 0 0 -17px; opacity: 0; will-change: transform, opacity; }

/* intro / departure */
.intro {
  position: relative; z-index: 2;
  min-height: 92vh; min-height: 92svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--topbar) + 40px) var(--gutter) 30px;
}
.intro-cloud-a { width: 36vw; max-width: 240px; top: 14%; right: -6vw; }
.intro-cloud-b { width: 26vw; max-width: 180px; top: 44%; left: -6vw; }
.intro-star { width: 30px; top: 22%; left: 20%; }
.intro__title { position: relative; font-size: clamp(54px, 15vw, 120px); line-height: 1; margin: 6px 0 14px; }
.intro__title .ch { color: var(--white); -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill; text-shadow: .05em .06em 0 var(--ink); }
.intro__title .word .ch:nth-child(odd) { color: var(--butter-deep); }
.intro__sub { position: relative; font-weight: 700; font-size: clamp(18px, 4.6vw, 22px); max-width: 30ch; margin: 0 auto; }
.intro__platform { width: 100%; height: 110px; }
.intro__hint { position: relative; font-family: var(--hand); font-size: 22px; color: var(--ink-soft); margin: 0; padding-left: var(--lane); }
@media (min-width: 960px) { .intro__hint { padding-left: 0; font-size: 24px; } }

/* chapters */
.chapter { position: relative; z-index: 2; padding: 40px var(--gutter) 48px calc(var(--lane) + 10px); }
.chapter__inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; }
.chapter__head { margin-bottom: 24px; }
.chapter__head--center { text-align: center; }
.stop-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border: var(--line) solid var(--ink); border-radius: 999px;
  background: var(--c, var(--white)); box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.chapter__title { font-family: var(--display); font-size: clamp(36px, 10vw, 76px); line-height: 1.04; margin-top: 12px; text-wrap: balance; }
.chapter__title .ch { color: var(--title, var(--white)); -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill; text-shadow: .045em .055em 0 var(--ink); }
.hello { --title: var(--butter-deep); }
.sweet { --title: var(--pink); }
.firsts { --title: var(--lav); }
.explorer { --title: var(--blue); }
.gifts { --title: var(--sage); }
.tickets { --title: var(--lav); }

.connector {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  min-height: 150px; margin: 0;
  padding: 0 var(--gutter) 0 calc(var(--lane) + 10px);
}
.connector span {
  display: inline-block; padding: 8px 20px 10px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-family: var(--hand); font-size: clamp(22px, 5.6vw, 28px); line-height: 1.15; text-align: center;
  transform: rotate(-2deg);
}

/* particles: only animate while their scene is on screen (.is-live) */
.fx { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; border-radius: inherit; }
.fx i { position: absolute; display: block; font-style: normal; animation-play-state: paused !important; }
.is-live .fx i, .is-live.fx i { animation-play-state: running !important; }
.is-reduced .fx, html:not(.is-motion) .fx { display: none; }

/* =========================================================
   STOP 1 · HELLO, WORLD
   ========================================================= */

.hello__body { display: grid; gap: 34px; align-items: center; }
.hello__art { position: relative; width: min(60vw, 280px); margin: 18px auto 0; }
.hello__burst {
  position: absolute; z-index: 0; left: -60%; top: 50%; width: 220%; margin-top: -110%;
  aspect-ratio: 1; pointer-events: none; opacity: .8;
  -webkit-mask-image: radial-gradient(circle, #000 0 22%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0 22%, transparent 62%);
}
.hello__burst svg { width: 100%; height: 100%; }
.hello__photo { position: relative; z-index: 1; transform: rotate(-3deg); }
.hello__clock { position: absolute; z-index: 3; width: 44%; right: -20%; top: -12%; }
.bracelet {
  position: absolute; z-index: 4; left: -12%; right: -12%; bottom: 7%;
  display: flex; justify-content: center; align-items: center; gap: 6px;
  margin: 0; padding: 6px 12px;
  background: var(--sky); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: clamp(10px, 2.7vw, 13px); letter-spacing: .06em; white-space: nowrap;
  transform: rotate(4deg); transform-origin: left center;
}
.bracelet i { font-style: normal; color: var(--coral); }
.hello__copy { max-width: 460px; }
.hello__copy p:last-child { margin: 0; }

/* =========================================================
   STOP 2 · SWEETHEART
   ========================================================= */

.sweet__lede { max-width: 620px; }
.fx--hearts i {
  bottom: -30px; left: var(--x); width: 16px; height: 16px; background: var(--pink);
  border: 2px solid var(--ink); border-top: 0; border-left: 0; border-radius: 0 0 4px 0;
  transform: rotate(45deg);
  animation: heart-rise var(--t, 7s) linear infinite var(--d, 0s);
}
.fx--hearts i::before, .fx--hearts i::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: inherit; border: 2px solid var(--ink);
}
.fx--hearts i::before { left: -10px; top: -2px; border-right: 0; clip-path: inset(0 50% 0 0); }
.fx--hearts i::after { left: -2px; top: -10px; border-bottom: 0; clip-path: inset(0 0 50% 0); }
.fx--hearts i:nth-child(1) { --x: 8%; --t: 8s; --d: -1s; }
.fx--hearts i:nth-child(2) { --x: 22%; --t: 9.5s; --d: -5s; background: var(--coral); }
.fx--hearts i:nth-child(3) { --x: 41%; --t: 7.5s; --d: -3s; }
.fx--hearts i:nth-child(4) { --x: 58%; --t: 10s; --d: -7s; background: var(--blush); }
.fx--hearts i:nth-child(5) { --x: 73%; --t: 8.5s; --d: -2s; }
.fx--hearts i:nth-child(6) { --x: 88%; --t: 9s; --d: -6s; background: var(--coral); }
.fx--hearts i:nth-child(7) { --x: 96%; --t: 11s; --d: -4s; }
@keyframes heart-rise {
  0% { transform: translateY(0) rotate(45deg) scale(.5); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(14px, -50vh) rotate(45deg) scale(.9); }
  100% { transform: translate(-8px, -100vh) rotate(45deg) scale(1); opacity: 0; }
}

.traits { display: flex; flex-direction: column; padding: 8px 0 4px; }
.trait { position: relative; width: min(64%, 270px); transform: rotate(var(--r)); }
.trait:nth-child(1) { align-self: flex-start; z-index: 1; }
.trait:nth-child(2) { align-self: flex-end; z-index: 2; margin-top: -16%; }
.trait:nth-child(3) { align-self: flex-start; z-index: 3; margin-top: -16%; margin-left: 6%; }
@media (max-width: 959px) {
  .trait__note { display: none; }
  /* stacked zig-zag on phones: keep each label on the side the next card doesn't cover */
  .trait:nth-child(odd) figcaption { align-items: flex-start; padding-left: 10px; }
  .trait:nth-child(even) figcaption { align-items: flex-end; padding-right: 10px; }
}
.trait__inner {
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 18px;
  padding: 8px 8px 12px; box-shadow: var(--shadow);
}
.trait__img { border-radius: 12px; overflow: hidden; background: var(--c); }
.trait__img img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.trait figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -18px; position: relative; }
.trait__tag {
  font-family: var(--display); font-weight: 400; font-size: clamp(17px, 4.6vw, 21px);
  background: var(--c); border: var(--line) solid var(--ink); border-radius: 999px; padding: 2px 16px;
  box-shadow: var(--shadow-sm);
}
.trait__note { font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 6px; color: var(--ink-soft); }
.sweet__end { font-family: var(--hand); font-size: clamp(28px, 7vw, 40px); line-height: 1.1; margin: 22px 0 0; text-align: center; }

/* =========================================================
   STOP 3 · LITTLE FIRSTS
   ========================================================= */

.firsts {
  background-image: radial-gradient(rgba(187, 168, 236, .4) 1.6px, transparent 2px);
  background-size: 16px 16px;
}
.firsts .chapter__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.moment {
  position: relative; min-width: 0;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: var(--shadow);
  padding: 18px 16px 22px;
}
.moment__label {
  display: inline-block; margin-bottom: 10px;
  font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: var(--cream); padding: 4px 12px; border-radius: 999px;
}
.moment__text { font-weight: 700; font-size: 18px; line-height: 1.4; }
.moment__text small { display: block; font-size: 15px; color: var(--ink-soft); }

/* first word */
.ok-scene {
  position: relative; overflow: hidden; display: grid; place-items: center;
  height: clamp(210px, 56vw, 300px); margin: 4px 0 14px;
  border: var(--line) solid var(--ink); border-radius: 18px;
  background: var(--lilac) radial-gradient(rgba(255, 255, 255, .55) 1.6px, transparent 2px) 0 0 / 12px 12px;
}
.speedlines { position: absolute; inset: -40%; opacity: .16; }
.speedlines svg { width: 100%; height: 100%; }
.ok-burst { position: relative; z-index: 1; width: min(84%, 400px); }
.ok-burst__text {
  position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 4%;
  font-family: var(--display); font-size: clamp(58px, 17vw, 120px); line-height: 1;
  color: var(--coral); -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; text-shadow: .04em .05em 0 var(--ink);
}

/* the baba saga comic */
.comic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; counter-reset: panel; }
.panel { position: relative; counter-increment: panel; border: var(--line) solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--white); }
.panel::before {
  content: counter(panel); position: absolute; z-index: 5; left: 8px; top: 8px;
  display: grid; place-items: center; width: 26px; height: 26px;
  background: var(--white); border: 2px solid var(--ink); border-radius: 50%;
  font-family: var(--display); font-size: 13px;
}
.panel__art {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  background: var(--pbg) radial-gradient(rgba(255, 255, 255, .5) 1.5px, transparent 1.9px) 0 0 / 12px 12px;
}
.panel--1 { --pbg: var(--sky); }
.panel--2 { --pbg: #E4E2EE; }
.panel--3 { --pbg: var(--blush); }
.panel--4 { --pbg: var(--mint); }
.panel__cap { margin: 0; padding: 10px 14px 12px; border-top: var(--line) solid var(--ink); font-weight: 700; font-size: 16px; }

.say {
  position: relative; z-index: 2;
  padding: .35em .8em .42em;
  background: var(--sky); border: 4px solid var(--ink); border-radius: 999px; box-shadow: var(--shadow);
  font-family: var(--display); font-size: clamp(36px, 10.5vw, 56px); line-height: 1; white-space: nowrap;
}
.say::after {
  content: ''; position: absolute; left: 22%; bottom: -22px; width: 28px; height: 28px;
  background: inherit; border: 4px solid var(--ink); border-top: 0; border-left: 0;
  transform: skewX(28deg) rotate(45deg); border-radius: 0 0 8px 0;
}
.say--grey { background: #F1EFF6; color: #8E8CA6; font-size: clamp(28px, 8vw, 40px); border-style: dashed; transform: rotate(-8deg); }
.say--grey::after { border-style: dashed; }
.say--pink { background: var(--blush); }
.say--small { font-size: clamp(20px, 5.4vw, 30px); border-width: 3px; }
.say--small::after { width: 20px; height: 20px; bottom: -16px; border-width: 3px; }
.panel__spark { position: absolute; width: 30px; }
.panel__spark.s1 { left: 16%; top: 18%; }
.panel__spark.s2 { right: 14%; bottom: 20%; width: 22px; }
.panel__q { position: absolute; font-family: var(--display); font-size: clamp(26px, 7vw, 38px); color: var(--lav); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.panel__q.q1 { left: 16%; top: 14%; transform: rotate(-14deg); }
.panel__q.q2 { right: 16%; top: 20%; transform: rotate(12deg); }
.panel__q.q3 { right: 26%; bottom: 12%; font-size: 22px; }

.mama__photo {
  position: relative; z-index: 1;
  height: 82%; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 18px 18px; overflow: hidden;
  border: var(--line) solid var(--ink); box-shadow: var(--shadow-sm); background: var(--white);
}
.mama__photo img { width: 100%; height: 100%; object-fit: cover; }
.mama__bubbles { position: absolute; inset: 8px; z-index: 2; }
.mama__bubbles span {
  position: absolute; left: var(--x); top: var(--y);
  padding: .15em .6em .2em;
  background: var(--white); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--display); font-size: clamp(13px, 3.6vw, 17px); line-height: 1.2;
  transform: rotate(var(--r));
}
.mama__bubbles span:nth-child(even) { background: var(--pink); }
.mama__count {
  position: absolute; z-index: 3; right: 8px; top: 8px; margin: 0;
  font-family: var(--display); font-size: 14px;
  background: var(--ink); color: var(--white); padding: 3px 10px; border-radius: 999px;
}
.mama__count b { font-weight: 400; color: var(--butter-deep); display: inline-block; min-width: 1.5em; text-align: right; }

.panel--4 .panel__art { grid-template-columns: auto auto; gap: 4%; }
.baba__photo { position: relative; z-index: 1; height: 86%; }
.baba__photo img { height: 100%; width: auto; }
.panel--4 .say--small { align-self: start; margin-top: 18%; }
.panel__heart { position: absolute; width: 26px; z-index: 2; }
.panel__heart.h1 { left: 12%; top: 16%; }
.panel__heart.h2 { right: 12%; bottom: 18%; width: 20px; }

/* backwards butt-scoot */
.moment--scoot { overflow: hidden; }
.scoot { position: relative; }
.caution {
  display: inline-flex; overflow: hidden; margin-top: 4px;
  border: var(--line) solid var(--ink); border-radius: 12px; box-shadow: var(--shadow-sm);
  background: repeating-linear-gradient(-45deg, var(--butter-deep) 0 12px, var(--ink) 12px 24px);
  padding: 5px;
}
.caution span {
  font-family: var(--display); font-size: clamp(14px, 4vw, 20px); line-height: 1;
  background: var(--butter); padding: 6px 10px; margin: 0 2px; border-radius: 6px; border: 2px solid var(--ink);
}
.scoot__lane { position: relative; height: clamp(170px, 46vw, 250px); margin-top: 10px; }
.scoot__floor {
  position: absolute; left: -20px; right: -20px; bottom: 8px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 24px, transparent 24px 40px);
  border-radius: 3px; opacity: .5;
}
.scoot__kid { position: absolute; z-index: 2; left: 4%; bottom: 10px; width: clamp(120px, 36vw, 210px); will-change: transform; }
.scoot__kid img { width: 100%; }
.scoot__lines { position: absolute; left: -18%; top: 30%; width: 22%; display: flex; flex-direction: column; gap: 12px; opacity: 0; }
.scoot__lines i { display: block; height: 5px; border-radius: 3px; background: var(--ink); }
.scoot__lines i:nth-child(2) { width: 70%; }
.scoot__puff { position: absolute; z-index: -1; width: 46%; left: -18%; bottom: -6%; opacity: 0; }
.scoot__after { font-family: var(--hand); font-size: clamp(24px, 6vw, 32px); margin: 6px 0 0; text-align: left; }
html:not(.is-motion) .scoot__kid { left: 50%; transform: translateX(-50%); }

/* animal sounds */
.zoo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2.6vw, 16px); margin-top: 14px; }
.critter {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 8px;
  background: var(--c); border: var(--line) solid var(--ink); border-radius: 20px; box-shadow: var(--shadow-sm);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .15s;
}
/* GSAP owns the button's transform (reveal), so hover/press effects live on the art inside */
.critter:active { box-shadow: 1px 1px 0 var(--ink); }
.critter__art { width: min(100%, 92px); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.critter:hover .critter__art { transform: translateY(-4px) rotate(-5deg); }
.critter:active .critter__art { transform: scale(.92); }
.critter__name { font-weight: 800; font-size: 13px; }
.critter__say {
  position: absolute; z-index: 3; left: 50%; top: -14px;
  padding: 3px 10px; white-space: nowrap;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-family: var(--display); font-size: clamp(14px, 3.8vw, 18px);
  transform: translate(-50%, 0) scale(0); opacity: 0; pointer-events: none;
}
.critter.is-saying .critter__say { animation: say 1s cubic-bezier(.34, 1.56, .64, 1) both; }
.critter.is-saying .critter__art { animation: squish .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes say {
  0% { transform: translate(-50%, 10px) scale(0); opacity: 0; }
  25% { transform: translate(-50%, -16px) scale(1.12); opacity: 1; }
  78% { transform: translate(-50%, -20px) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -28px) scale(.9); opacity: 0; }
}
@keyframes squish {
  0% { transform: scale(1); }
  30% { transform: scale(1.15, .82); }
  60% { transform: scale(.92, 1.1); }
  100% { transform: scale(1); }
}

/* right hand */
.hand-scene { position: relative; display: flex; flex-direction: column; align-items: center; }
.seesaw { position: relative; width: min(100%, 460px); padding-top: calc(min(28vw, 130px) * 1.4 + 26px); }
.seesaw__beam {
  position: relative; z-index: 2; height: 16px;
  background: var(--coral); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  transform: rotate(9deg);
}
.mitt { position: absolute; bottom: 100%; width: min(28vw, 130px); margin-bottom: -4px; }
.mitt--l { left: 2%; }
.mitt--r { right: 2%; }
.mitt--r .mitt__art { transform: scaleX(-1); }
.mitt__tag {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-family: var(--display); font-size: clamp(20px, 6vw, 30px); color: var(--white);
  -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill;
}
.mitt__q { position: absolute; font-family: var(--display); font-size: clamp(26px, 7vw, 38px); color: var(--lav); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; opacity: 0; }
.mitt__q.q1 { left: -10%; top: -18%; }
.mitt__q.q2 { right: -6%; top: -32%; }
.mitt__spark { position: absolute; width: 30%; opacity: 0; }
.mitt__spark.s1 { right: -14%; top: -12%; }
.mitt__spark.s2 { left: -12%; top: 6%; width: 20%; }
.seesaw__pivot { width: min(16vw, 80px); margin: -4px auto 0; position: relative; z-index: 1; }
.verdict {
  position: relative; z-index: 4; margin: 20px 0 0;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 20px 10px;
  border: 5px double var(--coral); border-radius: 14px;
  color: #D96A5B; background: rgba(255, 255, 255, .8);
  transform: rotate(-5deg);
  text-transform: uppercase; text-align: center;
}
.verdict span { font-weight: 800; font-size: 12px; letter-spacing: .3em; }
.verdict b { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 5.6vw, 30px); line-height: 1.05; }
html:not(.is-motion) .mitt__spark { opacity: 1; }

/* =========================================================
   STOP 4 · LITTLE EXPLORER
   ========================================================= */

.passport { display: flex; flex-wrap: wrap; gap: 12px 10px; margin: 4px 0 22px; }
.pstamp {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 118px; padding: 10px 14px;
  border: 5px double var(--s); border-radius: 14px;
  color: color-mix(in srgb, var(--s) 62%, var(--ink));
  background: color-mix(in srgb, var(--s) 14%, #fff);
  transform: rotate(var(--r));
  text-transform: uppercase; text-align: center; line-height: 1.1;
}
.pstamp b { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .04em; }
.pstamp small { font-weight: 800; font-size: 11px; letter-spacing: .1em; margin-top: 3px; }
.explorer__sub { font-family: var(--hand); font-size: 26px; margin-bottom: 14px; }

.themes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.theme {
  position: relative; min-width: 0; overflow: hidden;
  background: var(--tbg); border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow);
  padding: 16px 16px 20px;
}
.theme > *:not(.fx) { position: relative; z-index: 1; }
.theme__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.theme__icon {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; padding: 8px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: var(--shadow-sm);
}
.theme__head h3 { font-family: var(--display); font-size: clamp(22px, 6vw, 28px); line-height: 1.1; }
.theme__head p { margin: 0; font-family: var(--hand); font-size: 21px; line-height: 1.15; }
.theme__photos { display: flex; justify-content: center; align-items: flex-start; gap: 14px; padding: 4px 4px 0; }
.snap {
  flex: 0 1 auto; width: min(70%, 300px);
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 12px; padding: 8px 8px 0; box-shadow: var(--shadow-sm);
  transform: rotate(var(--r));
}
.theme__photos .snap:nth-child(2) { margin-top: 26px; }
.theme__photos:has(.snap + .snap) .snap { width: calc(50% - 7px); }
.snap img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; }
.snap--wide img { aspect-ratio: 4 / 3; }
.snap figcaption { padding: 6px 2px 8px; font-weight: 800; font-size: 12px; line-height: 1.25; text-align: center; letter-spacing: .02em; }

.theme--sea { --tbg: linear-gradient(180deg, #D8ECF9, #A9CFEE); }
.theme--beach { --tbg: linear-gradient(180deg, #FFF1D6, #FBD3B8); }
.theme--view { --tbg: linear-gradient(180deg, #EAF3FC, #D3E5F6); }
.theme--snow { --tbg: linear-gradient(180deg, #F3F0FC, #DCD0F5); }
.theme--cafe { --tbg: #FFF1C9; }
.theme--zoo { --tbg: #DDF1E4; }

/* aquarium bubbles + fish */
.fx--bubbles i {
  bottom: -24px; left: var(--x); width: var(--s, 14px); height: var(--s, 14px); border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .25);
  animation: bubble var(--t, 6s) ease-in infinite var(--d, 0s);
}
.fx--bubbles i:nth-child(1) { --x: 6%; --s: 12px; --t: 6s; --d: -1s; }
.fx--bubbles i:nth-child(2) { --x: 14%; --s: 20px; --t: 8s; --d: -4s; }
.fx--bubbles i:nth-child(3) { --x: 28%; --s: 10px; --t: 5.5s; --d: -2s; }
.fx--bubbles i:nth-child(4) { --x: 40%; --s: 16px; --t: 7s; --d: -6s; }
.fx--bubbles i:nth-child(5) { --x: 52%; --s: 9px; --t: 5s; --d: -3s; }
.fx--bubbles i:nth-child(6) { --x: 63%; --s: 22px; --t: 9s; --d: -1.5s; }
.fx--bubbles i:nth-child(7) { --x: 74%; --s: 12px; --t: 6.5s; --d: -5s; }
.fx--bubbles i:nth-child(8) { --x: 83%; --s: 18px; --t: 7.5s; --d: -2.5s; }
.fx--bubbles i:nth-child(9) { --x: 91%; --s: 10px; --t: 5.8s; --d: -4.5s; }
.fx--bubbles i:nth-child(10) { --x: 97%; --s: 14px; --t: 8.5s; --d: -7s; }
@keyframes bubble {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(10px, -280px); }
  100% { transform: translate(-6px, -620px); opacity: 0; }
}
.fx--swim i { top: var(--y); left: -90px; width: var(--w, 56px); animation: swim var(--t) linear infinite var(--d); }
.fx--swim i:nth-child(1) { --y: 38%; --t: 14s; --d: -3s; }
.fx--swim i:nth-child(2) { --y: 70%; --t: 19s; --d: -11s; --w: 40px; }
@keyframes swim {
  0% { left: -90px; transform: translateY(0) scaleX(-1); }
  50% { transform: translateY(-14px) scaleX(-1); }
  100% { left: calc(100% + 30px); transform: translateY(0) scaleX(-1); }
}

/* beach waves + spinning sun */
.fx--waves i {
  left: -40px; right: -40px; bottom: var(--b); height: 26px;
  background: radial-gradient(circle at 20px -6px, transparent 16px, var(--wc) 17px) 0 0 / 40px 26px repeat-x;
  animation: waves var(--t) linear infinite;
}
.fx--waves i:nth-child(1) { --b: 22px; --wc: rgba(167, 203, 234, .55); --t: 6s; }
.fx--waves i:nth-child(2) { --b: 0; --wc: rgba(127, 175, 217, .7); --t: 4s; animation-direction: reverse; }
@keyframes waves { to { transform: translateX(40px); } }
.theme__icon--sun .sun-rays { transform-origin: 50% 50%; transform-box: fill-box; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* drifting clouds */
.fx--clouds i { top: var(--y); left: -30%; width: var(--w); opacity: .9; animation: drift var(--t) linear infinite var(--d); }
.fx--clouds i:nth-child(1) { --y: 6%; --w: 110px; --t: 28s; --d: -6s; }
.fx--clouds i:nth-child(2) { --y: 44%; --w: 80px; --t: 36s; --d: -22s; }
.fx--clouds i:nth-child(3) { --y: 74%; --w: 130px; --t: 32s; --d: -14s; }
@keyframes drift { to { left: 110%; } }

/* snow */
.fx--snow i {
  top: -16px; left: var(--x); width: var(--s, 10px); height: var(--s, 10px); border-radius: 50%;
  background: var(--white); border: 2px solid rgba(43, 47, 74, .5);
  animation: snow var(--t, 9s) linear infinite var(--d, 0s);
}
.fx--snow i:nth-child(1) { --x: 5%; --t: 9s; --d: -2s; }
.fx--snow i:nth-child(2) { --x: 13%; --t: 11s; --d: -7s; --s: 13px; }
.fx--snow i:nth-child(3) { --x: 22%; --t: 8s; --d: -4s; --s: 8px; }
.fx--snow i:nth-child(4) { --x: 31%; --t: 12s; --d: -9s; }
.fx--snow i:nth-child(5) { --x: 40%; --t: 10s; --d: -1s; --s: 12px; }
.fx--snow i:nth-child(6) { --x: 49%; --t: 9.5s; --d: -6s; --s: 8px; }
.fx--snow i:nth-child(7) { --x: 58%; --t: 11.5s; --d: -3s; }
.fx--snow i:nth-child(8) { --x: 66%; --t: 8.5s; --d: -8s; --s: 14px; }
.fx--snow i:nth-child(9) { --x: 74%; --t: 10.5s; --d: -5s; --s: 9px; }
.fx--snow i:nth-child(10) { --x: 82%; --t: 12.5s; --d: -10s; }
.fx--snow i:nth-child(11) { --x: 90%; --t: 9s; --d: -2.5s; --s: 12px; }
.fx--snow i:nth-child(12) { --x: 97%; --t: 11s; --d: -6.5s; --s: 8px; }
@keyframes snow {
  0% { transform: translate(0, 0); }
  25% { transform: translate(12px, 25vh); }
  50% { transform: translate(-8px, 50vh); }
  75% { transform: translate(10px, 75vh); }
  100% { transform: translate(0, 100vh); }
}

/* café steam */
.theme--cafe .steam-a, .theme--cafe .steam-b { animation: steam 2.4s ease-in-out infinite; animation-play-state: paused; }
.theme--cafe .steam-b { animation-delay: -1.2s; }
.theme--cafe.is-live .steam-a, .theme--cafe.is-live .steam-b { animation-play-state: running; }
@keyframes steam { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: .6; } 100% { transform: translateY(-10px); opacity: 0; } }

/* zoo friends peeking up from the bottom corners */
.theme > .zoo-friend { position: absolute; z-index: 0; bottom: -10px; width: clamp(64px, 18vw, 96px); animation: peek 2.2s ease-in-out infinite; animation-play-state: paused; }
.zoo-friend--l { left: 4%; }
.zoo-friend--r { right: 4%; animation-delay: -1.1s; }
.theme--zoo.is-live .zoo-friend { animation-play-state: running; }
@keyframes peek { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(4deg); } }

/* =========================================================
   STOP 5 · PARTY STATION
   ========================================================= */

.party { position: relative; z-index: 2; padding: 10px 0 88px; }
.party__scene {
  position: relative; height: clamp(300px, 78vw, 440px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--gutter) 30px;
}
.station-house { position: relative; z-index: 1; width: min(88vw, 470px); }
.station-house .flag { transform-box: fill-box; transform-origin: 50% 0; }
.fx--balloons { overflow: hidden; }
.fx--balloons i { bottom: -40px; left: var(--x); width: var(--w, 36px); animation: float-up var(--t) linear infinite var(--d); }
.fx--balloons i:nth-child(1) { --x: 6%; --t: 11s; --d: -2s; }
.fx--balloons i:nth-child(2) { --x: 16%; --t: 14s; --d: -8s; --w: 30px; }
.fx--balloons i:nth-child(3) { --x: 27%; --t: 12s; --d: -5s; }
.fx--balloons i:nth-child(4) { --x: 70%; --t: 13s; --d: -1s; --w: 32px; }
.fx--balloons i:nth-child(5) { --x: 80%; --t: 10.5s; --d: -6s; }
.fx--balloons i:nth-child(6) { --x: 90%; --t: 15s; --d: -10s; --w: 28px; }
.fx--balloons i:nth-child(7) { --x: 44%; --t: 16s; --d: -12s; --w: 26px; }
.fx--balloons i:nth-child(8) { --x: 58%; --t: 12.5s; --d: -3.5s; --w: 30px; }
@keyframes float-up {
  0% { transform: translate(0, 0) rotate(-4deg); opacity: 0; }
  8% { opacity: 1; }
  50% { transform: translate(16px, -240px) rotate(5deg); }
  100% { transform: translate(-10px, -500px) rotate(-3deg); opacity: 0; }
}

.party__inner { width: min(var(--maxw), 100%); margin: 0 auto; padding: 0 var(--gutter); }
.party__head { text-align: center; margin: 54px 0 26px; }
.party__title { font-size: clamp(40px, 11vw, 92px); line-height: 1; margin: 6px 0 14px; }
.party__title .ch { color: var(--white); -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill; text-shadow: .045em .055em 0 var(--ink); }
.party__title .ch:nth-of-type(4n+1) { color: var(--coral); }
.party__title .ch:nth-of-type(4n+2) { color: var(--butter-deep); }
.party__title .ch:nth-of-type(4n+3) { color: var(--blue); }
.party__title .ch:nth-of-type(4n+4) { color: var(--sage); }
.countdown {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 6px 18px; background: var(--white); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-weight: 800;
}
.countdown b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--coral); }

.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.card {
  position: relative; min-width: 0;
  background: var(--c); border: var(--line) solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 18px 22px;
}
.card__label {
  display: inline-block; margin-bottom: 10px;
  font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px;
}
.card__big { font-family: var(--display); font-size: clamp(24px, 6.6vw, 34px); line-height: 1.12; margin-bottom: 8px; }
.card__mid { font-weight: 800; font-size: 22px; margin-bottom: 4px; }
.card__note { font-family: var(--hand); font-size: 22px; line-height: 1.2; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card address { font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.iconlist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: 16px; }
.ico {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: var(--line) solid var(--ink); border-radius: 10px; background: var(--white);
}
.ico--p { background: var(--blue-deep); color: var(--white); font-weight: 800; font-size: 20px; }
.ico--train { padding: 3px; }
.toys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.toys li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 12px; text-align: center; }
.toys span { width: 100%; max-width: 72px; padding: 6px; background: var(--white); border: 2px solid var(--ink); border-radius: 16px; }
.card--food { display: flex; gap: 16px; align-items: center; }
.card__photo { flex: none; width: 38%; max-width: 170px; transform: rotate(-4deg); }
.card__photo img { border: var(--line) solid var(--ink); border-radius: 14px; aspect-ratio: 3 / 4; object-fit: cover; box-shadow: var(--shadow-sm); }

/* =========================================================
   GIFT SHOP + TICKETS
   ========================================================= */

.section { position: relative; padding: 76px var(--gutter) 84px; }
.section__inner { max-width: var(--maxw); margin: 0 auto; }

.gifts__grid { display: grid; gap: 34px; }
.gifts__intro { text-align: center; }
.gift-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0 22px; }
.gift-chips li {
  padding: 8px 16px; background: var(--c); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-weight: 800;
}
.no-plush {
  display: inline-flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 18px 12px 12px; background: var(--white); border: var(--line) dashed var(--ink); border-radius: 18px;
}
.no-plush p { margin: 0; font-size: 15px; }
.no-plush__art { position: relative; width: 64px; flex: none; }
.no-plush__art::after {
  content: ''; position: absolute; inset: -4px;
  border: 5px solid var(--coral); border-radius: 50%;
  background: linear-gradient(45deg, transparent calc(50% - 3px), var(--coral) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px));
}
.sheet-title { text-align: center; font-size: clamp(26px, 6.6vw, 38px); margin-bottom: 18px; }
.sticker-sheet {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 14px 10px;
  padding: 18px 14px; background: var(--white); border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow);
  background-image: radial-gradient(var(--mint) 1.5px, transparent 1.8px); background-size: 14px 14px;
}
.sticker { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; text-align: center; transform: rotate(var(--r)); }
.sticker span {
  width: 72px; height: 72px; display: grid; place-items: center; padding: 10px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.sticker:hover span { transform: rotate(-10deg) scale(1.1); }
.size-tag {
  display: flex; align-items: center; gap: 16px; margin-top: 22px;
  padding: 14px 18px; background: var(--butter); border: var(--line) solid var(--ink); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.size-tag p { margin: 0; font-size: 15px; }
.size-tag__size {
  flex: none; display: grid; place-items: center; width: 64px; height: 64px;
  font-family: var(--display); font-size: 22px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 14px 14px 14px 30px;
  transform: rotate(-6deg);
}

.tickets__inner { max-width: 940px; }
.tickets__intro { text-align: center; margin-bottom: 24px; }
.tickets__intro p { font-weight: 700; }

.returning { display: inline-block; font-size: 14px; background: var(--white); border: 2px dashed var(--ink); border-radius: 12px; padding: 6px 12px; }

.ticket {
  --notch: 18px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr);
  background: var(--white);
  border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow);
}
.ticket__main { padding: 18px 16px 8px; }
.ticket__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 3px dashed var(--lav); }
.ticket__logo { width: 46px; }
.ticket__brand { font-family: var(--display); font-size: 20px; }
.ticket__class { margin-left: auto; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: var(--lilac); border: 2px solid var(--ink); padding: 3px 10px; border-radius: 999px; }
.ticket__route {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px 10px; align-items: end;
  padding: 10px 12px; margin-bottom: 18px;
  background: var(--lilac); border: 2px solid var(--ink); border-radius: 14px;
}
.ticket__route small { display: block; font-weight: 800; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ticket__route b { font-family: var(--display); font-weight: 400; font-size: 16px; line-height: 1.15; }
.ticket__arrow { font-family: var(--display); font-size: 20px; padding-bottom: 2px; }
.ticket__route > div:nth-child(4) { grid-column: 1; }
.ticket__route > div:nth-child(5) { grid-column: 3; }

.field { display: block; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field__label { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; padding: 0; }
.field__label i { font-weight: 500; font-style: normal; color: var(--ink-soft); }
.field input[type="text"], .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--cream); border: var(--line) solid var(--ink); border-radius: 14px;
  font-size: 16px; font-weight: 600;
  transition: box-shadow .15s, transform .15s;
}
.field textarea { resize: vertical; min-height: 56px; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: var(--shadow-sm); transform: translate(-1px, -1px); background: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: #8F92AB; font-weight: 500; }
.field.is-invalid input, .field.is-invalid .choice__opt span, .field.is-invalid .stepper { border-color: #C8584A; box-shadow: 0 0 0 3px var(--coral); }
.field.is-invalid .field__label { color: #B9473A; }
.field.is-invalid .field__label::after { content: ' ← this one'; font-family: var(--hand); font-size: 18px; }

.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-radius: 16px; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__opt span {
  display: grid; place-items: center; height: 100%; min-height: 56px; padding: 10px 12px; text-align: center;
  border: var(--line) solid var(--ink); border-radius: 16px; background: var(--cream);
  font-weight: 800; font-size: 15px; line-height: 1.2;
  transition: background .15s, transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .15s;
}
.choice__opt input:checked + span { background: var(--butter-deep); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px) rotate(-1deg); }
.choice__opt input[value="no"]:checked + span { background: var(--sky); }
.choice__opt input:focus-visible + span { outline: 3px dashed var(--ink); outline-offset: 3px; }

.counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stepper { padding: 8px 6px 10px; background: var(--cream); border: var(--line) solid var(--ink); border-radius: 16px; text-align: center; }
.stepper__label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.stepper__ctrl { display: flex; align-items: center; justify-content: center; gap: 4px; }
.stepper button {
  width: 40px; height: 40px; flex: none;
  border: var(--line) solid var(--ink); border-radius: 50%; background: var(--white);
  font-weight: 800; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 2px 2px 0 var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.stepper button:active { transform: translate(2px, 2px); box-shadow: none; }
.stepper input {
  width: 36px; min-width: 0; text-align: center; border: 0; background: transparent;
  font-family: var(--display); font-size: 24px; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.is-declining [data-if-yes] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { grid-column: 1 / -1; margin: 0; color: #9E3B30; font-weight: 800; font-size: 14px; line-height: 1.35; background: var(--blush); border: 2px solid var(--coral); border-radius: 12px; padding: 8px 12px; }

.ticket__stub {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center;
  padding: 22px 16px 18px;
  border-top: 3px dashed var(--ink);
  background: var(--butter); border-radius: 0 0 21px 21px;
}
.ticket__stub::before, .ticket__stub::after {
  content: ''; position: absolute; top: calc(var(--notch) * -1 - 1.5px); width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  background: #EEE8FB; border: var(--line) solid var(--ink); border-radius: 50%;
}
.ticket__stub::before { left: calc(var(--notch) * -1 - 3px); clip-path: inset(0 0 0 50%); }
.ticket__stub::after { right: calc(var(--notch) * -1 - 3px); clip-path: inset(0 50% 0 0); }
.stub__admit small { display: block; font-weight: 800; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.stub__admit b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; }
.stub__punch {
  position: absolute; right: 22px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  background: #EEE8FB; border: var(--line) solid var(--ink); transform: scale(0);
}
.stub__barcode {
  height: 40px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 5px, var(--ink) 5px 6px, transparent 6px 10px, var(--ink) 10px 14px, transparent 14px 16px);
  opacity: .85; margin-right: 40px;
}
.btn--punch { grid-column: 1 / -1; width: 100%; min-height: 58px; font-size: 18px; font-family: var(--display); font-weight: 400; }
.btn--punch[disabled] { opacity: .7; cursor: progress; }
.stub__fine { grid-column: 1 / -1; text-align: center; font-weight: 700; font-size: 12px; color: var(--ink-soft); }

.ticket.is-punched { animation: punch .5s cubic-bezier(.34, 1.56, .64, 1); }
.ticket.is-punched .stub__punch { transform: scale(1); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes punch { 30% { transform: scale(.97) rotate(-1deg); } 60% { transform: scale(1.02) rotate(.5deg); } }

.ticket-done {
  text-align: center; padding: 28px 20px 26px;
  background: var(--white); border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: var(--shadow);
}
.ticket-done:focus { outline: none; }
.ticket-done__art { width: 140px; margin: 0 auto 10px; }
.ticket-done h3 { font-size: clamp(28px, 7vw, 40px); margin-bottom: 8px; }
.ticket-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 16px 0; }
.link-btn { background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; cursor: pointer; color: var(--ink-soft); min-height: 44px; }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative; overflow: hidden; color: var(--cream); text-align: center;
  padding: 120px var(--gutter) calc(64px + env(safe-area-inset-bottom));
}
.f-star { width: 26px; }
.f1 { left: 10%; top: 16%; } .f2 { right: 14%; top: 10%; width: 22px; } .f3 { left: 24%; top: 52%; width: 18px; }
.f4 { right: 8%; top: 48%; width: 30px; } .f5 { left: 6%; bottom: 18%; width: 20px; }
.f-moon { width: 74px; right: 20%; top: 20%; }
.footer__nap { position: relative; width: min(64vw, 300px); margin: 0 auto 24px; }
.footer__cloud { width: 100%; }
.footer__mascot { position: absolute; width: 54%; left: 22%; bottom: 46%; }
.footer .zzz { color: var(--butter); }
.footer__line { font-size: clamp(28px, 7.4vw, 48px); line-height: 1.1; margin-bottom: 10px; }
.footer__sig { font-family: var(--hand); font-size: 26px; }
.footer__sig b { color: var(--butter); }
.footer__small { font-size: 14px; opacity: .8; }

.confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; width: 100%; height: 100%; }

/* =========================================================
   WIDER SCREENS
   ========================================================= */

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .comic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .theme--wide { grid-column: 1 / -1; }
  .theme--wide .snap { width: min(38%, 260px); }
  .theme--wide .theme__photos:has(.snap--wide) .snap--wide { width: min(48%, 340px); }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card--when, .card--where { grid-column: span 3; }
  .card--getting, .card--play, .card--food { grid-column: span 2; }
  .card--food { flex-direction: column; align-items: flex-start; gap: 12px; }
  .card--food .card__photo { width: 48%; }
  .card--food .card__big { font-size: clamp(22px, 2.5vw, 28px); }
  .ticket { grid-template-columns: minmax(0, 1fr) 260px; }
  .ticket__main { padding: 24px 26px 10px; }
  .ticket__stub {
    grid-template-columns: 1fr; align-content: center; text-align: center;
    border-top: 0; border-left: 3px dashed var(--ink); border-radius: 0 21px 21px 0; padding: 26px 22px;
  }
  .ticket__stub::before { top: calc(var(--notch) * -1 - 3px); left: calc(var(--notch) * -1 - 1.5px); clip-path: inset(50% 0 0 0); }
  .ticket__stub::after { top: auto; bottom: calc(var(--notch) * -1 - 3px); right: auto; left: calc(var(--notch) * -1 - 1.5px); clip-path: inset(0 0 50% 0); }
  .stub__barcode { margin: 0 auto; width: 80%; }
  .stub__punch { right: 20px; top: 20px; }
  .ticket__route { grid-template-columns: 1fr auto 1fr 1fr 1fr; }
  .ticket__route > div:nth-child(4), .ticket__route > div:nth-child(5) { grid-column: auto; }
  .gifts__grid { grid-template-columns: 1fr 1.25fr; align-items: start; }
  .gifts__intro { text-align: left; }
  .gift-chips { justify-content: flex-start; }
}

@media (min-width: 960px) {
  :root { --lane: 104px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 24px; }
  .hero__art { justify-self: center; width: min(32vw, 380px); margin: 0; }
  .hero__nap { left: auto; right: 3vw; bottom: 3vh; width: 210px; z-index: 3; }
  .hero .rainbow { right: -2vw; }
  .hero__title { font-size: clamp(80px, 9.6vw, 140px); }

  .tcar { width: 64px; }
  .tcar--engine { width: 84px; }
  .puff-p { width: 44px; margin: -16px 0 0 -22px; }
  .intro__platform { height: 140px; }

  .chapter { padding: 64px var(--lane) 72px; }
  .chapter[data-side="right"] .chapter__head { text-align: right; }
  .connector { min-height: 230px; padding: 0 var(--lane); }

  .hello__body { grid-template-columns: auto minmax(0, 1fr); gap: 7vw; justify-content: center; }
  .hello__art { width: min(26vw, 310px); margin: 26px 0 0 30px; }

  .traits { flex-direction: row; justify-content: center; align-items: flex-start; padding: 20px 0 8px; }
  .trait { width: min(28%, 280px); align-self: auto !important; margin: 0 !important; }
  .trait + .trait { margin-left: 2% !important; }
  .trait:nth-child(2) { margin-top: 40px !important; }
  .trait__note { font-size: 15px; }

  .firsts .chapter__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .firsts .chapter__head, .moment--ok, .moment--saga, .moment--scoot { grid-column: 1 / -1; }
  .moment { padding: 24px 26px 28px; }
  .moment--ok { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 30px; align-items: center; }
  .moment--ok .moment__label { grid-column: 1 / -1; justify-self: start; }
  .moment--ok .ok-scene { margin: 0; }
  .moment--ok .moment__text { font-size: 22px; }
  .comic { gap: 18px; }
  .scoot__lane { height: 250px; }

  .passport { gap: 14px; }
}

@media (max-width: 380px) {
  .brand__now-label { display: none; }
  .hero__ctas .btn { padding: 10px 16px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .marquee__inner { animation: none !important; }
  .fx, .theme__icon--sun .sun-rays, .zoo-friend, .steam-a, .steam-b { animation: none !important; }
  .critter.is-saying .critter__say { animation-duration: .01s; opacity: 1; transform: translate(-50%, -16px); }
  .critter.is-saying .critter__art { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
