:root {
  --wine: #3b0e1d;
  --wine-deep: #220910;
  --wine-soft: #6f2c3d;
  --rose: #bd7a89;
  --rose-light: #efd1d4;
  --cream: #f5ede4;
  --paper: #fffaf4;
  --paper-2: #efe3d7;
  --ink: #2a2020;
  --muted: #766966;
  --line: rgba(42, 32, 32, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
body.lightbox-open { overflow: hidden; }
::selection { background: var(--wine); color: var(--paper); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1500;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rose), var(--rose-light));
  box-shadow: 0 0 12px rgba(239,209,212,.35);
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #16070d;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-photo-a {
  background-image: url('assets/photos/photo-04.jpg');
  transform: scale(1.04);
  animation: breathe 15s ease-in-out infinite alternate;
}
.hero-photo-b {
  background-image: url('assets/photos/photo-22.jpg');
  opacity: 0;
  animation: crossfade 18s ease-in-out infinite;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,5,11,.90) 0%, rgba(20,5,11,.64) 43%, rgba(20,5,11,.16) 78%),
    linear-gradient(0deg, rgba(20,5,11,.90) 0%, transparent 58%);
}
@keyframes breathe { to { transform: scale(1.12); } }
@keyframes crossfade { 0%, 44%, 100% { opacity: 0; } 51%, 89% { opacity: .34; } }

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(20px, 5vw, 72px);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
}
.mini-logo {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.44);
  border-radius: 50%;
  display: grid;
  place-items: center;
  letter-spacing: .02em;
  text-transform: none;
  font-family: var(--serif);
  backdrop-filter: blur(7px);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(930px, 94vw);
  padding: 130px clamp(20px, 7vw, 110px) clamp(48px, 8vh, 92px);
}
.eyebrow,
.section-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 700;
}
.hero h1,
.section h2 {
  margin: 10px 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
}
.hero h1 { font-size: clamp(76px, 11vw, 152px); }
.hero h1 em,
.section h2 em {
  font-weight: 400;
  color: var(--rose-light);
}
.hero-copy {
  max-width: 620px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.78);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.countdown-wrap {
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
}
.countdown-label {
  margin: 0 0 8px 4px;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .25em;
  color: rgba(255,255,255,.6);
}
.countdown {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1vw, 14px);
  padding: 18px 20px 16px;
  border: 1px solid rgba(255,255,255,.27);
  background: rgba(35,10,19,.28);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.16);
}
.time-box {
  min-width: clamp(54px, 7vw, 84px);
  text-align: center;
}
.time-box strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 62px);
  line-height: .92;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.time-box span {
  display: block;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 8px;
  color: rgba(255,255,255,.58);
}
.divider {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  opacity: .4;
}
.time-box.pulse strong { animation: numberBeat 1s ease-in-out infinite; }
@keyframes numberBeat { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }
.countdown-message {
  margin: 11px 0 0 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.65);
}
.scroll-down {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 9px;
  color: rgba(255,255,255,.64);
}
.scroll-down span { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.section {
  padding: clamp(85px, 12vw, 165px) clamp(20px, 7vw, 110px);
  position: relative;
}
.section h2 { font-size: clamp(58px, 7.2vw, 105px); }
.section-kicker { color: var(--wine-soft); }

.intro { background: var(--cream); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr);
  gap: clamp(35px, 7vw, 105px);
  align-items: end;
}
.intro-copy {
  padding-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.55;
  color: #4f4441;
}
.intro-copy p { margin: 0 0 16px; }
.intro-emphasis {
  color: var(--wine-soft);
  font-style: italic;
  font-size: 1.15em;
}
.handwritten {
  margin-top: 26px !important;
  font-family: var(--serif);
  font-style: italic;
  color: var(--wine-soft);
}

