/* ============================================
   juhi.shitijhalder.in — Design System
   Deep Umber / Candlelit Intimate Theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Palette */
  --bg: #1A1410;
  --bg-alt: #1f1915;
  --surface: rgba(255, 240, 225, 0.04);
  --surface-hover: rgba(255, 240, 225, 0.07);
  --text: #F2E6D9;
  --text-muted: #8A7E74;
  --terracotta: #C45D3E;
  --wine: #7A2E3B;
  --amber: #E8A87C;
  --amber-soft: rgba(232, 168, 124, 0.12);
  --amber-glow: rgba(232, 168, 124, 0.25);
  --heart: #e05a6d;
  --border: rgba(232, 168, 124, 0.12);
  --border-hover: rgba(232, 168, 124, 0.25);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
  --font-hand: 'Reenie Beanie', cursive;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.5s;
  --dur-slow: 1.2s;

  /* Layout */
  --max-width: 900px;
  --max-width-wide: 1100px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: rgba(196, 93, 62, 0.35);
  color: var(--text);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--amber-soft);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--amber); }

img { max-width: 100%; display: block; }
a { color: var(--amber); text-decoration: none; transition: color var(--dur-fast) ease; }
a:hover { color: var(--terracotta); }

/* --- Noise Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- Typography --- */
.font-display { font-family: var(--font-display); }
.font-hand { font-family: var(--font-hand); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--wide {
  max-width: var(--max-width-wide);
}

section {
  padding: var(--space-2xl) 0;
  position: relative;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-lg);
  padding-bottom: 5rem;
  box-sizing: border-box;
}

.hero__photo-wrapper {
  width: 92%;
  max-width: 680px;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(232, 168, 124, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(232, 168, 124, 0.2);
  margin-bottom: var(--space-md);
  position: relative;
  background: rgba(255, 240, 225, 0.03);
  opacity: 0;
  transform: translateY(30px) scale(0.94);
  filter: blur(8px);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.hero__photo-wrapper:hover {
  border-color: var(--amber);
  transform: scale(1.02);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 60px rgba(232, 168, 124, 0.3);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(196, 93, 62, 0.18), rgba(122, 46, 59, 0.18));
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-align: center;
  padding: var(--space-lg);
  box-sizing: border-box;
  gap: 6px;
}

.hero__photo-placeholder .photo-icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.hero__photo-placeholder small {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 10vw, 7rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: var(--space-xs);
  opacity: 0;
  transform: translateY(25px);
  filter: blur(6px);
}

.hero__date {
  font-family: var(--font-hand);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  color: var(--amber);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  opacity: 0;
  transform: translateY(20px);
  filter: blur(4px);
}

.hero__counter {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(15px);
}

.hero__scroll-hint {
  position: absolute !important;
  bottom: 1.5rem !important;
  left: 50% !important;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  opacity: 0;
  z-index: 10;
}

.hero__scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 45px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Hearts Canvas --- */
#hearts-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero > *:not(#hearts-canvas):not(.ambient-glow):not(.hero__scroll-hint) { position: relative; z-index: 1; }

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  font-style: italic;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
  margin: var(--space-md) auto 0;
}

.section-subtitle {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: calc(-1 * var(--space-lg));
  margin-bottom: var(--space-xl);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), var(--amber-soft), var(--border), transparent);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  width: 50%;
  padding: 0 var(--space-xl) var(--space-2xl);
  opacity: 0;
  transform: translateY(40px);
}

.timeline__item--left {
  left: 0;
  padding-right: var(--space-xl);
  text-align: right;
}

.timeline__item--right {
  left: 50%;
  padding-left: var(--space-xl);
  text-align: left;
}

.timeline__dot {
  position: absolute;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--amber-soft), 0 0 20px rgba(196, 93, 62, 0.3);
  z-index: 2;
}

.timeline__item--left .timeline__dot { right: calc(-6px - var(--space-xl) + var(--space-xl)); right: -6px; }
.timeline__item--right .timeline__dot { left: -6px; }

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: block;
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--space-lg);
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(232, 168, 124, 0.05);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber);
  background: rgba(232, 168, 124, 0.08);
  border: 1px solid rgba(232, 168, 124, 0.15);
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
}

