:root {
  --wine: #4a0b2d;
  --plum: #6b1744;
  --pink: #ff4f9a;
  --hot: #ff246e;
  --blush: #ffe1ec;
  --cream: #fff8ee;
  --paper: #fffdf7;
  --gold: #f0b73f;
  --ink: #2c1121;
  --muted: #79576a;
  --shadow: 0 24px 70px rgba(60, 3, 35, .19);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-rounded, 'Arial Rounded MT Bold', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 105, 166, .18), transparent 28rem),
    radial-gradient(circle at 90% 30%, rgba(240, 183, 63, .15), transparent 24rem),
    var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}
button, a { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .065; z-index: 50;
  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='.75'/%3E%3C/svg%3E");
}
.section-shell { width: min(1180px, calc(100% - 38px)); margin-inline: auto; }

.topbar {
  position: fixed; z-index: 40; left: 50%; top: 18px; transform: translateX(-50%);
  width: min(1080px, calc(100% - 28px)); height: 62px; padding: 7px 9px 7px 18px;
  border: 1px solid rgba(255,255,255,.72); border-radius: 999px;
  background: rgba(255, 248, 238, .82); backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(75, 8, 44, .13);
  display: flex; align-items: center; justify-content: space-between;
}
.brand { text-decoration: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 800; letter-spacing: -.06em; }
.brand span { color: var(--hot); margin: 0 .1em; }
.topbar nav { display: flex; gap: 25px; }
.topbar nav a { text-decoration: none; color: var(--muted); font-size: .86rem; font-weight: 800; }
.topbar nav a:hover { color: var(--hot); }
.mini-love { border: 0; border-radius: 999px; padding: 12px 17px; color: white; background: var(--wine); font-weight: 900; }

