:root {
  --bg: #fcf7f3;
  --bg-cream: #fbf5ea;    /* kem */
  --bg-blush: #f6e1e0;    /* hồng nhạt (xen kẽ với kem) */
  --ink: #1f0e11;
  --muted: #4f3a3e;
  --accent: #8c1c2c;      /* đổi màu chủ đạo ở đây (đỏ đô) */
  --wine: #4a0d19;
  --gold: #d2ac62;
  --radius: 16px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Cuộn tay: mỗi lần kéo sẽ tự nhảy tới đầu phần kế tiếp, không dừng lửng giữa 2 phần */
html { scroll-snap-type: y mandatory; }
html.auto-scroll, html.gliding { scroll-snap-type: none; scroll-behavior: auto; }
body.locked { scroll-snap-type: none; }
/* Điện thoại/máy tính bảng: KHÔNG dùng scroll-snap của trình duyệt (iOS Safari kéo giật ngược lên khi gặp phần cao hơn màn hình);
   việc nhảy từng phần đã do js/main.js (jump/glideTo) đảm nhiệm. */
@media (pointer: coarse) { html { scroll-snap-type: none; } }
/* Chặn nội dung tràn ngang làm lệch cả trang */
#invitation { overflow-x: clip; }
.hero, .section { scroll-snap-align: start; }
.footer { scroll-snap-align: end; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
[hidden] { display: none !important; }

h1, h2, h3, .names { font-family: var(--serif); font-weight: 400; line-height: 1.2; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: .4rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .3em; font-size: .72rem;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.names span { color: var(--accent); font-style: italic; }

/* Cover */
.cover {
  position: fixed; inset: 0; z-index: 50; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at 50% 42%, #6d1728 0%, #4a0d19 68%, #350810 100%);
  color: #fff; transition: opacity 1s ease, visibility 1s;
}
.cover.hide { opacity: 0; visibility: hidden; }
.cover > .eyebrow { color: var(--gold); margin: 0; }
.cover-hint { margin-top: 2.2rem; font-size: .8rem; letter-spacing: .12em; color: #c99aa1; transition: opacity .4s; }
.cover.opening .cover-hint { opacity: 0; transition: opacity .4s; }

/* Phong bì dựng từ ảnh trong image/: thân + nắp tách riêng.
   Khung .envelope = đúng thân phong bì (468x288); nắp mở lên phía trên, thân KHÔNG đổi kích thước/vị trí. */
/* --w = bề ngang phong bì: theo màn hình, nhưng bị giới hạn theo chiều cao để nắp mở + thiệp không tràn */
.env-wrap {
  --w: max(260px, min(88vw, 760px, calc((100svh - 200px) / 1.16)));
  filter: drop-shadow(0 22px 26px rgba(0,0,0,.5));
  margin-top: calc(var(--w) * .54);                /* chừa chỗ cho nắp mở */
}
.envelope {
  position: relative; width: var(--w); aspect-ratio: 468 / 288;
  perspective: 1400px; cursor: pointer;
}
.envelope > * { position: absolute; }
.envelope img { display: block; user-select: none; -webkit-user-drag: none; }
.envelope > img { inset: 0; width: 100%; height: 100%; }

/* Lớp "mở" (lòng phong bì) chỉ hiện khi bắt đầu mở; lúc đóng ảnh phong bì đóng che hết */
.env-back, .env-front { opacity: 0; }
.env-back { z-index: 1; }
.env-front {                       /* cùng ảnh, chỉ lấy phần túi phía trước để che chân tấm thiệp */
  z-index: 3;
  clip-path: polygon(0 0, 2.95% 0, 31.7% 38.3%, 68% 38.3%, 97.05% 0, 100% 0, 100% 100%, 0 100%);
}
.env-close-body { z-index: 4; }

/* Tấm thiệp nằm trong túi: khung cắt ở đáy phong bì nên không thể lòi ra phía dưới */
.env-slot { inset: 0; z-index: 2; clip-path: inset(-400% -50% 5% -50%); pointer-events: none; }
.env-card {
  position: absolute; left: 7%; right: 7%; top: 41.5%; height: 92%; opacity: 0;
  background: #fffaf3; border-radius: 3px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(210,172,98,.75);
  --card-ink: #886656;   /* cùng màu nét của họa tiết */
}
.env-card svg { display: block; width: 100%; height: 100%; }
.env-card text { fill: var(--card-ink); }
.env-card .t-name { font: 400 50px "Cormorant Garamond", var(--serif); letter-spacing: 3px; }
.env-card .t-date { font: 500 24px "Cormorant Garamond", var(--serif); letter-spacing: 3.5px; font-variant-numeric: lining-nums; }

/* Nắp: mặt ngoài = ảnh nắp đóng, mặt trong = ảnh nắp mở; xoay quanh mép trên thân phong bì */
.env-flap {
  left: 0; top: 0; width: 100%; height: 84.72%; z-index: 5;
  transform-origin: 50% 0; transform-style: preserve-3d;
}
.env-flap img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; }
.env-flap .in { transform: rotateX(180deg); }

.seal {
  left: 50%; top: 72%; z-index: 6; width: calc(var(--w) * .16); aspect-ratio: 1;
  translate: -50% -50%;
  border: 0; cursor: pointer; font: 600 calc(var(--w) * .046) var(--serif); color: #7a5a1c;
  display: grid; place-items: center; letter-spacing: .02em;
  border-radius: 54% 46% 52% 48% / 48% 54% 46% 52%;
  background: radial-gradient(circle at 35% 30%, #f2d68e, #d2ac62 55%, #a97f34);
  box-shadow: 0 3px 8px rgba(0,0,0,.5), inset 0 0 0 4px rgba(255,236,180,.35), inset 0 -3px 6px rgba(120,80,10,.45);
  animation: pulse 2.2s ease-in-out infinite;
  transition: opacity .3s, scale .3s;
}
.seal::after { content: ""; position: absolute; inset: 15%; border-radius: 50%; border: 1px solid rgba(122,90,28,.55); }
.seal:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes pulse { 50% { scale: 1.07; } }
.cover > .eyebrow { position: absolute; top: 6vh; left: 0; right: 0; font: 400 clamp(1.8rem, 5vw, 3rem) var(--serif); text-transform: none; letter-spacing: .12em; transition: opacity .4s; }
.cover.opening > .eyebrow { opacity: 0; }

/* Trạng thái mở (tổng ~3s): dấu sáp mờ -> nắp lật lên -> thiệp trượt ra khỏi túi */
.cover.opening .seal { animation: none; opacity: 0; scale: 1.2; pointer-events: none; }
.cover.opening .envelope { cursor: default; }
.env-back, .env-front { transition: opacity .25s ease .2s; }
.cover.opening .env-back, .cover.opening .env-front { opacity: 1; }
.env-close-body { transition: opacity .25s ease .2s; }
.cover.opening .env-close-body { opacity: 0; }
.env-flap { transition: transform 1s cubic-bezier(.45,0,.25,1) .35s, z-index 0s .85s; }
.cover.opening .env-flap { transform: rotateX(180deg); z-index: 0; }
.env-card { transition: top 1.2s cubic-bezier(.35,.8,.3,1) 1.4s, opacity .01s 1.3s; }
.cover.opening .env-card { top: -50%; opacity: 1; }

/* Popup cảm ơn sau khi gửi lời chúc */
.thank { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.6); }
.thank-card {
  position: relative; display: flex; align-items: flex-end; width: min(100%, 400px); aspect-ratio: 2 / 3; max-height: 90svh;
  border-radius: 18px; overflow: hidden; background: #d9d2c8 url("../image/bg_thank.webp") center top / cover no-repeat;
  box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: thankIn .45s cubic-bezier(.2,.8,.25,1);
}
.thank-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 38%, rgba(30,6,12,.82)); }
.thank-body { position: relative; width: 100%; padding: 28px 24px 30px; text-align: center; }
.thank-text { color: #fff; font: 400 clamp(1rem, 4.2vw, 1.2rem)/1.65 var(--serif); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.thank-x {
  position: absolute; z-index: 1; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.4); color: #fff; font-size: 1.15rem; line-height: 1;
}
.thank-x:hover { background: rgba(0,0,0,.65); }
@keyframes thankIn { from { opacity: 0; transform: translateY(16px) scale(.94); } }

