/* ============================================================
   BIRTHDAY SITE — forher.cristianvillada.com
   Design System: Cinematic Film Diary
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@300;400&display=swap');

/* ── CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --bg-deep:       #0d0905;
  --bg-warm:       #15100b;
  --bg-card:       #1a1308;
  --champagne:     #e8c98a;
  --cream:         #f5ede0;
  --red:           #c94040;
  --text-muted:    rgba(245, 237, 224, 0.42);
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'EB Garamond', Georgia, serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;
  --section-pad:   120px;
  --page-pad:      80px;
  --photo-border:  8px solid rgba(255, 255, 255, 0.88);
  --photo-shadow:  0 12px 60px rgba(0,0,0,0.85), 0 4px 20px rgba(0,0,0,0.6);
  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
body {
  background-color: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
@media (hover: hover) { body { cursor: none; } }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.95s var(--ease-smooth), transform 0.95s var(--ease-smooth);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.38s; }
.reveal-d4 { transition-delay: 0.52s; }

/* ── TYPOGRAPHY TOKENS ──────────────────────────────────── */
.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.38em;
  color: var(--champagne);
  opacity: 0.55;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  color: var(--champagne);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.caption {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.88;
  max-width: 520px;
  opacity: 0.88;
}
.date {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.18em;
  color: var(--red);
  margin-bottom: 14px;
}

/* ── PHOTO FRAME TREATMENT ──────────────────────────────── */
.photo-frame {
  position: relative;
  border: var(--photo-border);
  box-shadow: var(--photo-shadow);
  overflow: hidden;
  background: linear-gradient(135deg, #1a1005 0%, #2d1e0a 50%, #15100a 100%);
  will-change: transform;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0,0,0,0.52) 100%);
  pointer-events: none;
  z-index: 1;
}
.photo-frame img,
.photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -25%;
  background-image: url('love/photo-25.jpg');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  filter: brightness(0.3) saturate(0.65);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(13,9,5,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  color: var(--champagne);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0;
  margin-bottom: 18px;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.65rem);
  color: var(--cream);
  font-style: italic;
  font-weight: 300;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
  margin-bottom: 36px;
}
.hero-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin: 30px auto;
  opacity: 0;
  transform: scaleX(0.2);
  transition: opacity 0.6s ease, transform 1s var(--ease-smooth);
}
.hero-rule::before,
.hero-rule::after {
  content: '';
  display: block;
  width: 90px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--champagne), transparent);
  opacity: 0.55;
}
.hero-rule span { color: var(--champagne); font-size: 0.85rem; opacity: 0.65; }
.hero-scroll {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--cream);
  opacity: 0;
  animation: heroPulse 2.8s ease-in-out infinite;
  transition: opacity 0.7s ease;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

/* ── INTRO / LETTER ─────────────────────────────────────── */
.intro-section {
  padding: var(--section-pad) var(--page-pad);
  display: flex;
  justify-content: center;
}
.intro-inner { max-width: 640px; }
.letter-body p {
  font-family: var(--font-body);
  font-size: 1.22rem;
  line-height: 2.05;
  color: var(--cream);
  opacity: 0.9;
  margin-bottom: 1.4em;
}
.flourish {
  font-size: 2.4rem;
  color: var(--champagne);
  opacity: 0.35;
  margin-top: 32px;
  font-family: Georgia, serif;
  display: block;
}

/* ── PHOTO SECTIONS — BASE ──────────────────────────────── */
.photo-section {
  padding: var(--section-pad) 0;
  position: relative;
}
.photo-section > .label {
  padding: 0 var(--page-pad);
}

/* ── SECTION A — Full-Bleed Offset ─────────────────────── */
.section-a .section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  gap: 70px;
  margin-top: 44px;
}
.section-a .caption-block { flex: 0 0 290px; }
.section-a .photo-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.section-a .photo-frame {
  width: 82%;
  transform: rotate(1.5deg);
}
.section-a .photo-frame img {
  width: 100%;
  max-height: 660px;
  object-fit: cover;
}

/* ── SECTION B — Diptych ────────────────────────────────── */
.section-b { text-align: center; }
.section-b > .label { text-align: left; }
.diptych {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  padding: 0 var(--page-pad);
  margin-top: 44px;
}
.diptych-photo-a { width: 41%; height: 530px; flex-shrink: 0; }
.diptych-photo-b { width: 37%; height: 465px; flex-shrink: 0; }
.diptych-photo-a img,
.diptych-photo-b img { width: 100%; height: 100%; object-fit: cover; }
.diptych-amp {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--champagne);
  opacity: 0.22;
  align-self: center;
  flex-shrink: 0;
  line-height: 1;
}
.diptych-date {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-top: 28px;
  text-align: center;
}

