* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #0c0710;
  --bg2: #160a18;
  --pink: #ff6f9f;
  --rose: #ff9fbd;
  --cream: #fff4f7;
  --muted: #cbb9c2;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.055);
}
html {
  scroll-behavior: smooth;
}
body {
  background: radial-gradient(
    circle at 50% 0,
    #27101f 0,
    #0c0710 38%,
    #08060b 100%
  );
  color: #fff;
  font-family: Outfit, sans-serif;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
}
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #09060c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.loader-heart {
  font-size: 48px;
  color: var(--pink);
  animation: pulse 1.1s infinite;
}
.preloader p {
  margin-top: 18px;
  color: #bdaab4;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.preloader h2 {
  font-family: "DM Serif Display", serif;
  font-size: 48px;
  font-weight: 400;
  margin-top: 5px;
}
.loader-line {
  width: 180px;
  height: 2px;
  background: #30232b;
  margin-top: 25px;
  overflow: hidden;
}
.loader-line span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--pink);
  animation: loading 1.5s ease-in-out infinite;
}
@keyframes loading {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(450%);
  }
}
@keyframes pulse {
  50% {
    transform: scale(1.15);
  }
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 4vw;
  mix-blend-mode: screen;
}
.brand {
  font-family: "DM Serif Display", serif;
  font-size: 27px;
}
.brand span {
  color: var(--pink);
}
.top-link {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 4px;
}

.hero {
  height: 100svh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.08);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 2, 7, 0.3),
    rgba(8, 4, 10, 0.65) 55%,
    #0c0710 100%
  );
}
.hero-noise {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 45%,
    transparent 0,
    rgba(8, 3, 10, 0.3) 60%,
    rgba(8, 3, 10, 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  width: min(900px, 92%);
  padding-top: 30px;
}
.eyebrow,
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f0c4d2;
}
.hero h1 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(72px, 11vw, 150px);
  line-height: 0.78;
  letter-spacing: -4px;
  margin: 28px 0;
}
.hero h1 em,
.section-head h2 em,
.gallery-title-row h2 em,
.final-content h2 em {
  font-style: italic;
  color: var(--rose);
}
.name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.name-row .line {
  height: 1px;
  width: 75px;
  background: rgba(255, 255, 255, 0.35);
}
.name-row h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
}
.hero-content p {
  color: #eadde2;
  margin: 25px auto 0;
  font-size: 16px;
  max-width: 520px;
  line-height: 1.7;
}
.scroll-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 13px 18px 13px 23px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  background: rgba(10, 5, 12, 0.3);
  backdrop-filter: blur(10px);
  font-size: 12px;
  letter-spacing: 0.8px;
  transition: 0.35s;
}
.scroll-btn b {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pink);
  font-size: 17px;
}
.scroll-btn:hover {
  transform: translateY(-4px);
  border-color: var(--pink);
  box-shadow: 0 10px 40px rgba(255, 111, 159, 0.2);
}
.hero-date {
  position: absolute;
  right: 4vw;
  bottom: 8vh;
  z-index: 3;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 14px 17px;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.18);
}
.hero-date span {
  display: block;
  font-family: "DM Serif Display", serif;
  font-size: 33px;
  color: var(--rose);
}
.hero-date small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #ddd;
}
.floating-heart {
  position: absolute;
  color: var(--pink);
  z-index: 2;
  opacity: 0.55;
  filter: blur(0.1px);
  animation: float 7s ease-in-out infinite;
}
.heart-1 {
  left: 12%;
  top: 30%;
  font-size: 18px;
}
.heart-2 {
  right: 15%;
  top: 42%;
  font-size: 26px;
  animation-delay: 1.5s;
}
.heart-3 {
  left: 22%;
  bottom: 15%;
  font-size: 12px;
  animation-delay: 3s;
}
@keyframes float {
  50% {
    transform: translateY(-25px) rotate(12deg);
    opacity: 0.85;
  }
}

