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

:root {
  --cream: #F2EAD9;
  --brown: #5a3a2a;
  --rose:  #c0556a;
  --muted: #8a6a5a;
  --line:  #c8b89a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

/* ── LOADING ── */
#loveLoading {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  transition: opacity 0.5s;
}
.love-loading-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #c8b89a;
  animation: ldot 1.2s ease-in-out infinite;
}
@keyframes ldot {
  0%,100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* ── INTRO OVERLAY ── */
#love-intro {
  position: fixed; inset: 0; z-index: 10;
  background: var(--cream);
  transition: opacity 0.8s ease;
}
#loveCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  opacity: 0; z-index: 2; pointer-events: none;
}
#envelopeWrap {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3; cursor: pointer; opacity: 0;
  display: flex; flex-direction: column; align-items: center;
}
#envSizer {
  position: relative;
  width: min(650px, 92vw);
  height: min(490px, 69vw);
}
.love-envelope {
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: min(650px, 92vw);
  height: auto; max-height: min(490px, 69vw);
  object-fit: contain; pointer-events: none;
  user-select: none; -webkit-user-drag: none;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,0.14));
}
#envClosed {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.34,1.56,0.64,1);
}
#envOpened {
  opacity: 0;
  transition: opacity 0.4s ease-in, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  transform: translateX(-50%) scale(1.02);
}
#tapHint {
  margin-top: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(15px, 3vw, 18px);
  color: #8a7a6a; letter-spacing: 0.12em;
  opacity: 0; transition: opacity 0.6s ease;
  white-space: nowrap; pointer-events: none;
}
#revealHint {
  position: fixed; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 4;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(15px, 3vw, 18px);
  color: #5a4a3a; letter-spacing: 0.12em;
  opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer; white-space: nowrap;
  text-shadow: 0 1px 8px rgba(242,234,217,0.9);
  pointer-events: none;
}

/* ── STORY ── */
#story {
  opacity: 0; transition: opacity 1.2s ease;
  min-height: 100vh;
}
#story.show { opacity: 1; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
  position: relative;
}
.hero-label {
  font-family: 'Caveat', cursive;
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--rose); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 20px; opacity: 0.8;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 9vw, 90px);
  font-weight: 300; font-style: italic;
  color: var(--brown); line-height: 1.1; margin-bottom: 32px;
}
.hero-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300; font-style: italic;
  color: var(--muted); max-width: 560px;
  line-height: 1.8; margin-bottom: 20px;
}
.hero-text.apology {
  font-family: 'Caveat', cursive;
  font-size: clamp(20px, 3.5vw, 28px);
  font-style: normal; color: var(--brown);
  max-width: 620px; line-height: 1.9;
}
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 14px;
  color: var(--line); letter-spacing: 0.12em;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── JOURNEY ── */
.journey {
  padding: 60px 24px 120px;
  max-width: 900px; margin: 0 auto;
}
.journey-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 300; font-style: italic;
  color: var(--brown); text-align: center; margin-bottom: 80px;
}

/* ── POLAROID ── */
.stop {
  display: flex; align-items: flex-start;
  gap: 40px; margin-bottom: 100px;
}
.stop:nth-child(even) { flex-direction: row-reverse; }

.polaroid {
  flex-shrink: 0; background: #fff;
  padding: 16px 16px 52px;
  box-shadow: 0 8px 32px rgba(90,58,42,0.12), 0 2px 8px rgba(90,58,42,0.08);
  width: min(280px, 80vw);
  position: relative; transform: rotate(-2deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stop:nth-child(even) .polaroid { transform: rotate(2deg); }
.polaroid:hover {
  transform: rotate(0deg) scale(1.03) !important;
  box-shadow: 0 16px 48px rgba(90,58,42,0.18);
}
.polaroid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover; display: block;
}
.polaroid-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: clamp(15px, 2.5vw, 18px);
  color: #6a5a4a; text-align: center; padding: 0 12px;
}
.polaroid::before {
  content: '';
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 24px;
  background: rgba(255,220,150,0.5);
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── STOP TEXT ── */
.stop-text { flex: 1; padding-top: 20px; }
.stop-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; font-style: italic;
  color: var(--rose); letter-spacing: 0.2em;
  text-transform: uppercase; margin-bottom: 12px; opacity: 0.8;
}
.stop-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 300; font-style: italic;
  color: var(--brown); margin-bottom: 16px; line-height: 1.3;
}
.stop-body {
  font-family: 'Caveat', cursive;
  font-size: clamp(17px, 2.8vw, 21px);
  color: var(--muted); line-height: 1.7;
}

/* ── CONNECTOR ── */
.connector {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: -40px auto 20px; position: relative; z-index: 2;
}
.connector-line {
  width: 2px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--line), transparent);
}
.connector-plane {
  font-size: 24px; display: block;
  text-align: center; margin: 6px 0;
  transform: rotate(-45deg); opacity: 0.6;
}

/* ── FINALE ── */
.finale {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
  background: linear-gradient(to bottom, var(--cream), #ede0cc);
}
.finale-label {
  font-family: 'Caveat', cursive;
  font-size: 16px; color: var(--rose);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px; opacity: 0.8;
}
.finale h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 300; font-style: italic;
  color: var(--brown); line-height: 1.2; margin-bottom: 24px;
}
.nick-judy {
  width: min(320px, 80vw);
  margin: 0 auto 40px;
}
.nick-judy img { width: 100%; height: auto; }
.finale-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 4vw, 32px);
  font-style: italic; font-weight: 300;
  color: var(--brown); max-width: 500px;
  line-height: 1.6; margin: 0 auto 24px;
}
.finale-quote span { color: var(--rose); }
.finale-sign {
  font-family: 'Caveat', cursive;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--muted); margin-top: 32px;
}
.heart-big {
  font-size: 48px; display: block;
  margin: 16px auto;
  animation: hbeat 1.4s ease-in-out infinite;
}
@keyframes hbeat {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.zootopia-reveal {
    margin-top: 120px;
}

/* ── Zootopia hint ── */
.zootopia-hint {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--muted);
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 20px;
}

/* ── Love letter ── */
.love-letter {
  max-width: 480px;
  margin: 60px auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 16px 100px;
}

.love-letter p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--brown);
  line-height: 1.8;
}

.love-letter-sign {
  font-family: 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: clamp(22px, 4vw, 30px) !important;
  color: var(--rose) !important;
  margin-top: 12px;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .stop { flex-direction: column !important; align-items: center; }
  .stop-text { padding-top: 0; text-align: center; }
  .polaroid { transform: rotate(-1.5deg) !important; }
  .stop:nth-child(even) .polaroid { transform: rotate(1.5deg) !important; }
}