/* Nhạc */
.music-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--accent); color: var(--gold); font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.music-btn.playing { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nút tự cuộn: tròn, đặt đối xứng với nút nhạc; sáng lên khi đang tự cuộn */
.scroll-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--accent); color: var(--gold); font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: background .25s, color .25s;
}
.scroll-btn[hidden] { display: none; }
.scroll-btn.on { background: var(--gold); color: var(--wine); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Layout */
.hero, .section, .footer { padding: 88px 20px; text-align: center; }
.section { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.section > * { width: 100%; }
.section > *, .hero > * { max-width: 760px; margin-left: auto; margin-right: auto; }
/* Nền các phần xen kẽ hồng nhạt ↔ kem: hero (hồng nhạt) → thiệp mời (kem) → sự kiện (hồng nhạt) → Our Story (kem) → album (hồng nhạt) → lưu bút (kem) → footer (đỏ đậm) */
.section.cream { background: var(--bg-cream); }
.section.deep { background: var(--bg-blush); color: var(--ink); }
.section.deep .eyebrow { color: var(--accent); }
.section.deep h2 { color: var(--accent); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: var(--ink);
  background: var(--bg-blush);      /* nền mặc định khi không có ảnh */
}
/* Ảnh nền (chỉ bật khi ảnh tải được): hiện ảnh nguyên màu, không phủ đỏ; chỉ có lớp đen mờ nhẹ để chữ trắng dễ đọc */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 1.2s;
  background: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), var(--hero-img) center/cover;
}
.hero.has-bg::before { opacity: 1; }
.hero .eyebrow, .hero .names .amp { color: var(--accent); }
.hero .n-groom, .hero .n-bride { color: var(--accent); font-style: normal; }
.hero.has-bg { color: #fff; }
.hero.has-bg .eyebrow, .hero.has-bg .names .amp { color: var(--gold); }
.hero.has-bg .n-groom, .hero.has-bg .n-bride { color: #fff; }
.hero.has-bg .names, .hero.has-bg .date { text-shadow: 0 2px 18px rgba(0,0,0,.5); }

/* Tên cô dâu chú rể: từ hai cạnh trượt vào giữa, rồi dấu & hiện ra */
.hero .n-groom, .hero .n-bride, .hero .amp { display: inline-block; opacity: 0; }
.hero .n-groom { transform: translateX(-70vw); }
.hero .n-bride { transform: translateX(70vw); }
.hero .amp { transform: scale(.3); }
.hero.in .n-groom, .hero.in .n-bride {
  opacity: 1; transform: none; transition: opacity 1.2s ease .3s, transform 1.9s cubic-bezier(.16,.8,.2,1) .3s;
}
.hero.in .amp { opacity: 1; transform: none; transition: opacity .9s ease 1.7s, transform 1.1s cubic-bezier(.3,1.5,.5,1) 1.7s; }
.hero .eyebrow, .hero .date, .hero .countdown { opacity: 0; transform: translateY(14px); }
.hero.in .eyebrow  { opacity: 1; transform: none; transition: opacity 1s ease .1s, transform 1s ease .1s; }
.hero.in .date     { opacity: 1; transform: none; transition: opacity 1s ease 2s,   transform 1s ease 2s; }
.hero.in .countdown{ opacity: 1; transform: none; transition: opacity 1s ease 2.3s, transform 1s ease 2.3s; }
.names.big { font-size: clamp(3rem, 13vw, 6.5rem); }
.date { letter-spacing: .4em; margin: 1.2rem 0 2rem; color: #ecd2d5; }

.countdown { display: flex; gap: 14px; justify-content: center; }
.countdown div {
  min-width: 70px; padding: 14px 8px; border-radius: var(--radius);
  background: rgba(255,255,255,.6); border: 1px solid rgba(210,172,98,.7);
  backdrop-filter: blur(4px);
}
.countdown b { display: block; font: 400 1.8rem var(--serif); color: var(--accent); }
.hero.has-bg .countdown div { background: rgba(255,255,255,.14); }
.hero.has-bg .countdown b { color: var(--gold); }
.hero.has-bg .countdown small { color: #fff; }
.countdown small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; }

/* Phần thiệp mời (mẫu thiệp giấy: 2 nhà, câu mời, tên chữ thảo, hôn lễ, hoa cuối trang).
   Cỡ chữ gốc (font-size của .invite) tăng theo bề ngang màn hình; các dòng dùng em nên co giãn cùng nhau. */
.section.invite {     /* .section.invite: đủ mạnh để thắng padding của .section trong @media */
  --coral: #d9505a; --text: #4a3f40;
  font-size: clamp(.95rem, min(.88rem + .3vw, 1.9svh), 1.3rem);   /* theo cả bề ngang lẫn chiều cao để vừa một màn hình */
  --fh: min(calc(min(100vw, 1000px) * .43), 22svh);            /* chiều cao dải hoa: theo tỉ lệ ảnh, nhưng không quá 22% chiều cao màn hình */
  position: relative; overflow: hidden; color: var(--text); background: var(--bg-cream);
  padding-top: 40px; padding-bottom: calc(var(--fh) + 16px);   /* chừa chỗ cho dải hoa */
  isolation: isolate;
  justify-content: flex-start;      /* 2 nhà ở trên cùng, phần hôn lễ đẩy xuống dưới (margin-top:auto ở .cer-label) */
}
.invite > * { max-width: min(1080px, 92%); flex-shrink: 0; }
.invite .pre, .invite p { line-height: 1.6; }
/* 2 nhà ở 2 góc trên: Nhà gái bên trái, Nhà trai bên phải */
.invite > .families { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; max-width: none; text-align: left; margin-bottom: 1.6em; }
.family { flex: 0 1 46%; }
.family + .family { text-align: right; }
.fam-title { font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .9em; margin-bottom: .3em; }
.family .pre { font-size: .95em; }
.family p.addr { font-size: .8em; margin-top: .4em; opacity: .85; }
.family p.addr:empty { display: none; }
.invite-lead { text-transform: uppercase; letter-spacing: .06em; font-size: .78em; margin-bottom: 1.2em; }
.invite .script { font-family: "Great Vibes", cursive; font-weight: 400; color: var(--coral); line-height: 1.1; }
/* Tên (to, nằm giữa khoảng trống) + thứ bậc ở hàng dưới. Cô dâu có margin-top:auto cùng với .cer-label → tên nằm giữa 2 khoảng trống đều nhau */
/* Tên nằm giữa; thứ bậc ở hàng dưới, khít đúng mép: cô dâu → dưới cuối tên (mép phải), chú rể → dưới đầu tên (mép trái) */
.invite > .person { display: flex; flex-direction: column; width: fit-content; max-width: none; margin-bottom: .6em; }
.person.bride { margin-top: auto; }
.person.bride .role { align-self: flex-end; }
.person.groom .role { align-self: flex-start; }
.person .script { font-size: min(clamp(2.3rem, 11vw, 4.6rem), calc(86vw / (var(--len, 9) * .5))); margin: 0; white-space: nowrap; }   /* --len: số ký tự của tên */
.person .role { font-size: .95em; font-style: italic; margin-top: .3em; white-space: nowrap; }
.person .role:empty { display: none; }
.cer-label { text-transform: uppercase; letter-spacing: .12em; font-size: .95em; margin: auto auto .5em; padding-top: 1.4em; }   /* margin-top:auto: cả khối hôn lễ trượt xuống dưới */
.venue { display: flex; align-items: center; justify-content: center; gap: 1.2em; margin-bottom: .9em; }
.venue i { flex: 0 1 5em; height: 1px; background: var(--coral); }
.venue .script { font-size: clamp(1.9rem, 8vw, 2.8rem); }
.when { text-transform: uppercase; letter-spacing: .06em; font-size: 1.1em; margin-bottom: .45em; }
.lunar { font-size: .95em; margin-top: .6em; }
.invite .flowers {                   /* dải hoa: ảnh lặp ngang, cao đúng --fh */
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--fh); max-width: none; margin: 0;
  background: url("../image/flower.png") repeat-x 50% 100% / auto 100%;
  transform-origin: 50% 100%; pointer-events: none; user-select: none;
}
@media (max-width: 719px) { .section.invite { font-size: .85rem; } }   /* điện thoại: chữ gọn hơn để 2 cột nhà không bị xuống dòng nhiều */
@media (min-width: 720px) {
  /* Máy tính: gọn lại để cả thiệp vừa 1 màn hình; 2 nhà không dính mép, gom vào giữa */
  .section.invite { --fh: min(calc(min(100vw, 1000px) * .43), 17svh); }
  .person .script { font-size: min(clamp(3rem, min(4.2vw, 7svh), 5rem), calc(80vw / (var(--len, 9) * .5))); }
  .invite > .families { max-width: min(900px, 92%); }
  .cer-label { padding-top: .8em; }
  .venue .script  { font-size: clamp(2.4rem, min(3.4vw, 5.4svh), 4rem); }
  .families { gap: 40px; }
}

/* Hiệu ứng: từng dòng hiện lên lần lượt; hoa mọc từ đáy lên. Chạy lại mỗi lần vào section */
.invite > .petals { position: absolute; inset: 0; z-index: -1; max-width: none; width: auto; margin: 0; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute; top: -30px; left: var(--x); width: var(--s); height: calc(var(--s) * 1.35); opacity: 0;
  border-radius: 100% 0 100% 0; background: linear-gradient(135deg, #f7c6cc, #e58a97); box-shadow: inset -2px -2px 4px rgba(200,70,90,.25);
}
.invite.in .petals i { animation: petalFall var(--t) linear var(--d) infinite; }
@keyframes petalFall {
  0%   { opacity: 0; transform: translate(0,0) rotate(0) rotateY(0); }
  8%   { opacity: .75; }
  50%  { transform: translate(var(--sw), 50svh) rotate(160deg) rotateY(180deg); }
  92%  { opacity: .7; }
  100% { opacity: 0; transform: translate(calc(var(--sw) * -.4), 105svh) rotate(330deg) rotateY(360deg); }
}
.person .script {
  background: linear-gradient(100deg, var(--coral) 42%, #f0cf86 50%, var(--coral) 58%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  padding: .22em .2em .16em; margin: -.22em -.2em -.16em;   /* nới vùng cắt chữ để nét thảo (đầu chữ T, đuôi chữ) không bị xén */
}
.invite.in .person .script { animation: nameShine 7s ease-in-out 4s infinite; }
@keyframes nameShine { 0% { background-position: 100% 0; } 35%, 100% { background-position: 0% 0; } }
.invite.in .flowers { animation: flowerSway 4s ease-in-out 4s infinite; transform-origin: 50% 100%; }
@keyframes flowerSway { 0%, 100% { transform: none; } 25% { transform: skewX(-2.5deg) scaleY(1.03); } 75% { transform: skewX(2.5deg) scaleY(1.03); } }
/* (4 hiệu ứng "sống" sau khi vào xong: cánh hoa rơi, ánh vàng lướt qua tên, họa tiết hoa chìm, dải hoa đung đưa; tắt khi giảm chuyển động) */
.invite > *:not(.flowers) { opacity: 0; transform: translateY(18px); }
/* Tên cô dâu trượt vào từ bên phải, chú rể từ bên trái (trạng thái cuối do .invite.in bên dưới) */
.invite > .person.bride { transform: translateX(70vw); }
.invite > .person.groom { transform: translateX(-70vw); }
.invite .flowers { opacity: 0; transform: translateY(60%) scaleY(.2); clip-path: inset(100% 0 0 0); }
.invite.in > *:not(.flowers) { opacity: 1; transform: none; transition: opacity 1s ease var(--d, 0s), transform 1s ease var(--d, 0s); }
.invite.in > .person { transition: opacity .8s ease var(--d, 0s), transform 1.5s cubic-bezier(.2,.8,.25,1) var(--d, 0s); }
.invite.in .flowers {
  opacity: 1; transform: none; clip-path: inset(0);
  transition: opacity .8s ease .3s, transform 3.2s cubic-bezier(.22,.7,.25,1) .3s, clip-path 3.2s cubic-bezier(.22,.7,.25,1) .3s;
}
.invite.in > *:nth-child(1) { --d: .2s; } .invite.in > *:nth-child(2) { --d: .5s; } .invite.in > *:nth-child(3) { --d: .8s; }
.invite.in > *:nth-child(4) { --d: 1.1s; } .invite.in > *:nth-child(5) { --d: 1.4s; } .invite.in > *:nth-child(6) { --d: 1.6s; }
.invite.in > *:nth-child(7) { --d: 1.8s; } .invite.in > *:nth-child(8) { --d: 2s; }
.invite.in > *:nth-child(9) { --d: 2.2s; }
.invite .families .family { opacity: 1; transform: none; }   /* 2 nhà hiện cùng khối .families */

/* Hai mặt thiệp (nhà gái / nhà trai) trong .inv-pager: chỉ hiện một mặt, đổi bằng vuốt ngang, nút hoặc phím ←→ (js/main.js) */
.inv-pager { position: relative; }
.inv-swap {                 /* nút tròn nhỏ ở mép: › bên phải khi đang xem nhà gái, ‹ bên trái khi đang xem nhà trai */
  position: absolute; z-index: 6; top: 50%; translate: 0 -50%; width: 34px; height: 34px; padding: 0 0 3px; border-radius: 50%;
  border: 1px solid var(--gold); background: rgba(255,255,255,.75); color: var(--accent);
  font: 400 1.5rem/1 var(--serif); cursor: pointer; box-shadow: 0 3px 10px rgba(74,13,25,.15);
}
.inv-pager[data-side="bride"] > .inv-swap { right: 6px; }
.inv-pager[data-side="groom"] > .inv-swap { left: 6px; }
.inv-swap:hover { background: #fff; }
/* Tên thánh: dòng nhỏ nghiêng phía trên tên */
.invite .saint { font-size: .95em; font-style: italic; letter-spacing: .02em; margin: 0 0 .15em; align-self: flex-start; }
.invite .saint:empty { display: none; }
.invite .st { font-weight: 600; }
.invite-lead b { display: block; font-weight: 600; letter-spacing: .1em; font-size: 1.25em; margin-top: .25em; }
/* Mặt nhà trai: ngày dọc bên trái, tên chú rể / cô dâu bên phải (chữ Cormorant, cùng họ với thiệp trong phong bì) */
.inv-groom > .g-main {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(14px, 4vw, 40px);
  width: fit-content; max-width: min(760px, 92%); margin: auto auto 0; text-align: left;
}
.inv-groom { --g-ink: #886656; }   /* nâu của nét chữ trên thiệp phong bì (--card-ink), khớp mẫu thiệp nhà trai */
.g-date { border-left: 1px solid var(--g-ink); padding: .1em 0 .1em clamp(10px, 3vw, 22px); }
.g-date b { display: block; font: 300 clamp(3rem, min(17vw, 9.5svh), 6rem)/1.05 "Cormorant Garamond", var(--serif); color: var(--g-ink); font-variant-numeric: lining-nums; }
.g-person h3 { font: 400 clamp(1.9rem, min(9vw, 6.5svh), 3.6rem)/1.05 "Cormorant Garamond", var(--serif); letter-spacing: .04em; color: var(--g-ink); text-transform: uppercase; margin: 0; overflow-wrap: anywhere; }
.g-person .saint { align-self: auto; }
.g-orn { display: flex; align-items: center; gap: .6em; color: var(--gold); margin: .6em 0; font-size: .8em; }
.g-orn::before, .g-orn::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.g-role { font-style: italic; font-size: .95em; margin: .8em 0 0; text-align: right; }
.g-role:empty { display: none; }
.inv-groom > .cer-label { margin-top: auto; }
.inv-groom .venue i { background: var(--gold); }
.inv-groom .venue .script { font: 500 clamp(2rem, 8.5vw, 3rem)/1.1 "Cormorant Garamond", var(--serif); font-style: italic; letter-spacing: .04em; color: var(--gold); }
@media (min-width: 720px) { .inv-groom .venue .script { font-size: clamp(2.4rem, min(3.4vw, 5.4svh), 3.8rem); } }
@media (min-width: 720px) { .inv-groom > .g-main { max-width: 820px; } }

.lead { font-weight: 500; font-size: 1.1rem; color: var(--muted); }
.couple { display: grid; gap: 32px; margin-top: 2.5rem; }
.couple p { color: var(--muted); font-weight: 500; }

/* Sự kiện: một khối thông tin duy nhất (đếm ngược, ngày, lịch, địa điểm, chương trình, trang phục), không khung.
   Ảnh chìm làm nền: điện thoại = ảnh đôi (phần trên, tan dần xuống nền); máy tính (≥900px) = cô dâu bên trái, chú rể bên phải (ảnh chú rể đã lật ngang cho nhìn ra phía phải). */
.section.ev { position: relative; isolation: isolate; overflow: hidden; padding-top: 68vw; justify-content: flex-start; }
.ev > * { position: relative; z-index: 1; }
.ev::before, .ev::after { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.ev::before {
  left: 0; right: 0; top: 0; height: 100vw; opacity: .55;
  background: url("../image/bg_event.webp") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent);
}
.ev::after { display: none; }
.ev-box .countdown { gap: 8px; }
.ev-box .countdown div { min-width: 0; flex: 1 1 0; max-width: 78px; padding: 12px 4px; }
.ev-box { display: grid; min-width: 0; gap: 22px; max-width: 820px; padding: 0 8px; text-align: center; }
.ev-col { display: grid; gap: 22px; align-content: start; }
.ev-vline { display: none; }
.ev-mon { font: 500 1.1rem var(--serif); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.ev-day { font: 400 clamp(4.2rem, 20vw, 6rem)/1 var(--serif); color: var(--accent); }
.ev-dow { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.ev-hour { color: var(--ink); font-weight: 600; margin-top: .2rem; }
.ev-sep { display: block; width: 90px; height: 1px; margin: .9rem auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative; }
.ev-sep::after { content: "◆"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 0 6px; font-size: .55rem; color: var(--gold); background: var(--bg-blush); }
.ev-cal { width: min(100%, 290px); margin: .6rem auto 0; }
.ev-cal-h, .ev-cal-g { display: grid; grid-template-columns: repeat(7, 1fr); }
.ev-cal-h { font-size: .68rem; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px; }
.ev-cal-g { row-gap: 2px; }
.ev-cal-g span { aspect-ratio: 1; display: grid; place-items: center; font-size: .82rem; color: var(--ink); }
.ev-cal-g .on { position: relative; z-index: 0; color: #fff; font-weight: 600; }
.ev-cal-g .on::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; z-index: -1; background: linear-gradient(135deg, var(--accent), #b02a3d); box-shadow: 0 4px 10px rgba(140,28,44,.35); }
.ev-h { font: 500 .78rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 .9rem; }
.ev-name { font: 500 1.25rem/1.3 var(--serif); color: var(--accent); }
.ev-addr { color: var(--muted); font-size: .9rem; margin-top: .15rem; }
.map-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-top: .9rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b02a3d); color: #fff;
  box-shadow: 0 6px 16px rgba(140,28,44,.32); transition: transform .2s, box-shadow .2s;
}
.map-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(140,28,44,.4); }
.map-btn svg { width: 22px; height: 22px; fill: currentColor; }
.ev-tl { list-style: none; margin: 0 auto; padding: 0; max-width: 340px; position: relative; }
.ev-tl::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 1px; translate: -50% 0; background: var(--gold); }
.ev-tl li { position: relative; width: 50%; box-sizing: border-box; padding: 0 22px 12px 0; text-align: right; }
.ev-tl li:nth-child(even) { margin-left: 50%; padding: 0 0 12px 22px; text-align: left; }
.ev-tl li::before { content: ""; position: absolute; right: -7px; top: 5px; width: 13px; height: 13px; box-sizing: border-box; border-radius: 50%; background: var(--bg-blush); border: 2px solid var(--gold); }
.ev-tl li:nth-child(even)::before { right: auto; left: -7px; }
.ev-tl b { display: block; font: 500 1.05rem var(--serif); color: var(--accent); }
.ev-tl small { color: var(--muted); font-size: .85rem; }
.ev-dots { display: flex; justify-content: center; gap: 10px; margin: .2rem 0 .6rem; }
.ev-dots i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(31,14,17,.18); box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.ev-dress p:not(.ev-h) { color: var(--muted); font-size: .9rem; margin: 0; }
.ev-addcal { display: inline-block; margin-top: .7rem; padding: .6rem 1.3rem; border-radius: 999px; border: 1px solid var(--gold); color: var(--accent); font-size: .85rem; letter-spacing: .06em; background: rgba(255,255,255,.55); text-decoration: none; }
@media (min-width: 900px) {
  .section.ev { padding: 36px 24px 20px; justify-content: center; --cell: clamp(20px, 3.3svh, 28px); }
  .ev .eyebrow { margin: 0 auto .3rem; }
  .ev h2 { margin: 0 auto clamp(8px, 1.6svh, 16px); font-size: clamp(1.6rem, 4.4svh, 2.2rem); }
  .ev-box, .ev-col { gap: clamp(8px, 1.8svh, 18px); }
  .ev-box { gap: clamp(10px, 2svh, 22px) 40px; }
  .ev-box .countdown div { padding: 8px 4px; max-width: 72px; }
  .ev-box .countdown b { font-size: 1.4rem; }
  .ev-day { font-size: clamp(3rem, 8.5svh, 4.6rem); }
  .ev-sep { margin: .2rem auto; }
  .ev-h { margin-bottom: .5rem; }
  .ev-cal { margin-top: 0; }
  .ev-cal-g { row-gap: 0; }
  .ev-cal-g span { aspect-ratio: auto; height: var(--cell); font-size: .78rem; }
  .ev-cal-g .on::before { inset: 1px calc(50% - var(--cell) / 2 + 1px); }
  .map-btn { margin-top: .3rem; width: 38px; height: 38px; }
  .ev-tl li { padding-bottom: clamp(4px, 1.6svh, 12px); }
  .ev-addcal { margin-top: .3rem; }
  .ev::before, .ev::after { display: block; top: 0; bottom: 0; height: auto; width: 25vw; opacity: .45; background-size: cover; background-position: center top; background-repeat: no-repeat; }
  .ev::before { left: 0; right: auto; background-image: url("../image/event_a.webp");
    -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent); mask-image: linear-gradient(90deg, #000 35%, transparent); }
  .ev::after { right: 0; left: auto; background-image: url("../image/event_b.webp");
    -webkit-mask-image: linear-gradient(270deg, #000 35%, transparent); mask-image: linear-gradient(270deg, #000 35%, transparent); }
  .ev-box { padding: 0 30px; grid-template-columns: 1fr 1px 1fr; gap: 40px; }
  .ev-box > .countdown { grid-column: 1 / -1; }
  .ev-vline { display: block; background: linear-gradient(transparent, var(--gold), transparent); }
}

/* Our Story: 2 ảnh (vòm) + tên + đoạn văn */
.story-pair { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 4vw, 32px); max-width: 640px !important; }
.story-pair figure { flex: 0 1 240px; min-width: 0; }
.story-pair img {
  display: block; width: auto; max-width: 100%; max-height: 44svh; height: auto; margin: 0 auto; border-radius: 999px 999px 14px 14px;   /* giữ đúng tỉ lệ ảnh gốc, không cắt */
  border: 4px solid #fff; box-shadow: 0 8px 26px rgba(74,13,25,.2); background: linear-gradient(135deg, #e6dfd3, #d8cfbf);
}
.story-pair figcaption { margin-top: .8rem; font-family: var(--serif); font-size: clamp(1rem, 3.6vw, 1.3rem); color: var(--accent); }
.story-heart { color: var(--gold); font-size: 1.4rem; }
.story-text { max-width: 620px !important; margin-top: 1.6rem !important; color: var(--muted); line-height: 1.8; }
/* Our Story: ảnh 2 nhân vật chìm ở khoảng trống phía trên; hoa rời bay vào từ các cạnh (trừ cạnh trên) rồi chìm xuống nền */
.section.story { position: relative; isolation: isolate; overflow: hidden; }
/* Tiêu đề chính "Our Story": chữ lớn, đưa lên đầu section (không còn dòng phụ) */
.section.story .eyebrow { font: 500 clamp(2.4rem, 11vw, 4.2rem)/1.05 var(--serif); letter-spacing: .12em; color: var(--accent); margin: 0 0 1.1rem; }
@media (max-width: 899px) {
  .section.story { justify-content: flex-start; padding-top: 34px; }
  .section.story .story-pair { margin-top: 38vw; }   /* đẩy ảnh + nội dung xuống để lộ 2 nhân vật ở ảnh nền */
}
.section.story::before {
  content: ""; position: absolute; z-index: -2; inset: 0 0 auto 0; height: 110vw; pointer-events: none;
  background: url("../image/bg_story.webp") 0 -14vw / 100% auto no-repeat;
  mix-blend-mode: multiply; opacity: .4;
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
}
@media (min-width: 900px) {
  .section.story::before {
    inset: 0 0 0 auto; height: auto; width: min(45%, 560px); background: url("../image/bg_story.webp") right top / cover no-repeat; opacity: .35;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%);
  }
}
.story-flowers { position: absolute; inset: 0; z-index: -1; pointer-events: none; max-width: none !important; }
.sf { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: auto; opacity: 0; mix-blend-mode: multiply; }
.story.in .sf { animation: sfDrift 4.6s cubic-bezier(.25,.7,.3,1) var(--d) both; }
@keyframes sfDrift {
  0%   { opacity: 0; transform: translate(-50%,-50%) translate(var(--dx), var(--dy)) rotate(calc(var(--r) - 70deg)) scale(.4); filter: blur(0); }
  40%  { opacity: .95; transform: translate(-50%,-50%) rotate(var(--r)) scale(1.08); filter: blur(0); }
  60%  { opacity: .9; transform: translate(-50%,-50%) rotate(var(--r)) scale(1); }
  100% { opacity: .3; transform: translate(-50%,-50%) rotate(var(--r)) scale(.92); filter: blur(1.4px); }   /* chìm xuống nền */
}
.story-pair img { border-color: #fff; box-shadow: 0 10px 30px rgba(74,13,25,.25); }

/* Ảnh + tên bay vào theo quỹ đạo cong (chú rể từ trái, cô dâu từ phải: vòng lên cao rồi hạ xuống vị trí); mỗi lần vào section chạy lại */
.story.in .story-pair figure:first-child { animation: storyArcL 2.2s cubic-bezier(.3,.6,.3,1) .2s both; }
.story.in .story-pair figure:last-child  { animation: storyArcR 2.2s cubic-bezier(.3,.6,.3,1) .2s both; }
.story.in .story-heart { animation: storyPop 1s cubic-bezier(.3,1.6,.5,1) 2s both; }
.story.in .story-text  { animation: storyUp 1.2s ease 2.3s both; }
@keyframes storyArcL {
  0%   { opacity: 0; transform: translate(-90vw, 55svh) rotate(-18deg) scale(.6); }
  45%  { opacity: 1; transform: translate(-30vw, -14svh) rotate(-8deg) scale(.95); }
  75%  { transform: translate(-6vw, 3svh) rotate(2deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes storyArcR {
  0%   { opacity: 0; transform: translate(90vw, 55svh) rotate(18deg) scale(.6); }
  45%  { opacity: 1; transform: translate(30vw, -14svh) rotate(8deg) scale(.95); }
  75%  { transform: translate(6vw, 3svh) rotate(-2deg) scale(1.02); }
  100% { opacity: 1; transform: none; }
}
@keyframes storyPop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
@keyframes storyUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Album (polaroid): gói gọn trong đúng 1 màn hình */
[hidden] { display: none !important; }
.section.album { position: relative; isolation: isolate; height: 100svh; min-height: 0; padding: 66px 12px 12px; overflow: hidden; }
/* Hoa bung ra từ giữa section rồi nằm rải đều ở nền (không làm mờ); sau đó ảnh mới hiện ra nhanh */
.album-flowers { position: absolute; inset: 0; z-index: -1; pointer-events: none; max-width: none !important; }
.af { --k: 1; position: absolute; left: var(--x); top: var(--y); width: calc(var(--w) * var(--k)); height: auto; opacity: 0; transform: translate(-50%,-50%) rotate(var(--r)); }
@media (min-width: 900px) { .af { --k: 1.5; } }
.album.in .af { animation: afBurst 1.1s cubic-bezier(.2,.9,.3,1.15) var(--d) both; }
@keyframes afBurst {
  from { left: 50%; top: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.15) rotate(calc(var(--r) - 200deg)); }
  25%  { opacity: 1; }
  to   { left: var(--x); top: var(--y); opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(var(--r)); }
}
.album > .album-grid { opacity: 0; transition: opacity .3s ease; }
.album.in > .album-grid { opacity: 1; transition: opacity .5s ease .85s; }
.album h2 { font-size: clamp(1.15rem, min(5.6vw, 4.2svh), 2rem); }
.album .eyebrow { margin-bottom: .4rem; }
.album > .album-grid { flex: 1 1 0; min-height: 0; width: 100%; max-width: 1100px; margin: 8px auto 0; }

/* Polaroid: ảnh xếp chồng nghiêng, vuốt/bấm ảnh trên cùng để chuyển (--pw do album.js tính) */
.album-grid.polaroid { display: flex; flex-direction: column; }
.pol-stack { flex: 1; min-height: 0; position: relative; }
.pol {
  position: absolute; left: 50%; top: 46%; width: var(--pw, 260px); padding: 10px 10px 40px; background: #fff; border-radius: 4px; cursor: grab;
  touch-action: pan-y; user-select: none; box-shadow: 0 10px 26px rgba(74,13,25,.3);
  transition: transform .45s cubic-bezier(.2,.8,.25,1), opacity .35s;
}
.pol img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pol span { position: absolute; left: 0; right: 0; bottom: 10px; font: italic 1rem var(--serif); color: var(--accent); }
.pol-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; height: 40px; color: var(--muted); font-size: .85rem; letter-spacing: .1em; }
.pol-ctrl .pol-full { width: 26px; height: 26px; margin-left: 6px; font-size: .95rem; }
.pol-ctrl button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); font-size: 1.2rem; line-height: 1; cursor: pointer; }
/* Phóng to ảnh */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.88); touch-action: pan-y; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.lb-count { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; letter-spacing: .1em; }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(0,0,0,.35); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 599px) { .lb-prev, .lb-next { display: none; } }   /* điện thoại: vuốt trái/phải */

/* Lời chúc */
/* Sổ lưu bút: ảnh cưới làm nền — máy tính: sát mép trên, góc phải (mờ dần về bên trái); điện thoại: chìm phủ cả section */
#wishes { position: relative; isolation: isolate; overflow: hidden; }
#wishes::before {
  content: ""; position: absolute; z-index: -1; right: 0; top: 0; height: 100%; width: min(50%, 620px);
  background: url("../image/bg_form.webp") right top / contain no-repeat;
  mix-blend-mode: multiply; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 45%); mask-image: linear-gradient(to right, transparent, #000 45%);
}
@media (max-width: 899px) {
  /* Điện thoại: mọi thứ gói trong 1 màn hình. Tiêu đề nằm trên đầu 2 nhân vật; ảnh cắt bớt rèm phía trên (dịch lên 12vw);
     form đè lên phần chân và ảnh mờ dần bên dưới form. Chỉnh --form-top để đẩy form lên/xuống. */
  #wishes { --form-top: max(60vw, min(88vw, calc(100svh - 430px))); padding: 24px 16px calc(14vw + 8px); justify-content: flex-start; }
  #wishes::before {
    inset: 0 0 auto 0; width: auto; height: 125vw; opacity: 1;
    background: url("../image/bg_form.webp") 0 -12vw / 100% auto no-repeat;
    -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
  }
  #wishes .eyebrow { color: var(--gold); margin-bottom: .3rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
  #wishes h2 { color: #fff; font-size: 1.7rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
  #wishes .wish-form { margin-top: calc(var(--form-top) - 120px); gap: 9px; position: relative; z-index: 3; }   /* z-index 3 > hoa (::after, z-index 2): nút Gửi nằm trên hoa */
  #wishes .wish-form input, #wishes .wish-form select { padding: 11px 14px; }
  #wishes .wish-form textarea { height: 84px; min-height: 0; resize: none; padding: 11px 14px; }
  #wishes .status { min-height: 1em; }
  /* Hoa ở cạnh dưới: phóng to từ giữa cạnh dưới, tỏa ra hình bán nguyệt phía trên form (chạy lại mỗi lần vào section) */
  #wishes::after {
    content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 42vw; pointer-events: none;
    background: url("../image/flower_form.png") center bottom / 100% auto no-repeat;
    transform-origin: 50% 100%; transform: scale(.2); opacity: 0; clip-path: circle(0% at 50% 100%);
    transition: transform 1.8s cubic-bezier(.2,.75,.25,1) .4s, clip-path 1.8s cubic-bezier(.2,.75,.25,1) .4s, opacity .6s ease .4s;
  }
  #wishes.in::after { transform: none; opacity: 1; clip-path: circle(100% at 50% 100%); }
}

.wish-form { display: grid; gap: 12px; text-align: left; }
.wish-form input, .wish-form textarea, .wish-form select {
  font: inherit; padding: .85rem 1rem; border: 1px solid #ddd5c8; border-radius: 12px; background: #fff; width: 100%;
}
.wish-form input:focus, .wish-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.wish-form .btn {
  justify-self: center; margin-top: 6px; min-width: 200px; padding: 14px 36px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #b02a3d); color: #fff;
  font: 500 .95rem var(--sans); letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(140,28,44,.3); transition: transform .2s, box-shadow .2s, opacity .2s;
}
.wish-form .btn::after { content: " ♥"; color: var(--gold); }
.wish-form .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(140,28,44,.38); }
.wish-form .btn:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(140,28,44,.3); }
.wish-form .btn:disabled { opacity: .6; cursor: default; transform: none; }
.trap { position: absolute; left: -9999px; }
.status { text-align: center; min-height: 1.4em; color: var(--muted); font-size: .9rem; }