.section-pad {
  padding: 120px 6vw;
}
.intro {
  max-width: 1450px;
  margin: auto;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 10vw;
  margin-top: 35px;
  align-items: end;
}
.big-copy {
  font-family: "DM Serif Display", serif;
  font-size: clamp(42px, 5.5vw, 82px);
  line-height: 1.05;
  letter-spacing: -1.5px;
}
.big-copy span {
  color: var(--rose);
  font-style: italic;
}
.intro-side {
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
  max-width: 390px;
}
.mini-sign {
  margin-top: 25px;
  color: #fff;
}
.mini-sign strong {
  color: var(--rose);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 55px;
}
.section-head h2,
.gallery-title-row h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  margin-top: 18px;
  letter-spacing: -1px;
}
.section-head > p,
.gallery-title-row > span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 1px;
}
.memory-cards {
  max-width: 1450px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 30px;
  align-items: start;
}
.memory-card {
  transition: transform 0.6s ease;
}
.card-b {
  margin-top: 90px;
}
.photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #171018;
}
.photo-wrap img {
  width: 100%;
  height: 570px;
  object-fit: cover;
  transition: 1s;
}
.card-b img {
  height: 640px;
}
.memory-card:hover .photo-wrap img {
  transform: scale(1.045);
}
.photo-number {
  position: absolute;
  top: 18px;
  left: 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}
.caption {
  padding: 18px 4px;
}
.caption span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rose);
}
.caption h3 {
  font-family: "DM Serif Display", serif;
  font-size: 25px;
  font-weight: 400;
  margin-top: 7px;
}

.gallery {
  max-width: 1500px;
  margin: auto;
}
.gallery-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 18px 0 45px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 290px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #161018;
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 1s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}
.gallery-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 17px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.letter {
  padding-top: 150px;
  padding-bottom: 150px;
}
.letter-card {
  max-width: 1000px;
  margin: auto;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}
.letter-top {
  display: flex;
  justify-content: space-between;
  padding: 22px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 2px;
  color: #bdaab4;
}
.letter-top span:last-child {
  color: var(--pink);
  font-size: 17px;
}
.letter-content {
  text-align: center;
  padding: 80px 10vw;
}
.letter-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rose);
}
.letter-content h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: clamp(45px, 6vw, 80px);
  line-height: 0.95;
  margin: 24px 0 40px;
}
.letter-content h2 em {
  color: var(--rose);
  font-style: italic;
}
.letter-body {
  max-width: 670px;
  margin: auto;
  color: #d9cbd1;
  font-size: 15px;
  line-height: 2;
}
.signature {
  margin-top: 35px;
  font-family: "DM Serif Display", serif;
  font-size: 23px;
}
.signature strong {
  color: var(--rose);
}

.final {
  min-height: 92svh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.final > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.9);
}
.final-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0c0710 0%,
    rgba(12, 7, 16, 0.2) 25%,
    rgba(12, 7, 16, 0.65) 100%
  );
}
.final-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 80px;
}
.final-content h2 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(70px, 10vw, 145px);
  line-height: 0.78;
  font-weight: 400;
  letter-spacing: -4px;
  margin: 28px 0;
}
.final-content p {
  color: #eee1e6;
  font-size: 15px;
}
.final-content button {
  margin-top: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--pink);
  color: #180910;
  border-radius: 100px;
  padding: 15px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.35s;
}
.final-content button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(255, 111, 159, 0.35);
}
.final-heart {
  position: absolute;
  right: 7vw;
  bottom: 10vh;
  color: var(--pink);
  font-size: 34px;
  opacity: 0.7;
  animation: pulse 1.8s infinite;
}
footer {
  text-align: center;
  padding: 28px;
  color: #85737d;
  font-size: 11px;
  letter-spacing: 1px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
footer span {
  color: var(--pink);
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.reveal.show {
  opacity: 1;
  transform: none;
}
.cursor-glow {
  position: fixed;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 111, 159, 0.08),
    transparent 68%
  );
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
}
.sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

