:root {
  --bg: #FFFBFE;
  --lavender: #CDB4DB;
  --pink-soft: #FFC8DD;
  --pink: #FFAFCC;
  --blue-soft: #BDE0FE;
  --blue: #A2D2FF;
  --ink: #4B3F5E;
  --ink-soft: #6B5C82;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Quicksand', sans-serif;
  overflow-x: hidden;
}

h1, h2 {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(150deg, var(--lavender) 0%, var(--pink-soft) 45%, var(--blue-soft) 100%);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--ink);
  opacity: 0.85;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-cue span {
  width: 20px;
  height: 32px;
  border: 2px solid var(--ink-soft);
  border-radius: 12px;
  position: relative;
}

.scroll-cue span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--ink-soft);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s infinite;
}

.scroll-cue p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.8;
}

@keyframes scroll-dot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; transform: translate(-50%, 0); }
}

/* floating hearts */

.floating-hearts {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.floating-hearts .heart {
  position: absolute;
  bottom: -10%;
  color: var(--pink);
  opacity: 0.6;
  font-size: 1.4rem;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.55; }
  90% { opacity: 0.55; }
  100% { transform: translateY(-110vh) rotate(20deg); opacity: 0; }
}

/* ===================== TIMELINE ===================== */

/* block, not flex: ScrollTrigger disables pin spacing inside flex parents */
.timeline {
  display: block;
}

.date-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 72px clamp(24px, 6vw, 96px);
  --accent: var(--pink);
}

/* one palette color per date, in order down the page */
.date-section:nth-of-type(5n + 1) { --accent: var(--lavender); }
.date-section:nth-of-type(5n + 2) { --accent: var(--pink-soft); }
.date-section:nth-of-type(5n + 3) { --accent: var(--pink); }
.date-section:nth-of-type(5n + 4) { --accent: var(--blue-soft); }
.date-section:nth-of-type(5n + 5) { --accent: var(--blue); }

.date-section.reverse {
  direction: rtl;
}

.date-section.reverse .date-copy,
.date-section.reverse .date-media {
  direction: ltr;
}

/* ---------- scrapbook (<= 6 items): overlapping polaroids ---------- */

.date-media.scrapbook {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  min-height: min(620px, 68vh);
  padding: clamp(24px, 4vw, 56px);
}

.polaroid {
  --per-row: min(var(--count), 3);
  /* keep all rows of tall portrait tiles within one screen */
  --h-cap: calc(78vh / var(--rows) / 1.9);
  position: relative;
  background: #fff;
  padding: 10px 10px 26px;
  border-radius: 6px;
  box-shadow: 0 15px 30px -12px color-mix(in srgb, var(--accent) 80%, black 10%);
  width: calc(100% / (var(--per-row) + 0.3));
  max-width: min(clamp(220px, 22vw, 380px), var(--h-cap));
  flex-shrink: 0;
  z-index: 1;
}

.polaroid + .polaroid {
  margin-left: -40px;
}

.polaroid:nth-child(even) {
  margin-top: 48px;
  z-index: 2;
}

.polaroid.featured {
  width: calc(100% / (var(--per-row) + 0.3) * 1.2);
  max-width: min(clamp(260px, 26vw, 460px), var(--h-cap) * 1.2);
  z-index: 3;
}

/* landscape shots get extra width so they don't read smaller than portrait ones */
.polaroid.landscape {
  width: calc(100% / (var(--per-row) + 0.3) * 1.3);
  max-width: min(clamp(300px, 30vw, 500px), var(--h-cap) * 2);
}

.polaroid.landscape.featured {
  width: calc(100% / (var(--per-row) + 0.3) * 1.5);
  max-width: min(clamp(340px, 34vw, 580px), var(--h-cap) * 2.4);
}

.polaroid img,
.polaroid video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* ---------- filmstrip (7+ items): pinned sideways scroll ---------- */

.date-section.filmstrip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: clamp(24px, 4vh, 40px);
  height: 100vh;
  padding: 48px 0;
  overflow: hidden;
}

.filmstrip .date-copy {
  max-width: 760px;
  padding: 0 clamp(24px, 6vw, 96px);
}

.film-viewport {
  width: 100%;
}

.film-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  padding: 16px clamp(24px, 6vw, 96px);
}

.frame {
  position: relative;
  flex: 0 0 auto;
  height: min(58vh, 540px);
  background: #fff;
  padding: 10px 10px 28px;
  border-radius: 6px;
  box-shadow: 0 18px 34px -14px color-mix(in srgb, var(--accent) 85%, black 10%);
  transform: rotate(var(--tilt, 0deg));
}

.frame img,
.frame video {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 2px;
}

/* ---------- video tiles ---------- */

