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

:root {
  --bg:        #090707;
  --bg2:       #0f0b0b;
  --red:       #8c1f30;
  --rose:      #b84060;
  --cream:     #f0ebe2;
  --text:      #e8e2d8;
  --muted:     #5c4f4f;
  --faint:     rgba(255,255,255,0.055);
  --line:      rgba(255,255,255,0.06);
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Montserrat', system-ui, sans-serif;
  --script:    'Dancing Script', cursive;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==============================
   FLOATING HEARTS
   ============================== */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hp {
  position: absolute;
  bottom: -30px;
  color: var(--red);
  opacity: 0;
  animation: riseHeart linear forwards;
  user-select: none;
}
@keyframes riseHeart {
  0%   { opacity: 0;   transform: translateY(0)      rotate(0deg);  }
  8%   { opacity: 0.4; }
  85%  { opacity: 0.15; }
  100% { opacity: 0;   transform: translateY(-105vh) rotate(25deg); }
}

/* ==============================
   TYPEWRITER CURSOR
   ============================== */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--rose);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 0.75s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ==============================
   SCROLL REVEALS
   ============================== */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}
.reveal       { transform: translateY(32px); }
.reveal-left  { transform: translateX(-56px); }
.reveal-right { transform: translateX(56px); }
.reveal.vis, .reveal-left.vis, .reveal-right.vis { opacity: 1; transform: none; }

/* ==============================
   SECTIONS
   ============================== */
.sec {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ==============================
   S1: HERO
   ============================== */
.s-hero {
  background: var(--bg);
  padding: 0 32px;
  text-align: center;
}
.s-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 45% at 50% 55%, rgba(140,31,48,0.13) 0%, transparent 100%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 400;
  min-height: 1.2em;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 11vw, 96px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.05;
  letter-spacing: -0.015em;
  min-height: 1.1em;
}

.divider-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--rose), transparent);
  margin: 4px auto;
}

.hero-script {
  font-family: var(--script);
  font-size: 22px;
  color: var(--rose);
  min-height: 1.3em;
}

/* scroll hint */
.scroll-line {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line span {
  display: block;
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, var(--rose) 70%, transparent);
  animation: lineFlow 2.2s ease-in-out infinite;
}
@keyframes lineFlow {
  0%,100% { opacity: 0.25; transform: scaleY(1); }
  50%      { opacity: 0.9;  transform: scaleY(1.08); }
}

/* ==============================
   S2: FOTO FULLSCREEN
   ============================== */
.s-foto { padding: 0; }

.foto-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.38) saturate(0.6);
  will-change: transform;
}

.foto-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,  rgba(9,7,7,0.92) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(9,7,7,0.55) 0%, transparent 28%);
  z-index: 1;
}

.foto-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px 72px;
  margin-top: auto;
  width: 100%;
  max-width: 540px;
}

.foto-label {
  font-size: 20px;
  color: var(--rose);
  margin-bottom: 20px;
}

.foto-quote {
  font-family: var(--serif);
  font-size: clamp(20px, 4.5vw, 30px);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.65;
  min-height: 2em;
}
.foto-quote::before { content: '\201C'; }
.foto-quote::after  { content: '\201D'; }

.foto-name {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==============================
   S3: LETTER
   ============================== */
.s-letter { background: var(--bg2); padding: 80px 32px; }

.letter-wrap {
  width: 100%;
  max-width: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 56px 52px;
  position: relative;
  background: var(--faint);
}

.letter-wrap::before,
.letter-wrap::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
}
.letter-wrap::before {
  top: 0;
  background: linear-gradient(to right, transparent, var(--red) 50%, transparent);
}
.letter-wrap::after {
  bottom: 0;
  background: linear-gradient(to right, transparent, var(--red) 50%, transparent);
}

.letter-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}
.lh-heart { color: var(--red); font-size: 16px; }
.lh-label {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}
.lh-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.letter-body {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--cream);
  min-height: 3em;
}

.letter-footer {
  margin-top: 44px;
  text-align: right;
  font-family: var(--script);
  font-size: 24px;
  color: var(--rose);
}

/* ==============================
   S4: SPLIT
   ============================== */
.s-split {
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  background: var(--bg);
}

.split-photo {
  flex: 1;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.split-photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.5) saturate(0.7);
}
.split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, var(--bg2) 100%);
}

.split-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px;
  background: var(--bg2);
  border-left: 1px solid var(--line);
}

.sc-heart {
  display: block;
  color: var(--red);
  font-size: 22px;
  margin-bottom: 32px;
}

.sc-text {
  font-family: var(--serif);
  font-size: clamp(18px, 2.8vw, 24px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.9;
  color: var(--cream);
  min-height: 3em;
}

.sc-sig {
  display: block;
  margin-top: 40px;
  font-size: 22px;
  color: var(--rose);
}
.script { font-family: var(--script); }

/* ==============================
   S5: VIDEO
   ============================== */
.s-video {
  background: var(--bg);
  padding: 80px 32px;
  gap: 28px;
}
.s-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 50% 50%, rgba(140,31,48,0.07) 0%, transparent 100%);
  pointer-events: none;
}

.video-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.ve-heart { color: var(--red); font-size: 14px; }
.ve-text {
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
}

.video-box {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 16/9;
  background: #000;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.video-box video {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
}

.video-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  text-align: center;
  position: relative;
  z-index: 1;
  min-height: 1.5em;
}

/* ==============================
   S6: CLOSING
   ============================== */
.s-close {
  background: var(--bg2);
  padding: 80px 32px;
  text-align: center;
}
.s-close::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(140,31,48,0.11) 0%, transparent 100%);
  pointer-events: none;
}

.close-wrap { position: relative; z-index: 1; }

.close-hearts {
  font-size: 14px;
  color: var(--red);
  margin-bottom: 40px;
  letter-spacing: 8px;
  animation: pulse 2.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.45; }
  50%      { opacity: 1;    }
}

.close-title {
  font-family: var(--serif);
  font-size: clamp(40px, 9vw, 82px);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 28px;
  min-height: 1.15em;
}

.close-names {
  font-size: 24px;
  color: var(--rose);
  margin-top: 12px;
}

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 680px) {
  .s-split { flex-direction: column; }
  .split-photo { min-height: 56vw; flex: none; }
  .split-photo img { position: relative; height: 320px; width: 100%; }
  .split-content { padding: 52px 28px; border-left: none; border-top: 1px solid var(--line); }
  .letter-wrap { padding: 40px 24px; }
}
