/* ====== INTRO ====== */
#intro-overlay {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(160deg, #B8E4F0 0%, #e8f4f8 30%, #FDE8D0 70%, #FFE4D0 100%);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#intro-overlay.fade-out { opacity: 0; visibility: hidden; }

.intro-scene { position: relative; width: 400px; height: 400px; }

.drone {
  position: absolute; top: -120px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  animation: dronefly 2.5s ease-in-out forwards;
}
.drone-body {
  width: 80px; height: 30px; background: var(--dark-choc);
  border-radius: 15px; position: relative; margin: 0 auto;
}
.drone-body::before {
  content: ''; position: absolute; bottom: -4px; left: 50%;
  transform: translateX(-50%); width: 10px; height: 10px;
  background: var(--warm-pink); border-radius: 50%;
  animation: blink 0.6s infinite alternate;
}
.drone-arm-left, .drone-arm-right {
  position: absolute; top: -4px; width: 40px; height: 4px;
  background: var(--soft-brown); border-radius: 2px;
}
.drone-arm-left { left: -30px; transform: rotate(-10deg); }
.drone-arm-right { right: -30px; transform: rotate(10deg); }
.propeller {
  position: absolute; top: -6px; width: 36px; height: 8px;
  background: rgba(61,43,31,0.18); border-radius: 50%;
  border: 1.5px solid rgba(61,43,31,0.25);
  animation: propSpin 0.15s linear infinite;
}
.propeller-left { left: -38px; }
.propeller-right { right: -38px; }
.drone-string {
  position: absolute; bottom: -40px; left: 50%;
  transform: translateX(-50%); width: 2px; height: 40px;
  background: var(--soft-brown);
}

.carried-box {
  position: absolute; top: -120px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  animation: dronefly 2.5s ease-in-out forwards;
}
.box-shape {
  width: 70px; height: 55px; margin-top: 68px;
  background: linear-gradient(145deg, var(--peach), #ffcba4);
  border-radius: 8px; position: relative;
  box-shadow: 0 4px 20px rgba(255,107,138,0.2);
}
.box-shape::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 12px; height: 100%;
  background: var(--warm-pink); border-radius: 2px;
}
.box-shape::after {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); width: 100%; height: 12px;
  background: var(--warm-pink); border-radius: 2px;
}
.box-ribbon-bow { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 30px; height: 20px; }
.bow-left, .bow-right { position: absolute; top: 2px; width: 16px; height: 14px; background: var(--warm-pink); border-radius: 50%; }
.bow-left { left: 0; transform: rotate(-15deg); }
.bow-right { right: 0; transform: rotate(15deg); }

.cake-reveal {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0); opacity: 0;
  animation: cakeAppear 0.8s ease-out 3s forwards; text-align: center;
}
.cake-svg { width: 140px; height: auto; display: block; margin: 0 auto; animation: cakeBounce 0.5s ease 3.5s forwards; }
.intro-text {
  font-family: 'Baloo 2', cursive; font-size: 32px; font-weight: 800;
  color: var(--dark-choc); margin-top: 10px; opacity: 0;
  animation: fadeUp 0.6s ease 3.6s forwards;
}

.sparkle { position: absolute; width: 8px; height: 8px; border-radius: 50%; opacity: 0; }
.sparkle:nth-child(1) { top: 35%; left: 25%; animation: sparkle 0.4s ease 3.2s forwards; background: var(--warm-pink); }
.sparkle:nth-child(2) { top: 25%; left: 65%; animation: sparkle 0.4s ease 3.3s forwards; background: var(--mint); }
.sparkle:nth-child(3) { top: 55%; left: 20%; animation: sparkle 0.4s ease 3.4s forwards; background: var(--peach); }
.sparkle:nth-child(4) { top: 50%; left: 75%; animation: sparkle 0.4s ease 3.5s forwards; background: var(--warm-pink); }
.sparkle:nth-child(5) { top: 30%; left: 40%; animation: sparkle 0.4s ease 3.35s forwards; background: var(--sky); }
.sparkle:nth-child(6) { top: 60%; left: 60%; animation: sparkle 0.4s ease 3.45s forwards; background: var(--mint); }