.sound-toggle {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 36px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px -4px rgba(75, 63, 94, 0.5);
  font-size: 1.05rem;
  cursor: pointer;
}

.date-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.date-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

.date-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  margin-bottom: 16px;
}

.date-caption {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ===================== CENTERPIECES ===================== */

.date-section.centerpiece {
  position: relative;
  display: block;
  height: 100vh;
  padding: 0;
  overflow: hidden;
}

.centerpiece .date-copy {
  position: absolute;
  z-index: 3;
  top: clamp(40px, 8vh, 88px);
  left: clamp(24px, 6vw, 96px);
  max-width: min(520px, calc(100% - 48px));
}

/* ---------- starfield (night sky: light text on dark) ---------- */

.cp-starfield {
  background: radial-gradient(ellipse at 50% 60%, #2a2048 0%, #171229 55%, #0e0b1c 100%);
}

.cp-starfield .date-label,
.cp-starfield .date-title,
.cp-starfield .date-caption {
  color: var(--bg);
}

.cp-starfield .date-label::before {
  background: var(--pink);
}

.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.constellation-nodes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.constellation-node {
  position: absolute;
  width: clamp(40px, 6.5vmin, 84px);
  aspect-ratio: 1;
  padding: 0;
  border: 3px solid var(--bg);
  border-radius: 50%;
  overflow: hidden;
  background: var(--lavender);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--pink) 70%, transparent);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
}

.constellation-node img,
.constellation-node video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.constellation-node.is-video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  text-shadow: 0 1px 4px rgba(43, 34, 60, 0.55);
}

.constellation-node:hover {
  box-shadow: 0 0 26px 8px color-mix(in srgb, var(--pink) 85%, transparent);
}

/* ---------- 3D carousel ---------- */

.cp-carousel {
  background: linear-gradient(160deg, color-mix(in srgb, var(--lavender) 55%, var(--bg)) 0%, var(--bg) 55%, color-mix(in srgb, var(--pink-soft) 60%, var(--bg)) 100%);
}

.carousel-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: clamp(120px, 18vh, 200px);
  perspective: 1500px;
  perspective-origin: 50% 30%;
}

.carousel-ring {
  position: relative;
  width: clamp(140px, 15vw, 230px);
  aspect-ratio: 3 / 4;
  transform-style: preserve-3d;
}

.carousel-card {
  position: absolute;
  inset: auto 0;
  top: 50%;
  translate: 0 -50%;
  width: 100%;
  padding: 8px 8px 22px;
  border: none;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--accent) 90%, black 15%);
  cursor: pointer;
}

.carousel-card img,
.carousel-card video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

/* ---------- scratch to reveal ---------- */

.date-section.cp-scratch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 32px clamp(32px, 5vw, 72px);
  height: auto;
  min-height: 100vh;
  padding: 72px clamp(24px, 6vw, 96px) 56px;
  overflow: visible;
}

.cp-scratch .date-copy {
  position: static;
  max-width: 520px;
}

.scratch-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scratch-card {
  position: relative;
  height: min(62vh, 560px);
  max-width: 100%;
  padding: 10px 10px 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--accent) 90%, black 15%);
}

.scratch-card > img,
.scratch-card > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}

.scratch-canvas {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 40px);
  border-radius: 3px;
  touch-action: none;
  cursor: grab;
}

.scratch-hint {
  position: absolute;
  left: 50%;
  bottom: 48px;
  translate: -50% 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 251, 254, 0.92);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  width: max-content;
  max-width: 85%;
  text-align: center;
  pointer-events: none;
}

.scratch-skip {
  border: none;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.burst-heart {
  position: absolute;
  top: 45%;
  left: 50%;
  font-size: 1.6rem;
  pointer-events: none;
  z-index: 5;
}

/* ---------- swipeable mini strip ---------- */

.mini-strip-wrap {
  grid-column: 1 / -1;
  min-width: 0;
}

.mini-strip-label {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.mini-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 12px 4px 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.mini-card {
  flex: 0 0 auto;
  height: clamp(170px, 24vh, 240px);
  padding: 6px 6px 18px;
  border: none;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 90%, black 15%);
  transform: rotate(var(--tilt, 0deg));
  scroll-snap-align: start;
  cursor: pointer;
}

.mini-card img,
.mini-card video {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 2px;
}

@media (max-width: 780px) {
  .date-section.cp-scratch {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 56px 20px 40px;
  }

  .scratch-card {
    height: 58vh;
  }
}

/* ---------- map / route drawing ---------- */

.date-section.cp-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 40px clamp(24px, 6vw, 96px);
  background: color-mix(in srgb, var(--blue-soft) 18%, var(--bg));
}

