/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #f3ecdf;   /* warm editorial paper */
  --warm:    #e6d9bf;   /* deeper paper */
  --peach:   #c9a47a;   /* muted dusty caramel */
  --orange:  #a8663a;   /* deep terracotta walnut — primary */
  --brown:   #5b3f26;   /* rich espresso walnut */
  --dark:    #1c1410;   /* ink */
  --gray:    #847566;   /* warm taupe */
  --pudding: #d49460;   /* 布丁格 accent — warm pumpkin */
  --white:   #ffffff;
  --radius:  16px;
  --shadow:  0 12px 40px rgba(28, 20, 16, 0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans TC', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(253, 248, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 131, 74, 0.12);
}

.nav-logo {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--orange); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 120px 48px 80px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--warm) 100%);
}

.hero-content { flex: 1; max-width: 520px; }

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Noto Serif TC', serif;
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 380px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--brown);
  transform: translateY(-2px);
}

.btn-instagram {
  display: inline-block;
  margin-left: 12px;
  padding: 14px 32px;
  background: transparent;
  color: var(--orange);
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid var(--orange);
  font-weight: 500;
  font-size: 1rem;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-instagram:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-cat { flex: 0 0 auto; }

.cat-card {
  background: var(--white);
  border-radius: 28px;
  padding: 48px 56px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid rgba(232, 131, 74, 0.15);
}

.cat-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 4px solid var(--peach);
}
.cat-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
}
.cat-title {
  font-size: 0.9rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ── Section shared ── */
section { padding: 100px 0; }

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 48px;
}

/* ── About ── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-text strong { color: var(--dark); }

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  padding: 8px 18px;
  background: var(--warm);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--brown);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(232, 131, 74, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: 'Noto Serif TC', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray);
}

.age-clock { padding: 20px 14px; }
.age-top, .age-bottom {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.age-top { margin-bottom: 6px; }
.age-top span {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.age-top em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--gray);
  margin-right: 5px;
}
.age-bottom span {
  font-family: 'Noto Serif TC', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.age-bottom em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--gray);
  margin-right: 5px;
}
.age-top em:last-child, .age-bottom em:last-child { margin-right: 0; }

/* ── Gallery ── */
.gallery { background: var(--cream); }

.section-desc {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: -32px;
  margin-bottom: 36px;
}

.section-desc code {
  background: var(--warm);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--orange);
}

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-placeholder {
  width: 100%;
  min-height: 200px;
  background: var(--warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed var(--peach);
  border-radius: var(--radius);
  transition: background 0.2s;
}

.gallery-placeholder:hover { background: var(--peach); }
.gallery-placeholder span { font-size: 2.5rem; }
.gallery-placeholder p { font-size: 0.8rem; color: var(--gray); }

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Family ── */
.family { background: var(--white); }
.family-lead {
  text-align: center;
  color: var(--gray);
  font-size: 1rem;
  margin: -28px auto 56px;
  max-width: 520px;
  letter-spacing: 0.02em;
}
.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.family-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px;
  background: var(--cream);
  border-radius: 24px;
  border: 1px solid rgba(168, 102, 56, 0.12);
  transition: transform 0.5s var(--ease-soft), box-shadow 0.5s ease;
  overflow: hidden;
}
.family-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 102, 56, 0.08), transparent 65%);
  pointer-events: none;
}
.family-card.pudding-card::before {
  background: radial-gradient(circle, rgba(212, 148, 96, 0.18), transparent 65%);
}
.family-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(28, 20, 16, 0.1);
}
.family-photo {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 14px 32px rgba(28, 20, 16, 0.18);
  position: relative;
  z-index: 1;
}
.family-card.pudding-card .family-photo {
  border-color: var(--pudding);
  box-shadow: 0 14px 32px rgba(212, 148, 96, 0.4);
}
.family-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-soft);
}
.family-card:hover .family-photo img { transform: scale(1.08); }