.photo-stack {
  height: min(58vw, 690px);
  max-width: 1160px;
  margin: 75px auto 0;
  position: relative;
}
.polaroid {
  position: absolute;
  width: min(31vw, 390px);
  padding: 12px 12px 44px;
  background: #fffdf9;
  box-shadow: 0 22px 50px rgba(63,39,34,.15);
  transition: transform .45s ease, box-shadow .45s ease;
}
.polaroid img { aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: #6e5d58;
}
.polaroid:hover { z-index: 6; box-shadow: 0 32px 70px rgba(63,39,34,.22); }
.p1 { left: 3%; top: 11%; transform: rotate(-6deg); }
.p2 { left: 34%; top: 0; transform: rotate(3deg); }
.p3 { right: 4%; top: 15%; transform: rotate(7deg); }
.p1:hover { transform: rotate(-2deg) translateY(-8px); }
.p2:hover { transform: rotate(0deg) translateY(-8px); }
.p3:hover { transform: rotate(3deg) translateY(-8px); }

.quote-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(45px, 8vw, 120px);
  align-items: center;
  background: var(--wine);
  color: #fff;
}
.quote-photo {
  max-width: 470px;
  position: relative;
}
.quote-photo::after {
  content: "";
  position: absolute;
  width: 45%;
  height: 1px;
  left: -22%;
  bottom: 8%;
  background: rgba(255,255,255,.25);
}
.quote-photo img { aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.78) contrast(1.03); }
blockquote {
  margin: 0;
  position: relative;
  font-family: var(--serif);
  font-size: clamp(43px, 5.6vw, 80px);
  line-height: .96;
  letter-spacing: -.045em;
}
blockquote > span {
  position: absolute;
  top: -55px;
  left: -8px;
  font-size: 90px;
  color: var(--rose);
  opacity: .9;
}
blockquote em { color: var(--rose-light); font-weight: 400; }

.gallery-section { background: #f7f0e8; overflow: hidden; }
.gallery-heading {
  display: grid;
  grid-template-columns: 1.25fr .55fr;
  gap: clamp(35px, 7vw, 95px);
  align-items: end;
  margin-bottom: 60px;
}
.gallery-heading p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.75;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, 11vw);
  gap: 10px;
}
.memory-card {
  position: relative;
  overflow: hidden;
  background: #ddd1c8;
  cursor: zoom-in;
}
.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .45s ease;
  filter: saturate(.82);
}
.memory-card::after {
  content: attr(data-caption);
  position: absolute;
  left: 12px;
  bottom: 11px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(25,8,14,.55);
  backdrop-filter: blur(9px);
  color: rgba(255,255,255,.9);
  font-family: var(--serif);
  font-size: 12px;
  font-style: italic;
  opacity: 0;
  transform: translateY(7px);
  transition: .35s ease;
}
.memory-card:hover img { transform: scale(1.045); filter: saturate(1); }
.memory-card:hover::after { opacity: 1; transform: translateY(0); }
.memory-card:nth-child(1) { grid-column: span 4; grid-row: span 3; }
.memory-card:nth-child(2) { grid-column: span 3; grid-row: span 2; }
.memory-card:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.memory-card:nth-child(4) { grid-column: span 4; grid-row: span 3; }
.memory-card:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.memory-card:nth-child(6) { grid-column: span 4; grid-row: span 3; }
.memory-card:nth-child(7) { grid-column: span 3; grid-row: span 2; }
.memory-card:nth-child(8) { grid-column: span 5; grid-row: span 2; }
.memory-card:nth-child(9) { grid-column: span 4; grid-row: span 2; }
.memory-card:nth-child(10) { grid-column: span 4; grid-row: span 2; }
.gallery-caption {
  margin: 24px 0 0;
  text-align: right;
  color: var(--wine-soft);
  font-family: var(--serif);
  font-style: italic;
}

