:root {
  --bg-main: #f8f5f1;
  --bg-soft: #fffdfb;
  --bg-warm: #fff7f3;

  --text-main: #221c1f;
  --text-soft: #655b60;
  --text-muted: #8d8087;

  --accent: #6a132f;
  --accent-dark: #3d0b1e;
  --accent-soft: #f3dce4;

  --white-strong: rgba(255, 255, 255, 0.96);
  --white-soft: rgba(255, 255, 255, 0.82);
  --white-faint: rgba(255, 255, 255, 0.28);

  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-image: 0 22px 45px rgba(0, 0, 0, 0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --section-pad-y: 88px;

  --transition-fast: 0.25s ease;
  --transition-medium: 0.45s ease;
  --transition-slow: 0.7s ease;
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--bg-main);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  scroll-snap-type: none;
}

img {
  max-width: 100%;
  display: block;
}

section {
  position: relative;
}

.snap-section {
  min-height: 100vh;
  height: 100vh;
}

/* GLOBAL */
.section-title {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.closing-text {
  color: var(--text-soft);
  line-height: 1.85;
}

.btn-burgundy {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-burgundy:hover {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(106, 19, 47, 0.18);
}

.btn-burgundy:focus {
  box-shadow: 0 0 0 0.2rem rgba(106, 19, 47, 0.18);
}

/* GATE */
/* ========================= */
/* 🔐 GATE */
/* ========================= */

.gate-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 210, 225, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 170, 200, 0.16),
      transparent 22%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(255, 220, 230, 0.12),
      transparent 28%
    ),
    linear-gradient(135deg, #3d061a 0%, #6a132f 35%, #8d1b44 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ========================= */
/* FLOATING HEARTS */
/* ========================= */

.gate-hearts {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.heart {
  position: absolute;
  bottom: -40px;
  color: rgba(255, 230, 238, 0.4);
  font-size: clamp(18px, 2.2vw, 32px);
  text-shadow:
    0 0 8px rgba(255, 210, 225, 0.25),
    0 0 18px rgba(255, 210, 225, 0.15);
  opacity: 0;
  animation: floatHeart linear infinite;
  will-change: transform, opacity;
}

/* Positions */
.heart-1 {
  left: 6%;
  animation-duration: 10s;
  animation-delay: 0s;
}
.heart-2 {
  left: 16%;
  animation-duration: 13s;
  animation-delay: 1.5s;
}
.heart-3 {
  left: 28%;
  animation-duration: 11s;
  animation-delay: 4s;
}
.heart-4 {
  left: 42%;
  animation-duration: 15s;
  animation-delay: 2s;
}
.heart-5 {
  left: 58%;
  animation-duration: 12s;
  animation-delay: 5s;
}
.heart-6 {
  left: 72%;
  animation-duration: 14s;
  animation-delay: 3s;
}
.heart-7 {
  left: 84%;
  animation-duration: 11.5s;
  animation-delay: 6s;
}
.heart-8 {
  left: 92%;
  animation-duration: 16s;
  animation-delay: 1s;
}

/* Animation */
@keyframes floatHeart {
  0% {
    transform: translate3d(0, 0, 0) scale(0.85) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  35% {
    transform: translate3d(14px, -28vh, 0) scale(1) rotate(8deg);
    opacity: 0.75;
  }
  65% {
    transform: translate3d(-10px, -58vh, 0) scale(1.08) rotate(-8deg);
    opacity: 0.6;
  }
  100% {
    transform: translate3d(12px, -108vh, 0) scale(1.2) rotate(10deg);
    opacity: 0;
  }
}

/* ========================= */
/* GLOW BACKGROUND */
/* ========================= */

.gate-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 1;
}

.gate-glow-1 {
  width: 320px;
  height: 320px;
  top: 8%;
  left: 10%;
  background: rgba(255, 182, 210, 0.22);
}

.gate-glow-2 {
  width: 360px;
  height: 360px;
  bottom: 4%;
  right: 8%;
  background: rgba(255, 220, 230, 0.16);
}

/* ========================= */
/* CARD */
/* ========================= */

.gate-box {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  padding: 38px 28px 30px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.gate-top-kiss {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

/* TEXT */
.gate-box h2 {
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
}

.gate-box p {
  color: rgba(255, 245, 248, 0.9);
}

/* INPUT */
.gate-box input {
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.gate-box input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.gate-box input:focus {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 0.2rem rgba(255, 210, 225, 0.16);
}

/* BUTTON */
.gate-box .btn-burgundy {
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff0f5, #ffdbe6);
  border: none;
  color: var(--accent);
  font-weight: 700;
}

.gate-box .btn-burgundy:hover {
  transform: translateY(-2px);
}

/* ERROR */
#errorMsg {
  color: #ffe2ea !important;
}

/* MOBILE */
@media (max-width: 576px) {
  .gate-box {
    padding: 34px 20px;
    border-radius: 24px;
  }
}

/* HERO */
.hero.hero-refined {
  min-height: 100vh;
  background: none;
  color: #fff;
  padding: 20px;
  overflow: hidden;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-mouse-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background: url("../assets/images/hero/img.JPG") center/cover no-repeat;
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
  transition: transform 0.18s ease-out;
  pointer-events: none;
}

.hero.hero-refined::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.54)),
    linear-gradient(to top right, rgba(106, 19, 47, 0.18), transparent 42%);
  pointer-events: none;
}

.hero.hero-refined::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(248, 245, 241, 0.42)
  );
  pointer-events: none;
}