/* Card — Chat Excerpt */
.card--chat {
  padding: var(--space-md) var(--space-lg);
}

.chat-bubble {
  padding: var(--space-sm) var(--space-md);
  border-radius: 16px;
  margin-bottom: var(--space-sm);
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

.chat-bubble--shitij {
  background: rgba(196, 93, 62, 0.12);
  border: 1px solid rgba(196, 93, 62, 0.2);
  margin-left: auto;
  border-bottom-right-radius: 4px;
  text-align: right;
  color: var(--text);
}

.chat-bubble--juhi {
  background: rgba(122, 46, 59, 0.15);
  border: 1px solid rgba(122, 46, 59, 0.25);
  margin-right: auto;
  border-bottom-left-radius: 4px;
  text-align: left;
  color: var(--text);
}

.chat-speaker {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
  display: block;
}

/* Card — Milestone */
.card--milestone {
  background: linear-gradient(135deg, rgba(196, 93, 62, 0.08), rgba(122, 46, 59, 0.08));
  border: 1px solid rgba(196, 93, 62, 0.2);
  padding: var(--space-xl);
  text-align: center;
}

.card--milestone .card__title {
  font-size: 2rem;
  color: var(--amber);
}

.card--milestone::before {
  content: '♥';
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.5rem;
  color: var(--heart);
  opacity: 0.3;
}

/* Card — Love Letter */
.card--letter {
  background: linear-gradient(135deg, rgba(255, 240, 225, 0.03), rgba(255, 240, 225, 0.01));
  border: 1px dashed var(--border);
  padding: var(--space-xl);
}

.card--letter .card__text {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text);
}

.card--letter .card__attribution {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
  letter-spacing: 0.1em;
}

/* Card — Photo */
.card--photo {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.card--photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.card--photo:hover img {
  transform: scale(1.05);
}

.card--photo .card__caption {
  padding: var(--space-md);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* --- Love Letters Section --- */
.love-letters { background: var(--bg-alt); }

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-md);
}

.gallery-grid .card--photo {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
}

/* --- Stats Section --- */
/* --- Closing Section (Fluid Transition to Footer) --- */
.closing-section {
  padding: var(--space-2xl) 0 var(--space-md) 0;
  position: relative;
}

.closing-note-card {
  background: rgba(38, 28, 22, 0.4);
  border: 1px solid rgba(232, 168, 124, 0.15);
  border-radius: 24px;
  padding: var(--space-xl) var(--space-lg);
  backdrop-filter: blur(10px);
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.closing-stars {
  color: var(--amber);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--amber-bright);
  margin-bottom: var(--space-md);
}

.closing-text {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --- Footer --- */
.site-footer {
  text-align: center;
  padding: var(--space-lg) var(--space-lg) var(--space-2xl) var(--space-lg);
  border-top: none;
}

.footer__quote {
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--amber);
  max-width: 500px;
  margin: 0 auto var(--space-md);
  line-height: 1.4;
}

.footer__made {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer__made .heart {
  color: var(--heart);
  display: inline-block;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
}

/* --- Scroll Reveal Utility --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .timeline__line { left: 20px; }
  .timeline__item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px !important;
    padding-right: var(--space-md) !important;
    text-align: left !important;
  }
  .timeline__dot {
    left: 14px !important;
    right: auto !important;
  }
  .hero__title { font-size: clamp(3rem, 15vw, 5rem); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .card--milestone .card__title { font-size: 1.5rem; }
  .card--letter .card__text { font-size: 1.2rem; }
  section { padding: var(--space-xl) 0; }
  .container { padding: 0 var(--space-md); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero { min-height: 80vh; }
  .chat-bubble { max-width: 95%; }
}

/* --- Photo placeholder gradient --- */
.photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.photo-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(196, 93, 62, 0.15),
    rgba(122, 46, 59, 0.15),
    rgba(232, 168, 124, 0.1));
}

.photo-placeholder::after {
  content: '📸';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.5;
}