.cp-route .date-copy {
  position: static;
}

.route-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}

.route-stats span {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.route-stats small {
  margin-left: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.route-map {
  position: relative;
  width: min(84vh, 52vw, 720px);
  aspect-ratio: 1;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 48px -24px color-mix(in srgb, var(--accent) 90%, black 15%);
}

.route-map svg {
  width: 100%;
  height: 100%;
  display: block;
}

.route-grid line {
  stroke: var(--ink-soft);
  stroke-opacity: 0.08;
  stroke-width: 2;
}

.route-pond {
  fill: var(--blue-soft);
  opacity: 0.7;
}

.route-trees circle {
  fill: var(--lavender);
  opacity: 0.45;
}

.route-ghost,
.route-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-ghost {
  stroke: var(--ink-soft);
  stroke-opacity: 0.25;
  stroke-width: 4;
  stroke-dasharray: 2 14;
}

.route-line {
  stroke: var(--pink);
  stroke-width: 9;
}

.route-start {
  fill: var(--bg);
  stroke: var(--ink);
  stroke-width: 4;
}

.route-marker {
  fill: var(--ink);
  font-size: 40px;
}

.route-photo {
  position: absolute;
  width: 16%;
  padding: 5px 5px 14px;
  border: none;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 22px -10px rgba(75, 63, 94, 0.55);
  translate: -50% -50%;
  rotate: var(--tilt, 0deg);
  cursor: pointer;
}

.route-pin {
  stroke: var(--ink-soft);
  stroke-opacity: 0.45;
  stroke-width: 2.5;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}

.route-photo img,
.route-photo video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

@media (max-width: 780px) {
  .date-section.cp-route {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 32px 20px;
  }

  .route-map {
    width: min(100%, 58vh);
    justify-self: center;
  }

  .route-stats {
    margin-top: 12px;
  }
}

/* ---------- paint shader ---------- */

.date-section.cp-shader {
  height: auto;
  overflow: visible;
  padding-bottom: 56px;
  background: color-mix(in srgb, var(--pink-soft) 22%, var(--bg));
}

.paint-stage {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: 40px clamp(24px, 6vw, 96px);
}

.cp-shader .date-copy {
  position: static;
}

.paint-frame {
  position: relative;
  height: min(80vh, 760px);
  aspect-ratio: 3 / 4;
  padding: 12px 12px 48px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 26px 50px -24px color-mix(in srgb, var(--accent) 90%, black 20%);
  rotate: 1.5deg;
}

.paint-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 3px;
}

.paint-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: var(--bg);
  border-radius: 3px;
}

.paint-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}

.cp-shader .mini-strip-wrap {
  padding: 0 clamp(24px, 6vw, 96px);
}

@media (max-width: 780px) {
  .paint-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 28px 20px;
  }

  .paint-frame {
    height: auto;
    width: min(100%, 44vh);
    justify-self: center;
    padding: 8px 8px 36px;
  }

  .paint-label {
    font-size: 1.1rem;
    bottom: 6px;
  }

  .cp-shader .mini-strip-wrap {
    padding: 0 20px;
  }
}

/* ---------- 3D egg ---------- */

.cp-egg {
  background: radial-gradient(ellipse at 50% 58%, color-mix(in srgb, var(--pink-soft) 45%, var(--bg)) 0%, var(--bg) 70%);
}

.egg-stage {
  position: absolute;
  inset: 0;
}

.egg-canvas {
  position: absolute;
  inset: 0;
}

.egg-canvas canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.egg-canvas.no-3d::after {
  content: '🥚';
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-size: 7rem;
}

.egg-photos {
  position: absolute;
  top: 55%;
  left: 50%;
  width: 0;
  height: 0;
}

.egg-photo {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 5px 5px 14px;
  border: none;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--accent) 90%, black 15%);
  opacity: 0;
  cursor: pointer;
}

.egg-photo img,
.egg-photo video {
  height: clamp(58px, 11vh, 130px);
  width: auto;
  display: block;
  border-radius: 2px;
}

/* ---------- text as hero ---------- */

/* the stage is what pins, so the section must grow with its pin spacing */
.date-section.cp-textHero {
  height: auto;
  overflow: visible;
  background: var(--bg);
}

.hero-word-stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero-word {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  position: relative;
  font-size: clamp(3.5rem, 16.5vw, 18rem);
  line-height: 1;
  letter-spacing: -0.03em;
  perspective: 800px;
  will-change: transform;
  white-space: nowrap;
}

.hero-word span {
  display: inline-block;
  transform-origin: 50% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-word-full {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero-word-full img,
.hero-word-full video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-word-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 34, 60, 0.55) 0%, rgba(43, 34, 60, 0.15) 45%, rgba(43, 34, 60, 0.6) 100%);
}

