/* ══════════════════════════════════════════════════
   Sanskriti Verma · scrapbook portfolio
   palette: warm white + soft baby pink + rose ink
   shape rule: photos/cards 4–16px, buttons/stamps pill
   ══════════════════════════════════════════════════ */

@font-face {
  font-family: "Caveat";
  src: url("../assets/fonts/caveat-latin.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Caveat";
  src: url("../assets/fonts/caveat-latin-ext.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito-latin-italic.woff2") format("woff2-variations");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --paper: #fffdfc;
  --pink-50: #fff3f7;
  --pink-100: #fce7ef;
  --pink-200: #f7d2e1;
  --pink-300: #f0b9d0;
  --rose: #d97a96;
  --rose-deep: #b85c7a;
  --ink: #4a3b41;
  --ink-soft: #857077;
  --doodle-ink: #6b555d;
  --shadow-pink: 0 12px 32px rgba(217, 122, 150, 0.16);
  --shadow-pink-lg: 0 18px 44px rgba(217, 122, 150, 0.22);
  --radius-card: 16px;
  --nav-h: 64px;
  --hand: "Caveat", "Segoe Script", cursive;
  --body: "Nunito", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

::selection { background: var(--pink-200); color: var(--ink); }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--rose-deep); }

:focus-visible {
  outline: 2px dashed var(--rose-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, .hand {
  font-family: var(--hand);
  font-weight: 600;
  line-height: 1.05;
}

/* reveal initial state (only when JS is live) */
body.js .reveal { opacity: 0; }

/* ═══════════════ NAV ═══════════════ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
  background: rgba(255, 253, 252, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
body.scrolled .nav {
  border-bottom-color: var(--pink-100);
  box-shadow: 0 6px 24px rgba(217, 122, 150, 0.1);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.7rem;
  font-weight: 700;
}
.nav-heart { width: 24px; height: 24px; fill: none; stroke: var(--rose); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }

.nav-links { display: flex; gap: clamp(0.9rem, 2vw, 1.7rem); }
.nav-links a {
  font-family: var(--hand);
  font-size: 1.22rem;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover { color: var(--rose-deep); }
.nav-links a:hover::after { right: 0; }

/* ═══════════════ DOODLES ═══════════════ */

.doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.doodle {
  position: absolute;
  fill: none;
  stroke: var(--doodle-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  --df2: var(--pink-200);
}
.doodles .doodle { pointer-events: auto; cursor: pointer; }
.doodle:hover { opacity: 1; }

.float-slow { animation: floaty 7s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -0.9s); }
.float-med { animation: floaty 5.2s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -0.7s); }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}
.flutter { animation: flutter 5.6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -0.8s); }
@keyframes flutter {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  30% { transform: translate(9px, -12px) rotate(5deg); }
  65% { transform: translate(-7px, -5px) rotate(-8deg); }
}
.twinkle { animation: twinkle 3.4s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -0.5s); }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.55; }
  50% { transform: scale(1.22) rotate(18deg); opacity: 1; }
}
.bob { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* ═══════════════ HERO ═══════════════ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2.5rem) clamp(1.2rem, 4vw, 3rem) 4.5rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-hello {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  color: var(--rose-deep);
  transform: rotate(-1.5deg);
  width: fit-content;
}