.skip-intro {
  position: absolute; bottom: 40px; right: 40px;
  font-family: 'Outfit', sans-serif; font-size: 14px;
  color: var(--soft-brown); background: rgba(255,255,255,0.6);
  border: none; padding: 8px 20px; border-radius: 20px;
  cursor: pointer; transition: all 0.3s; backdrop-filter: blur(4px); z-index: 10001;
}
.skip-intro:hover { background: rgba(255,255,255,0.9); color: var(--dark-choc); }

/* Site wrapper */
.site-wrapper { opacity: 0; transition: opacity 0.8s ease 0.3s; }
.site-wrapper.visible { opacity: 1; }

/* ====== KEYFRAMES ====== */
@keyframes dronefly { 0%{top:-120px} 50%{top:120px} 70%{top:140px} 85%{top:140px} 100%{top:-150px;opacity:0} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes propSpin { 0%{transform:scaleX(1)} 25%{transform:scaleX(0.3)} 50%{transform:scaleX(1)} 75%{transform:scaleX(0.3)} 100%{transform:scaleX(1)} }
@keyframes blink { to{opacity:0.3} }
@keyframes cakeAppear { 0%{transform:translate(-50%,-50%) scale(0);opacity:0} 60%{transform:translate(-50%,-50%) scale(1.15);opacity:1} 100%{transform:translate(-50%,-50%) scale(1);opacity:1} }
@keyframes cakeBounce { 0%{transform:translateY(0)} 50%{transform:translateY(-15px)} 100%{transform:translateY(0)} }
@keyframes sparkle { 0%{transform:scale(0);opacity:0} 50%{transform:scale(1.5);opacity:1} 100%{transform:scale(1);opacity:0.7} }
@keyframes fadeUp { from{opacity:0;transform:translateY(15px)} to{opacity:1;transform:translateY(0)} }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes marquee-slow { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes marquee-reverse { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }

/* Mascot keyframes */
@keyframes heroMascotIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mascotFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes mascotPeek { 0%, 100% { transform: rotate(8deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-6px); } }
@keyframes mascotBounce { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-10px) scale(1.03); } }