.family-info {
  flex: 1;
  position: relative;
  z-index: 1;
}
.family-role {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
  font-weight: 500;
}
.family-card.pudding-card .family-role { color: var(--pudding); }
.family-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.family-en {
  font-family: 'Noto Serif TC', serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.15em;
  margin-left: 8px;
  text-transform: uppercase;
}
.family-meta {
  font-size: 0.85rem;
  color: var(--brown);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.family-bio {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 800px) {
  .family-grid { grid-template-columns: 1fr; gap: 24px; }
  .family-card { padding: 28px; gap: 24px; }
  .family-photo { flex-basis: 120px; width: 120px; height: 120px; }
  .family-name { font-size: 1.5rem; }
}
@media (max-width: 500px) {
  .family-card { flex-direction: column; text-align: center; }
}

/* ── Facts ── */
.facts { background: var(--warm); }

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fact-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fact-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.fact-icon { font-size: 2rem; margin-bottom: 14px; }
.fact-label { font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange); margin-bottom: 6px; }
.fact-val { font-size: 1rem; font-weight: 500; color: var(--dark); }

/* ── Shop ── */
.shop { background: var(--white); }

.shop-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.shop-card {
  display: flex;
  gap: 40px;
  background: var(--cream);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(232, 131, 74, 0.15);
  max-width: 720px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.shop-img-wrap {
  flex: 0 0 280px;
  overflow: hidden;
}

.shop-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-info {
  flex: 1;
  padding: 36px 36px 36px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.shop-name {
  font-family: 'Noto Serif TC', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--dark);
}

.shop-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
}

.shop-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.shop-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--orange);
  font-family: 'Noto Serif TC', serif;
}

.btn-buy {
  display: inline-block;
  padding: 12px 28px;
  background: var(--orange);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
}

.btn-buy:hover {
  background: var(--brown);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .shop-card { flex-direction: column; }
  .shop-img-wrap { flex: 0 0 220px; }
  .shop-info { padding: 24px; }
}

/* ── Contact ── */
.contact {
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.contact-inner { max-width: 600px; margin: 0 auto; padding: 0 24px; }

.contact .section-label { color: var(--peach); }
.contact .section-title { color: var(--white); margin-bottom: 16px; }

.contact-desc {
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.social-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.social-link:hover { color: var(--peach); }
.dot { color: rgba(255,255,255,0.2); }

/* ── Footer ── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { gap: 20px; }

  .hero {
    flex-direction: column;
    padding: 100px 24px 60px;
    text-align: center;
  }
  .hero-sub { max-width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { columns: 2; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .facts-grid { grid-template-columns: 1fr; }
  .gallery-grid { columns: 1; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Scroll fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════════════════
   ✨ Refined Scroll Animations
   ════════════════════════════════════════════ */

:root {
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ════════════════════════════════════════════
   📷✨ Editorial Polaroid Collage Hero
   ════════════════════════════════════════════ */

.hero-collage {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 25% 25%, rgba(242, 196, 160, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(232, 131, 74, 0.22), transparent 70%),
    var(--cream);
  display: block;
}

/* ── Giant background type "SCHRÖDINGER" ── */
.hero-mega {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.mega-bg {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(5rem, 22vw, 26rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 2px var(--peach);
  line-height: 0.85;
  white-space: nowrap;
  user-select: none;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  animation: megaIn 1.6s var(--ease-soft) 0.2s forwards;
}
@keyframes megaIn {
  to { opacity: 0.45; transform: translateY(0) scale(1); }
}

/* ── Polaroid stage ── */
.polaroid-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 3;
}

.polaroid-wrap {
  position: absolute;
  --mx: 0px;
  --my: 0px;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.5s var(--ease-soft);
  will-change: transform;
}

.polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 38px;
  border-radius: 4px;
  width: 200px;
  box-shadow:
    0 18px 44px rgba(44, 26, 14, 0.22),
    0 4px 8px rgba(44, 26, 14, 0.08);
  cursor: pointer;
  transform-origin: center;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.5s var(--ease-soft), box-shadow 0.4s ease;
  animation: polaroidIn 1.2s var(--ease-bounce) both;
  animation-delay: calc(0.5s + var(--i, 0) * 130ms);
}
.polaroid img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1px;
}
.polaroid figcaption {
  text-align: center;
  font-family: 'Noto Serif TC', serif;
  font-size: 0.85rem;
  margin-top: 12px;
  color: var(--brown);
  letter-spacing: 0.05em;
}

@keyframes polaroidIn {
  0%   { opacity: 0; transform: rotate(calc(var(--rot, 0deg) + 30deg)) scale(0); }
  60%  { opacity: 1; transform: rotate(calc(var(--rot, 0deg) - 4deg)) scale(1.08); }
  100% { opacity: 1; transform: rotate(var(--rot, 0deg)) scale(1); }
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.08);
  box-shadow:
    0 30px 70px rgba(44, 26, 14, 0.32),
    0 8px 16px rgba(44, 26, 14, 0.12);
}
.polaroid-wrap:hover { z-index: 20; }

/* Main center polaroid is bigger */
.polaroid-wrap.main .polaroid { width: 280px; }
.polaroid-wrap.main .polaroid img { height: 280px; }

/* Photo slideshow inside main polaroid */
.polaroid .photo-stack {
  position: relative;
  width: 100%;
  height: 280px;
}
.polaroid .photo-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.9s ease, transform 1.8s ease;
}
.polaroid .photo-stack img.active {
  opacity: 1;
  transform: scale(1);
}