.hero h1 {
  font-size: clamp(3.4rem, 7.2vw, 5.9rem);
  line-height: 1.02;
  padding-bottom: 0.08em;
  margin: 0.1em 0 0.18em;
  color: var(--ink);
}
.hero h1 .accent { color: var(--rose); font-style: italic; }

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--ink-soft);
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0 2rem;
}
.hero-chips li {
  font-family: var(--hand);
  font-size: 1.22rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.6px solid var(--pink-300);
  border-radius: 999px;
  padding: 0.28em 1em;
  box-shadow: 0 4px 14px rgba(217, 122, 150, 0.12);
}
.hero-chips li:nth-child(odd) { transform: rotate(-1.6deg); }
.hero-chips li:nth-child(even) { transform: rotate(1.3deg); }
.chip-at { color: var(--rose-deep); font-weight: 700; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--hand);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  background: var(--rose-deep);
  border: none;
  border-radius: 999px;
  padding: 0.5em 1.35em 0.6em;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(184, 92, 122, 0.32);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.btn-primary:hover { transform: translateY(-3px) rotate(-0.5deg); box-shadow: 0 16px 34px rgba(184, 92, 122, 0.4); }
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ico { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.hero-photo { position: relative; justify-self: center; }
.polaroid-hero { width: min(360px, 78vw); margin: 0; }

.hero-girl {
  position: absolute;
  width: clamp(120px, 13vw, 170px);
  left: -70px;
  bottom: -34px;
  fill: none;
  stroke: var(--doodle-ink);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  --df2: var(--pink-200);
  filter: drop-shadow(0 6px 14px rgba(217, 122, 150, 0.25));
  animation: floaty 6s ease-in-out infinite;
}
.hero-sparkle { width: 34px; top: -14px; right: -10px; color: var(--rose); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 1.15rem;
}
.cue-arrow { width: 22px; height: 22px; fill: none; stroke: var(--rose-deep); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

/* ═══════════════ POLAROIDS ═══════════════ */

.polaroid {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow-pink);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.polaroid img {
  width: 100%;
  border-radius: 3px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--pink-50);
}
.polaroid figcaption {
  font-family: var(--hand);
  font-size: 1.22rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.45em 0.2em 0.15em;
}
.polaroid:hover { transform: rotate(0deg) translateY(-6px) scale(1.015) !important; box-shadow: var(--shadow-pink-lg); z-index: 2; }

.tilt-l { transform: rotate(-2.4deg); }
.tilt-r { transform: rotate(2.4deg); }

.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) rotate(-3.5deg);
  background: rgba(240, 185, 208, 0.55);
  border-left: 2px dashed rgba(255, 255, 255, 0.7);
  border-right: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  z-index: 1;
}
.polaroid:nth-child(even) .tape { transform: translateX(-50%) rotate(3deg); }

.polaroid-big { width: 100%; }
.polaroid-big img { aspect-ratio: 4 / 4.6; }

/* ═══════════════ CHAPTERS ═══════════════ */

.chapter {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.2rem, 4vw, 3rem);
  overflow: hidden;
}
.chapter > * { position: relative; z-index: 1; }

.chapter-tint { background: var(--pink-50); }

.chapter-head {
  max-width: 1150px;
  margin: 0 auto 3rem;
  text-align: center;
}
.chapter-tag {
  font-family: var(--hand);
  font-size: 1.45rem;
  color: var(--rose);
  transform: rotate(-1.2deg);
  width: fit-content;
  margin: 0 auto 0.2rem;
}
.chapter-head h2 {
  font-size: clamp(2.7rem, 5.4vw, 4.2rem);
  color: var(--ink);
  padding-bottom: 0.08em;
}
.squiggle {
  width: 150px;
  height: 16px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 3.4;
  stroke-linecap: round;
  transform-origin: center;
}
.chapter-intro {
  max-width: 58ch;
  margin: 1.4rem auto 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  text-align: center;
}

/* ══ chapter 1 · story ══ */