/* --- Ambient Glow --- */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.glow--terracotta {
  background: rgba(196, 93, 62, 0.08);
  width: 400px;
  height: 400px;
}

.glow--wine {
  background: rgba(122, 46, 59, 0.06);
  width: 500px;
  height: 500px;
}

/* ============================================
   Story Flow Upgrades
   ============================================ */

/* --- Sticky Constellation & Filter Controls --- */
.story-controls {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(26, 20, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.constellation-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

.constellation-node {
  background: transparent;
  border: 1px solid rgba(232, 168, 124, 0.2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--dur-fast) ease;
}

.constellation-node:hover, .constellation-node.is-active {
  background: rgba(196, 93, 62, 0.25);
  border-color: var(--amber);
  color: var(--text);
  box-shadow: 0 0 15px rgba(232, 168, 124, 0.3);
}

.filter-tabs {
  display: flex;
  gap: var(--space-xs);
}

.filter-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--dur-fast) ease;
}

.filter-tab:hover, .filter-tab.is-active {
  color: var(--amber);
  background: rgba(255, 240, 225, 0.06);
}

/* --- Narrative Act Banners --- */
.act-banner {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  margin: var(--space-2xl) 0 var(--space-xl) 0;
  background: linear-gradient(135deg, rgba(38, 28, 22, 0.9), rgba(26, 20, 16, 0.95));
  border: 1px solid rgba(196, 93, 62, 0.25);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(196, 93, 62, 0.05);
  position: relative;
  overflow: hidden;
}

.act-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--amber), transparent);
}

.act__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: var(--space-xs);
}

.act__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.act__subtitle {
  font-family: var(--font-hand);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-muted);
}

/* --- Wax-Sealed Letters --- */
.card--wax-letter {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-med) var(--ease-out);
  border: 1px dashed rgba(196, 93, 62, 0.4);
}

.wax-seal-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  text-align: center;
  gap: var(--space-xs);
  transition: opacity var(--dur-med) ease;
}

.wax-seal {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--terracotta) 0%, var(--wine) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(122, 46, 59, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  animation: sealPulse 2.5s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(122, 46, 59, 0.6); }
  50% { transform: scale(1.06); box-shadow: 0 6px 25px rgba(196, 93, 62, 0.8); }
}

.wax-seal-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
}

.letter-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-med) ease, transform var(--dur-med) ease;
}

.card--wax-letter.is-open {
  border-style: solid;
  border-color: var(--amber-soft);
  background: rgba(38, 28, 22, 0.95);
}

.card--wax-letter.is-open .wax-seal-wrapper {
  display: none;
}

.card--wax-letter.is-open .letter-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* --- Polaroid 3D Stack --- */
.polaroid-card {
  background: #FDFBF7;
  padding: 12px 12px 24px 12px;
  border-radius: 6px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid-card:hover {
  transform: translateY(-8px) rotate(1deg) scale(1.02);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 168, 124, 0.2);
}

.polaroid-tape {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 80px;
  height: 24px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 5;
}

.polaroid-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #110D0A;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.polaroid-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: #261C16;
  text-align: center;
  margin-top: 12px;
}

/* --- Photo Strip & Gallery Cards --- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.photo-placeholder-box {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: #1c1511;
  border: 1px dashed rgba(232, 168, 124, 0.25);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--amber);
  text-align: center;
  padding: var(--space-sm);
  gap: var(--space-xs);
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 10, 8, 0.92);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 800px;
  width: 90%;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.lightbox-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  padding: var(--space-md);
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--amber);
}

.lightbox-close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

/* --- Redesigned Moments Section (Caption-less Organic Gallery) --- */
.moments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  perspective: 1000px;
}

.moment-card {
  background: #FDFBF7;
  padding: 12px 12px 16px 12px;
  border-radius: 4px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.moment-card:hover {
  transform: translateY(-10px) scale(1.04) rotate(0deg) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(232, 168, 124, 0.25);
  z-index: 10;
}

.moment-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
  height: 20px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 5;
}

.moment-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #19120e;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.moment-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.moment-card:hover .moment-img-wrapper img {
  transform: scale(1.06);
}