.hero { min-height: 820px; padding-top: 140px; padding-bottom: 90px; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 55px; }
.eyebrow, .kicker { margin: 0 0 16px; color: var(--hot); font-size: .76rem; line-height: 1.2; font-weight: 1000; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(4.4rem, 8vw, 8.2rem); line-height: .72; letter-spacing: -.09em; }
.hero h1 span { display: block; }
.hero h1 em { display: block; width: fit-content; margin: .03em 0 .08em .55em; color: var(--hot); font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: .67em; font-weight: 400; letter-spacing: -.05em; transform: rotate(-7deg); }
.hero-sub { max-width: 600px; margin: 34px 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.72; }
.hero-sub strong { color: var(--wine); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { border: 1px solid transparent; border-radius: 999px; padding: 15px 22px; text-decoration: none; font-size: .91rem; font-weight: 950; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button.primary { color: white; background: linear-gradient(135deg, var(--wine), var(--hot)); box-shadow: 0 12px 26px rgba(157, 25, 84, .26); }
.button.ghost { color: var(--wine); border-color: rgba(74,11,45,.25); background: rgba(255,255,255,.42); }
.love-output { min-height: 24px; margin-top: 20px; color: var(--hot); font-family: var(--serif); font-style: italic; font-weight: 700; }

.hero-art { position: relative; min-height: 620px; display: grid; place-items: center; isolation: isolate; }
.sunburst { position: absolute; width: 610px; aspect-ratio: 1; border-radius: 50%; background: repeating-conic-gradient(from 0deg, #ffd2e5 0 8deg, transparent 8deg 17deg); opacity: .58; animation: lazySpin 60s linear infinite; }
.hero-photo { position: relative; width: min(465px, 78vw); margin: 0; padding: 15px 15px 50px; background: white; box-shadow: var(--shadow); transform: rotate(3.4deg); z-index: 2; }
.hero-photo::before { content: ''; position: absolute; width: 125px; height: 34px; top: -15px; left: 50%; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 224, 144, .78); box-shadow: 0 2px 4px rgba(0,0,0,.06); }
.hero-photo img { width: 100%; aspect-ratio: .78; object-fit: cover; object-position: 52% 44%; filter: saturate(1.05) contrast(1.03); }
.hero-photo figcaption { position: absolute; left: 22px; right: 22px; bottom: 17px; text-align: center; font-family: var(--serif); font-size: .78rem; font-weight: 800; letter-spacing: .03em; }
.sticker { position: absolute; z-index: 4; display: grid; place-items: center; text-align: center; border: 4px solid white; box-shadow: 0 12px 30px rgba(60,3,35,.2); font-size: .7rem; line-height: 1.1; font-weight: 1000; letter-spacing: .06em; }
.sticker-one { width: 115px; aspect-ratio: 1; right: 1%; top: 12%; color: var(--wine); background: var(--gold); border-radius: 50%; transform: rotate(11deg); }
.sticker-two { left: -2%; bottom: 15%; padding: 17px 19px; color: white; background: var(--wine); transform: rotate(-8deg); }
.sticker-three { right: 3%; bottom: 8%; width: 110px; height: 84px; color: white; background: var(--hot); border-radius: 48% 52% 50% 45%; transform: rotate(7deg); }
.doodle { position: absolute; z-index: 1; color: var(--hot); font-family: var(--serif); font-size: 4rem; animation: floaty 4.5s ease-in-out infinite; }
.d1 { left: 5%; top: 14%; } .d2 { right: 3%; top: 42%; animation-delay: -.8s; } .d3 { left: 7%; bottom: 2%; animation-delay: -1.7s; }

.ticker { overflow: hidden; border-block: 3px solid var(--wine); background: var(--hot); color: white; transform: rotate(-1deg) scale(1.02); }
.ticker div { width: max-content; display: flex; align-items: center; gap: 25px; padding: 13px 0; animation: marquee 28s linear infinite; }
.ticker span { font-size: .9rem; font-weight: 1000; letter-spacing: .12em; }
.ticker b { color: var(--gold); }

.intro { padding: 145px 0 95px; text-align: center; }
.intro h2, .section-heading h2, .contract h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.55rem, 5.4vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
.intro h2 i { color: var(--hot); font-family: 'Brush Script MT', 'Segoe Script', cursive; font-weight: 400; }
.intro > p:last-child { max-width: 620px; margin: 28px auto 0; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }

.collage { padding: 40px 0 150px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 58px; }
.section-heading > p { max-width: 300px; margin: 0; color: var(--muted); line-height: 1.65; }
.section-heading h2 { max-width: 800px; font-size: clamp(2.6rem, 4.8vw, 5rem); }
.collage-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 82px; gap: 24px; align-items: start; }
.tile { position: relative; margin: 0; padding: 12px 12px 58px; background: white; box-shadow: 0 18px 50px rgba(58,4,34,.17); cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { z-index: 4; transform: rotate(0) translateY(-10px) scale(1.02); box-shadow: 0 28px 68px rgba(58,4,34,.24); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption { position: absolute; left: 17px; right: 17px; bottom: 13px; display: flex; align-items: baseline; gap: 9px; overflow: hidden; white-space: nowrap; }
.tile figcaption b { font-family: var(--serif); font-size: 1rem; }
.tile figcaption span { color: var(--muted); font-size: .7rem; text-overflow: ellipsis; overflow: hidden; }
.tile.tall { grid-column: span 5; grid-row: span 7; }
.tile.wide { grid-column: span 7; grid-row: span 5; }
.tile.square { grid-column: span 5; grid-row: span 5; }
.tile:nth-child(4) { grid-column: 8 / span 5; margin-top: -70px; }
.tile:nth-child(5) { grid-column: 1 / span 5; }
.tile:nth-child(6) { grid-column: 6 / span 7; }
.tilt-left { transform: rotate(-1.8deg); } .tilt-right { transform: rotate(1.8deg); }

.science-wrap { position: relative; padding: 120px 0 135px; color: white; background: var(--wine); overflow: hidden; }
.science-wrap::before { content: '♥'; position: absolute; right: -100px; top: -230px; color: rgba(255,255,255,.045); font-family: var(--serif); font-size: 780px; line-height: 1; }
.section-heading.light .kicker { color: #ff89b8; }
.section-heading.light > p { color: rgba(255,255,255,.68); }
.meter-card { position: relative; padding: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.meter-copy { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.meter-copy span { font-size: 1.06rem; font-weight: 900; }
.meter-copy strong { color: var(--gold); font-family: var(--serif); font-size: clamp(3rem, 7vw, 6rem); line-height: .8; }
.meter-track { height: 26px; margin-top: 28px; padding: 4px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(0,0,0,.18); overflow: hidden; }
.meter-fill { width: 100%; height: 100%; border-radius: inherit; background: repeating-linear-gradient(135deg, var(--hot) 0 18px, #ff8cba 18px 36px); animation: pulseMeter 2.2s ease-in-out infinite; }
.meter-card p { margin: 17px 0 0; color: rgba(255,255,255,.66); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.fact { min-height: 245px; padding: 25px; border-radius: 24px; background: var(--paper); color: var(--ink); }
.fact span { display: block; color: var(--hot); font-family: var(--serif); font-size: 1.6rem; font-style: italic; }
.fact h3 { margin: 38px 0 12px; font-family: var(--serif); font-size: 1.55rem; }
.fact p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.6; }

.quote { position: relative; padding: 150px 0; text-align: center; }
.quote-mark { position: absolute; left: 50%; top: 50px; transform: translateX(-50%); color: var(--blush); font-family: var(--serif); font-size: 14rem; line-height: 1; z-index: -1; }
.quote blockquote { max-width: 920px; margin: 0 auto; font-family: var(--serif); font-size: clamp(2.35rem, 5vw, 5rem); line-height: 1.08; letter-spacing: -.045em; }
.quote p { margin: 28px 0 0; color: var(--hot); font-weight: 900; }

.contract { padding: 30px 0 145px; }
.contract-paper { position: relative; padding: clamp(28px, 6vw, 75px); border: 1px solid #ead8c8; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-.5deg); }
.contract-paper::before, .contract-paper::after { content: ''; position: absolute; width: 120px; height: 34px; background: rgba(255, 219, 137, .58); }
.contract-paper::before { top: -14px; left: 8%; transform: rotate(-5deg); }
.contract-paper::after { bottom: -13px; right: 8%; transform: rotate(4deg); }
.contract-top { display: flex; justify-content: space-between; gap: 28px; align-items: start; }
.contract h2 { max-width: 760px; font-size: clamp(2.7rem, 5.2vw, 5rem); }
.seal { width: 130px; aspect-ratio: 1; flex: 0 0 auto; display: grid; place-items: center; border: 7px double var(--hot); border-radius: 50%; color: var(--hot); text-align: center; font-size: .7rem; font-weight: 1000; line-height: 1.1; transform: rotate(11deg) scale(0); opacity: 0; transition: .5s cubic-bezier(.2,.9,.2,1.25); }
.seal.active { transform: rotate(-11deg) scale(1); opacity: 1; }
.legal { max-width: 800px; margin: 40px 0 25px; color: var(--muted); line-height: 1.7; }
.contract ol { margin: 0; padding-left: 1.4em; }
.contract li { padding: 12px 0 12px 8px; border-bottom: 1px dashed #dec9d1; line-height: 1.55; }
.signatures { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: end; margin-top: 54px; }
.signatures > div:not(.heart-sign) { padding-top: 23px; border-top: 2px solid var(--ink); text-align: center; }
.signatures span { display: block; font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 2.1rem; }
.signatures small { color: var(--muted); }
.heart-sign { color: var(--hot); font-size: 2.4rem; animation: heartbeat 1.4s infinite; }
.contract-button { display: block; margin: 46px auto 0; border: 0; }

.finale { position: relative; min-height: 720px; display: grid; place-items: center; overflow: hidden; color: white; background: #2d071e; text-align: center; }
.finale-photo { position: absolute; inset: 0; background: linear-gradient(rgba(52,0,30,.62), rgba(52,0,30,.8)), url('assets/wide-detail.jpg') center 38% / cover; filter: saturate(.78); transform: scale(1.04); }
.finale-content { position: relative; z-index: 2; padding-block: 100px; }
.finale-content > p:first-child { max-width: 650px; margin: 0 auto 30px; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.finale h2 { margin: 0; font-family: var(--serif); font-size: clamp(4.1rem, 10vw, 10rem); line-height: .84; letter-spacing: -.075em; text-shadow: 0 7px 30px rgba(0,0,0,.35); }
.giant-heart { margin: -5px 0 -12px; color: var(--hot); font-size: clamp(5rem, 12vw, 10rem); line-height: 1; animation: heartbeat 1.25s infinite; filter: drop-shadow(0 15px 30px rgba(255,36,110,.28)); }
.final-tag { margin: 0; color: var(--gold); font-family: var(--serif); font-size: 1.3rem; font-style: italic; font-weight: 800; }

footer { padding: 28px 24px; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: var(--muted); background: #fffaf4; font-size: .82rem; }
footer button { border: 0; background: none; color: var(--wine); font-weight: 900; }

.floating-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.float-heart, .burst-heart { position: absolute; color: var(--hot); user-select: none; text-shadow: 0 4px 14px rgba(107,23,68,.2); }
.float-heart { bottom: -50px; animation: rise linear forwards; opacity: .75; }
.burst-heart { animation: burst 1.35s cubic-bezier(.2,.8,.2,1) forwards; }
.sparkle { position: fixed; z-index: 65; pointer-events: none; color: var(--gold); animation: sparkle .75s ease-out forwards; }

.lightbox { width: min(920px, 92vw); max-height: 90vh; padding: 14px 14px 20px; border: 0; border-radius: 18px; background: white; box-shadow: 0 35px 100px rgba(30,0,18,.52); }
.lightbox::backdrop { background: rgba(35,0,21,.82); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: 73vh; object-fit: contain; background: #f4e7ed; }
.lightbox p { margin: 16px 50px 0 8px; font-family: var(--serif); font-size: 1.08rem; }
.lightbox-close { position: absolute; right: 18px; bottom: 13px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: white; background: var(--wine); font-size: 1.4rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1); }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes lazySpin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-14px) rotate(7deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulseMeter { 50% { filter: brightness(1.18); transform: scaleX(.985); transform-origin: left; } }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.11); } 28% { transform: scale(1); } 42% { transform: scale(1.07); } }
@keyframes rise { to { transform: translate(var(--drift), -115vh) rotate(540deg); opacity: 0; } }
@keyframes burst { from { transform: translate(-50%, -50%) scale(.3); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1.25); opacity: 0; } }
@keyframes sparkle { to { transform: translateY(-26px) scale(.2) rotate(120deg); opacity: 0; } }

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 125px; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero h1 em { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 590px; }
  .section-heading { align-items: start; flex-direction: column; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .collage-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .tile, .tile.tall, .tile.wide, .tile.square, .tile:nth-child(4), .tile:nth-child(5), .tile:nth-child(6) { grid-column: auto; grid-row: auto; margin-top: 0; height: 520px; }
  .tile.square { height: 390px; }
  .contract-top { display: block; }
  .seal { position: absolute; right: 28px; top: 28px; width: 95px; }
}

@media (max-width: 620px) {
  .section-shell { width: min(100% - 24px, 1180px); }
  .topbar { top: 10px; height: 55px; padding-left: 14px; }
  .mini-love { padding: 10px 13px; font-size: .75rem; }
  .hero { padding-top: 105px; padding-bottom: 70px; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 5.3rem); }
  .hero-sub { font-size: 1rem; }
  .hero-art { min-height: 480px; }
  .hero-photo { width: 77vw; padding: 10px 10px 43px; }
  .sticker { transform: scale(.82) rotate(var(--rot, 0deg)); }
  .sticker-one { right: -4%; top: 6%; } .sticker-two { left: -8%; bottom: 10%; } .sticker-three { right: -4%; bottom: 3%; }
  .doodle { font-size: 2.6rem; }
  .intro { padding: 105px 0 70px; }
  .collage { padding-bottom: 105px; }
  .collage-grid { display: block; }
  .tile, .tile.tall, .tile.wide, .tile.square { height: auto; min-height: 0; margin: 0 0 25px; padding-bottom: 66px; }
  .tile img { height: auto; max-height: 72vh; object-fit: cover; }
  .science-wrap { padding: 90px 0; }
  .meter-card { padding: 24px; }
  .meter-copy { align-items: start; flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .fact { min-height: 0; }
  .fact h3 { margin-top: 22px; }
  .quote { padding: 110px 0; }
  .contract { padding-bottom: 100px; }
  .seal { position: static; margin: 25px auto 0; }
  .signatures { grid-template-columns: 1fr; gap: 22px; }
  .heart-sign { order: 2; }
  .finale { min-height: 610px; }
  footer { flex-direction: column; text-align: center; }
}

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