.story-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.story-doodle { text-align: center; }
.girl-big {
  width: min(300px, 70vw);
  fill: none;
  stroke: var(--doodle-ink);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  --df2: var(--pink-200);
  filter: drop-shadow(0 10px 22px rgba(217, 122, 150, 0.22));
  animation: floaty 6.5s ease-in-out infinite;
}
.doodle-note {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  transform: rotate(-2deg);
}
.lead {
  font-family: var(--hand);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  color: var(--ink);
  margin-bottom: 1.8rem;
  max-width: 30ch;
}
.fact-stack { display: grid; gap: 1.3rem; }
.fact-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.3rem 1.6rem 1.4rem;
  box-shadow: var(--shadow-pink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.fact-card:hover { transform: rotate(0deg) translateY(-4px); }
.fact-card h3 { font-size: 1.55rem; color: var(--rose-deep); margin-bottom: 0.15em; }
.fact-card p { font-size: 0.98rem; color: var(--ink-soft); }

.mood-strip {
  max-width: 1150px;
  margin: 4rem auto 0;
  display: flex;
  justify-content: center;
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.mood-strip .polaroid { width: min(240px, 62vw); }
.mood-strip .polaroid:nth-child(2) { margin-top: 2.2rem; }

/* ══ chapter 2 · mountains ══ */

.mountain-quote {
  max-width: 780px;
  margin: 0 auto 3.6rem;
  text-align: center;
}
.mq-line {
  font-family: var(--hand);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  color: var(--ink-soft);
}
.mq-punch {
  font-family: var(--hand);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  color: var(--ink);
  line-height: 1.15;
  padding-bottom: 0.06em;
  margin: 0.3em 0 0.4em;
}
.mq-accent { color: var(--rose-deep); font-style: italic; }
.mq-note { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }

.mountain-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
.mountain-side { display: grid; gap: 2rem; }
.mountain-side .polaroid { max-width: 380px; justify-self: center; width: 100%; }

.bucket-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.7rem 1.8rem;
  box-shadow: var(--shadow-pink);
  transform: rotate(0.8deg);
}
.bucket-card h3 { font-size: 1.75rem; color: var(--ink); }
.bucket-sub { font-size: 0.9rem; color: var(--ink-soft); margin: 0.2rem 0 1.1rem; }
.bucket-list { list-style: none; display: grid; gap: 0.65rem; }
.bucket-list li { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.bucket {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--hand);
  font-size: 1.28rem;
  color: var(--ink);
  background: var(--pink-50);
  border: 1.6px solid var(--pink-200);
  border-radius: 999px;
  padding: 0.22em 1em 0.3em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.bucket:hover { background: var(--pink-100); transform: translateY(-1px); }
.bucket:active { transform: scale(0.97); }
.bucket-check {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--rose-deep);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.3) rotate(-20deg);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bucket.done { background: var(--pink-100); border-color: var(--pink-300); }
.bucket.done .bucket-check { opacity: 1; transform: scale(1) rotate(0deg); }
.bucket-note { font-family: var(--hand); font-size: 1.08rem; color: var(--ink-soft); }

/* ══ chapter 3 · water collage ══ */

.water-collage {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.4rem 1.7rem;
  align-items: start;
  padding-top: 1rem;
}
.water-collage .polaroid:nth-child(1) { grid-column: span 2; }
.water-collage .polaroid:nth-child(2) { grid-column: span 2; transform: rotate(2.4deg) translateY(2.4rem); }
.water-collage .polaroid:nth-child(3) { grid-column: span 2; transform: rotate(-2deg) translateY(-0.6rem); }
.water-collage .polaroid:nth-child(4) { grid-column: span 3; transform: rotate(1.6deg); }
.water-collage .polaroid:nth-child(4) img { aspect-ratio: 3 / 3.4; }
.water-collage .polaroid:nth-child(5) { grid-column: span 3; transform: rotate(-1.8deg) translateY(1.4rem); }
.water-collage .polaroid:nth-child(5) img { aspect-ratio: 3 / 3.4; }
.water-collage .polaroid:nth-child(3) img { aspect-ratio: 3 / 3.7; }

/* ══ chapter 4 · food ══ */

.food-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
.food-side { display: grid; gap: 2rem; }

.menu-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.7rem 1.9rem;
  box-shadow: var(--shadow-pink);
  border: 1.6px dashed var(--pink-300);
  transform: rotate(-0.7deg);
}
.menu-card h3 { font-size: 1.8rem; color: var(--ink); margin-bottom: 0.8rem; }
.menu-list { list-style: none; counter-reset: dish; }
.menu-list li {
  counter-increment: dish;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1.6px dashed var(--pink-100);
}
.menu-list li::before {
  content: counter(dish) ".";
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--rose);
}
.menu-item { font-family: var(--hand); font-size: 1.35rem; color: var(--ink); }
.menu-note { font-size: 0.82rem; color: var(--ink-soft); text-align: right; max-width: 16ch; margin-left: auto; }
.menu-review {
  font-family: var(--hand);
  font-size: 1.28rem;
  color: var(--rose-deep);
  font-style: italic;
  margin-top: 1rem;
}