.hero-mouse-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.1),
    transparent 28%
  );
  mix-blend-mode: screen;
  opacity: 0.75;
  will-change: transform;
  transition: transform 0.18s ease-out;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0 auto;
}

.hero-content.hero-mouse-content {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.4rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  line-height: 1.02;
  will-change: transform;
  transition: transform 0.18s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.9;
  margin: 0 auto;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.93);
  will-change: transform;
  transition: transform 0.18s ease-out;
}

/* reduce effect on touch devices */
@media (hover: none), (pointer: coarse) {
  .hero-mouse-bg,
  .hero-mouse-glow,
  .hero-content.hero-mouse-content,
  .hero-title,
  .hero-subtitle {
    transition: none;
    transform: none !important;
  }
}

/* MEMORY SLIDER */
.memory-slider-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #111;
}

.memory-slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.08);
}

.memory-slider-indicator-fill {
  width: 0%;
  height: 100%;
  background: var(--accent-soft);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.memory-slider-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.memory-stage-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition:
    transform 1s ease,
    opacity 0.8s ease,
    filter 0.8s ease;
  transform: scale(1);
  animation: stageBreath 10s ease-in-out infinite;
  will-change: transform;
}

.memory-stage-bg.is-animating {
  transform: scale(1.06);
  filter: brightness(0.98);
}

.memory-stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1)),
    linear-gradient(to right, rgba(106, 19, 47, 0.12), transparent 36%);
}

/* transition layer under UI */
.memory-transition-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

.memory-transition-clone {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  will-change: top, left, width, height, border-radius, transform, opacity;
}

.memory-transition-clone-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.memory-transition-clone-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.04)),
    linear-gradient(to right, rgba(106, 19, 47, 0.08), transparent 42%);
}

.memory-slider-overlay {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  padding: 24px 28px 28px;
}

/* DETAILS */
.memory-slider-details {
  position: absolute;
  left: 54px;
  top: 46%;
  transform: translateY(-50%);
  z-index: 30;
  color: #fff;
  max-width: 700px;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.memory-slider-details.is-changing {
  opacity: 0;
  transform: translateY(calc(-50% + 34px));
}

.memory-place-box {
  min-height: 48px;
  overflow: hidden;
}

.memory-place-text {
  position: relative;
  padding-top: 18px;
  font-size: 20px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
}

.memory-place-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.memory-title-box-1,
.memory-title-box-2 {
  overflow: hidden;
}

.memory-title-1,
.memory-title-2 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.memory-desc {
  margin-top: 18px;
  max-width: 620px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.92);
}

/* BOTTOM ZONE */
.memory-slider-bottom-zone {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 26px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* PREVIEWS */
.memory-slider-preview-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  margin-bottom: -6px;
}

.memory-slider-preview-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 18px;
  width: 100%;
  pointer-events: auto;
}

.memory-preview-card {
  position: relative;
  width: min(100%, 150px);
  justify-self: center;
  min-width: 0;
  max-width: 150px;
  height: 210px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  animation: previewFloat 6s ease-in-out infinite;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.15);
  opacity: 0.62;
  filter: blur(2px);
  transform: translateY(34px) scale(0.95);
}