.cp-textHero .date-copy {
  z-index: 3;
}

.cp-textHero .date-label,
.cp-textHero .date-title,
.cp-textHero .date-caption {
  color: var(--bg);
  opacity: 1;
}

.cp-textHero .date-label,
.cp-textHero .date-title {
  opacity: 0;
}

.kinetic-word {
  display: inline-block;
  opacity: 0;
}

.hero-word-cards {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(20px, 5vh, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 1.5vw, 22px);
  padding: 0 clamp(16px, 4vw, 64px);
}

.hero-word-card {
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 5px 14px;
  border: none;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 28px -12px rgba(43, 34, 60, 0.55);
  rotate: var(--tilt, 0deg);
  opacity: 0;
  cursor: pointer;
}

.hero-word-card img,
.hero-word-card video {
  height: clamp(60px, 14vh, 150px);
  width: auto;
  display: block;
  border-radius: 2px;
}

/* ---------- parallax depth ---------- */

.cp-parallax {
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue-soft) 70%, var(--bg)) 0%, var(--bg) 70%);
}

.para-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.para-layer {
  position: absolute;
  will-change: transform;
}

.para-hills-far,
.para-hills-near {
  left: 0;
  right: 0;
  bottom: -12vh;
  height: 55vh;
}

.para-hills-far svg,
.para-hills-near svg {
  width: 100%;
  height: 100%;
  display: block;
}

.para-hills-far path {
  fill: color-mix(in srgb, var(--lavender) 60%, var(--bg));
}

.para-hills-near path {
  fill: color-mix(in srgb, var(--pink-soft) 70%, var(--bg));
}

.para-card {
  padding: 7px 7px 20px;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 22px 40px -18px color-mix(in srgb, var(--ink) 70%, transparent);
  rotate: var(--tilt, 0deg);
  cursor: pointer;
}

.para-card img,
.para-card video {
  height: var(--h, 40vh);
  width: auto;
  display: block;
  border-radius: 2px;
}

.para-rain {
  inset: -40vh 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(255, 255, 255, 0.9) 22px 23px, transparent 23px 60px);
  animation: rain-fall 0.9s linear infinite;
}

@keyframes rain-fall {
  from { background-position: 0 0; }
  to { background-position: -40px 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .para-rain { animation: none; }
}

.cp-parallax .date-copy {
  z-index: 10;
  padding: 18px 22px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(6px);
}

/* ---------- horizontal journey (metro carriage) ---------- */

.cp-journey {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pink-soft) 45%, var(--bg)) 0%, var(--bg) 62%, color-mix(in srgb, var(--lavender) 30%, var(--bg)) 100%);
}

.journey-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.journey-skyline {
  position: absolute;
  left: 0;
  bottom: 30vh;
  width: 250vw;
  height: 26vh;
}

.journey-skyline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.journey-skyline path {
  fill: color-mix(in srgb, var(--lavender) 55%, var(--bg));
}

.journey-train {
  position: absolute;
  left: 0;
  bottom: 16vh;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  height: clamp(220px, 44vh, 400px);
  padding: 0 40px 0 0;
  border-radius: 0 28px 28px 0;
  background:
    linear-gradient(180deg, transparent 0 82%, var(--blue) 82% 88%, transparent 88%),
    color-mix(in srgb, var(--lavender) 85%, white);
  box-shadow: 0 24px 40px -22px color-mix(in srgb, var(--ink) 70%, transparent);
  width: max-content;
}

.journey-nose {
  align-self: stretch;
  width: clamp(90px, 10vw, 150px);
  border-radius: 60% 0 0 60% / 50% 0 0 50%;
  margin-left: -1px;
  background:
    radial-gradient(circle at 38% 42%, var(--bg) 0 18%, transparent 19%),
    color-mix(in srgb, var(--lavender) 85%, white);
  translate: -100% 0;
  margin-right: calc(-1 * clamp(90px, 10vw, 150px));
}

.journey-window {
  position: relative;
  flex: 0 0 auto;
  height: 74%;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--ink) 25%, transparent);
  cursor: pointer;
}

.journey-window:first-of-type {
  margin-left: 24px;
}

.journey-window img,
.journey-window video {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 9px;
}

.journey-window .sound-toggle {
  bottom: 14px;
  right: 14px;
}

.journey-sign {
  flex: 0 0 auto;
  margin-left: 60px;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  white-space: nowrap;
}

.journey-rails {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11vh;
  height: 5vh;
  background:
    linear-gradient(180deg, var(--ink-soft) 0 3px, transparent 3px calc(100% - 3px), var(--ink-soft) calc(100% - 3px)),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink-soft) 40%, transparent) 0 8px, transparent 8px 40px);
  opacity: 0.5;
}