/* Polaroid positions — asymmetric scatter */
.p1 { top: 6%;    left: 5%;  }
.p2 { top: 16%;   left: 23%; }
.p3 { top: 18%;   left: calc(50% - 140px); }
.p4 { top: 8%;    right: 6%; }
.p5 { bottom: 14%; left: 14%; }
.p6 { bottom: 10%; right: 16%; }

/* ── Speech bubble on main polaroid ── */
.sticker-bubble {
  position: absolute;
  top: -22px;
  right: -50px;
  background: #fff;
  color: var(--dark);
  padding: 10px 18px;
  border-radius: 22px;
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2.5px solid var(--orange);
  box-shadow: 0 10px 24px rgba(232, 131, 74, 0.3);
  white-space: nowrap;
  animation: bubblePop 0.7s var(--ease-bounce) 2s both,
             bubbleFloat 3.2s ease-in-out 2.8s infinite;
  transform-origin: bottom left;
  z-index: 11;
}
.sticker-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 2.5px solid var(--orange);
  border-bottom: 2.5px solid var(--orange);
  transform: rotate(45deg);
}
@keyframes bubblePop {
  0%   { opacity: 0; transform: scale(0) rotate(-15deg); }
  60%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes bubbleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Decorative stickers ── */
.sticker {
  position: absolute;
  font-size: 1.8rem;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(232,131,74,0.35));
  opacity: 0;
  animation: stickerIn 0.8s var(--ease-bounce) both,
             stickerWiggle 4.5s ease-in-out infinite;
}
@keyframes stickerIn {
  0%   { opacity: 0; transform: scale(0) rotate(0deg); }
  100% { opacity: 1; transform: scale(1) rotate(var(--rot, 0deg)); }
}
@keyframes stickerWiggle {
  0%, 100% { transform: scale(1) rotate(var(--rot, 0deg)); }
  50%      { transform: scale(1.12) rotate(calc(var(--rot, 0deg) + 8deg)); }
}
.st1 { top: 14%;   left: 38%;  animation-delay: 1.4s, 2.2s; }
.st2 { top: 36%;   left: 40%;  font-size: 2.2rem; animation-delay: 1.6s, 2.7s; }
.st3 { bottom: 32%; left: 38%; animation-delay: 1.8s, 3.1s; }
.st4 { top: 10%;   right: 28%; font-size: 2.4rem; color: var(--orange); animation-delay: 2s, 3.5s; }
.st5 { bottom: 26%; right: 8%; font-size: 1.6rem; animation-delay: 2.2s, 4s; }

/* ── Sakura petals falling ── */
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.petal {
  position: absolute;
  top: -40px;
  left: var(--x, 50%);
  font-size: 1.2rem;
  opacity: 0;
  animation: petalFall var(--dur, 10s) linear infinite;
  animation-delay: var(--d, 0s);
  filter: drop-shadow(0 2px 4px rgba(232,131,74,0.2));
}
@keyframes petalFall {
  0%   { transform: translate(0, -10px) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.85; }
  50%  { transform: translate(40px, 50vh) rotate(220deg); opacity: 0.9; }
  100% { transform: translate(-30px, 105vh) rotate(540deg); opacity: 0; }
}

