* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #4a4a48;
  background: #fff;
}

/* ---------- animated pastel gradient background ---------- */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, #faf8f4, #f1ede4, #e7e2d7, #f2eee6, #faf8f4);
  background-size: 300% 300%;
  animation: gradientShift 18s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ---------- confetti & floating emoji ---------- */
.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -6%;
  width: 6px;
  height: 11px;
  border-radius: 2px;
  opacity: 0.5;
  animation-name: confettiFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
@keyframes confettiFall {
  0%   { transform: translateY(-10vh) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(620deg); }
}

.emoji-piece {
  position: absolute;
  bottom: -8%;
  font-size: 17px;
  opacity: 0;
  filter: grayscale(1) contrast(0.85);
  animation-name: emojiRise;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes emojiRise {
  0%   { transform: translateY(0) translateX(0) rotate(-10deg); opacity: 0; }
  12%  { opacity: 0.45; }
  50%  { transform: translateY(-55vh) translateX(15px) rotate(10deg); opacity: 0.45; }
  88%  { opacity: 0; }
  100% { transform: translateY(-115vh) translateX(-12px) rotate(-10deg); opacity: 0; }
}

/* ---------- layout ---------- */
.page {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  height: 100vh;
  width: 100vw;
}

.column {
  position: relative;
  height: 100vh;
}

/* ---------- photo slots: two per side, flying in/out ---------- */
.photo-slot {
  position: absolute;
  width: min(48%, 200px);
  aspect-ratio: 3 / 4;
}

.photo-slot { width: min(44%, 175px); }

.column.left .slot-a { top: 2%; left: 6%; }
.column.left .slot-b { top: 36%; right: 2%; }
.column.left .slot-c { top: 70%; left: 12%; }
.column.right .slot-a { top: 2%; right: 6%; }
.column.right .slot-b { top: 36%; left: 2%; }
.column.right .slot-c { top: 70%; right: 12%; }

.bottom-photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6%;
  width: 100%;
  margin-top: 2vh;
}
.bottom-photos .photo-slot.bottom-slot {
  position: relative;
  width: min(30%, 150px);
}

.photo-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 5px solid #ffffff;
  box-shadow: 0 16px 34px rgba(120, 70, 130, 0.18);
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  background: #fff;
}

/* ---------- center ---------- */
.center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 6vh;
  height: 100vh;
}

.badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 3vh;
}

.emoji-deco {
  display: inline-block;
  font-size: 26px;
  opacity: 0.55;
  filter: grayscale(1) contrast(0.9);
  animation: emojiFloat 3.4s ease-in-out infinite;
}
.emoji-deco:last-child { animation-delay: 0.7s; }

@keyframes emojiFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-6px) rotate(6deg); }
}

.title {
  margin: 0;
  font-family: "Permanent Marker", "Baloo 2", cursive;
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.5px;
  word-break: keep-all;
  overflow-wrap: normal;
  color: #33302a;
  text-shadow:
    1px 1px 0 #cfc6b4,
    2px 2px 0 #cfc6b4,
    3px 3px 0 #b9ae97,
    4px 4px 0 #b9ae97,
    5px 6px 10px rgba(60, 52, 38, 0.35);
  animation: titleBob 4s ease-in-out infinite;
}

.title .line { display: block; }
.title .line1 { transform: rotate(-2.5deg); }
.title .line2 { transform: rotate(1.8deg); }

@keyframes titleBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(0.4deg); }
}

/* ---------- rising, fading text ---------- */
.text-scroll {
  position: relative;
  width: min(88%, 520px);
  height: 56vh;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%, black 86%, transparent 100%);
}

.track-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  animation: riseUp 42s linear infinite;
}

@keyframes riseUp {
  from { transform: translateY(0%); }
  to   { transform: translateY(-50%); }
}

.text-block {
  padding: 6vh 8px;
  text-align: center;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 2;
  font-weight: 300;
  color: #5b5450;
}

.text-block p {
  margin: 0 0 1.5em 0;
}

.text-block .accent {
  font-family: "Baloo 2", cursive;
  font-weight: 700;
  font-size: 1.3em;
  letter-spacing: 0.3px;
  color: #8a6d3f;
}

/* ---------- responsive ---------- */
@media (max-width: 800px) {
  .page { grid-template-columns: 0.85fr 1.9fr 0.85fr; }
  .photo-slot { width: min(90%, 105px); }
  .text-scroll { height: 44vh; }
  .title { font-size: 32px; }
  .emoji-deco { font-size: 20px; }
  .bottom-photos .photo-slot.bottom-slot { width: min(34%, 105px); }
}