.promise-section { background: var(--paper-2); }
.promise-heading { max-width: 900px; }
.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 70px;
}
.promise {
  position: relative;
  min-height: 390px;
  padding: 30px;
  border-top: 2px solid var(--wine-soft);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .35s ease, background .35s ease, color .35s ease;
}
.promise::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 0;
  background: var(--wine);
  transition: height .45s cubic-bezier(.2,.7,.2,1);
  z-index: 0;
}
.promise > * { position: relative; z-index: 1; }
.promise-number {
  color: var(--rose);
  font-size: 10px;
  letter-spacing: .18em;
}
.promise h3 {
  margin: auto 0 16px;
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: .98;
}
.promise p {
  margin: 0;
  max-width: 330px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.promise small {
  margin-top: 24px;
  opacity: 0;
  transform: translateY(8px);
  color: var(--rose-light);
  font-family: var(--serif);
  font-style: italic;
  transition: .35s ease;
}
.promise:hover,
.promise:focus {
  transform: translateY(-6px);
  color: #fff;
  outline: none;
}
.promise:hover::before,
.promise:focus::before { height: 100%; }
.promise:hover p,
.promise:focus p { color: rgba(255,255,255,.72); }
.promise:hover small,
.promise:focus small { opacity: 1; transform: translateY(0); }

.video-section {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
  background: var(--cream);
}
.video-copy p {
  max-width: 470px;
  color: var(--muted);
  line-height: 1.75;
  font-size: clamp(16px, 1.3vw, 19px);
}
.video-copy .video-lead {
  color: var(--wine-soft);
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 33px);
  font-style: italic;
  line-height: 1.3;
}
.video-frame {
  position: relative;
  background: var(--wine);
  padding: 12px;
  box-shadow: 0 30px 75px rgba(74,29,39,.18);
  transform: rotate(1.2deg);
}
.video-frame video {
  display: block;
  width: 100%;
  max-height: 74vh;
  background: #12060a;
}
.video-stamp {
  position: absolute;
  right: 20px;
  bottom: -36px;
  color: var(--wine-soft);
  font-family: var(--serif);
  font-style: italic;
}

.before-finale {
  min-height: 78svh;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(45px, 8vw, 120px);
  align-items: center;
  background: #6a2739;
  color: #fff;
}
.before-finale-photo {
  max-width: 500px;
  justify-self: center;
}
.before-finale-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.75) contrast(1.02);
  box-shadow: 0 28px 70px rgba(26,6,13,.28);
}
.before-finale-copy { max-width: 680px; }
.tiny-date {
  display: inline-block;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: 10px;
  color: var(--rose-light);
}
.before-finale h2 {
  margin: 0 0 28px;
  font-size: clamp(60px, 8vw, 118px);
}
.before-finale p {
  max-width: 600px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.4;
  color: rgba(255,255,255,.8);
}

.finale {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.finale-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(30,5,13,.69), rgba(30,5,13,.84)),
    url('assets/photos/photo-65.jpg') center 35% / cover;
  transform: scale(1.045);
  animation: finaleBreathe 13s ease-in-out infinite alternate;
}
@keyframes finaleBreathe { to { transform: scale(1.10); } }
.finale-year {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: clamp(150px, 29vw, 460px);
  line-height: 1;
  color: rgba(255,255,255,.035);
  letter-spacing: -.08em;
  pointer-events: none;
  white-space: nowrap;
}
.finale-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}
.date-big {
  display: inline-block;
  padding: 13px 25px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  font-family: var(--serif);
  letter-spacing: .13em;
}
.section-kicker.light { color: var(--rose-light); margin: 36px 0 15px; }
.finale h2 { margin-top: 0; }
.finale-content > p:not(.section-kicker):not(.final-line):not(.secret-message) {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.76);
  line-height: 1.8;
  font-size: 17px;
}
.final-line {
  margin: 25px auto 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose-light);
  font-size: clamp(27px, 3.2vw, 40px);
}
.heart-button {
  margin-top: 30px;
  padding: 15px 27px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  letter-spacing: .08em;
  transition: .3s ease;
  backdrop-filter: blur(8px);
}
.heart-button:hover { background: #fff; color: var(--wine); transform: scale(1.045); }
.secret-message {
  min-height: 28px;
  margin-top: 16px;
  color: var(--rose-light);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}

footer {
  padding: 30px clamp(20px, 7vw, 110px);
  display: flex;
  justify-content: space-between;
  gap: 22px;
  background: #17070d;
  color: rgba(255,255,255,.52);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.visible,
.reveal.immediate { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 5vw;
  background: rgba(18,5,10,.94);
}
.lightbox.open { display: grid; }
.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  box-shadow: 0 26px 90px rgba(0,0,0,.52);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.86);
  cursor: pointer;
}
.lightbox-close { top: 22px; right: 26px; font-size: 39px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 34px; padding: 18px; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  font-size: 10px;
  letter-spacing: .18em;
}

