:root {
  --bg: #0c0a09;
  --card-bg: rgba(26, 23, 20, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #e2b184;
  --accent-glow: rgba(226, 177, 132, 0.12);
  --text-main: #f5f5f7;
  --text-muted: #a19b95;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Dynamic Ambient Glow */
.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65vw;
  height: 65vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Micro Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.quote-badge {
  border-left: 2px solid var(--accent);
  padding: 0.85rem 0 0.85rem 1.6rem;
  margin: 2.5rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1.4;
}

/* Apple Smooth Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Full Width Hero Section (Anchored to lower third) */
.hero-full-width {
  width: 100vw;
  min-height: 100vh;
  position: relative;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 0 24px 140px 24px;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: none;
  filter: brightness(55%) contrast(105%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 10, 9, 0.2) 0%,
    transparent 35%,
    rgba(12, 10, 9, 0.75) 65%,
    var(--bg) 98%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 8vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  color: var(--accent);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  font-size: 0.98rem;
  color: #cfcac4;
  max-width: 460px;
  line-height: 1.65;
  font-weight: 300;
  margin: 0 auto;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateY(3px);
}

/* Universal Section Spacing & Titles */
.section-spacing {
  padding: 120px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 2.2rem;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.prose {
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text-muted);
  font-weight: 300;
}

.prose p {
  margin-bottom: 1.5rem;
}

/* Centered Layout Utilities */
.section-centered {
  text-align: center;
}

.prose-centered {
  max-width: 620px;
  margin: 0 auto;
}

.quote-badge-centered {
  display: inline-block;
  margin: 2.5rem auto 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--accent);
  line-height: 1.4;
  position: relative;
  padding: 0 1rem;
}

/* Bento Restructure: "How We Got Here" */
.journey-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
  margin-top: 2rem;
  text-align: left;
}

.journey-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.4rem;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-card:hover {
  background: rgba(35, 31, 28, 0.85);
  border-color: rgba(226, 177, 132, 0.35);
  transform: translateY(-3px);
}

.card-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
}

.card-meta span {
  font-size: 1.25rem;
}

.journey-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.journey-card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.68;
  font-weight: 300;
}

/* Split Image Feature */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.image-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  position: relative;
  background: #151311;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-frame:hover img {
  transform: scale(1.03);
}

.image-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(12, 10, 9, 0.92) 10%, transparent 100%);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Interactive Secret Bubbles: "Our little language" */
.secret-hint {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.secrets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.secret-bubble {
  position: relative;
  width: 100%;
  min-height: 140px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 1.8rem;
  cursor: pointer;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-main);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.secret-bubble:hover {
  border-color: rgba(226, 177, 132, 0.4);
  background: rgba(35, 31, 28, 0.75);
  transform: translateY(-3px) scale(1.01);
}

.bubble-icon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.heart-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.secret-bubble:hover .heart-icon {
  transform: scale(1.18);
}

.bubble-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bubble-content {
  position: absolute;
  inset: 0;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bubble-content h4 {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.bubble-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.bubble-content .bento-subtext {
  font-size: 0.92rem !important;
  line-height: 1.6;
  margin-top: 0.25rem;
  color: var(--text-muted) !important;
}

.secret-bubble.unlocked {
  background: rgba(35, 31, 28, 0.95);
  border-color: rgba(226, 177, 132, 0.6);
  box-shadow: 0 12px 30px rgba(226, 177, 132, 0.12);
  cursor: default;
}

.secret-bubble.unlocked .bubble-icon-wrap {
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
}

.secret-bubble.unlocked .bubble-content {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 2.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--card-border);
  background: #151311;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.img-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border: 1px dashed var(--card-border);
}

/* Closing Section */
.closing {
  text-align: center;
  padding: 140px 0 80px 0;
}

.closing-prose {
  max-width: 600px;
  margin: 0 auto;
}

.closing-accent-note {
  font-size: 0.92rem;
  color: var(--accent);
  margin-top: 2rem;
}

.quote-badge-prominent {
  border: none;
  padding: 0;
  margin: 3.5rem 0 1rem 0;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
}

.closing-subtext {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 1rem;
  font-weight: 300;
}

.closing-header-accent {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  margin-top: 0.5rem;
}

/* Interactive Promise & Fireworks Canvas */
.reveal-interactive-wrap {
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
}

#fireworksCanvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  max-width: 900px;
  height: 400px;
  pointer-events: none;
  z-index: 10;
}

.apple-reveal-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 980px;
  background: rgba(226, 177, 132, 0.12);
  border: 1px solid rgba(226, 177, 132, 0.35);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-reveal-btn:hover {
  background: var(--accent);
  color: #0c0a09;
  transform: scale(1.04);
  box-shadow: 0 10px 30px rgba(226, 177, 132, 0.25);
}

.apple-reveal-btn:active {
  transform: scale(0.98);
}

.apple-reveal-btn.fade-out {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.hidden-promise {
  opacity: 0;
  transform: scale(0.9) translateY(12px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.hidden-promise.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.signature-container {
  margin-top: 4.5rem;
}

.signature-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.signature-badge {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--accent);
  margin-top: 0.85rem;
}

.copyright {
  margin-top: 7rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-full-width {
    padding-bottom: 120px;
  }
  .hero-bg-img {
    object-position: center 10%;
  }
  .journey-bento {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .split-feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .secrets-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .section-spacing {
    padding: 80px 0;
  }
  .closing {
    padding: 100px 0 60px 0;
  }
}