.memory-preview-card:nth-child(1) {
  animation-delay: 0s;
}
.memory-preview-card:nth-child(2) {
  animation-delay: 0.4s;
}
.memory-preview-card:nth-child(3) {
  animation-delay: 0.8s;
}
.memory-preview-card:nth-child(4) {
  animation-delay: 1.2s;
}
.memory-preview-card:nth-child(5) {
  animation-delay: 1.6s;
}

.memory-preview-card.is-active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
  box-shadow:
    0 22px 46px rgba(0, 0, 0, 0.28),
    0 0 22px rgba(255, 255, 255, 0.08);
}

.memory-preview-card.is-next {
  box-shadow: 0 22px 42px rgba(106, 19, 47, 0.24);
}

.memory-preview-card.is-source-hidden {
  opacity: 0;
  transform: scale(0.96);
}

.memory-preview-card:hover {
  transform: translateY(-8px) scale(1.02);
  opacity: 1;
  filter: blur(0);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.08);
}

.memory-preview-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.memory-preview-card:hover .memory-preview-image {
  transform: scale(1.06);
}

.memory-preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.14)),
    linear-gradient(to right, rgba(106, 19, 47, 0.08), transparent 44%);
}

.memory-preview-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 12px 12px;
  color: #fff;
  z-index: 2;
}

.memory-preview-line {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  margin-bottom: 8px;
}

.memory-preview-place {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.9);
}

.memory-preview-title1,
.memory-preview-title2 {
  font-size: 14px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* ROADMAP */
.memory-slider-bottom-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.memory-slider-roadmap {
  position: relative;
  width: 100%;
  height: 78px;
  min-width: 0;
}

.memory-road-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.18)
  );
  overflow: hidden;
}

.memory-road-track::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -20%;
  width: 40%;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  opacity: 0.9;
  animation: roadFlow 4s linear infinite;
  pointer-events: none;
}

.memory-road-progress {
  position: absolute;
  left: 0;
  width: 0%;
  top: 50%;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-soft), #ffffff);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
  transition: width 0.7s ease;
}

.memory-road-stop {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow:
    0 0 0 7px rgba(106, 19, 47, 0.12),
    0 10px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    background 0.45s ease;
  overflow: visible;
}

.memory-road-stop::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0.35;
  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    box-shadow 0.45s ease;
}

.memory-road-stop.active {
  transform: translate(-50%, -50%) scale(1.16);
  background: #fff7fa;
  box-shadow:
    0 0 0 10px rgba(106, 19, 47, 0.16),
    0 12px 22px rgba(0, 0, 0, 0.12);
}

.memory-road-stop.active::before {
  transform: translate(-50%, -50%) scale(1.45);
  opacity: 1;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.82),
    0 0 20px rgba(255, 255, 255, 0.62),
    0 0 40px rgba(255, 255, 255, 0.4);
}

.memory-road-stop[data-road-stop="0"] {
  left: 0%;
}
.memory-road-stop[data-road-stop="1"] {
  left: 25%;
}
.memory-road-stop[data-road-stop="2"] {
  left: 50%;
}
.memory-road-stop[data-road-stop="3"] {
  left: 75%;
}
.memory-road-stop[data-road-stop="4"] {
  left: 100%;
}

.memory-road-stop.destination {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff6f8, #f5dce5);
}

.memory-road-stop.destination span {
  font-size: 0.72rem;
  line-height: 1;
}

.memory-road-car {
  position: absolute;
  left: 0%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition:
    left 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s ease;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.18));
}

.memory-road-car img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* PAGINATION */
.memory-slider-pagination {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: auto;
  justify-content: flex-end;
}

.memory-arrow {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.memory-arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.08);
}