/* ── Cute burst on load ── */
.cute-burst {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 6;
}
.cute-burst span {
  position: absolute;
  top: 0; left: 0;
  font-size: 1.8rem;
  opacity: 0;
  animation: burst 1.6s var(--ease-out) 0.8s forwards;
  filter: drop-shadow(0 2px 6px rgba(232,131,74,0.4));
}
.cute-burst span:nth-child(1)  { --tx: -240px; --ty: -60px;  animation-delay: 0.6s;  }
.cute-burst span:nth-child(2)  { --tx: -180px; --ty: -180px; animation-delay: 0.65s; }
.cute-burst span:nth-child(3)  { --tx: -50px;  --ty: -260px; animation-delay: 0.7s;  }
.cute-burst span:nth-child(4)  { --tx: 80px;   --ty: -250px; animation-delay: 0.75s; }
.cute-burst span:nth-child(5)  { --tx: 220px;  --ty: -160px; animation-delay: 0.8s;  }
.cute-burst span:nth-child(6)  { --tx: 280px;  --ty: -30px;  animation-delay: 0.85s; }
.cute-burst span:nth-child(7)  { --tx: 240px;  --ty: 130px;  animation-delay: 0.9s;  }
.cute-burst span:nth-child(8)  { --tx: 110px;  --ty: 240px;  animation-delay: 0.95s; }
.cute-burst span:nth-child(9)  { --tx: -80px;  --ty: 270px;  animation-delay: 1s;    }
.cute-burst span:nth-child(10) { --tx: -210px; --ty: 180px;  animation-delay: 1.05s; }
.cute-burst span:nth-child(11) { --tx: -290px; --ty: 80px;   animation-delay: 1.1s;  }
.cute-burst span:nth-child(12) { --tx: -130px; --ty: -130px; animation-delay: 1.15s; }
@keyframes burst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  20%  { opacity: 1; transform: translate(calc(-50% + var(--tx)*0.4), calc(-50% + var(--ty)*0.4)) scale(1.2) rotate(120deg); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.8) rotate(360deg); }
}

/* Heart burst on click */
.heart-burst {
  position: fixed;
  pointer-events: none;
  font-size: 1.8rem;
  z-index: 9999;
  animation: heartUp 1.4s var(--ease-out) forwards;
}
@keyframes heartUp {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  20%  { opacity: 1; transform: translate(calc(-50% + var(--dx)*0.3), calc(-50% - 30px + var(--dy)*0.3)) scale(1.2); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% - 180px + var(--dy))) scale(0.7) rotate(var(--rot, 0deg)); }
}

/* ── Hero info — bottom left corner ── */
.hero-info {
  position: absolute;
  bottom: 70px;
  left: 60px;
  z-index: 5;
  max-width: 360px;
  opacity: 0;
  transform: translateY(20px);
  animation: heroInfoIn 1s var(--ease-soft) 1.4s forwards;
}
@keyframes heroInfoIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-info .hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.hero-info .hero-title {
  font-family: 'Noto Serif TC', serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 14px;
}
.hero-info .hero-sub {
  font-size: 0.92rem;
  color: var(--gray);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.hero-info .hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-info .btn-primary,
.hero-info .btn-instagram {
  padding: 12px 22px;
  font-size: 0.9rem;
  margin: 0;
}

/* ── Scroll cue at bottom center ── */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 5;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  font-weight: 500;
  color: var(--brown);
  opacity: 0;
  animation: heroInfoIn 1s var(--ease-soft) 2s forwards;
}
.scroll-cue .line {
  display: inline-block;
  width: 50px;
  height: 1px;
  background: rgba(139, 90, 43, 0.3);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  animation: scrollCue 2s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .polaroid { width: 130px; padding: 10px 10px 28px; }
  .polaroid img { height: 130px; }
  .polaroid figcaption { font-size: 0.7rem; margin-top: 8px; }
  .polaroid-wrap.main .polaroid { width: 180px; }
  .polaroid-wrap.main .polaroid img { height: 180px; }
  .polaroid .photo-stack { height: 180px; }
  .p3 { left: calc(50% - 90px); top: 14%; }
  .p1 { top: 4%;   left: 2%; }
  .p2 { top: 30%;  left: 4%; }
  .p4 { top: 6%;   right: 2%; }
  .p5 { bottom: 26%; left: 6%; }
  .p6 { bottom: 18%; right: 4%; }
  .sticker { font-size: 1.3rem !important; }
  .sticker-bubble { font-size: 0.8rem; padding: 8px 14px; right: -30px; top: -16px; }
  .hero-info { left: 24px; right: 24px; bottom: 30px; max-width: none; }
  .scroll-cue { display: none; }
  .mega-bg { font-size: clamp(3.5rem, 18vw, 8rem); }
}
@media (max-width: 600px) {
  .polaroid { width: 110px; }
  .polaroid img { height: 110px; }
  .polaroid-wrap.main .polaroid { width: 150px; }
  .polaroid-wrap.main .polaroid img { height: 150px; }
  .polaroid .photo-stack { height: 150px; }
  .p3 { left: calc(50% - 75px); }
  .cute-burst span { font-size: 1.2rem; }
}