/* ====== HERO DIORAMA ====== */
.hero-diorama {
  margin-top: 56px; position: relative; max-width: 720px; margin-left: auto; margin-right: auto;
  background: linear-gradient(180deg, #f0e8f4 0%, #FDE8D0 40%, #f5ede4 100%);
  border-radius: 28px; padding: 0; overflow: hidden;
  border: 1.5px solid rgba(139,111,94,0.15);
  box-shadow: 0 4px 20px rgba(61,43,31,0.06);
  opacity: 0; animation: fadeUp 0.8s ease 1.2s forwards;
  perspective: 800px;
}
.diorama-scene { display: block; width: 100%; height: auto; transition: transform 0.3s ease-out; }
.cloud-drift-1 { animation: cloudDrift 12s ease-in-out infinite; }
.cloud-drift-2 { animation: cloudDrift 16s ease-in-out 3s infinite; }
@keyframes cloudDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(12px); } }
.bakery-smoke { animation: smokeRise 3s ease-in-out infinite; transform-origin: center bottom; }
.bakery-smoke:nth-child(2) { animation-delay: 1s; }
.bakery-smoke:nth-child(3) { animation-delay: 2s; }
@keyframes smokeRise { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 40% { opacity: 0.35; } 100% { opacity: 0; transform: translateY(-18px) scale(1.2); } }
.window-glow { animation: windowPulse 4s ease-in-out infinite; }
@keyframes windowPulse { 0%, 100% { opacity: 0.12; } 50% { opacity: 0.25; } }
.diorama-car {
  animation: carDrive 8s ease-in-out 2.4s infinite;
  transform: translateX(260px) translateY(168px);
}
@keyframes carDrive {
  0% { transform: translate(260px, 168px); opacity: 0; } 5% { opacity: 1; }
  10% { transform: translate(260px, 168px); opacity: 1; } 45% { transform: translate(480px, 164px); opacity: 1; }
  55% { transform: translate(480px, 164px); opacity: 1; } 58% { transform: translate(480px, 164px); opacity: 0; } 100% { opacity: 0; }
}
.diorama-mascot {
  position: absolute; bottom: 14%; width: 13%; z-index: 3; opacity: 0;
  animation: mascotJourney 8s ease 2.4s infinite;
}
.diorama-mascot img { width: 100%; height: auto; filter: drop-shadow(0 2px 4px rgba(61,43,31,0.1)); }
@keyframes mascotJourney {
  0% { left: 16%; opacity: 0; transform: translateY(0); } 4% { left: 18%; opacity: 1; }
  6% { transform: translateY(-5px); } 8% { transform: translateY(0); }
  10% { left: 33%; opacity: 1; transform: translateY(0); } 13% { left: 35%; transform: translateY(-20px); }
  16% { left: 37%; transform: translateY(-8px); opacity: 1; } 18% { opacity: 0; }
  52% { left: 66%; opacity: 0; } 54% { left: 67%; opacity: 0; transform: translateY(-16px); }
  56% { left: 68%; opacity: 1; transform: translateY(-18px); } 59% { left: 69%; transform: translateY(0); opacity: 1; }
  62% { transform: translateY(-4px); } 65% { transform: translateY(0); } 68% { transform: translateY(-4px); }
  72% { left: 74%; transform: translateY(0); opacity: 1; } 82% { left: 74%; opacity: 1; transform: translateY(0); }
  90% { left: 74%; opacity: 0; } 100% { left: 74%; opacity: 0; }
}
.diorama-hearts { position: absolute; right: 14%; bottom: 38%; z-index: 4; width: 90px; height: 60px; pointer-events: none; }
.diorama-heart { position: absolute; opacity: 0; animation: heartBurst 8s ease-out 2.4s infinite; }
.diorama-heart:nth-child(1) { width: 28px; height: 28px; left: 0; bottom: 0; }
.diorama-heart:nth-child(2) { width: 22px; height: 22px; left: 34px; bottom: 6px; animation-delay: 2.55s; }
.diorama-heart:nth-child(3) { width: 18px; height: 18px; left: 64px; bottom: 2px; animation-delay: 2.7s; }
@keyframes heartBurst {
  0%, 68% { opacity: 0; transform: translateY(0) scale(0.3); }
  73% { opacity: 1; transform: translateY(-20px) scale(1.1); }
  78% { opacity: 0.8; transform: translateY(-36px) scale(1); }
  88% { opacity: 0; transform: translateY(-55px) scale(0.6) rotate(10deg); } 100% { opacity: 0; }
}
.sun-rays { animation: raysPulse 4s ease-in-out infinite; transform-origin: 360px 28px; }
@keyframes raysPulse { 0%, 100% { opacity: 0.15; transform: rotate(0deg) scale(1); } 50% { opacity: 0.22; transform: rotate(12deg) scale(1.06); } }
.birds-fly { animation: birdsFly 14s linear infinite; }
.birds-fly-2 { animation: birdsFly 18s linear 5s infinite; }
@keyframes birdsFly { 0% { transform: translateX(-80px); opacity: 0; } 5% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(220px); opacity: 0; } }
.dust-puff { opacity: 0; }
.dust-1 { animation: dustPuff 8s ease-out 2.4s infinite; }
.dust-2 { animation: dustPuff 8s ease-out 2.55s infinite; }
.dust-3 { animation: dustPuff 8s ease-out 2.7s infinite; }
.dust-4 { animation: dustPuff 8s ease-out 2.85s infinite; }
.dust-5 { animation: dustPuff 8s ease-out 2.5s infinite; }
@keyframes dustPuff {
  0%, 8% { opacity: 0; transform: scale(0.4) translateX(0); }
  14% { opacity: 0.6; transform: scale(1) translateX(-4px); }
  28% { opacity: 0.4; transform: scale(1.5) translateX(-10px); }
  42% { opacity: 0; transform: scale(2) translateX(-18px); } 100% { opacity: 0; }
}
.diorama-confetti { position: absolute; right: 12%; top: 22%; z-index: 4; width: 80px; height: 60px; pointer-events: none; }
.confetti-piece { position: absolute; width: 6px; height: 6px; border-radius: 1px; opacity: 0; animation: confettiFall 8s ease-out 2.4s infinite; }
.confetti-piece:nth-child(1) { left: 10%; background: #e8a840; animation-delay: 2.4s; }
.confetti-piece:nth-child(2) { left: 30%; background: #a25b5b; animation-delay: 2.5s; width: 4px; height: 8px; }
.confetti-piece:nth-child(3) { left: 50%; background: #A8E6CF; animation-delay: 2.6s; }
.confetti-piece:nth-child(4) { left: 70%; background: #FF6B8A; animation-delay: 2.55s; width: 5px; height: 7px; }
.confetti-piece:nth-child(5) { left: 85%; background: #87CEEB; animation-delay: 2.65s; }
.confetti-piece:nth-child(6) { left: 20%; background: #FFB088; animation-delay: 2.7s; width: 7px; height: 4px; }
@keyframes confettiFall {
  0%, 68% { opacity: 0; transform: translateY(0) rotate(0deg); }
  72% { opacity: 1; transform: translateY(-20px) rotate(40deg); }
  80% { opacity: 0.8; transform: translateY(10px) rotate(120deg); }
  90% { opacity: 0.3; transform: translateY(35px) rotate(200deg); }
  100% { opacity: 0; transform: translateY(50px) rotate(260deg); }
}
.cat-tail { animation: tailSwish 1.5s ease-in-out infinite; transform-origin: 14px 12px; }
@keyframes tailSwish { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(15deg); } 70% { transform: rotate(-10deg); } }
.bakery-door { transform-origin: 35px 80px; animation: doorSwing 8s ease-in-out 2.4s infinite; }
@keyframes doorSwing { 0%, 2% { transform: scaleX(1); } 5% { transform: scaleX(0.15); } 14% { transform: scaleX(0.15); } 18% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
.office-win-1 { animation: winLight 8s ease 2.4s infinite; }
.office-win-2 { animation: winLight 8s ease 2.6s infinite; }
.office-win-3 { animation: winLight 8s ease 2.8s infinite; }
.office-win-4 { animation: winLight 8s ease 3.0s infinite; }
.office-win-5 { animation: winLight 8s ease 3.2s infinite; }
@keyframes winLight { 0%, 68% { fill: #d4e4f0; } 74% { fill: #e8a840; opacity: 0.35; } 82% { fill: #e8a840; opacity: 0.35; } 90% { fill: #d4e4f0; } 100% { fill: #d4e4f0; } }
.dog-tail { animation: wagTail 0.6s ease-in-out infinite alternate; transform-origin: 4px 8px; }
@keyframes wagTail { 0% { transform: rotate(-15deg); } 100% { transform: rotate(20deg); } }
.dog-head { animation: headBob 3s ease-in-out infinite; }
@keyframes headBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
.person-wave { animation: armWave 8s ease 2.4s infinite; transform-origin: 5px 14px; }
@keyframes armWave { 0%, 30% { transform: rotate(0deg); } 34% { transform: rotate(-20deg); } 38% { transform: rotate(-5deg); } 42% { transform: rotate(-20deg); } 46% { transform: rotate(0deg); } 100% { transform: rotate(0deg); } }
.person-mouth { animation: mouthOpen 8s ease 2.4s infinite; }
@keyframes mouthOpen { 0%, 30% { ry: 1.2; } 33% { ry: 2.5; } 44% { ry: 2.5; } 48% { ry: 1.2; } 100% { ry: 1.2; } }
.speech-bubble { opacity: 0; animation: bubblePop 8s ease 2.4s infinite; }
@keyframes bubblePop { 0%, 30% { opacity: 0; transform: scale(0.5) translateY(4px); } 34% { opacity: 1; transform: scale(1.05) translateY(0); } 38% { transform: scale(1); } 50% { opacity: 1; } 55% { opacity: 0; transform: scale(0.9) translateY(2px); } 100% { opacity: 0; } }
.tree-sway { animation: treeSway 5s ease-in-out infinite; transform-origin: center bottom; }
@keyframes treeSway { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(1.5deg); } 75% { transform: rotate(-1deg); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