.food-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.food-pair .polaroid img { aspect-ratio: 4 / 4.4; }

/* ══ chapter 5 · travel ══ */

.travel-feature {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
.travel-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem 1.4rem;
}
.travel-mini-grid .polaroid:nth-child(even) { transform: rotate(2.2deg) translateY(1.2rem); }
.travel-mini-grid .polaroid img { aspect-ratio: 3 / 3.6; }

.flight-path {
  position: relative;
  height: 175px;
  margin-top: 2.6rem;
}
.flight-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight-route {
  stroke: var(--pink-300);
  stroke-width: 3;
  stroke-dasharray: 2 14;
  stroke-linecap: round;
  fill: none;
}
.flight-plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--doodle-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  --df2: var(--pink-200);
  will-change: transform;
  filter: drop-shadow(0 4px 8px rgba(217, 122, 150, 0.3));
}
.flight-note {
  position: absolute;
  bottom: -1.4rem;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  font-family: var(--hand);
  font-size: 1.22rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.stamps {
  max-width: 900px;
  margin: 5.5rem auto 0;
  text-align: center;
}
.stamps-title { font-size: 2rem; color: var(--ink); margin-bottom: 1.4rem; }
.stamp-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 1rem;
}
.stamp {
  font-family: var(--hand);
  font-size: 1.3rem;
  color: var(--ink);
  background: #fff;
  border: 1.6px solid var(--pink-200);
  border-radius: 999px;
  padding: 0.26em 1.1em 0.34em;
  box-shadow: 0 4px 12px rgba(217, 122, 150, 0.1);
  transition: transform 0.25s ease, background 0.25s ease;
}
.stamp:nth-child(odd) { transform: rotate(-1.8deg); }
.stamp:nth-child(even) { transform: rotate(1.6deg); }
.stamp:hover { background: var(--pink-100); transform: rotate(0deg) translateY(-2px); }
.stamp-next {
  border: 1.8px dashed var(--rose);
  color: var(--rose-deep);
  animation: pulse-soft 2.6s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 122, 150, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(217, 122, 150, 0); }
}

/* ══ chapter 6 · dreams ══ */

.dreams-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: start;
}
.dreams-side { display: grid; gap: 1.8rem; }

.joy-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.joy-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-pink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.joy-card:hover { transform: rotate(0deg) translateY(-4px); }
.joy-ico {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--doodle-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  --df2: var(--pink-200);
}
.joy-card h3 { font-size: 1.55rem; color: var(--rose-deep); margin: 0.4em 0 0.15em; }
.joy-card p { font-size: 0.95rem; color: var(--ink-soft); }