/* ── SECTION C — Full Bleed + Overlay ──────────────────── */
.section-c { padding: 0; }
.section-c > .label {
  padding: var(--section-pad) var(--page-pad) 0;
  margin-bottom: 44px;
}
.full-bleed-wrap {
  position: relative;
  height: 66vh;
  min-height: 400px;
  overflow: hidden;
}
.full-bleed-wrap > img,
.full-bleed-wrap > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.dual-video-wrap {
  position: relative;
  height: 66vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  gap: 2px;
}
.dual-video-wrap .dual-video-item {
  flex: 0 0 calc(50% - 1px);
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.photo-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 80px var(--page-pad) 56px;
  background: linear-gradient(to top, rgba(13,9,5,0.95) 0%, rgba(13,9,5,0.5) 55%, transparent 100%);
}
.photo-overlay blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  max-width: 700px;
  line-height: 1.38;
}

/* ── SECTION D — Film Strip ─────────────────────────────── */
.section-d > .label { margin-bottom: 44px; }
.film-strip-outer {
  background: #050302;
  border-top: 1px solid #1a1208;
  border-bottom: 1px solid #1a1208;
}
.sprocket-row {
  display: flex;
  align-items: center;
  padding: 7px 32px;
  gap: 32px;
  overflow: hidden;
}
.sprocket-hole {
  flex-shrink: 0;
  width: 20px;
  height: 14px;
  background: var(--bg-deep);
  border: 1.5px solid #221a0e;
  border-radius: 2px;
}
.film-strip-scroll {
  display: flex;
  gap: 14px;
  padding: 20px 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.film-strip-scroll:active { cursor: grabbing; }
.film-strip-scroll::-webkit-scrollbar { display: none; }
.film-frame { flex-shrink: 0; scroll-snap-align: start; }
.film-frame .photo-frame {
  width: 280px;
  height: 280px;
}
.film-frame .photo-frame img,
.film-frame .photo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── VIDEOS — Moving Moments ────────────────────────────── */
.section-videos > .label { margin-bottom: 12px; }
.section-videos .section-title {
  padding: 0 var(--page-pad);
  margin-bottom: 50px;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.video-wrap { position: relative; }
.video-wrap .photo-frame { aspect-ratio: 9/16; }
.video-wrap .photo-frame video { object-fit: cover; }
.video-overlay-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: rgba(255,255,255,0.7);
  opacity: 1;
  transition: opacity 1.5s ease;
  z-index: 2;
  pointer-events: none;
}
.video-overlay-icon.fade-out { opacity: 0; }

/* ── SECTION E — Asymmetric Split ───────────────────────── */
.section-e > .label { margin-bottom: 50px; }
.split-layout {
  display: flex;
  align-items: center;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
.split-photo { flex: 0 0 58%; }
.split-photo .photo-frame img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
}
.split-divider {
  width: 1px;
  height: 230px;
  background: linear-gradient(to bottom, transparent, var(--champagne) 40%, var(--champagne) 60%, transparent);
  opacity: 0.22;
  margin: 0 60px;
  flex-shrink: 0;
}
.split-text { flex: 1; }

/* ── SECTION F — My Favorite ────────────────────────────── */
.section-f { text-align: center; }
.section-f > .label { text-align: left; }
.favorite-wrap {
  padding: 0 var(--page-pad);
  margin-top: 50px;
}
.section-f .photo-frame {
  max-width: 840px;
  margin: 0 auto;
}
.section-f .photo-frame img {
  width: 100%;
  max-height: 740px;
  object-fit: cover;
}
.favorite-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--champagne);
  max-width: 760px;
  margin: 58px auto 22px;
  line-height: 1.36;
}
.this-one {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: var(--text-muted);
}