/* --- Commitment Centerpiece Card --- */
.card--commitment-centerpiece {
  background: radial-gradient(circle at top left, rgba(224, 90, 109, 0.14), rgba(38, 28, 22, 0.95) 75%);
  border: 1px solid rgba(224, 90, 109, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(224, 90, 109, 0.25);
  padding: var(--space-xl);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.card--commitment-centerpiece::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--heart), transparent);
}

.commitment-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(224, 90, 109, 0.15);
  border: 1px solid rgba(224, 90, 109, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--heart);
  margin-bottom: var(--space-md);
}

.commitment-badge .pulse-heart {
  display: inline-block;
  animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.commitment-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.commitment-dialogue {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding-left: var(--space-md);
  border-left: 2px solid rgba(224, 90, 109, 0.3);
}

.dialogue-line {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.dialogue-line strong {
  color: var(--amber);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-right: 8px;
}

.dialogue-line.dialogue-line--highlight {
  color: var(--text);
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--dur-med) var(--ease-out);
}

.quote-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.quote-card::before {
  content: "“";
  position: absolute;
  top: -10px;
  right: 15px;
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 1;
  color: rgba(232, 168, 124, 0.06);
  pointer-events: none;
  font-style: italic;
}

.quote-card--accent {
  background: radial-gradient(circle at top right, rgba(196, 93, 62, 0.1), var(--surface) 80%);
  border-color: rgba(196, 93, 62, 0.25);
}

.quote-card--heart {
  background: radial-gradient(circle at top right, rgba(224, 90, 109, 0.12), var(--surface) 80%);
  border-color: rgba(224, 90, 109, 0.25);
}

.quote-card--wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .quote-card--wide {
    grid-column: span 2;
  }
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.quote-card__body {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.quote-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: var(--space-sm);
  margin-top: auto;
}

/* --- Embedded Retro Player inside Commitment Card --- */
.retro-player-embedded {
  margin-top: var(--space-lg);
  padding: 1.2rem;
  background: rgba(18, 12, 9, 0.85);
  border: 1px solid rgba(232, 168, 124, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 8px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.retro-player-embedded:hover {
  border-color: rgba(232, 168, 124, 0.45);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6), 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(232, 168, 124, 0.15);
}

.retro-player-embedded::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), var(--amber), var(--heart));
}

.retro-vinyl-box {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}

.vinyl-disc {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #111 0%, #111 20%,
    #8b3a2b 21%, #6e2734 32%,
    #181818 33%, #0d0d0d 42%, #222 43%, #111 52%,
    #0a0a0a 65%, #1a1a1a 75%, #050505 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.retro-player-embedded.is-playing .vinyl-disc {
  animation: spinVinyl 3.5s linear infinite;
}

@keyframes spinVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.vinyl-label {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 2px solid #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.45rem;
  letter-spacing: 0.05em;
}

.vinyl-center-hole {
  width: 5px;
  height: 5px;
  background: #111;
  border-radius: 50%;
  margin-top: 1px;
}

.retro-info-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.retro-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

.retro-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
}

.retro-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a2b22;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.retro-player-embedded.is-playing .retro-led {
  background: #e05a6d;
  box-shadow: 0 0 10px #e05a6d, 0 0 20px #e05a6d;
}

.retro-song-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--amber-bright);
  margin: 0 0 0.1rem 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.retro-artist {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin: 0 0 0.4rem 0;
}

.retro-player-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.3rem;
}

.retro-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber) 0%, var(--terracotta) 100%);
  border: none;
  color: #1a120c;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(196, 93, 62, 0.4), inset 0 2px 2px rgba(255, 255, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.retro-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(196, 93, 62, 0.6);
}

.retro-progress-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.retro-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(232, 168, 124, 0.15);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.retro-progress-fill {
  width: 0%;
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.retro-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@media (max-width: 480px) {
  .retro-player-embedded {
    flex-direction: column;
    text-align: center;
  }
  .retro-info-box {
    text-align: center;
    width: 100%;
  }
  .retro-meta-row {
    justify-content: center;
    gap: 0.5rem;
  }
}

.quote-card__author {
  color: var(--amber);
}