.dream-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-pink);
  transform: rotate(-0.6deg);
}
.dream-card h3 { font-size: 1.85rem; color: var(--ink); }
.dream-list { list-style: none; display: grid; gap: 0.7rem; margin: 1rem 0 1.2rem; }
.dream-list li { display: flex; align-items: center; gap: 0.7rem; font-family: var(--hand); font-size: 1.4rem; color: var(--ink); }
.dream-check {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dream-honest { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; margin-bottom: 1.4rem; }

.cheer-btn {
  font-family: var(--hand);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  background: var(--rose-deep);
  border: none;
  border-radius: 999px;
  padding: 0.4em 1.3em 0.5em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(184, 92, 122, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cheer-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(184, 92, 122, 0.38); }
.cheer-btn:active { transform: scale(0.97); }
.cheer-count { font-family: var(--hand); font-size: 1.2rem; color: var(--rose-deep); margin-top: 0.8rem; }

.cheer-heart {
  position: fixed;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  z-index: 80;
}

/* ══ gallery carousel ══ */

.gallery-section { background: var(--paper); }

.carousel { position: relative; max-width: 1400px; margin: 0 auto; }

.car-track {
  display: flex;
  gap: 1.7rem;
  overflow-x: auto;
  padding: 2.6rem max(1.5rem, calc((100vw - 1150px) / 2)) 2.2rem;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
  will-change: scroll-position;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track.dragging { cursor: grabbing; }
.car-track:focus-visible { outline: 2px dashed var(--rose-deep); outline-offset: -2px; }

.car-card {
  flex: none;
  background: #fff;
  border-radius: 6px;
  padding: 10px 10px 8px;
  box-shadow: var(--shadow-pink);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  user-select: none;
  -webkit-user-select: none;
}
.car-card:nth-child(odd) { transform: rotate(-1.8deg); }
.car-card:nth-child(even) { transform: rotate(1.8deg); }
.car-card:hover { transform: rotate(0deg) translateY(-8px) scale(1.03); box-shadow: var(--shadow-pink-lg); z-index: 2; }
.car-card img {
  height: 275px;
  width: auto;
  border-radius: 3px;
  background: var(--pink-50);
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.car-card figcaption {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 0.4em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 1.6px solid var(--pink-200);
  box-shadow: var(--shadow-pink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.car-btn:hover { background: var(--pink-100); transform: translateY(-50%) scale(1.07); }
.car-btn:active { transform: translateY(-50%) scale(0.95); }
.car-prev { left: clamp(0.6rem, 2vw, 2rem); }
.car-next { right: clamp(0.6rem, 2vw, 2rem); }
.car-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.car-progress {
  width: min(420px, 62%);
  height: 6px;
  margin: 0.6rem auto 0;
  background: var(--pink-100);
  border-radius: 999px;
  overflow: hidden;
}
.car-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--rose);
  border-radius: 999px;
  transition: width 0.15s linear;
}

/* ══ reels ══ */

.reel-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.8rem, 4vw, 3rem);
  max-width: 1150px;
  margin: 0 auto;
}
.phone-frame { width: min(268px, 74vw); }

.phone-screen {
  position: relative;
  aspect-ratio: 9 / 18.6;
  border-radius: 34px;
  border: 8px solid #463a40;
  background: var(--pink-50);
  overflow: hidden;
  box-shadow: var(--shadow-pink-lg);
}
.reel-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.phone-frame.playing .reel-video { opacity: 1; }

.reel-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  background: repeating-linear-gradient(-45deg, var(--pink-50) 0 14px, var(--pink-100) 14px 28px);
  text-align: center;
}
.phone-frame.playing .reel-fallback { display: none; }
.reel-cam {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reel-fallback p { font-family: var(--hand); font-size: 1.35rem; color: var(--ink-soft); line-height: 1.25; }
.reel-label {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.8rem;
}
.reel-hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 2.6rem auto 0;
}

/* ══ footer ══ */

.footer {
  background: var(--pink-100);
  border-radius: 44px 44px 0 0;
  margin-top: 2rem;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) 2.2rem;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 5vw, 4rem);
  flex-wrap: wrap;
  text-align: center;
}
.footer-girl {
  width: 148px;
  fill: none;
  stroke: var(--doodle-ink);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  --df2: #fff;
  animation: floaty 6s ease-in-out infinite;
}
.footer-line { font-family: var(--hand); font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--ink); max-width: 24ch; }
.socials { display: flex; justify-content: center; gap: 0.9rem; margin: 1.2rem 0 0.9rem; }
.socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1.6px solid var(--pink-200);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.socials a:hover { transform: translateY(-3px) rotate(-4deg); color: var(--rose-deep); border-color: var(--pink-300); }
.socials svg { width: 21px; height: 21px; }
.footer-small { font-size: 0.82rem; color: var(--ink-soft); }

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 1024px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 1.08rem; }

  .hero { padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-photo { margin-top: 2.6rem; }
  .hero-girl { left: auto; right: -46px; bottom: -26px; }

  .story-grid, .mountain-grid, .food-grid, .travel-feature, .dreams-grid { grid-template-columns: 1fr; }
  .story-text { max-width: 600px; margin: 0 auto; width: 100%; }
  .story-text .lead { max-width: 100%; }
  .mountain-side .polaroid { max-width: 420px; }
  .water-collage { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; }
  .water-collage .polaroid:nth-child(n) { grid-column: span 1; transform: rotate(var(--tilt-r, -1.8deg)); }
  .water-collage .polaroid:nth-child(even) { --tilt-r: 2deg; }
  .water-collage .polaroid:nth-child(3) { grid-column: span 2; transform: rotate(-1.2deg); }
  .water-collage .polaroid img, .water-collage .polaroid:nth-child(n) img { aspect-ratio: 3 / 3.6; }

  .mood-strip { gap: 1.4rem; }
  .mood-strip .polaroid { width: min(220px, 30vw); }

  .reel-grid { gap: 2rem; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }

  .chapter {
    padding: clamp(3.2rem, 7vw, 5rem) clamp(1rem, 4vw, 2rem);
  }

  .doodles .doodle { opacity: 0.38; }

  .story-doodle { margin-bottom: 1rem; }
  .girl-big { width: min(240px, 60vw); }
  .story-text .lead { font-size: clamp(1.4rem, 4.2vw, 1.75rem); text-align: center; }

  .fact-card {
    padding: 1.15rem 1.3rem 1.25rem;
  }
  .fact-card h3 { font-size: 1.4rem; }
  .fact-card p { font-size: 0.94rem; }

  /* Responsive mood-strip collage */
  .mood-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 1rem;
    max-width: 500px;
    margin: 2.5rem auto 0;
    overflow: visible;
    padding: 0;
  }
  .mood-strip .polaroid {
    width: 100%;
    max-width: none;
    margin-top: 0 !important;
  }
  .mood-strip .polaroid:nth-child(1) {
    grid-column: 1;
    transform: rotate(-2deg);
  }
  .mood-strip .polaroid:nth-child(2) {
    grid-column: 2;
    transform: rotate(2.2deg) translateY(0.8rem);
  }
  .mood-strip .polaroid:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 260px;
    justify-self: center;
    transform: rotate(-1.4deg);
    margin-top: 0.6rem;
  }

  .food-pair, .joy-cards { grid-template-columns: 1fr; }
  .travel-mini-grid { gap: 1.4rem 1rem; }
  .flight-note { white-space: normal; width: 90%; text-align: center; }

  .car-card img { height: 225px; }
  .car-btn { width: 46px; height: 46px; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 560px) {
  .chapter-head h2 { font-size: clamp(2.2rem, 7.5vw, 3rem); }
  .chapter-tag { font-size: 1.25rem; }

  .hero-hello { font-size: 1.45rem; }
  .hero h1 { font-size: clamp(2.5rem, 8.5vw, 3.4rem); }
  .hero-chips li { font-size: 0.98rem; padding: 0.28em 0.85em 0.35em; }
  .polaroid-hero { width: min(290px, 86vw); }

  .mood-strip {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    max-width: 290px;
    margin: 2rem auto 0;
  }
  .mood-strip .polaroid:nth-child(1) {
    transform: rotate(-2deg);
  }
  .mood-strip .polaroid:nth-child(2) {
    transform: rotate(2deg);
    margin-top: 0 !important;
  }
  .mood-strip .polaroid:nth-child(3) {
    grid-column: auto;
    max-width: 100%;
    transform: rotate(-1.5deg);
    margin-top: 0;
  }

  .water-collage { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .water-collage .polaroid:nth-child(n) { grid-column: span 1; transform: rotate(-1.5deg); }
  .water-collage .polaroid:nth-child(even) { transform: rotate(1.5deg); }
  .water-collage .polaroid:nth-child(3) { grid-column: span 1; }

  .travel-mini-grid { grid-template-columns: 1fr; max-width: 290px; margin: 0 auto; }
  .travel-mini-grid .polaroid:nth-child(even) { transform: rotate(1.5deg); }

  .doodle { transform: scale(0.8); }
  .hero-girl { width: 96px; right: -12px; bottom: -20px; }

  .bucket-card { padding: 1.3rem 1.2rem; }
  .bucket { font-size: 1.15rem; }

  .cheer-card { padding: 2rem 1.2rem; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-slow, .float-med, .flutter, .twinkle, .bob, .girl-big, .hero-girl, .footer-girl, .stamp-next { animation: none !important; }
  .car-track { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}