/* Smooth scroll progress bar at the top of viewport */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--peach), var(--orange));
  z-index: 9500;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* ── Title char-by-char reveal ──
   JS wraps each char in <span class="char"> with --i */
.split-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(10px);
  transition:
    opacity   0.9s var(--ease-soft),
    transform 0.9s var(--ease-soft),
    filter    0.9s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 35ms);
  will-change: opacity, transform, filter;
}
.split-title.in-view .char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.split-title .br { display: block; height: 0; }

/* ── Section-label slide-in (small uppercase tag) ── */
.section-label {
  opacity: 0;
  transform: translateX(-12px);
  letter-spacing: 0.15em;
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    letter-spacing 1s var(--ease-soft);
}
.section-label.in-view {
  opacity: 1;
  transform: translateX(0);
  letter-spacing: 0.25em;
}

/* ── Underline reveal under section title ── */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--orange);
  border-radius: 2px;
  transition: width 1.1s var(--ease-soft) 0.4s;
}
.section-title.in-view::after { width: 64px; }

/* ── Generic reveal (translate + fade) ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s var(--ease-soft),
    transform 1.1s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Image clip-path reveal (mask sliding) ── */
.img-mask {
  overflow: hidden;
  position: relative;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 90ms);
  will-change: clip-path;
}
.img-mask.in-view { clip-path: inset(0 0 0 0); }
.img-mask img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.1);
  transition: transform 1.6s var(--ease-soft);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.img-mask.in-view img { transform: scale(1); }

/* (Hero entrance handled by .hero-info heroInfoIn in collage section above) */

/* ── Stat / fact card subtle hover lift (refined) ── */
.stat-card,
.fact-item {
  transition:
    transform 0.5s var(--ease-soft),
    box-shadow 0.5s var(--ease-soft),
    border-color 0.5s ease;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(44, 26, 14, 0.08);
  border-color: rgba(232, 131, 74, 0.3);
}
.fact-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(44, 26, 14, 0.08);
}

.stat-card .stat-num { transition: color 0.4s ease; }

/* Badges — quiet hover */
.badge {
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s var(--ease-soft);
  cursor: default;
}
.badge:hover {
  background: var(--peach);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Gallery — refined hover */
.gallery-item {
  cursor: zoom-in;
  position: relative;
  transition: transform 0.6s var(--ease-soft);
}
.gallery-item img {
  transition: transform 0.9s var(--ease-soft), filter 0.6s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

/* Nav scroll state */
.nav {
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}
.nav.scrolled {
  box-shadow: 0 6px 24px rgba(44, 26, 14, 0.06);
  background: rgba(253, 248, 242, 0.96);
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Buttons — quiet refined hover (no shimmer) */
.btn-primary,
.btn-buy,
.btn-instagram {
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s var(--ease-soft),
    box-shadow 0.35s ease;
}
.btn-primary:hover,
.btn-buy:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(232, 131, 74, 0.28);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lbZoom 0.35s cubic-bezier(.2,.7,.2,1);
}
@keyframes lbZoom {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}
.lightbox-close { top: 24px; right: 24px; font-size: 1.8rem; }
.lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover { background: rgba(255,255,255,0.25); transform: scale(1.08); }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.25); transform: translateY(-50%) scale(1.08); }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── 商品圖一律顯示（不依賴 scroll 揭示動畫，避免商品照片裁切隱藏）── */
.shop-img-wrap.img-mask { clip-path: none !important; }
.shop-img-wrap.img-mask img { transform: none !important; }