/* ---------- timeline scrub (sunset to night) ---------- */

.tl-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffd6b8 0%, var(--pink-soft) 45%, var(--bg) 100%);
}

.tl-night {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, #5d4f78 0%, color-mix(in srgb, var(--lavender) 80%, #5d4f78) 55%, var(--lavender) 100%);
}

.tl-sun {
  position: absolute;
  right: 14%;
  top: 14%;
  width: clamp(90px, 12vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3c9 0%, #ffcf8f 55%, rgba(255, 175, 204, 0) 72%);
}

.tl-stars {
  position: absolute;
  inset: 0 0 40% 0;
  opacity: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 26%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 10%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 48%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 50%, #fff 50%, transparent 51%);
}

.cp-timeline .date-copy {
  z-index: 4;
  padding: 18px 22px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
}

.tl-stack {
  position: absolute;
  z-index: 3;
  left: 56%;
  top: 52%;
  width: 0;
  height: 0;
}

.tl-card {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 8px 30px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 22px 44px -20px rgba(43, 34, 60, 0.6);
  cursor: pointer;
}

.tl-card img,
.tl-card video {
  height: clamp(160px, 44vh, 420px);
  width: auto;
  display: block;
  border-radius: 2px;
}

.tl-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.tl-bar {
  position: absolute;
  z-index: 4;
  left: clamp(24px, 8vw, 140px);
  right: clamp(24px, 8vw, 140px);
  bottom: clamp(28px, 7vh, 64px);
}

.tl-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}

.tl-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #ffcf8f, var(--pink), var(--lavender));
}

.tl-tick {
  position: absolute;
  top: 14px;
  translate: -50% 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 251, 254, 0.78);
}

.tl-tick::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -16px;
  width: 2px;
  height: 10px;
  background: var(--ink-soft);
}

.tl-now {
  position: absolute;
  top: -15px;
  translate: -50% 0;
  font-size: 1.5rem;
  color: var(--pink);
  text-shadow: 0 2px 6px rgba(75, 63, 94, 0.35);
}

.tl-clock {
  position: absolute;
  right: 0;
  bottom: 18px;
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255, 251, 254, 0.7);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 780px) {
  .tl-stack {
    left: 50%;
    top: 55%;
  }

  .tl-card img,
  .tl-card video {
    height: 30vh;
  }
}

/* ---------- physics polaroid scrapbook ---------- */

.date-section.cp-scrapbook {
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding: 72px clamp(20px, 6vw, 96px);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink-soft) 18%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    color-mix(in srgb, var(--accent) 16%, var(--bg));
}

.cp-scrapbook .date-copy {
  position: static;
  max-width: 620px;
  margin-bottom: 24px;
}

.sb-board {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 24px) clamp(4px, 1vw, 12px);
  padding: 24px 0;
}

.sb-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sb-doodles svg {
  position: absolute;
  width: clamp(44px, 6vw, 80px);
  overflow: visible;
}

.sb-doodles path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sb-doodle-0 { stroke: var(--pink); }
.sb-doodle-1 { stroke: var(--blue); }
.sb-doodle-2 { stroke: var(--lavender); }
.sb-doodle-3 { stroke: var(--ink-soft); stroke-opacity: 0.5; }
.sb-doodle-4 { stroke: var(--pink-soft); }

.sb-card {
  position: relative;
  z-index: 1;
  padding: 7px 7px 24px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--ink) 60%, transparent);
  margin-top: var(--nudge, 0);
  cursor: grab;
  user-select: none;
}

.sb-card:active {
  cursor: grabbing;
}

.sb-card img,
.sb-card video {
  height: clamp(130px, 26vh, 260px);
  width: auto;
  display: block;
  border-radius: 2px;
  pointer-events: none;
}

/* washi tape */
.sb-card::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 72px;
  height: 22px;
  translate: -50% 0;
  rotate: -4deg;
  opacity: 0.85;
  background: repeating-linear-gradient(45deg, var(--pink-soft) 0 6px, color-mix(in srgb, var(--pink-soft) 60%, white) 6px 12px);
  box-shadow: 0 1px 2px rgba(75, 63, 94, 0.12);
}

.sb-card[data-tape="1"]::before {
  background: repeating-linear-gradient(45deg, var(--blue-soft) 0 6px, color-mix(in srgb, var(--blue-soft) 55%, white) 6px 12px);
  rotate: 5deg;
}

.sb-card[data-tape="2"]::before {
  background: repeating-linear-gradient(90deg, var(--lavender) 0 5px, color-mix(in srgb, var(--lavender) 50%, white) 5px 10px);
  left: 22%;
  rotate: -12deg;
}