/* ── POEM SECTION ───────────────────────────────────────── */
.poem-section {
  padding: var(--section-pad) var(--page-pad);
  display: flex;
  justify-content: center;
  position: relative;
}
.poem-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(232,201,138,0.25));
}
.poem-inner {
  max-width: 580px;
  width: 100%;
  text-align: center;
}
.poem-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  color: var(--champagne);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1;
  margin-bottom: 56px;
}
.poem-body {
  font-family: var(--font-body);
  font-size: 1.13rem;
  line-height: 2.05;
  color: var(--cream);
  opacity: 0.9;
  text-align: left;
}
.poem-body p { margin-bottom: 1.7em; }
.poem-body p:last-child { margin-bottom: 0; }
.poem-refrain {
  font-style: italic;
  color: var(--champagne);
  font-size: 1.18rem;
  opacity: 1 !important;
}
.poem-name {
  color: var(--champagne);
  font-style: normal;
}
.poem-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--red);
}

/* ── CLOSING ────────────────────────────────────────────── */
.closing-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 80%, #1a1005 0%, var(--bg-deep) 65%);
}
.closing-content { max-width: 700px; }
.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 5.8rem);
  color: var(--champagne);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}
.closing-title.glow-active {
  animation: glowPulse 3.5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 28px rgba(232,201,138,0.18); }
  50%       { text-shadow: 0 0 65px rgba(232,201,138,0.55), 0 0 120px rgba(232,201,138,0.22); }
}
.closing-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--champagne) 30%, var(--champagne) 70%, transparent);
  opacity: 0.28;
  margin: 0 auto 44px;
  width: 220px;
}
.closing-body p {
  font-family: var(--font-body);
  font-size: 1.22rem;
  line-height: 2.1;
  color: var(--cream);
  opacity: 0.88;
}
.closing-sig {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--champagne);
  opacity: 0.75;
  margin-top: 36px !important;
}
.closing-hearts {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--champagne);
  opacity: 0.32;
  margin-top: 52px;
  display: block;
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  padding: 30px var(--page-pad);
  text-align: center;
  border-top: 1px solid rgba(232,201,138,0.07);
}
.site-footer span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
}
.footer-dot { margin: 0 14px; }

/* ── AUDIO BUTTON ──────────────────────────────────────── */
#audio-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9998;
  background: rgba(13,9,5,0.75);
  border: 1px solid rgba(232,201,138,0.25);
  color: var(--champagne);
  font-size: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s, border-color 0.3s;
  opacity: 0.65;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#audio-btn:hover { opacity: 1; border-color: rgba(232,201,138,0.6); }
#audio-btn.muted  { opacity: 0.35; }

/* ── CUSTOM CURSOR ──────────────────────────────────────── */
#heart-cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  font-size: 15px;
  color: var(--champagne);
  transform: translate(-50%, -50%);
  user-select: none;
  will-change: left, top;
  transition: transform 0.06s ease;
  display: none;
}
@media (hover: hover) {
  #heart-cursor { display: block; }
}

/* ── RESPONSIVE — 1200px ────────────────────────────────── */
@media (max-width: 1200px) {
  :root { --page-pad: 50px; --section-pad: 90px; }
  .section-a .photo-frame { width: 92%; }
  .videos-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* ── RESPONSIVE — 900px ─────────────────────────────────── */
@media (max-width: 900px) {
  .section-a .section-inner { flex-direction: column; gap: 44px; }
  .section-a .caption-block { flex: none; width: 100%; }
  .section-a .photo-container { width: 100%; justify-content: center; }
  .section-a .photo-frame { width: 100%; transform: rotate(0.8deg); }
  .split-layout { flex-direction: column; }
  .split-photo { flex: none; width: 100%; }
  .split-divider { width: 180px; height: 1px; margin: 40px 0; }
  .split-text { width: 100%; }
}

/* ── RESPONSIVE — 768px ─────────────────────────────────── */
@media (max-width: 768px) {
  :root { --page-pad: 32px; --section-pad: 70px; }
  .diptych { flex-direction: column; align-items: center; }
  .diptych-photo-a, .diptych-photo-b { width: 88%; height: 300px; }
  .diptych-amp { font-size: 3rem; }
  .videos-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .section-f .photo-frame { max-width: 100%; }
  .favorite-quote { font-size: 1.35rem; }
  .closing-section { padding: 80px 30px; }
}

/* ── RESPONSIVE — 480px ─────────────────────────────────── */
@media (max-width: 480px) {
  :root { --page-pad: 22px; --section-pad: 56px; }
  .diptych-photo-a, .diptych-photo-b { height: 240px; width: 96%; }
  .videos-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .film-frame .photo-frame { width: 220px; height: 220px; }
  .photo-overlay blockquote { font-size: 1.15rem; }
  .hero-rule::before, .hero-rule::after { width: 60px; }
}