/* ANIMATIONS */
@keyframes stageBreath {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes previewFloat {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes roadFlow {
  0% {
    left: -20%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* MEMORIES */
.memories-section {
  position: relative;
  padding-top: var(--section-pad-y);
  padding-bottom: 0;
  min-height: auto;
  height: auto;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(255, 210, 225, 0.16),
      transparent 25%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(255, 170, 200, 0.12),
      transparent 22%
    ),
    radial-gradient(
      circle at 50% 90%,
      rgba(255, 220, 230, 0.08),
      transparent 30%
    ),
    linear-gradient(180deg, #2e0616 0%, #4f1127 40%, #6a132f 70%, #7e1a3d 100%);
}

.memories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 260px));
  justify-content: center;
  gap: 34px 30px;
}

.polaroid {
  background: rgba(255, 255, 255, 0.92);
  width: 100%;
  padding: 12px 12px 18px;
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.polaroid:nth-child(1) {
  transform: rotate(-4deg);
}
.polaroid:nth-child(2) {
  transform: rotate(3deg);
}
.polaroid:nth-child(3) {
  transform: rotate(-2deg);
}
.polaroid:nth-child(4) {
  transform: rotate(4deg);
}
.polaroid:nth-child(5) {
  transform: rotate(-3deg);
}
.polaroid:nth-child(6) {
  transform: rotate(2deg);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  box-shadow: 0 16px 36px rgba(106, 19, 47, 0.14);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.polaroid-caption {
  margin-top: 14px;
  text-align: center;
}

.memory-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.polaroid-caption p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* CLOSING */
.closing-section.closing-refined {
  background: transparent;
  padding-top: 40px; /* reduced */
  padding-bottom: var(--section-pad-y);
  margin-top: -1px; /* kills any pixel seam */
}
/* .closing-section.closing-refined::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(106, 19, 47, 0.28) 60%,
    rgba(106, 19, 47, 0.5) 100%
  );
  z-index: 1;
  pointer-events: none;
} */

.closing-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .memory-slider-details {
    left: 42px;
    max-width: 560px;
  }

  .memory-slider-bottom-zone {
    left: 42px;
    right: 42px;
  }

  .memory-slider-pagination {
    min-width: auto;
  }
}

@media (max-width: 992px) {
  .memory-slider-details {
    left: 24px;
    right: 24px;
    max-width: 520px;
  }

  .memory-desc {
    max-width: 520px;
    font-size: 0.98rem;
  }

  .memory-slider-bottom-zone {
    left: 24px;
    right: 24px;
    bottom: 18px;
    gap: 12px;
  }

  .memory-slider-preview-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .memory-preview-card {
    width: min(100%, 120px);
    max-width: 120px;
    height: 170px;
    border-radius: 18px;
  }

  .memory-preview-title1,
  .memory-preview-title2 {
    font-size: 14px;
  }

  .memory-preview-place {
    font-size: 10px;
  }

  .memory-slider-bottom-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .memory-slider-roadmap {
    min-width: 0;
  }

  .memory-slider-pagination {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .memories-grid {
    grid-template-columns: repeat(2, minmax(220px, 260px));
    gap: 28px 24px;
  }

  .memories-section.snap-section {
    min-height: auto;
    height: auto;
  }
}

@media (max-width: 768px) {
  .hero.hero-refined {
    min-height: 90vh;
    padding: 20px;
  }

  .memory-slider-overlay {
    padding: 14px;
  }

  .memory-slider-details {
    left: 16px;
    right: 16px;
    top: 44%;
    max-width: none;
  }

  .memory-place-text {
    font-size: 16px;
    padding-top: 14px;
  }

  .memory-place-text::before {
    width: 28px;
    height: 4px;
  }

  .memory-title-1,
  .memory-title-2 {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .memory-desc {
    margin-top: 14px;
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .memory-slider-bottom-zone {
    left: 16px;
    right: 16px;
    bottom: 14px;
  }

  .memory-slider-preview-row {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .memory-slider-preview-row::-webkit-scrollbar {
    display: none;
  }

  .memory-preview-card {
    width: 100%;
    min-width: 92px;
    max-width: 92px;
    height: 132px;
    border-radius: 16px;
  }

  .memory-preview-content {
    padding: 12px;
  }

  .memory-preview-line {
    width: 24px;
    height: 4px;
    margin-bottom: 8px;
  }

  .memory-preview-place {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .memory-preview-title1,
  .memory-preview-title2 {
    font-size: 11px;
  }

  .memory-slider-roadmap {
    height: 58px;
  }

  .memory-road-track,
  .memory-road-progress {
    height: 6px;
  }

  .memory-road-stop {
    width: 18px;
    height: 18px;
    border-width: 3px;
  }

  .memory-road-stop::before {
    width: 10px;
    height: 10px;
  }

  .memory-road-stop.destination {
    width: 24px;
    height: 24px;
  }

  .memory-road-stop.destination span {
    font-size: 0.6rem;
  }

  .memory-road-car {
    width: 40px;
    height: 40px;
  }

  .memory-arrow {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .memory-slider-pagination {
    width: 100%;
    justify-content: center;
  }

  .memories-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .memories-section.snap-section {
    min-height: auto;
    height: auto;
  }

  .polaroid {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .memory-preview-card {
    width: 100%;
    min-width: 84px;
    max-width: 84px;
    height: 120px;
  }

  .memory-road-stop::before {
    width: 8px;
    height: 8px;
  }

  .polaroid {
    width: 100%;
    max-width: 280px;
  }
}
/* ========================= */
/* ROMANTIC BACKGROUND SYSTEM */
/* ========================= */

.section-content {
  position: relative;
  z-index: 3;
}

.section-title-light {
  color: #fff7fa;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.closing-text-light {
  color: rgba(255, 240, 245, 0.9);
}

.closing-section.closing-refined {
  min-height: auto;
  height: auto;
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.romance-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* floating hearts */
.romance-heart {
  position: absolute;
  bottom: -50px;
  color: rgba(255, 230, 238, 0.22);
  font-size: clamp(18px, 2.2vw, 32px);
  line-height: 1;
  text-shadow:
    0 0 8px rgba(255, 210, 225, 0.14),
    0 0 18px rgba(255, 210, 225, 0.1);
  opacity: 0;
  animation: romanceFloat linear infinite;
  will-change: transform, opacity;
}

.heart-a {
  left: 7%;
  animation-duration: 11s;
  animation-delay: 0s;
}
.heart-b {
  left: 16%;
  animation-duration: 15s;
  animation-delay: 2s;
}
.heart-c {
  left: 28%;
  animation-duration: 12.5s;
  animation-delay: 5s;
}
.heart-d {
  left: 42%;
  animation-duration: 17s;
  animation-delay: 1s;
}
.heart-e {
  left: 57%;
  animation-duration: 13.5s;
  animation-delay: 4s;
}
.heart-f {
  left: 71%;
  animation-duration: 16s;
  animation-delay: 3s;
}
.heart-g {
  left: 84%;
  animation-duration: 12s;
  animation-delay: 6s;
}
.heart-h {
  left: 92%;
  animation-duration: 18s;
  animation-delay: 1.5s;
}
.heart-i {
  left: 18%;
  animation-duration: 14s;
  animation-delay: 0.5s;
}
.heart-j {
  left: 38%;
  animation-duration: 12s;
  animation-delay: 3.5s;
}
.heart-k {
  left: 66%;
  animation-duration: 16s;
  animation-delay: 1.2s;
}
.heart-l {
  left: 88%;
  animation-duration: 13.5s;
  animation-delay: 5.5s;
}

@keyframes romanceFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.85) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  40% {
    transform: translate3d(18px, -30vh, 0) scale(1.05) rotate(10deg);
    opacity: 0.7;
  }
  70% {
    transform: translate3d(-12px, -65vh, 0) scale(1.12) rotate(-10deg);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(14px, -110vh, 0) scale(1.2) rotate(12deg);
    opacity: 0;
  }
}

/* glow orbs */
.romance-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.34;
}

.orb-a {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 8%;
  background: rgba(255, 182, 210, 0.18);
}

.orb-b {
  width: 340px;
  height: 340px;
  top: 24%;
  right: 8%;
  background: rgba(255, 220, 230, 0.14);
}

.orb-c {
  width: 300px;
  height: 300px;
  bottom: 4%;
  left: 35%;
  background: rgba(255, 170, 200, 0.12);
}

.orb-d {
  width: 320px;
  height: 320px;
  top: 10%;
  left: 12%;
  background: rgba(255, 200, 220, 0.16);
}

.orb-e {
  width: 280px;
  height: 280px;
  bottom: 8%;
  right: 12%;
  background: rgba(255, 230, 238, 0.12);
}

/* improve readability on dark bg */
.memories-section .memory-date {
  color: rgba(0, 0, 0, 0.78);
}

.memories-section .polaroid {
  background: rgba(255, 255, 255, 0.94);
}

.memories-section .polaroid:hover {
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(255, 220, 230, 0.08);
}

/* mobile */
@media (max-width: 768px) {
  .romance-heart {
    font-size: 20px;
  }

  .romance-orb {
    filter: blur(60px);
    opacity: 0.28;
  }
}