.sb-card[data-tape="3"]::before {
  background: color-mix(in srgb, var(--pink) 70%, white);
  left: 78%;
  rotate: 10deg;
}

.sb-card .sound-toggle {
  pointer-events: auto;
}

@media (max-width: 780px) {
  .date-section.cp-scrapbook {
    padding: 56px 16px;
  }

  .sb-card img,
  .sb-card video {
    height: 19vh;
  }
}

/* ---------- chat-bubble replay ---------- */

.date-section.cp-chat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 32px clamp(24px, 6vw, 96px);
  background: color-mix(in srgb, var(--accent) 22%, var(--bg));
}

.cp-chat .date-copy {
  position: static;
}

.chat-phone {
  display: flex;
  flex-direction: column;
  width: min(380px, 86vw);
  height: min(86vh, 760px);
  border: 10px solid var(--ink);
  border-radius: 40px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -28px color-mix(in srgb, var(--ink) 80%, transparent);
}

.chat-header {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 18px 18px 12px;
  background: color-mix(in srgb, var(--lavender) 40%, white);
}

.chat-avatar {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--pink-soft);
  color: var(--ink);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-name {
  font-weight: 700;
  color: var(--ink);
}

.chat-status {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.chat-body {
  position: relative;
  flex: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--lavender) 45%, transparent) 1px, transparent 0) 0 0 / 18px 18px,
    var(--bg);
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px 20px;
}

.chat-row {
  display: none;
}

.chat-row.shown {
  display: flex;
}

.chat-row.me {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  background: color-mix(in srgb, var(--lavender) 55%, white);
  border-bottom-left-radius: 6px;
}

.chat-row.me .chat-bubble {
  background: var(--pink-soft);
  border-radius: 18px;
  border-bottom-right-radius: 6px;
}

.chat-bubble.media {
  padding: 4px;
}

.chat-media {
  position: relative;
  cursor: pointer;
}

.chat-media img,
.chat-media video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 34vh;
  display: block;
  border-radius: 14px;
}

.chat-media .sound-toggle {
  right: 8px;
  bottom: 8px;
}

.chat-typing .chat-bubble {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
}

.chat-typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-soft);
  opacity: 0.5;
  animation: typing 1s infinite;
}

.chat-typing i:nth-child(2) { animation-delay: 0.15s; }
.chat-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 0.9; }
}

@media (max-width: 780px) {
  .date-section.cp-chat {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 12px;
    padding: 20px 16px;
  }

  .cp-chat .date-caption {
    display: none;
  }

  .chat-phone {
    justify-self: center;
    height: 74vh;
    border-width: 7px;
    border-radius: 32px;
  }
}

@media (max-width: 780px) {
  .egg-photo img,
  .egg-photo video {
    height: 7.5vh;
  }
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(23, 18, 41, 0.86);
  cursor: zoom-out;
}

.lightbox img,
.lightbox video {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(43, 34, 60, 0.65);
  cursor: default;
}

/* ===================== DEPTH PASS =====================
   Same palette per scene, just layered: a lighter tone top-left, a slightly
   deeper tone bottom-right, and a soft plum vignette at the edges. */

:root {
  --vignette: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(75, 63, 94, 0.09) 100%);
}

.date-section.cp-route {
  background:
    var(--vignette),
    radial-gradient(ellipse at 12% 8%, color-mix(in srgb, var(--blue-soft) 38%, white) 0%, transparent 55%),
    radial-gradient(ellipse at 92% 96%, color-mix(in srgb, var(--blue) 32%, var(--bg)) 0%, transparent 60%),
    color-mix(in srgb, var(--blue-soft) 18%, var(--bg));
}

.date-section.cp-chat {
  background:
    var(--vignette),
    radial-gradient(ellipse at 10% 10%, color-mix(in srgb, var(--accent) 12%, white) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 95%, color-mix(in srgb, var(--accent) 40%, var(--bg)) 0%, transparent 60%),
    color-mix(in srgb, var(--accent) 22%, var(--bg));
}

.date-section.cp-shader {
  background:
    radial-gradient(ellipse at 10% 6%, color-mix(in srgb, var(--pink-soft) 14%, white) 0%, transparent 40%),
    radial-gradient(ellipse at 95% 60%, color-mix(in srgb, var(--pink) 26%, var(--bg)) 0%, transparent 55%),
    color-mix(in srgb, var(--pink-soft) 22%, var(--bg));
}

.paint-stage {
  background: var(--vignette);
}

.date-section.cp-textHero {
  background:
    var(--vignette),
    radial-gradient(ellipse at 50% 50%, var(--bg) 0%, color-mix(in srgb, var(--accent) 16%, var(--bg)) 100%);
}

