@font-face {
  font-family: "SVN Gallery Modern";
  src: url("../assets/fonts/SVN-GalleryModern.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yipes";
  src: url("../assets/fonts/Yipes.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --muted: #555;
  --paper: #ffffff;
  --paper-deep: #f3f3f3;
  --pink: #e84b78;
  --guest: #c62828;
  --white: #ffffff;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
  --gold: #b8924a;
  --font-sans: "Be Vietnam Pro", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-display: "SVN Gallery Modern", "Times New Roman", serif;
  --font-script: "Yipes", "Great Vibes", cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fab-right: 1rem;
  --fab-bottom: 1.1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  background: #1c1c1c;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

/* Khung app điện thoại — không tối ưu desktop */
.app-shell {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100svh;
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.paper {
  display: none;
}

.hero,
main,
footer {
  position: relative;
  z-index: 1;
}

/* —— Bao thư đỏ / lì xì mở thiệp —— */
.invite-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 50% 30%, #5a1212 0%, transparent 55%),
    linear-gradient(165deg, #1a0808 0%, #3d0d0d 45%, #140606 100%);
  opacity: 1;
  visibility: visible;
  transition:
    opacity 1.05s cubic-bezier(0.33, 0.05, 0.25, 1),
    visibility 1.05s cubic-bezier(0.33, 0.05, 0.25, 1),
    filter 1.05s cubic-bezier(0.33, 0.05, 0.25, 1);
  perspective: 900px;
}

.invite-gate.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(6px);
}

.li-xi {
  position: relative;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  width: min(72vw, 17.5rem);
  aspect-ratio: 3 / 4.35;
  cursor: pointer;
  transform-style: preserve-3d;
  animation: li-xi-float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
  transition:
    transform 1.05s cubic-bezier(0.33, 0.05, 0.25, 1),
    opacity 1.05s cubic-bezier(0.33, 0.05, 0.25, 1);
}

.li-xi:focus-visible {
  outline: 2px solid #e8c56a;
  outline-offset: 8px;
}

@keyframes li-xi-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.li-xi__shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1.1rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  filter: blur(6px);
  z-index: 0;
}

.li-xi__pocket {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.6rem 1.1rem 1.35rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(160deg, #d32f2f 0%, #b71c1c 42%, #8e0000 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(232, 197, 106, 0.55),
    inset 0 0 0 5px rgba(140, 20, 20, 0.35),
    inset 0 -10px 24px rgba(0, 0, 0, 0.18);
  color: #f8e7b0;
  overflow: hidden;
}

.li-xi__ornament {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgba(232, 197, 106, 0.35);
  border-radius: 0.25rem;
  pointer-events: none;
}

.li-xi__ornament::before,
.li-xi__ornament::after {
  content: "";
  position: absolute;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(232, 197, 106, 0.55);
}

.li-xi__ornament::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.li-xi__ornament::after {
  right: -1px;
  bottom: -1px;
  border-left: none;
  border-top: none;
}

.li-xi__seal {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1;
  color: #f0d078;
  text-shadow: 0 2px 0 rgba(90, 20, 20, 0.35);
  margin-bottom: 0.15rem;
}

.li-xi__names {
  font-family: var(--font-script);
  font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  line-height: 1.25;
  text-align: center;
  color: #ffe9a8;
  white-space: nowrap;
}

.li-xi__mono {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 233, 168, 0.72);
  margin-top: 0.15rem;
}

.li-xi__hint {
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255, 233, 168, 0.88);
  animation: gate-pulse 1.8s ease-in-out infinite;
}

@keyframes gate-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.invite-gate.is-opening .li-xi {
  animation: none;
  opacity: 0;
  transform: translateY(-18px) scale(1.08);
}

.invite-gate.is-opening .li-xi__hint {
  animation: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* —— Floating music —— */
.fab-music {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(var(--fab-right), calc((100vw - 430px) / 2 + 1rem));
  z-index: 60;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.fab-music:hover {
  transform: scale(1.06);
}

.fab-music[aria-pressed="true"] {
  background: var(--pink);
  animation: spin-soft 4s linear infinite;
}

@keyframes spin-soft {
  to {
    transform: rotate(360deg);
  }
}

/* —— FAB nav —— */
.fab-nav {
  position: fixed;
  right: max(var(--fab-right), calc((100vw - 430px) / 2 + 1rem));
  bottom: max(var(--fab-bottom), env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.fab-nav__thumb {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.fab-nav__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fab-nav__menu {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 8px 22px rgba(232, 75, 120, 0.4);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
}

.fab-nav__menu span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.fab-nav__menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.fab-nav__menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.fab-nav__menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Drawer —— */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.35);
}

.drawer {
  position: fixed;
  top: 0;
  right: max(0px, calc((100vw - 430px) / 2));
  z-index: 80;
  width: min(300px, 84vw, 430px);
  height: 100%;
  padding: 4rem 1.5rem 2rem;
  background: var(--white);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}

.drawer.is-open {
  transform: none;
}

.drawer a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
}

.drawer__close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  border: none;
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

/* —— Hero: ảnh full width, không crop theo máy —— */
.hero {
  position: relative;
  color: #fff;
  isolation: isolate;
}

.hero__media {
  position: relative;
  z-index: 0;
  line-height: 0;
  background: linear-gradient(160deg, #6b7a62, #2a3228);
}

.hero__img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 22%),
    linear-gradient(
      180deg,
      transparent 62%,
      rgba(255, 255, 255, 0.55) 80%,
      #ffffff 96%
    );
}

.hero__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    max(1.4rem, calc(env(safe-area-inset-top) + 0.7rem))
    1.35rem
    max(1.4rem, env(safe-area-inset-bottom));
  pointer-events: none;
}

.hero__copy {
  text-align: center;
  padding-top: 0.15rem;
}

.hero__headline {
  margin: 0 auto;
  width: min(72%, 280px);
  line-height: 0;
}

.hero__headline-img {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.hero__tagline {
  margin: 0.45rem auto 0;
  max-width: 18rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.88rem, 3.4vw, 1rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__date {
  margin: 0.4rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero__invite {
  text-align: center;
  color: var(--ink);
  padding-bottom: 0.2rem;
}

.hero__lead {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1rem;
}

.hero__guest {
  margin: 0;
  font-family: var(--font-script);
  font-size: clamp(1.65rem, 7.5vw, 2.1rem);
  color: var(--gold);
  line-height: 1.15;
}

/* —— Blocks —— */
.block {
  padding: 2.75rem 1.25rem 1rem;
  text-align: center;
}

.event__echo {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* —— Trang 2 intro —— */
.intro {
  padding-top: 2.2rem;
}

.intro__heart {
  margin: 0 0 0.65rem;
  line-height: 0;
}

.intro__wedding {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 12vw, 3.5rem);
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--gold);
  text-indent: 0.12em;
}

.intro__title {
  margin: 0.85rem 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.intro__keywords {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 1.35rem auto 0;
  max-width: 20rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.intro__shot {
  margin: 1.6rem calc(-1.25rem) 0;
  background: #000;
  padding: 1.35rem 0 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.intro__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro__caption {
  margin: 0;
  padding: 0.45rem 1.1rem 0.5rem;
  background: #000;
  color: #fff;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.intro__message {
  margin: 1.75rem auto 0;
  max-width: 22rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-soft, #5c4f49);
}

.intro__message .intro__en {
  font-style: italic;
  color: var(--muted);
  font-size: 0.8rem;
}

.heart-beat {
  display: inline-block;
  transform-origin: center;
  animation: heart-beat 1.15s ease-in-out infinite;
}

.heart-beat:nth-child(odd) {
  animation-delay: 0.2s;
}

@keyframes heart-beat {
  0%,
  100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.22);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14);
  }
  60% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heart-beat {
    animation: none;
  }
}

.events-compact {
  padding-top: 1.35rem;
  padding-bottom: 0.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  text-align: center;
}

.event-card {
  min-width: 0;
  padding: 0.35rem 0.15rem;
}

.event-card__title {
  margin: 0 0 0.3rem;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.event-card__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.event-card__time {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.event-card__date {
  margin: 0.3rem 0 0;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.event-card__date span {
  display: block;
}

.event-card__lunar {
  margin: 0.25rem 0 0;
  font-size: 0.58rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.35;
}

.families-section {
  padding-top: 1.5rem;
  padding-bottom: 0.35rem;
}

.families {
  margin: 0 auto;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: start;
}

.family {
  text-align: center;
  min-width: 0;
}

.family__side {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.family__names {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  line-height: 1.4;
}

.family__addr {
  margin: 0.3rem 0 0.55rem;
  font-size: 0.62rem;
  line-height: 1.35;
  color: var(--muted);
}

.family__map.map-wrap {
  width: 100%;
  margin: 0 auto;
  aspect-ratio: 1 / 1.05;
}

.family .map-link {
  margin-top: 0.4rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

/* —— My Lover —— */
.lover {
  padding-top: 2.6rem;
  padding-bottom: 1rem;
}

.lover__title {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 2.6rem);
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--gold);
  line-height: 1.1;
}

.lover__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.85rem auto 0;
  max-width: 22rem;
}

.lover__card {
  margin: 0;
  text-align: center;
}

.lover__photo {
  aspect-ratio: 1 / 2;
  overflow: hidden;
  background: var(--paper-deep);
}

.lover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.lover__line {
  display: block;
  width: 1px;
  height: 1.35rem;
  margin: 0.7rem auto 0.55rem;
  background: #cfcfcf;
}

.lover__card figcaption {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(1.15rem, 4.8vw, 1.4rem);
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
  white-space: nowrap;
}

.lover__poem {
  margin: 2rem auto 0;
  max-width: 18rem;
}

.lover__poem p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
}

.lover__poem-en {
  margin: 1.15rem auto 0;
  max-width: 18rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}

/* —— Film strip —— */
.film {
  padding: 1.5rem 0 0.5rem;
}

.film__roll {
  --film-noise: 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='0.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  margin: 0 calc(-1.25rem);
  display: grid;
  grid-template-columns: 2.65rem 1fr 2.65rem;
  background: #050505;
  padding: 0.45rem 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.film__rail {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, #000 0%, #121212 45%, #000 100%);
  color: rgba(255, 255, 255, 0.62);
  min-height: 100%;
}

.film__noise {
  pointer-events: none;
  position: absolute;
  inset: -20%;
  background-image: var(--film-noise);
  opacity: 0.42;
  mix-blend-mode: soft-light;
  transform: scale(1.2);
}

.film__rail--left .film__noise {
  opacity: 0.5;
}

.film__sprockets {
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}

.film__rail--left .film__sprockets {
  left: 0.28rem;
}

.film__rail--right .film__sprockets {
  right: 0.28rem;
}

.film__hole {
  display: block;
  width: 0.72rem;
  height: 1.05rem;
  border-radius: 1.5px;
  background: #1a1a1a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.8);
}

.film__marks {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  pointer-events: none;
}

.film__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 2.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  /* nằm dọc mép phim, xếp từ trên xuống */
  transform: rotate(-90deg);
}

.film__rail--right .film__mark {
  transform: rotate(90deg);
}

.film__mark:nth-child(even) {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.48rem;
}

.film__mark:nth-child(odd) {
  color: rgba(255, 255, 255, 0.78);
}

.film__frames {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.2rem 0.2rem;
  background: #050505;
}

.film__shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #1c1c1c;
}

.film__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.film__frames .film__shot:nth-child(1) img,
.film__frames .film__shot:nth-child(2) img {
  object-position: center 42%;
}

.film__shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.6rem 0.75rem 0.55rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.35;
}

/* —— I Love You —— */
.love {
  padding-top: 2.4rem;
  overflow: visible;
}

.love__quote {
  margin: 0 auto 1.5rem;
  max-width: 20rem;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
}

.love__stage {
  position: relative;
  width: min(100%, 22rem);
  margin: 0 auto;
  padding: 0 0 9.5rem;
  overflow: visible;
}

.love__cutout {
  position: absolute;
  /* Neo sát mép trái của .love__main (main có margin-left: 1.6rem) */
  left: -1.1rem;
  bottom: 1.35rem;
  width: 50%;
  max-width: none;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
  transform: scale(2);
  transform-origin: left bottom;
}

.love__main {
  margin-left: 1.6rem;
  overflow: hidden;
  background: var(--paper-deep);
}

.love__main img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
}

.love__side {
  position: absolute;
  left: 0;
  top: 0.5rem;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1.35;
  white-space: nowrap;
}

.love__cutout img {
  width: 165%;
  max-width: none;
  height: auto;
  display: block;
  margin-left: -60%;
  background: transparent;
  object-fit: contain;
  object-position: left bottom;
}

.love__headline {
  position: absolute;
  right: 0;
  bottom: 2.4rem;
  z-index: 3;
  margin: 0;
  max-width: 14rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 10vw, 2.9rem);
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--gold);
  text-stroke: 1.2px var(--gold);
  line-height: 1;
  text-align: right;
}