@media (max-width: 900px) {
  .topbar {
    padding: 20px 5vw;
  }
  .top-link {
    display: none;
  }
  .hero {
    min-height: 650px;
  }
  .hero-photo img {
    object-position: 45% center;
  }
  .hero-date {
    right: 5vw;
    bottom: 4vh;
  }
  .section-pad {
    padding: 90px 5vw;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .memory-cards {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .card-b {
    margin-top: 0;
  }
  .photo-wrap img,
  .card-b img {
    height: 600px;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-item.wide {
    grid-column: span 2;
  }
}
@media (max-width: 600px) {
  .hero h1 {
    letter-spacing: -2px;
    margin: 22px 0;
  }
  .name-row .line {
    width: 35px;
  }
  .hero-content p {
    font-size: 14px;
    padding: 0 10px;
  }
  .hero-date {
    padding: 10px 13px;
  }
  .hero-date span {
    font-size: 25px;
  }
  .section-pad {
    padding: 75px 20px;
  }
  .section-head,
  .gallery-title-row {
    display: block;
  }
  .section-head > p,
  .gallery-title-row > span {
    display: block;
    margin-top: 20px;
  }
  .photo-wrap img,
  .card-b img {
    height: 520px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 390px;
  }
  .gallery-item.tall {
    grid-row: span 1;
  }
  .gallery-item.wide {
    grid-column: span 1;
  }
  .letter-content {
    padding: 60px 25px;
  }
  .letter-body {
    font-size: 14px;
    line-height: 1.85;
  }
  .final-content {
    padding: 0 20px;
    margin-top: 60px;
  }
  .final-content h2 {
    letter-spacing: -2px;
  }
  .cursor-glow {
    display: none;
  }
}

/* =========================
   MOBILE-FIRST V2 POLISH
   ========================= */
.mobile-badge,
.mobile-birthday-pill,
.mobile-actions {
  display: none;
}

.hero-date sup {
  font-size: 0.38em;
  vertical-align: super;
  letter-spacing: 0;
  margin-left: 1px;
}

@media (max-width: 600px) {
  body {
    background:
      radial-gradient(
        circle at 50% 0,
        rgba(255, 111, 159, 0.16),
        transparent 35%
      ),
      linear-gradient(180deg, #120812 0%, #09060b 100%);
  }

  .mobile-badge {
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 55;
    font-size: 9px;
    letter-spacing: 2.4px;
    color: #ffdbe6;
    white-space: nowrap;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(10, 5, 12, 0.35);
    backdrop-filter: blur(12px);
  }

  .topbar {
    position: absolute;
    padding: 20px;
    top: 45px;
  }
  .brand {
    font-size: 22px;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
    max-height: none;
    align-items: flex-end;
    padding-bottom: 54px;
  }
  .hero-photo img {
    object-position: 46% center;
    transform: scale(1.04);
  }
  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(5, 2, 8, 0.05) 10%,
      rgba(7, 3, 9, 0.18) 35%,
      rgba(8, 4, 10, 0.84) 75%,
      #0c0710 100%
    );
  }
  .hero-content {
    width: 100%;
    padding: 0 20px;
  }
  .hero h1 {
    font-size: clamp(64px, 20vw, 92px);
    line-height: 0.76;
    margin: 19px 0 22px;
  }
  .name-row {
    gap: 11px;
  }
  .name-row .line {
    width: 27px;
  }
  .name-row h2 {
    font-size: 31px;
  }
  .hero-content p {
    font-size: 13px;
    line-height: 1.55;
    max-width: 310px;
    margin-top: 17px;
  }
  .mobile-birthday-pill {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 159, 189, 0.3);
    background: rgba(255, 111, 159, 0.09);
    color: #ffdce7;
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .scroll-btn {
    margin-top: 21px;
    padding: 8px 9px 8px 15px;
    font-size: 10px;
  }
  .scroll-btn b {
    width: 28px;
    height: 28px;
  }
  .hero-date {
    right: 20px;
    top: 96px;
    bottom: auto;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(8, 4, 10, 0.38);
  }
  .hero-date span {
    font-size: 23px;
    line-height: 1;
  }
  .hero-date small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }

  .floating-heart {
    opacity: 0.38;
  }
  .heart-1 {
    left: 8%;
    top: 39%;
  }
  .heart-2 {
    right: 8%;
    top: 54%;
  }
  .heart-3 {
    left: 18%;
    bottom: 24%;
  }

  .section-pad {
    padding: 72px 18px;
  }
  .section-label {
    font-size: 9px;
    letter-spacing: 2.2px;
  }
  .big-copy {
    font-size: 39px;
    line-height: 1.02;
  }
  .intro-grid {
    gap: 25px;
    margin-top: 23px;
  }
  .intro-side {
    font-size: 13px;
    line-height: 1.75;
  }

  .section-head {
    margin-bottom: 30px;
  }
  .section-head h2,
  .gallery-title-row h2 {
    font-size: 43px;
    line-height: 0.95;
    margin-top: 13px;
  }
  .section-head > p,
  .gallery-title-row > span {
    font-size: 11px;
    line-height: 1.5;
  }

  .memory-cards {
    gap: 38px;
  }
  .photo-wrap,
  .card-b .photo-wrap {
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.32);
  }
  .photo-wrap img,
  .card-b img {
    height: 480px;
  }
  .caption {
    padding: 14px 2px 0;
  }
  .caption span {
    font-size: 8px;
    letter-spacing: 1.7px;
  }
  .caption h3 {
    font-size: 22px;
  }

  .gallery {
    padding-top: 65px;
  }
  .gallery-title-row {
    margin: 13px 0 30px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 420px;
    gap: 13px;
  }
  .gallery-item {
    border-radius: 14px;
  }
  .gallery-item figcaption {
    left: 14px;
    bottom: 13px;
    font-size: 10px;
  }

  .letter {
    padding-top: 85px;
    padding-bottom: 100px;
  }
  .letter-card {
    border-radius: 18px;
  }
  .letter-top {
    padding: 17px 18px;
    font-size: 8px;
  }
  .letter-content {
    padding: 53px 21px 48px;
  }
  .letter-kicker {
    font-size: 9px;
  }
  .letter-content h2 {
    font-size: 47px;
    line-height: 0.9;
    margin: 20px 0 30px;
  }
  .letter-body {
    font-size: 13px;
    line-height: 1.8;
  }
  .signature {
    font-size: 21px;
  }

  .final {
    min-height: 88svh;
  }
  .final > img {
    object-position: 54% center;
  }
  .final-content {
    padding: 0 20px;
    margin-top: 30px;
  }
  .final-content h2 {
    font-size: 72px;
    line-height: 0.78;
  }
  .final-content p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 290px;
    margin: 0 auto;
  }
  .final-content button {
    margin-top: 24px;
    padding: 13px 20px;
    font-size: 12px;
  }

  .mobile-actions {
    position: fixed;
    display: flex;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: 56px;
    z-index: 90;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background: rgba(17, 8, 19, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
  }
  .mobile-actions a,
  .mobile-actions button {
    flex: 1;
    border: 0;
    background: transparent;
    color: #dfcbd3;
    font-size: 10px;
    letter-spacing: 0.6px;
  }
  .mobile-actions button {
    max-width: 48px;
    border-radius: 14px;
    background: var(--pink);
    color: #16070e;
    font-size: 19px;
  }
  footer {
    padding: 25px 20px 90px;
    font-size: 9px;
  }
}

/* Extra-small phones */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 60px;
  }
  .hero-content {
    padding: 0 16px;
  }
  .mobile-birthday-pill {
    font-size: 8px;
  }
  .section-pad {
    padding-left: 15px;
    padding-right: 15px;
  }
  .big-copy {
    font-size: 35px;
  }
  .section-head h2,
  .gallery-title-row h2 {
    font-size: 39px;
  }
  .photo-wrap img,
  .card-b img {
    height: 430px;
  }
  .final-content h2 {
    font-size: 63px;
  }
}