.footer { background: var(--wine); color: #e3c6ca; padding: 56px 20px; }
.names.small { font-size: 1.6rem; color: #fff; margin-top: .4rem; }
.footer .names span { color: var(--gold); }

/* Hiệu ứng cuộn */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.3s ease, transform 1.3s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .couple { grid-template-columns: 1fr 1fr; }
  .section, .hero { padding: 120px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .petals, .invite.in .person .script, .invite.in .flowers { animation: none !important; }
  .person .script { -webkit-text-fill-color: var(--coral); background: none; }
  .album.in .af { animation: none; opacity: 1; }
  .album > .album-grid { opacity: 1; transition: none; }
  .story.in .sf { animation: none; opacity: .3; transform: translate(-50%,-50%) rotate(var(--r)); }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .n-groom, .hero .n-bride, .hero .amp, .hero .eyebrow, .hero .date, .hero .countdown { opacity: 1; transform: none; transition: none !important; }
  .invite > *, .invite .flowers { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .music-btn.playing, .seal, .scroll-btn.on, .story.in .story-pair figure, .story.in .story-heart, .story.in .story-text { animation: none; }
  .env-flap, .env-card, .env-back, .env-front, .env-close-body { transition-duration: .01s; transition-delay: 0s; }
}

.pre { white-space: pre-line; }