.love__verse {
  position: absolute;
  right: 0;
  bottom: -1.85rem;
  z-index: 3;
  margin: 0;
  max-width: 14rem;
  font-family: var(--font-serif);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--muted);
  text-align: right;
}

/* —— Save the Date —— */
.std {
  padding: 4.5rem 0 0;
  text-align: center;
}

.std__stack {
  margin: 0 calc(-1.25rem);
}

.std__shot {
  margin: 0;
  background: var(--paper-deep);
  line-height: 0;
}

.std__shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: center 34%;
  display: block;
}

.std__keywords {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0.85rem 1.25rem;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--ink);
}

.std__footer {
  padding: 2.2rem 1.25rem 1.5rem;
}

.std__title {
  margin: 0.55rem 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  letter-spacing: 0.1em;
  color: var(--gold);
  line-height: 1.1;
}

.std__poem {
  margin: 0 auto;
  max-width: 18rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink);
}

/* —— Polaroid calendar —— */
.polaroid {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.polaroid__card {
  width: min(100%, 20.5rem);
  margin: 0 auto;
  padding: 0.7rem 0.7rem 0.85rem;
  background:
    linear-gradient(145deg, #2a2a2a, #141414 55%, #1c1c1c);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
}

.polaroid__card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.18;
  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='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.polaroid__photo {
  position: relative;
  overflow: hidden;
  background: #333;
  line-height: 0;
}

.polaroid__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.polaroid__cal {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 10%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.28rem 0.2rem;
  padding: 0.35rem 0.2rem;
  background: transparent;
}

.polaroid__day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.polaroid__day.is-empty {
  visibility: hidden;
}

.polaroid__day.is-heart {
  color: #fff;
  font-weight: 700;
  z-index: 1;
}

.polaroid__heart {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -54%);
  font-size: 1.55rem;
  line-height: 1;
  color: #e53935;
  text-shadow: 0 0 10px rgba(229, 57, 53, 0.55);
  animation: cal-heart 1.05s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

.polaroid__day.is-heart b {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 0.62rem;
}

@keyframes cal-heart {
  0%,
  100% {
    transform: translate(-50%, -54%) scale(1);
  }
  18% {
    transform: translate(-50%, -54%) scale(1.2);
  }
  36% {
    transform: translate(-50%, -54%) scale(1);
  }
  54% {
    transform: translate(-50%, -54%) scale(1.12);
  }
  72% {
    transform: translate(-50%, -54%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .polaroid__heart {
    animation: none;
  }
}

.polaroid__meta {
  position: relative;
  z-index: 1;
  padding: 0.85rem 0.35rem 0.15rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

.polaroid__meta p {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  line-height: 1.55;
}

.polaroid__meta p + p {
  margin-top: 0.15rem;
  font-size: 0.74rem;
  opacity: 0.88;
}

.polaroid__poem {
  margin: 1.35rem auto 0;
  max-width: 100%;
  padding: 0 0.25rem;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--ink);
}

.polaroid__poem span {
  display: block;
  white-space: nowrap;
}

.parents {
  margin: 0 auto 1.5rem;
  max-width: 22rem;
}

.parents__label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
}

.parents__names {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.55;
}

.parents__addr {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.ornament {
  margin: 0.5rem auto 1.25rem;
  opacity: 0.9;
}

.event__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.event__sub {
  margin: 0.35rem 0 1.4rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.event__time {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.event__date {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.event__lunar {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.section-label {
  margin: 2.6rem 0 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.event__venue {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
}

.event__address {
  margin: 0.35rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-wrap {
  width: min(560px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15);
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 2px;
}

/* —— Timeline —— */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.timeline__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.timeline__time,
.timeline__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.timeline__row.is-left .timeline__time {
  text-align: right;
}
.timeline__row.is-left .timeline__label {
  text-align: left;
}
.timeline__row.is-right .timeline__label {
  text-align: right;
}
.timeline__row.is-right .timeline__time {
  text-align: left;
}

.timeline__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
}

.timeline__icon svg {
  width: 20px;
  height: 20px;
}

/* —— Portraits —— */
.portraits__stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: min(640px, 100%);
  margin: 0 auto;
}

.portraits__stack figure {
  margin: 0;
  background: var(--paper-deep);
  min-height: 280px;
  overflow: hidden;
}

.portraits__stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.portraits__stack .is-empty {
  min-height: 240px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.script-names {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
}

.portraits__names {
  margin: 1.75rem 0 0;
  font-size: clamp(2.8rem, 11vw, 4rem);
}

.portraits__names span {
  display: block;
}

/* —— Gallery —— */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.45rem;
  width: min(640px, 100%);
  margin: 0 auto 1.75rem;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  min-height: 110px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.gallery__item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: span 2;
  min-height: 180px;
}
.gallery__item:nth-child(2) {
  grid-column: 3 / 5;
  grid-row: span 2;
  min-height: 180px;
}
.gallery__item:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: span 2;
  min-height: 180px;
}
.gallery__item:nth-child(4) {
  grid-column: 1 / 4;
  min-height: 160px;
}
.gallery__item:nth-child(5) {
  grid-column: 4 / 7;
  min-height: 160px;
}
.gallery__item:nth-child(6) {
  grid-column: 1 / 4;
  min-height: 150px;
}
.gallery__item:nth-child(7) {
  grid-column: 4 / 7;
  min-height: 150px;
}

.gallery__item.is-empty::after {
  content: "Thêm ảnh";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.btn-rsvp-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(320px, 92%);
  padding: 0.95rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

/* —— RSVP —— */
.rsvp {
  padding-top: 1.5rem;
}

.rsvp-card {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: left;
}

.rsvp-card h2 {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

.field {
  display: block;
  margin: 0 0 1.05rem;
  border: none;
  padding: 0;
}

.field > span,
.field > legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0;
}

.field input[type="text"],
.field select {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d7d3cb;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0;
  font-size: 0.9rem;
  cursor: pointer;
}

.radio input {
  margin-top: 0.2rem;
  accent-color: #2563eb;
}

.btn-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  background: #2b2b2b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-submit:hover {
  background: #111;
}

.rsvp-msg {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: #1b7a3d;
}

/* —— Gifts —— */
.gifts__art {
  margin: 0.25rem auto 1.5rem;
}

.gifts__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(420px, 100%);
  margin: 0 auto;
}

.gift {
  padding: 1rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
}

.gift__side {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--pink);
}

.gift__bank {
  margin: 0;
  font-weight: 700;
}

.gift__name,
.gift__number {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.gift__number {
  font-family: ui-monospace, monospace;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.gift__qr {
  width: 140px;
  height: 140px;
  margin: 0.75rem auto 0;
  object-fit: contain;
  background: var(--paper-deep);
}

.gift__qr.is-missing {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.copy-btn {
  margin-top: 0.65rem;
  border: 1px solid #ddd;
  background: #fff;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

/* —— Footer —— */
.footer {
  padding: 3rem 1.25rem 7rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__names {
  margin: 0 auto 0.85rem;
  width: min(100%, 18rem);
  font-size: clamp(1.85rem, 8vw, 2.35rem);
  color: var(--ink);
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.footer__line {
  display: block;
  white-space: nowrap;
}

.footer__line--bride {
  align-self: flex-start;
  text-align: left;
}

.footer__line--groom {
  align-self: flex-end;
  text-align: right;
}

/* —— Scroll reveal (lần đầu) —— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 1.45s var(--ease),
    transform 1.45s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.14s;
}
.reveal-delay-2 {
  transition-delay: 0.28s;
}
.reveal-delay-3 {
  transition-delay: 0.4s;
}

@keyframes ken {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__photo,
  .fab-music[aria-pressed="true"] {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