.floating-heart {
  position: fixed;
  z-index: 2200;
  bottom: -50px;
  left: var(--x);
  pointer-events: none;
  font-size: clamp(18px, 3vw, 35px);
  opacity: 0;
  animation: floatHeart var(--dur) ease-in forwards;
}
@keyframes floatHeart {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(-112vh) rotate(var(--rot)); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-overlay {
    background: linear-gradient(0deg, rgba(20,5,11,.92) 0%, rgba(20,5,11,.54) 67%, rgba(20,5,11,.22));
  }
  .hero-content { padding-left: 22px; padding-right: 22px; }
  .intro-grid,
  .quote-section,
  .video-section,
  .before-finale { grid-template-columns: 1fr; }
  .intro-copy { max-width: 700px; }
  .photo-stack { height: 105vw; margin-top: 45px; }
  .polaroid { width: 43vw; }
  .p1 { left: 1%; top: 10%; }
  .p2 { left: 29%; top: 0; }
  .p3 { right: 0; top: 32%; }
  .quote-photo { max-width: 460px; }
  .gallery-heading { grid-template-columns: 1fr; }
  .gallery-heading p { max-width: 720px; }
  .promises { grid-template-columns: 1fr; }
  .promise { min-height: 280px; }
  .before-finale-photo { max-width: 440px; }
  .before-finale-copy { text-align: center; margin: 0 auto; }
  .before-finale p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 650px) {
  .topbar { padding: 18px; }
  .mini-logo { width: 44px; height: 44px; }
  .hero h1 { font-size: 24vw; }
  .hero-copy { font-size: 16px; line-height: 1.6; }
  .countdown-wrap { width: 100%; }
  .countdown { width: 100%; justify-content: center; gap: 5px; padding: 16px 8px 14px; }
  .time-box { min-width: 49px; }
  .time-box strong { font-size: 31px; }
  .time-box span { font-size: 7px; }
  .divider { font-size: 24px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .section h2 { font-size: 14vw; }
  .intro-copy { font-size: 19px; }
  .photo-stack { height: 142vw; }
  .polaroid { width: 52vw; padding: 8px 8px 33px; }
  .p1 { left: 0; top: 2%; }
  .p2 { left: auto; right: 0; top: 22%; }
  .p3 { left: 7%; right: auto; top: 59%; }
  blockquote { font-size: 10vw; }
  .memory-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 52vw; gap: 7px; }
  .memory-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .memory-card:nth-child(1),
  .memory-card:nth-child(6) { grid-column: span 2; }
  .memory-card::after { opacity: 1; transform: none; font-size: 10px; }
  .promise { min-height: 300px; }
  .video-frame { transform: none; padding: 7px; }
  .video-stamp { position: static; display: block; margin-top: 13px; text-align: right; }
  .before-finale { min-height: auto; }
  .before-finale p { font-size: 24px; }
  .finale-bg { background-position: 58% center; }
  .finale-year { font-size: 43vw; }
  .lightbox-nav { display: none; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