.date-section.cp-scratch {
  background:
    var(--vignette),
    radial-gradient(ellipse at 80% 30%, color-mix(in srgb, var(--accent) 30%, var(--bg)) 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--accent) 14%, var(--bg)) 100%);
}

.date-section.cp-scrapbook {
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink-soft) 18%, transparent) 1px, transparent 0) 0 0 / 22px 22px,
    radial-gradient(ellipse at 15% 0%, color-mix(in srgb, var(--accent) 8%, white) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 100%, color-mix(in srgb, var(--accent) 32%, var(--bg)) 0%, transparent 55%),
    color-mix(in srgb, var(--accent) 16%, var(--bg));
}

.cp-carousel,
.cp-egg,
.cp-journey,
.cp-parallax,
.tl-sky {
  background-blend-mode: normal;
}

.cp-carousel::before,
.cp-egg::before,
.cp-journey::before,
.cp-parallax::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--vignette);
}

.tl-sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--vignette);
}

/* film grain: very low opacity, no blend mode (cheap to composite while scrolling) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.29 0 0 0 0 0.25 0 0 0 0 0.37 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== HOVER / TAP GLOW =====================
   .glow is added by script.js to cards, photos and players. The ::after
   overlay carries a soft inner shadow (depth) plus a cursor-following glow in
   the scene's accent; on touch a ripple blooms from the tap point. */

@property --glow-a {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.mini-card,
.hero-word-card,
.scratch-skip {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(75, 63, 94, 0.06), inset 0 -14px 22px -18px rgba(75, 63, 94, 0.4);
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--glow-c, var(--accent, var(--pink))) var(--glow-a), transparent) 0%,
    transparent 58%);
  transition: --glow-a 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* blend only where hover exists: phones skip 100+ extra blend layers while scrolling */
@media (hover: hover) {
  .glow::after {
    mix-blend-mode: screen;
  }

  .glow:hover::after {
    --glow-a: 60%;
  }

  .sound-toggle:hover,
  .vlog-fullscreen:hover,
  .scratch-skip:hover {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent, var(--pink)) 35%, transparent), 0 6px 18px -6px color-mix(in srgb, var(--accent, var(--pink)) 90%, var(--ink));
  }
}

.sound-toggle,
.vlog-fullscreen,
.scratch-skip {
  transition: box-shadow 280ms ease, transform 280ms ease;
}

.cp-starfield { --glow-c: var(--pink); }
.cp-egg { --glow-c: #ffd98a; }
.cp-journey { --glow-c: var(--lavender); }

.tap-ripple {
  position: absolute;
  z-index: 5;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--glow-c, var(--accent, var(--pink))) 70%, white) 0%, transparent 70%);
  animation: tap-ripple 380ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes tap-ripple {
  from { transform: scale(1); opacity: 0.9; }
  to { transform: scale(14); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .glow::after { transition: none; }
  .tap-ripple { display: none; }
}

/* ===================== VLOGS ===================== */

.vlogs {
  --accent: var(--lavender);
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--lavender) 30%, var(--bg)) 100%);
}

.vlogs-copy {
  max-width: 760px;
  padding: 0 clamp(24px, 6vw, 96px);
  margin-bottom: 32px;
}

.vlog-reel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px clamp(24px, 6vw, 96px) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--lavender) transparent;
}

.vlog {
  flex: 0 0 auto;
  width: min(720px, 72vw);
  margin: 0;
  scroll-snap-align: center;
}

/* every vlog player: 16:9, same radius + shadow; only the tint changes per vlog */
.vlog-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 22px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--tint) 70%, white), var(--tint));
  box-shadow: 0 22px 44px -20px color-mix(in srgb, var(--tint) 85%, var(--ink) 25%);
}

.vlog-frame > video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vlog-frame.blur-fill .vlog-blur {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(22px) brightness(0.6) saturate(1.2);
  pointer-events: none;
}

.vlog-fullscreen {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 251, 254, 0.85);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(75, 63, 94, 0.5);
}

.vlog:fullscreen {
  width: 100%;
  display: grid;
  place-items: center;
  background: #171229;
}

.vlog:fullscreen .vlog-frame {
  width: min(100vw, 177.78vh);
  border: none;
  border-radius: 0;
}

.vlog:fullscreen figcaption,
.vlog:fullscreen .vlog-fullscreen {
  display: none;
}

.vlog figcaption {
  font-family: 'Dancing Script', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
}

@media (max-width: 780px) {
  .vlog {
    width: calc(100vw - 32px);
  }
}

/* ===================== SCROLL PROGRESS ===================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 100;
  background: linear-gradient(90deg, var(--lavender), var(--pink-soft), var(--pink), var(--blue-soft), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
}

/* ===================== FINALE =====================
   Its own look: Caveat handwriting, a melted mosaic of every scene's colour,
   glowing hearts and paper lanterns. */

.finale {
  position: relative;
  cursor: pointer;
  background: #2a2048;
}

.finale-backdrop {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-bottom: -100vh;
  overflow: hidden;
  background: linear-gradient(160deg, #3a2d5c 0%, #7d5f93 45%, #f3a9c3 100%);
}

.finale-mosaic {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(110vw, 110vh);
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  will-change: transform, filter;
}

.finale-mosaic span {
  display: block;
}

.finale-blend {
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 214, 184, 0.9) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(162, 210, 255, 0.8) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 175, 204, 0.9) 0%, rgba(205, 180, 219, 0.9) 100%);
}

/* dusk falls for the closing line: white words stay readable, lanterns glow */
.finale-dusk {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse at 50% 40%, #4a3a68 0%, #2a2048 70%, #1c1533 100%);
}

.finale-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.finale-pullback {
  height: 130vh;
}

.finale-letter-wrap,
.finale-closing-wrap {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.finale-letter {
  width: min(720px, 100%);
  padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 52px);
  border-radius: 28px;
  background: rgba(255, 251, 254, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 70px -30px rgba(43, 34, 60, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-family: 'Caveat', cursive;
  font-weight: 500;
  font-size: clamp(1.45rem, 5.4vw, 2.2rem);
  line-height: 1.35;
  color: #3a2d4f;
}

.finale-line {
  min-height: 1.35em;
  margin-bottom: 0.45em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.finale-line:first-child {
  font-weight: 700;
  font-size: 1.15em;
}

.finale-line.shown {
  opacity: 1;
  transform: none;
}

.finale-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: #d9678f;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.finale-closing {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 7.5rem);
  line-height: 1.05;
  text-align: center;
  color: #fffbfe;
  text-shadow: 0 4px 30px rgba(217, 103, 143, 0.65), 0 2px 6px rgba(43, 34, 60, 0.45);
}

.finale-closing:not(:has(span)) {
  opacity: 0;
}

.finale-closing span {
  display: inline-block;
}

.finale-hint {
  position: fixed;
  z-index: 95;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  translate: -50% 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(43, 34, 60, 0.55);
  color: #fffbfe;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.finale-hint.shown {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .finale-line { transition: none; }
  .finale-caret { animation: none; }
}

/* ===================== INTRO GATE + MUSIC TOGGLE ===================== */

body.locked {
  overflow: hidden;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.55) 0%, transparent 55%),
    linear-gradient(150deg, var(--lavender) 0%, var(--pink-soft) 50%, var(--blue-soft) 100%);
}

.intro-gate-heart {
  font-size: clamp(3rem, 12vw, 5rem);
  color: var(--pink);
  text-shadow: 0 6px 24px rgba(217, 103, 143, 0.45);
  animation: gate-beat 1.4s ease-in-out infinite;
}

.intro-gate-title {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4rem);
  color: var(--ink);
}

.intro-gate-sub {
  margin-top: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 251, 254, 0.75);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(75, 63, 94, 0.5);
}

@keyframes gate-beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .intro-gate-heart { animation: none; }
}

.music-toggle {
  position: fixed;
  z-index: 96;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 251, 254, 0.88);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(75, 63, 94, 0.55);
  backdrop-filter: blur(6px);
  transition: box-shadow 280ms ease;
}

.music-toggle.is-muted::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 2px;
  background: var(--ink);
  rotate: -40deg;
}

@media (hover: hover) {
  .music-toggle:hover {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--pink) 35%, transparent), 0 8px 20px -8px rgba(75, 63, 94, 0.55);
  }
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 780px) {
  .date-section,
  .date-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: 100vh;
    padding: 56px 20px;
  }

  .date-media.scrapbook {
    min-height: auto;
    gap: 16px 0;
    padding: 30px 10px;
  }

  .polaroid {
    --per-row: min(var(--count), 2);
    --h-cap: 100vw;
  }

  .polaroid + .polaroid {
    margin-left: -24px;
  }

  .date-section.filmstrip {
    padding: 40px 0;
  }

  .filmstrip .date-copy {
    padding: 0 20px;
  }

  .film-track {
    gap: 18px;
    padding: 12px 20px;
  }

  .frame {
    height: 50vh;
    padding: 8px 8px 22px;
  }

  .date-caption {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .vlogs-copy {
    padding: 0 20px;
  }

  .vlog-reel {
    gap: 16px;
    padding: 12px 16px 24px;
    scroll-padding: 0 16px;
  }
}
