/* =========================================================
   Thiệp cưới — Đỏ rượu nhung & vàng cổ điển
   ========================================================= */
/* Font: Pinyon Script (chỉ cho tên, chữ lồng, nhãn tiếng Anh ngắn) · Maitree (tiêu đề tiếng Việt + nội dung) */
@font-face { font-family: "Pinyon Script VN"; src: url("fonts/pinyon-vietnamese.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Pinyon Script VN"; src: url("fonts/pinyon-latin-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Pinyon Script VN"; src: url("fonts/pinyon-latin.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Maitree VN"; src: url("fonts/maitree.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --wine: #410016;          /* màu chủ đạo */
  --wine-deep: #2A000E;
  --wine-panel: #4C0720;
  --wine-glow: #6A1432;
  --gold: #FFFFFF;
  --gold-light: #FFFFFF;
  --gold-dark: #C7C7C7;
  --gold-grad: linear-gradient(135deg, #C7C7C7 0%, #FFFFFF 30%, #FFFFFF 55%, #FFFFFF 78%, #D6D6D6 100%);
  --cream: #FFFFFF;
  --cream-muted: rgba(255, 255, 255, .74);
  --line: rgba(255, 255, 255, .5);
  --line-soft: rgba(255, 255, 255, .22);
  --serif: "Maitree VN", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script VN", "Snell Roundhand", cursive;
  --sans: "Maitree VN", Georgia, "Times New Roman", serif;
  --han: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: 20px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; background: var(--wine-deep); }
body {
  margin: 0;
  background: var(--wine);
  color: var(--cream);
  font: 400 15px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; height: 100svh; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3, .quote-text p, .ch-text, .ev-venue, .ev-addr, .footer-thanks, .invite-lead, .invite-guest, .invite-venue { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--wine-deep); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 780px; }
.section { position: relative; padding: clamp(88px, 12vw, 140px) 0; text-align: center; }

.sec-velvet {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(106, 20, 50, .55), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(0, 0, 0, .25), transparent 70%),
    var(--wine);
}
.sec-stripes {
  background:
    radial-gradient(80% 60% at 50% 50%, rgba(106, 20, 50, .35), transparent 75%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 26px, transparent 26px 52px),
    var(--wine-deep);
}

/* ---------- Chữ ---------- */
.sec-title, .hero-names em, .env-names, .person-name, .couple-amp, .cal-title, .footer-names, .db-day, .cd-num,
.ch-title, .ev-title, .portrait .name, .heart-amp, .badge-center, .sh-symbol, .song-hy {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow { font: 400 clamp(1.7rem, 6vw, 2.3rem)/1.2 var(--script); letter-spacing: 0; text-transform: none; color: var(--gold-light); }
.sec-head { margin-bottom: clamp(44px, 7vw, 68px); }
.sec-title {
  display: inline-block; margin-top: 8px; padding: 0 .2em;
  font: 400 clamp(1.6rem, 6vw, 2.5rem)/1.35 var(--serif); letter-spacing: .14em; text-transform: uppercase;
}
.sec-note { margin-top: 10px; color: var(--cream-muted); font-size: 14px; }
.sec-note strong { color: var(--gold-light); font-weight: 500; }
.song-hy, .sh-symbol, .badge-center { font-family: var(--han); font-weight: 600; }

/* Hoạ tiết vàng */
.flourish { width: min(260px, 78%); margin: 14px auto 0; line-height: 0; }
.flourish svg { width: 100%; height: auto; overflow: visible; }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) .3s; }
.draw-fill { opacity: 0; transition: opacity 1s var(--ease) 1.4s; }
.is-in .draw, .is-in.draw { stroke-dashoffset: 0; }
.is-in .draw-fill { opacity: 1; }

.panel {
  position: relative;
  background: radial-gradient(90% 60% at 50% 0%, rgba(106, 20, 50, .45), transparent 70%), var(--wine-panel);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), inset 0 0 0 6px var(--wine-panel), inset 0 0 0 7px var(--line-soft);
}
.ornate { padding: clamp(56px, 8vw, 80px) clamp(22px, 6vw, 60px); }
.corner { position: absolute; width: clamp(40px, 9vw, 58px); height: clamp(40px, 9vw, 58px); pointer-events: none; line-height: 0; }
.corner svg { width: 100%; height: 100%; display: block; }
.corner.tl { top: 12px; left: 12px; }
.corner.tr { top: 12px; right: 12px; transform: scaleX(-1); }
.corner.bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.corner.br { bottom: 12px; right: 12px; transform: scale(-1, -1); }

/* ---------- Nút ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px; overflow: hidden;
  border: 1px solid transparent; border-radius: 999px;
  font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; isolation: isolate;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: transparent; border-color: var(--gold); color: var(--gold-light); }
.btn-gold:hover { background: var(--gold); color: var(--wine-deep); }
.btn-gold-solid { background: var(--gold-grad); color: var(--wine-deep); font-weight: 600; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); }
.btn-gold-solid::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 250, 235, .7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-gold-solid:hover::after { transform: translateX(120%); }
.btn-gold-solid:hover { box-shadow: 0 14px 30px -10px rgba(255, 255, 255, .45); }
.btn-gold-solid[disabled] { opacity: .6; cursor: progress; }
.btn-outline-gold { border-color: var(--line); color: var(--gold-light); min-height: 44px; padding: 0 22px; font-size: 11px; }
.btn-outline-gold:hover { background: var(--gold); color: var(--wine-deep); border-color: var(--gold); }
.btn-block { width: 100%; }
.btn svg { width: 15px; height: 15px; flex: none; }

/* =========================================================
   CÁNH HOA RƠI
   ========================================================= */
.petals { position: fixed; inset: 0; z-index: 66; width: 100%; height: 100%; pointer-events: none; }

/* =========================================================
   1. BÌA THIỆP + CHỌN NHÀ
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.envelope-screen { position: fixed; inset: 0; z-index: 100; overflow: hidden; background: #2A000E; color: var(--cream); transition: opacity 1s var(--ease) .2s, visibility 0s linear 1.2s; }
.envelope-screen.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.cover-book { position: absolute; inset: 0; perspective: 1800px; }
.cover-half {
  position: absolute; top: 0; bottom: 0; width: 50%; overflow: hidden;
  transition: transform 1.7s cubic-bezier(.6, 0, .2, 1), box-shadow 1.7s;
}
.cover-l { left: 0; transform-origin: left center; }
.cover-r { right: 0; transform-origin: right center; }
.cover-art { position: absolute; top: 0; bottom: 0; width: 200%; }
.cover-l .cover-art { left: 0; }
.cover-r .cover-art { right: 0; }
.cover-half::after { content: ""; position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; opacity: 0; transition: opacity .6s; }
.cover-l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .35)); }
.cover-r::after { left: 0; background: linear-gradient(270deg, transparent, rgba(0, 0, 0, .35)); }

/* Mặt bìa */
.cover-card {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 30px 24px 92px; text-align: center;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(120, 30, 40, .55), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px),
    #4C1219;
  box-shadow: inset 0 0 0 14px #4C1219, inset 0 0 0 15px rgba(255, 255, 255, .35), inset 0 0 0 20px #4C1219, inset 0 0 0 21px rgba(255, 255, 255, .15);
}
.cover-names { margin-top: 2px; font: 400 clamp(1.9rem, 7.4vw, 2.6rem)/1.25 var(--script); color: #FFFFFF; }
.cover-date { margin-top: 4px; font: 400 12px/1.5 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold-light); }
.cover-invite { width: min(84vw, 440px); margin-top: 24px; text-align: left; }
.cover-invite span { font: 400 1.05rem/1.4 var(--serif); color: #FFFFFF; }
.cover-invite .cover-guest { font-size: 1.35rem; color: var(--gold-light); }
.cover-guest {
  display: block; min-height: 2.2em; padding: 4px 4px 2px; text-align: center;
  border-bottom: 1.5px dotted rgba(255, 255, 255, .7);
  font: 400 1.75rem/1.25 var(--script); color: var(--gold-light);
}
.cover-ui { position: absolute; left: 0; right: 0; top: auto; bottom: max(26px, calc(env(safe-area-inset-bottom) + 16px)); display: flex; justify-content: center; z-index: 3; transition: opacity .5s; }
.cover-ui[style*="top"] { bottom: auto; }

/* Ấn niêm phong + dải lụa ngang thiệp */
.cover-lock { position: relative; width: 100%; height: 66px; margin-top: 14px; display: grid; place-items: center; }
.cover-lock::before {
  content: ""; position: absolute; left: 21px; right: 21px; top: 50%; height: 7px; transform: translateY(-50%);
  border-top: 1px solid rgba(255, 255, 255, .6); border-bottom: 1px solid rgba(255, 255, 255, .6);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  transition: transform .9s var(--ease), opacity .9s var(--ease);
  animation: fadeup 1.2s var(--ease) 1.7s both;
}
.cover-seal {
  position: relative; display: block; width: 62px; height: 62px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 12px rgba(255, 255, 255, .35));
  transition: transform .8s cubic-bezier(.5, 0, .2, 1), filter .5s;
  animation: sealin 1.1s cubic-bezier(.3, 1.4, .5, 1) 1.8s both;
}
.cover-seal::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, .45), transparent 65%);
  animation: breathe 2.6s ease-in-out infinite;
}
.cover-seal svg { display: block; width: 100%; height: 100%; }
.seal-hole { fill: #2A000E; transition: fill .3s; }
@keyframes sealin { from { opacity: 0; transform: scale(.4) rotate(-40deg); } }

/* Chìa khoá vàng */
.key-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 6px 18px; border: 0; background: none; cursor: pointer; color: #FFFFFF;
  animation: fadeup 1.2s var(--ease) 2.1s both;
}
.key-label { font: 400 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 0 12px rgba(255, 255, 255, .6); transition: opacity .4s; }
.key { position: relative; display: block; width: 132px; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .55)); animation: keyfloat 3s ease-in-out infinite; }
.key svg { width: 100%; height: auto; display: block; overflow: visible; animation: keyglint 3.2s ease-in-out infinite 1.2s; }
@keyframes keyfloat { 50% { transform: translateY(-5px) rotate(-2deg); } }
@keyframes keyglint { 0%, 100% { filter: brightness(1); } 20% { filter: brightness(1.45) saturate(1.1); } 40% { filter: brightness(1); } }
.key-btn:hover .key { filter: drop-shadow(0 0 16px rgba(255, 255, 255, .9)); }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }


/* Trình tự mở:
   1. is-unlocking: chìa bay tới, dựng đứng, cắm vào lỗ khoá rồi xoay
   2. is-unlocked: "cạch" — lỗ khoá sáng lên
   3. is-unsealed: ấn tách đôi, dải lụa tuột ra hai bên
   4. is-opening: thiệp mở 2 cánh → is-asking (hỏi nhà) / is-revealing (lời mời riêng)
   5. enterSite(): xe hoa chạy ngang, bìa thiệp lùi theo đuôi xe (mask-image), vào thiệp */
.cover-screen.is-unlocking .cover-ui { pointer-events: none; }
.cover-screen.is-unlocking .key-label { opacity: 0; }
.cover-screen.is-unlocking .key { transform-origin: 89% 50%; animation: keyinsert 1.55s cubic-bezier(.55, 0, .25, 1) forwards; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .95)); }
.cover-screen.is-unlocking .key svg { animation: none; }
@keyframes keyinsert {
  0% { transform: perspective(500px) translate(0, 0) rotate(0) scale(1) rotateX(0); }
  45% { transform: perspective(500px) translate(var(--dx), calc(var(--dy) - 26px)) rotate(90deg) scale(.6) rotateX(0); }
  62% { transform: perspective(500px) translate(var(--dx), var(--dy)) rotate(90deg) scale(.5) rotateX(0); }
  70% { transform: perspective(500px) translate(var(--dx), var(--dy)) rotate(90deg) scale(.5) rotateX(0); }
  92%, 100% { transform: perspective(500px) translate(var(--dx), var(--dy)) rotate(90deg) scale(.5) rotateX(78deg); }
}
.cover-screen.is-unlocking .cover-seal::before { animation-duration: 1.1s; }
.cover-screen.is-unlocked .cover-ui { opacity: 0; transition: opacity .45s .25s; }
.cover-screen.is-unlocked .seal-hole { fill: #FFFFFF; }
.cover-screen.is-unlocked .cover-seal { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 26px rgba(255, 255, 255, 1)); }
.cover-screen.is-unsealed .cover-l .cover-seal { transform: translateX(-16px) rotate(-18deg); }
.cover-screen.is-unsealed .cover-r .cover-seal { transform: translateX(16px) rotate(18deg); }
.cover-screen.is-unsealed .cover-l .cover-lock::before { transform: translate(-45%, -50%); opacity: 0; }
.cover-screen.is-unsealed .cover-r .cover-lock::before { transform: translate(45%, -50%); opacity: 0; }
.cover-screen.is-opening .cover-book { pointer-events: none; }
.cover-screen.is-driving { transition: none; }

/* Xe hoa chạy ngang khi vào thiệp */
.wc-run { position: fixed; inset: 0; z-index: 120; pointer-events: none; overflow: hidden; }
.wc-car { position: absolute; left: 0; top: 0; will-change: transform; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
.wc-car svg { display: block; width: 100%; height: auto; overflow: visible; }
.wc-wheel { transform-box: fill-box; transform-origin: center; animation: spin .45s linear infinite; }
.wc-body { animation: carbob .32s ease-in-out infinite alternate; }
.wc-balloons { transform-box: fill-box; transform-origin: 60% 100%; animation: sway 1.6s ease-in-out infinite; }
.wc-cans { animation: rattle .18s steps(2) infinite; }
.wc-beam { animation: beam 1.2s ease-in-out infinite; }
.wc-edge { position: absolute; top: 0; bottom: 0; left: -70px; width: 70px; background: linear-gradient(90deg, transparent, rgba(20, 0, 8, .28)); will-change: transform; }
@keyframes carbob { to { transform: translateY(-1.6px); } }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(5deg); } }
@keyframes rattle { 50% { transform: translateY(-1.5px); } }
@keyframes beam { 50% { opacity: .4; } }
.cover-screen.is-opening .cover-l { transform: rotateY(-100deg); }
.cover-screen.is-opening .cover-r { transform: rotateY(100deg); }
.cover-screen.is-opening .cover-half::after { opacity: 1; }

/* Chọn nhà — MỘT khung ảnh đôi cắt làm hai: nửa trái cô dâu = Nhà Gái, nửa phải chú rể = Nhà Trai */
.sa-eyebrow { font: 400 2rem/1.1 var(--script); color: var(--gold-light); }
.sa-title { margin-top: 4px; font: 400 1rem/1.45 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); text-wrap: balance; }
.sa-options {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  width: min(100%, 440px, calc((100svh - 240px) / 1.5)); aspect-ratio: 2 / 3; margin: 24px auto 0;
  border: 1px solid var(--gold); outline: 1px solid var(--line-soft); outline-offset: 7px;
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .95);
}
.sa-options::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; z-index: 3; width: 1px; transform: translateX(-.5px);
  background: linear-gradient(180deg, transparent, var(--gold-light) 18%, var(--gold-light) 82%, transparent);
  box-shadow: 0 0 10px rgba(255, 255, 255, .6); pointer-events: none; transition: opacity .5s;
}
.sa-options::after {
  content: "&"; position: absolute; left: 50%; top: 46%; z-index: 4; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding-top: 4px;
  font: 400 1.7rem/1 var(--script); color: var(--gold-light);
  background: radial-gradient(circle at 35% 30%, #5A1428, #2E0411); border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(46, 4, 17, .85), 0 0 0 5px var(--line-soft), 0 8px 20px -6px rgba(0, 0, 0, .8);
  pointer-events: none; transition: opacity .5s;
}
.sa-note { margin-top: 20px; font-size: 12px; line-height: 1.5; color: var(--cream-muted); text-wrap: balance; }
.sa-opt {
  --c: #FFFFFF; --c-glow: rgba(255, 255, 255, .55);
  position: relative; display: block; min-width: 0; padding: 0; border: 0; background: #2E0411; overflow: hidden;
  cursor: pointer; color: var(--cream); text-align: center; transition: transform .8s var(--ease), opacity .7s, filter .7s;
}
.sa-opt.gai { --c: #EDB3BF; --c-glow: rgba(255, 170, 190, .5); }
.sa-photo { position: absolute; inset: 0; overflow: hidden; }
.sa-photo img { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 100%; object-fit: cover; transition: filter .6s, transform 1.4s var(--ease); }
.sa-opt:nth-child(2) .sa-photo img { left: -100%; }
.sa-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%);
}
.sa-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(42, 0, 14, .65) 72%, rgba(28, 0, 9, .95) 100%); pointer-events: none; }
.sa-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 6px 16px; transition: transform .5s var(--ease); }
.sa-tag { padding: 5px 12px 5px calc(12px + .3em); border: 1px solid var(--c); border-radius: 999px; background: rgba(28, 0, 9, .6); font: 500 10px/1.2 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--c); transition: background .4s, color .4s; }
.sa-name { font: 400 clamp(1.7rem, 7.2vw, 2.3rem)/1.2 var(--script); color: #FFFFFF; padding: 0 .3em; white-space: nowrap; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.sa-rule { width: 46%; height: 1px; margin: 3px 0 6px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
.sa-meta { font: 400 11px/1.4 var(--sans); letter-spacing: .08em; color: #FFFFFF; }
.sa-where { font-size: 11px; line-height: 1.4; color: var(--cream-muted); }
/* Rê vào nửa nào thì nửa đó sáng, nửa kia tối lại */
.sa-options:not(:has(.is-picked)):has(.sa-opt:hover) .sa-opt:not(:hover) .sa-photo img { filter: brightness(.4) saturate(.5); }
.sa-opt:hover .sa-info, .sa-opt:focus-visible .sa-info { transform: translateY(-6px); }
.sa-opt:hover .sa-tag, .sa-opt:focus-visible .sa-tag { background: var(--c); color: #2A000E; }
.sa-opt:hover .sa-photo::before, .sa-opt:focus-visible .sa-photo::before { animation: shine 1.4s var(--ease); }
.sa-opt:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--c); }
.side-ask .sa-opt.is-current { box-shadow: inset 0 0 0 2px var(--c); }
/* Đã chọn: nửa kia trượt ra ngoài, nửa được chọn sáng lên */
.sa-opt.is-picked { z-index: 2; box-shadow: inset 0 0 0 2px var(--c), 0 0 50px -6px var(--c-glow); }
.sa-opt.is-picked .sa-tag { background: var(--c); color: #2A000E; }
.sa-opt.is-picked .sa-photo::before { animation: shine 1.2s var(--ease); }
.sa-opt.is-dimmed { opacity: 0; filter: blur(2px); }
.sa-opt.is-dimmed:nth-child(1) { transform: translateX(-40%); }
.sa-opt.is-dimmed:nth-child(2) { transform: translateX(40%); }
.is-picked .sa-options::before, .is-picked .sa-options::after { opacity: 0; }

/* Hộp đổi nhà (từ menu) */
.side-ask {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px;
  background: rgba(26, 0, 9, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .4s var(--ease);
}
.sa-panel {
  position: relative; width: min(100%, 460px); padding: 34px 18px 24px; text-align: center;
  border: 1px solid var(--line); background: radial-gradient(90% 60% at 50% 0%, rgba(106, 20, 50, .55), transparent 70%), var(--wine-panel);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), inset 0 0 0 6px var(--wine-panel), inset 0 0 0 7px var(--line-soft);
  animation: rise .6s var(--ease);
}
.sa-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--gold-light); cursor: pointer; display: grid; place-items: center; }
.sa-close svg { width: 18px; height: 18px; }

/* Bìa: khung hoa văn + chữ lồng gốc (có ánh kim chạy qua) */
.cover-crest { width: min(54vw, 240px, calc((100svh - 460px) * .95)); aspect-ratio: 154.5 / 163.1; }
.crest-art { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 14px rgba(255, 255, 255, .18)); animation: crestin 1.8s var(--ease) .2s both; }
@keyframes crestin { from { opacity: 0; transform: scale(.88); filter: blur(8px); } }
.cover-tag { margin-top: 18px; font: 400 clamp(1.5rem, 6vw, 1.9rem)/1.2 var(--script); color: var(--gold-light); animation: fadeup 1.2s var(--ease) 1s both; }
.cover-names { animation: fadeup 1.2s var(--ease) 1.2s both; }
.cover-date { animation: fadeup 1.2s var(--ease) 1.35s both; }
.cover-invite { animation: fadeup 1.2s var(--ease) 1.5s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }
.cover-sparkles { position: absolute; inset: 0; z-index: 2; pointer-events: none; transition: opacity .6s; }
.cover-sparkles i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, #FFFFFF, rgba(255, 255, 255, .6) 40%, transparent 70%);
  animation: twinkle 3.4s ease-in-out infinite; animation-delay: var(--t);
}
.cover-screen.is-opening .cover-sparkles { opacity: 0; }
body.is-locked .petals { z-index: 105; }

/* Bên trong thiệp: câu hỏi → lời mời riêng (khung oval gốc trong ánh sáng) */
.cover-inner {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(42% 38% at 50% 50%, rgba(255, 255, 255, .3), transparent 70%),
    radial-gradient(90% 80% at 50% 50%, #5A1622, #2A000E);
}
.ci-ask, .ci-reveal { grid-area: 1 / 1; display: grid; place-items: center; }
.ci-ask { width: 100%; padding: 20px 24px; text-align: center; visibility: hidden; opacity: 0; transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s linear .9s; }
.cover-screen.is-asking .ci-ask { visibility: visible; opacity: 1; transition: opacity .7s var(--ease); }
.cover-screen.is-asking .ci-ask > * { animation: fadeup 1s var(--ease) both; }
.cover-screen.is-asking .ci-ask > :nth-child(1) { animation-delay: .9s; }
.cover-screen.is-asking .ci-ask > :nth-child(2) { animation-delay: 1.05s; }
.cover-screen.is-asking .ci-ask > :nth-child(4) { animation-delay: 2s; }
.cover-screen.is-asking .ci-ask .sa-options { animation: fadeup 1s var(--ease) 1.15s both; }
.cover-screen.is-asking .ci-ask .sa-opt:nth-child(1) { animation: halfL 1.3s var(--ease) 1.2s both; }
.cover-screen.is-asking .ci-ask .sa-opt:nth-child(2) { animation: halfR 1.3s var(--ease) 1.2s both; }
.cover-screen.is-asking .ci-ask .sa-options::before, .cover-screen.is-asking .ci-ask .sa-options::after { animation: fadeup .8s var(--ease) 2.1s both; }
@keyframes halfL { from { transform: translateX(-18%); opacity: 0; } }
@keyframes halfR { from { transform: translateX(18%); opacity: 0; } }
.cover-screen.is-asking .ci-ask .sa-photo::before { animation: shine 1.6s var(--ease) 2.2s; }
@keyframes cardin { from { opacity: 0; transform: translateY(26px) scale(.94); } }
.cover-screen.is-revealing .ci-ask { visibility: hidden; opacity: 0; transform: scale(.94); transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s linear .9s; }

.ci-reveal { pointer-events: none; }
.ci-frame { position: relative; width: min(74vw, 330px, calc((100svh - 60px) * .653)); aspect-ratio: 270.1 / 413.6; transform: scale(.82) rotate(-4deg); opacity: 0; filter: blur(6px); transition: transform 2.2s var(--ease), opacity 1.2s var(--ease), filter 1.4s var(--ease); }
.ci-frame .oval-art { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 16px rgba(255, 255, 255, .25)); }
.ci-text {
  position: absolute; left: 50%; top: 50%; width: min(56vw, 236px); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.ci-text > * { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.ci-kicker { font: 400 12px/1.5 var(--serif); letter-spacing: .08em; color: var(--cream-muted); text-wrap: balance; }
.ci-name { font: 400 clamp(2.2rem, 10vw, 2.9rem)/1.2 var(--script); color: #FFFFFF; }
.ci-amp { font: 400 1.5rem/1 var(--script); color: var(--gold); }
.ci-event { margin-top: 12px; font: 500 12.5px/1.4 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.ci-date { margin-top: 4px; font: 400 12.5px/1.5 var(--serif); color: #FFFFFF; }
.ci-where { font-size: 12px; line-height: 1.5; color: var(--cream-muted); }
.cover-screen.is-revealing .ci-frame { transform: none; opacity: 1; filter: none; }
.cover-screen.is-revealing .ci-text > * { opacity: 1; transform: none; }
.cover-screen.is-revealing .ci-text > :nth-child(1) { transition-delay: .7s; }
.cover-screen.is-revealing .ci-text > :nth-child(2) { transition-delay: .9s; }
.cover-screen.is-revealing .ci-text > :nth-child(3) { transition-delay: 1.05s; }
.cover-screen.is-revealing .ci-text > :nth-child(4) { transition-delay: 1.2s; }
.cover-screen.is-revealing .ci-text > :nth-child(5) { transition-delay: 1.6s; }
.cover-screen.is-revealing .ci-text > :nth-child(6) { transition-delay: 1.75s; }
.cover-screen.is-revealing .ci-text > :nth-child(7) { transition-delay: 1.9s; }

/* Thứ bậc dưới tên + Lời cảm ơn */
.person-rank { margin-top: 2px; font: 400 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--cream-muted); }
.letter { text-align: center; }
.letter .eyebrow { display: block; }
.letter-body { max-width: 560px; margin: 26px auto 0; text-align: left; }
.letter-body p { margin-top: 14px; font-size: 15.5px; line-height: 1.95; color: var(--cream-muted); }
.letter-body p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font: 400 3.4rem/.8 var(--serif); color: var(--gold-light); }
.letter-sign { margin-top: 30px; font: 400 2.2rem/1.2 var(--script); color: var(--gold-light); }
.letter-date { margin-top: 4px; font: 400 12px/1.4 var(--sans); letter-spacing: .3em; color: var(--gold); }

/* =========================================================
   KHUNG ẢNH CƯỚI (mỗi chương một kiểu)
   ========================================================= */
/* 1. Viền ngọc trai + nơ lụa */
.frame-pearl .ch-photo { padding: 16px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, rgba(106, 20, 50, .6), rgba(42, 0, 14, .8)); box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.frame-pearl .ch-photo::after {
  content: ""; position: absolute; inset: 3px; border-radius: 25px; padding: 11px; pointer-events: none;
  background: radial-gradient(circle at 38% 34%, #FFFFFF 0 1.4px, #F4EADB 2.6px, #FFFFFF 4.4px, rgba(0, 0, 0, 0) 5px) 0 0 / 12px 12px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}
.frame-pearl .ch-frame { border-radius: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }
.ch-bow { position: absolute; z-index: 3; left: 50%; top: -38px; width: 120px; translate: -50% 0; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); transform-origin: 50% 40%; }
.chapter.is-in .ch-bow { animation: bowin 1.2s cubic-bezier(.34, 1.5, .5, 1) .6s both; }
@keyframes bowin { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }

/* 2. Polaroid nghiêng + băng dính vàng + chữ viết tay */
.frame-polaroid .ch-photo {
  padding: 14px 14px 64px; background: linear-gradient(180deg, #FCF7EE, #FFFFFF); border-radius: 2px;
  transform: rotate(-3deg); box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .4) inset;
  transition: transform .8s var(--ease);
}
.frame-polaroid:hover .ch-photo { transform: rotate(0deg) scale(1.02); }
.frame-polaroid .ch-frame { border-radius: 1px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pol-tape {
  position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; translate: -50% 0; rotate: 3deg; z-index: 2;
  background: linear-gradient(90deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, .78));
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 0, 30% 8%, 40% 0, 50% 8%, 60% 0, 70% 8%, 80% 0, 88% 10%, 94% 0, 100% 8%, 100% 92%, 94% 100%, 86% 90%, 78% 100%, 68% 92%, 58% 100%, 48% 92%, 38% 100%, 28% 92%, 18% 100%, 8% 90%, 0 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.pol-cap { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font: 400 2rem/1 var(--script); color: #6A1432; }

/* 3. Viền vàng dày + 4 góc hoa văn */
.frame-gilded .ch-photo { padding: 10px; background: var(--gold-grad); box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .9); }
.frame-gilded .ch-frame { box-shadow: 0 0 0 1px rgba(60, 30, 10, .35), inset 0 0 0 6px rgba(255, 248, 230, .18); }
.ch-corner { width: 24%; height: auto; aspect-ratio: 1; z-index: 2; }
.ch-corner.tl { top: -9%; left: -9%; }
.ch-corner.tr { top: -9%; right: -9%; }
.ch-corner.bl { bottom: -9%; left: -9%; }
.ch-corner.br { bottom: -9%; right: -9%; }

/* 4. Cửa sổ vòm + cành hồng, cành lá */
.frame-window .ch-photo { border-radius: 999px 999px 4px 4px; }
.frame-window .ch-frame { border: 1px solid var(--gold); }
.ch-rose { position: absolute; z-index: 2; width: 34%; left: -14%; bottom: -8%; }
.ch-sprig { position: absolute; z-index: 2; width: 46%; right: -18%; top: 12%; transform: rotate(-30deg); }

/* Ảnh "Hẹn gặp bạn": khung tròn + vòng hoa lá vàng */
.wreath-photo { position: relative; width: min(56vw, 230px); aspect-ratio: 1; margin: 0 auto; }
.wreath-ring { position: absolute; inset: -24%; color: #FFFFFF; }
.wreath-ring svg { width: 100%; height: 100%; }
.wp-img { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--wine-deep), 0 0 0 6px var(--gold), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.wp-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 2.2s var(--ease); }
.wreath-photo.is-in .wp-img img { transform: none; }

/* Nút đổi nhà trên menu */
.side-chip {
  flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(42, 0, 14, .4); color: var(--gold-light);
  font: 400 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
.side-chip.gai { border-color: rgba(233, 160, 178, .7); color: #F2C2CC; }
.side-chip:hover { background: rgba(255, 255, 255, .15); }

/* =========================================================
   MENU
   ========================================================= */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  padding-top: env(safe-area-inset-top);
  transform: translateY(-110%);
  transition: transform .9s var(--ease) 1.6s, background .4s, box-shadow .4s, backdrop-filter .4s;
}
body.is-open .site-nav { transform: none; }
.site-nav.is-scrolled {
  background: rgba(42, 0, 14, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px -14px rgba(0, 0, 0, .6);
  transition-delay: 0s;
}
.nav-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--p, 0));
}
.nav-inner { max-width: 1320px; height: var(--nav-h); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 14px; }
.nav-brand { margin-right: auto; display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; min-width: 0; }
.nav-mono {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); font: 400 1.05rem/1 var(--script); color: var(--gold-light);
}
.nav-mono span + span { margin-left: -.08em; transform: translateY(.14em); }
.nav-names { font: 400 1.19rem/1 var(--script); color: var(--gold-light); white-space: nowrap; }
.nav-links { display: none; }
.nav-links a {
  position: relative; padding: 8px 0; color: var(--cream-muted); text-decoration: none; white-space: nowrap;
  font: 500 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--gold-light); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav-cta { display: none; min-height: 40px; padding: 0 20px; font-size: 10.5px; white-space: nowrap; flex: none; }
.nav-toggle {
  flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(42, 0, 14, .4); cursor: pointer; display: grid; place-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--gold-light); transition: transform .4s var(--ease), opacity .3s; }
.nav-toggle span:nth-child(2) { width: 12px; justify-self: end; }

.nav-overlay {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  display: grid; place-items: center; padding: 80px var(--gutter) 40px;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(120, 22, 56, .5), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 26px, transparent 26px 52px),
    var(--wine-deep);
  clip-path: circle(0% at calc(100% - 42px) 32px);
  transition: clip-path .9s var(--ease-io);
}
.nav-overlay.is-open { clip-path: circle(150% at calc(100% - 42px) 32px); }
.overlay-close {
  position: absolute; top: calc(10px + env(safe-area-inset-top)); right: var(--gutter);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--gold-light); cursor: pointer; display: grid; place-items: center;
}
.overlay-close svg { width: 20px; height: 20px; }
.overlay-inner { width: 100%; max-width: 520px; text-align: center; }
.overlay-eyebrow { font: 400 12px/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); }
.overlay-eyebrow span { font-family: var(--han); font-size: 1.3rem; margin-right: 6px; }
.overlay-links { margin-top: 24px; display: grid; }
.overlay-links a {
  display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 6px 0;
  font: 400 clamp(1.15rem, 4.8vw, 1.5rem)/1.6 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); text-decoration: none;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.overlay-links a i { font: italic 300 .95rem/1 var(--serif); color: var(--gold); min-width: 1.6em; text-align: right; }
.overlay-links a:hover, .overlay-links a[aria-current="true"] { color: var(--gold-light); }
.nav-overlay.is-open .overlay-links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i, 0) * .06s); }
.overlay-foot { margin-top: 26px; font: 500 11px/1 var(--sans); letter-spacing: .34em; color: var(--gold); }

/* =========================================================
   NÚT NHẠC
   ========================================================= */
.music-btn {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 68;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--wine-deep); color: var(--gold-light); border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease), background .3s;
}
.music-btn:hover { transform: scale(1.06); background: var(--wine-panel); }
.music-btn svg { width: 20px; height: 20px; }
.music-btn .eq { display: none; align-items: flex-end; gap: 3px; height: 16px; }
.music-btn .eq i { width: 3px; height: 100%; background: var(--gold-light); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.music-btn .eq i:nth-child(2) { animation-delay: -.3s; }
.music-btn .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music-btn[aria-pressed="true"] .i-play { display: none; }
.music-btn[aria-pressed="true"] .eq { display: flex; }
.music-btn::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1px solid transparent; border-top-color: var(--gold); border-right-color: rgba(255, 255, 255, .35);
  opacity: 0; transition: opacity .3s;
}
.music-btn[aria-pressed="true"]::after { opacity: 1; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   2. HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 30px) var(--gutter) 96px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 50% at 70% 45%, rgba(130, 26, 60, .45), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 26px, transparent 26px 52px),
    linear-gradient(180deg, var(--wine-deep), var(--wine) 60%, var(--wine-deep));
}
.hero-glow {
  position: absolute; z-index: -1; width: 80vmax; height: 80vmax; left: 50%; top: 40%; translate: -50% -50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 60%);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.hero-grid { width: 100%; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; justify-items: center; align-items: center; }
.hero-visual { position: relative; width: min(68vw, 330px); }
.arch-window {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden; isolation: isolate;
  border-radius: 999px 999px 4px 4px; background: var(--wine-panel);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .85);
}
.arch-window::after {
  content: ""; position: absolute; inset: 9px; z-index: 3; pointer-events: none;
  border-radius: 999px 999px 2px 2px; border: 1px solid rgba(255, 255, 255, .55);
}
.hero-slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); transition: transform 7.5s linear; }
.slide.is-active img { transform: scale(1); }
.arch-shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 50%, transparent 62%);
  transform: translateX(-120%); animation: shine 7s var(--ease) infinite 3s;
}
@keyframes shine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
.arch-ring { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); overflow: visible; pointer-events: none; }
.arch-ring path { fill: none; stroke: url(#gold-grad); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3s var(--ease) .8s; }
body.is-open .arch-ring path { stroke-dashoffset: 0; }

.badge { position: absolute; left: -34px; bottom: 30px; z-index: 4; width: clamp(96px, 26vw, 128px); aspect-ratio: 1; }
.badge svg { width: 100%; height: 100%; animation: spin 26s linear infinite; overflow: visible; }
.badge-bg { fill: var(--wine-deep); stroke: var(--gold); stroke-width: 1; }
.badge-line { fill: none; stroke: var(--line); stroke-width: 1; }
.badge-text { fill: var(--gold-light); font: 500 15px/1 var(--sans); letter-spacing: 4.6px; }
.badge-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.8rem, 6vw, 2.4rem); }
.slide-meta { margin-top: 26px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.slide-count { font: 500 11px/1 var(--sans); letter-spacing: .2em; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.slide-bar { position: relative; width: 90px; height: 1px; background: var(--line-soft); overflow: hidden; }
.slide-bar i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.slide-bar i.run { animation: bar var(--dur, 6.5s) linear forwards; }
@keyframes bar { to { transform: scaleX(1); } }

.hero-text { text-align: center; }
.hero-eyebrow { font: 400 clamp(1.8rem, 6vw, 2.4rem)/1.2 var(--script); color: var(--gold-light); }
.hero-names {
  margin-top: 12px; padding: 0 .1em;
  font: 400 clamp(2.7rem, 11.07vw, 5.9rem)/1.15 var(--script); color: var(--cream);
  text-shadow: 0 6px 40px rgba(26, 0, 9, .5);
  display: flex; flex-direction: column; align-items: center;
}
.hero-names .hn { white-space: nowrap; }
.hero-names .ch {
  display: inline-block; opacity: 0; filter: blur(12px);
  transform: translateY(.3em) rotate(6deg) scale(.9);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--base, 0s) + var(--i) * 70ms);
}
body.is-open .hero-names .ch { opacity: 1; filter: none; transform: none; }
.hero-names em { font-style: normal; font-size: .55em; line-height: .95; padding: 0 .4em; text-shadow: none; }
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 12px; width: 230px; margin: 22px auto 18px; }
.hero-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-rule i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.hero-rule b { width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }
.hero-date {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font: 400 clamp(1.2rem, 4.6vw, 1.6rem)/1 var(--serif); letter-spacing: .08em; color: var(--gold-light); white-space: nowrap;
}
.hero-date i { width: 1px; height: 18px; background: var(--line); }
.hero-sub { margin-top: 12px; font: 500 11px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--cream-muted); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-anim { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.hero-visual.hero-anim { transform: translateY(30px) scale(.96); }
body.is-open .hero-anim { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--cream-muted); text-decoration: none;
  font: 400 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.scroll-cue i { position: relative; width: 1px; height: 34px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* =========================================================
   3. LỜI MỜI
   ========================================================= */
.invite { overflow: hidden; }
.watermark {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none;
  font: 600 min(90vw, 760px)/1 var(--han); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .07);
}
.invite-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.invite-photo { position: relative; z-index: 2; width: min(70vw, 320px); margin: 0 auto -84px; }
.invite-photo::before {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
  border: 1px solid var(--line); border-radius: 999px 999px 6px 6px;
}
.arch-photo {
  position: relative; aspect-ratio: 2 / 3; overflow: hidden;
  border-radius: 999px 999px 6px 6px; border: 1px solid var(--gold);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75);
}
.arch-photo::after { content: ""; position: absolute; inset: 8px; border-radius: 999px 999px 3px 3px; border: 1px solid rgba(255, 255, 255, .6); pointer-events: none; }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; }
.invite-panel { padding-top: 124px; }
.song-hy-mark { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 16px; }
.sh-symbol { position: relative; width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; }
.sh-symbol::before, .sh-symbol::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); transform: rotate(45deg); }
.sh-symbol::after { inset: 3px; border-color: var(--line-soft); }
.sh-caption { font: 500 10px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.families { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.family-label { font: 400 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 4px; }
.family-name { font: 500 clamp(.86rem, 3.5vw, 1.08rem)/1.45 var(--serif); color: var(--cream); white-space: nowrap; }
.family-addr { margin-top: 4px; font-size: 13px; color: var(--cream-muted); }
.invite .flourish { margin: 18px auto 16px; }
.invite .eyebrow { font: 400 11px/1.4 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.invite-lead { margin-top: 4px; font: italic 400 clamp(1.2rem, 4.2vw, 1.45rem)/1.4 var(--serif); color: var(--cream-muted); }
.couple-names { margin: 10px 0 0; display: flex; flex-direction: column; align-items: center; gap: 0; }
.person { display: flex; flex-direction: column; align-items: center; }
.person-name { padding: 0 .4em; font: 400 clamp(2.5rem, 10.5vw, 3.4rem)/1.2 var(--script); white-space: nowrap; }
.person-role { margin-top: 4px; font: 400 10.5px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--cream-muted); }
.person-role .person-rank { margin: 0; font: inherit; letter-spacing: inherit; }
.person-role .person-rank::before { content: " · "; }
.couple-amp { padding: 0 .4em; font: 400 1.8rem/1 var(--script); margin: 4px 0 -2px; }
.invite-guest { margin-top: 14px; font: italic 400 1.2rem/1.5 var(--serif); color: var(--gold-light); }
.invite-venue { margin-top: 18px; font: 500 11.5px/1.6 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.date-block { margin: 12px auto 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.db-month, .db-year { font: 500 11px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; padding-left: .4em; color: var(--gold-light); }
.db-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(12px, 4vw, 26px); width: min(400px, 100%); }
.db-side {
  padding: 9px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 400 11px/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--cream);
}
.db-day { font: 300 clamp(3.4rem, 13vw, 4.4rem)/1 var(--serif); }
.db-lunar { font: italic 400 .98rem/1.4 var(--serif); color: var(--cream-muted); }
.invite-msg { max-width: 540px; margin: 16px auto 0; font-size: 14px; line-height: 1.8; color: var(--cream-muted); }
.invite-closing { margin-top: 10px; font: italic 400 1.2rem/1.4 var(--serif); color: var(--gold-light); }
.invite-panel.ornate { padding-top: 112px; padding-bottom: 44px; }
/* Máy tính rộng: tên cô dâu & chú rể nằm ngang một hàng */
@media (min-width: 1100px) {
  .couple-names { flex-direction: row; justify-content: center; align-items: center; gap: 4px; margin-top: 14px; }
  .person-name { font-size: 2.7rem; }
  .couple-amp { margin: 0 0 22px; font-size: 2.2rem; }
}

/* =========================================================
   4. CÔ DÂU & CHÚ RỂ
   ========================================================= */
.couple-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; max-width: 960px; margin: 0 auto; }
.portrait { margin: 0; width: min(72vw, 320px); }
.portrait-frame { position: relative; aspect-ratio: 252 / 412; clip-path: inset(0 0 100% 0); transition: clip-path 1.6s var(--ease-io); }
.portrait.is-in .portrait-frame { clip-path: inset(-24px); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; clip-path: url(#cartouche-clip); transform: scale(1.15); transition: transform 2.2s var(--ease); }
.portrait.is-in .portrait-frame img { transform: none; }
.portrait-frame:hover img { transform: scale(1.04); }
.portrait-frame svg { position: absolute; overflow: visible; pointer-events: none; }
.portrait-frame .ring-out { inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); }
.portrait-frame .ring-in { inset: 0; width: 100%; height: 100%; }
.portrait-frame path { fill: none; vector-effect: non-scaling-stroke; }
.portrait-frame .ring-out path { stroke: url(#gold-grad); stroke-width: 1.6; }
.portrait-frame .ring-in path { stroke: rgba(255, 255, 255, .75); stroke-width: 1; }
.portrait figcaption { margin-top: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.portrait .role { font: 400 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.portrait .name { display: inline-block; margin-top: 6px; padding: 0 .4em; font: 400 clamp(2.2rem, 9.4vw, 3rem)/1.3 var(--script); white-space: nowrap; }
.couple-heart { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.heart-amp { padding: 0 .4em; font: 400 4.4rem/1 var(--script); }
.heart-line { width: 1px; height: 60px; background: linear-gradient(var(--gold), transparent); }
.heart-date { font: 500 11px/1 var(--sans); letter-spacing: .34em; color: var(--gold-light); }

/* =========================================================
   5. CHƯƠNG TRÌNH
   ========================================================= */
/* Điện thoại: danh sách gọn — biểu tượng trái, giờ + tên phải, đường vàng nối dọc */
.program-wrap { position: relative; max-width: 240px; margin: 0 auto; }
.program-line { position: absolute; left: 30px; top: 30px; bottom: 30px; width: 1px; background: var(--line-soft); translate: -50% 0; }
.program-line i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(255, 255, 255, .6); }
.program-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.program-item {
  position: relative; display: grid; grid-template-columns: 60px 1fr; grid-template-areas: "icon time" "icon title";
  column-gap: 20px; align-items: center; text-align: left;
}
.pg-icon {
  grid-area: icon; position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--wine-deep);
  box-shadow: inset 0 0 0 4px var(--wine-deep), inset 0 0 0 5px var(--line-soft);
  transition: background .8s var(--ease), box-shadow .8s var(--ease), transform .8s var(--ease);
}
.pg-icon svg { width: 30px; height: 30px; overflow: visible; }
.pg-icon svg g { stroke: #C7C7C7; transition: stroke .8s; }
.program-item.is-lit .pg-icon {
  background: var(--wine-panel); transform: scale(1.06);
  box-shadow: inset 0 0 0 4px var(--wine-panel), inset 0 0 0 5px var(--gold), 0 0 28px rgba(255, 255, 255, .35);
}
.program-item.is-lit .pg-icon svg g { stroke: #FFFFFF; }
.pg-time { grid-area: time; align-self: end; font: 400 1.75rem/1 var(--serif); color: var(--gold-light); letter-spacing: .04em; }
.pg-title { grid-area: title; align-self: start; margin-top: 6px; font: 500 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--cream); }

/* =========================================================
   6. TRÍCH DẪN
   ========================================================= */
.quote {
  position: relative; min-height: 86svh; display: grid; place-items: center;
  padding: 120px var(--gutter); overflow: hidden; isolation: isolate; text-align: center;
}
.quote-bg { position: absolute; left: 0; right: 0; top: -14%; bottom: -14%; z-index: -2; will-change: transform; }
.quote-bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-overlay { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 50%, rgba(42, 0, 14, .3), rgba(42, 0, 14, .82)), rgba(65, 0, 22, .25); }
.quote-text { margin: 0; max-width: 900px; }
.quote-mark { display: block; height: .45em; font: 400 7rem/1 var(--serif); color: var(--gold); }
.quote-text p { padding: 0 .4em; font: 400 clamp(1.7rem, 6.2vw, 3rem)/1.45 var(--serif); letter-spacing: .02em; color: var(--cream); text-shadow: 0 4px 30px rgba(26, 0, 9, .5); }
.quote-text.is-in p { animation: glowin 2.4s var(--ease) both; }
@keyframes glowin { from { letter-spacing: .08em; opacity: 0; filter: blur(10px); } }
.quote-text footer { margin-top: 20px; font: 500 11px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gold-light); }

/* =========================================================
   7. CHUYỆN CHÚNG MÌNH
   ========================================================= */
.story {
  position: relative; text-align: center;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(106, 20, 50, .45), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 26px, transparent 26px 52px),
    var(--wine-deep);
}
.story-sticky { padding: clamp(88px, 12vw, 130px) var(--gutter); }
.story-head { margin-bottom: 56px; }
.chapters { list-style: none; margin: 0 auto; padding: 0; max-width: 1040px; display: grid; gap: 84px; }
.chapter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; }
.ch-photo { position: relative; width: min(76vw, 360px); margin: 0 auto; }
.frame-window .ch-photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line); border-radius: inherit; }
.ch-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: inherit;
  box-shadow: 0 30px 60px -26px rgba(0, 0, 0, .8);
  clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-io);
}
.chapter.is-in .ch-frame { clip-path: inset(0); }
.ch-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 2.2s var(--ease); }
.chapter.is-in .ch-frame img { transform: none; }
.ch-body { position: relative; max-width: 420px; margin: 0 auto; }
.ch-num { display: block; font: 300 clamp(4.5rem, 16vw, 8rem)/.9 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .75); }
.ch-title { display: inline-block; margin-top: -.2em; padding: 0 .1em; position: relative; font: 400 clamp(1.25rem, 5vw, 1.6rem)/1.4 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.ch-text { margin-top: 8px; font: italic 400 1.3rem/1.6 var(--serif); color: var(--cream-muted); }
.story-progress { display: none; }

/* Dải ảnh chạy */
.marquee {
  overflow: hidden; padding: 14px 0; background: var(--wine-deep);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 90s linear infinite; }
.marquee-track.reverse { margin-top: 12px; animation-direction: reverse; animation-duration: 110s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: clamp(170px, 24vw, 280px); width: auto; aspect-ratio: 2 / 3; object-fit: cover; margin-right: 12px; border-radius: 2px; filter: saturate(.9) brightness(.92); transition: filter .4s; }
.marquee img:hover { filter: none; }
.marquee-track.reverse img { height: clamp(130px, 18vw, 210px); aspect-ratio: 3 / 2; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   8. SỰ KIỆN
   ========================================================= */
.details { background: var(--wine-deep); overflow: hidden; isolation: isolate; }
.details-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.details-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42, 0, 14, .95), rgba(65, 0, 22, .9) 50%, rgba(42, 0, 14, .96)); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 540px; margin: 0 auto; perspective: 400px; }
.cd-unit {
  position: relative; padding: 18px 4px 14px; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: linear-gradient(180deg, rgba(106, 20, 50, .5), rgba(42, 0, 14, .5));
}
.cd-unit::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 1px; background: rgba(0, 0, 0, .25); }
.cd-num { display: inline-block; font: 300 clamp(2rem, 9vw, 3.1rem)/1 var(--serif); font-variant-numeric: tabular-nums; }
.cd-num.flip { animation: flip .6s var(--ease); }
@keyframes flip { from { transform: rotateX(-90deg); opacity: 0; } }
.cd-label { font: 500 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--cream-muted); }
.cd-done { font: italic 400 1.4rem/1.4 var(--serif); color: var(--gold-light); }
.details-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 980px; margin: 48px auto 0; }
.calendar { padding: 30px 18px 24px; }
.cal-title { display: inline-block; padding: 0 .4em; font: 400 1.25rem/1.4 var(--serif); letter-spacing: .16em; text-transform: uppercase; }
.cal-table { width: 100%; max-width: 360px; margin: 14px auto 0; border-collapse: collapse; table-layout: fixed; }
.cal-table th { padding-bottom: 10px; font: 500 10.5px/1 var(--sans); letter-spacing: .1em; color: var(--gold); }
.cal-table td { height: 42px; font: 400 1.15rem/1 var(--serif); color: var(--cream-muted); text-align: center; }
.cal-table td.is-day { position: relative; color: var(--wine-deep); font-weight: 700; font-size: 1.3rem; }
.cal-table td.is-day span { position: relative; z-index: 2; }
.cal-table td.is-day svg { position: absolute; left: 50%; top: 50%; z-index: 1; width: 60px; height: 60px; transform: translate(-50%, -48%); overflow: visible; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); animation: beat 1.6s ease-in-out infinite; }
.cal-table td:not(.is-day) { opacity: .6; }
.cal-legend { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gold); background: rgba(255, 255, 255, .12); font: 500 12px/1.4 var(--sans); letter-spacing: .08em; color: var(--gold-light); }
@keyframes beat { 0%, 100% { transform: translate(-50%, -48%) scale(1); } 15% { transform: translate(-50%, -48%) scale(1.15); } 30% { transform: translate(-50%, -48%) scale(1); } 45% { transform: translate(-50%, -48%) scale(1.1); } }
.events { display: grid; gap: 20px; }
.event {
  position: relative; padding: 38px 22px 32px; text-align: center; border: 1px solid var(--line);
  background: radial-gradient(90% 60% at 50% 0%, rgba(106, 20, 50, .45), transparent 70%), var(--wine-panel);
  display: flex; flex-direction: column; justify-content: center;
}
.event::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-soft); pointer-events: none; }
.ev-title { display: inline-block; align-self: center; padding: 0 .4em; font: 400 clamp(1.2rem, 4.6vw, 1.5rem)/1.4 var(--serif); letter-spacing: .14em; text-transform: uppercase; }
.ev-when { margin-top: 10px; display: flex; justify-content: center; align-items: center; gap: 14px; color: var(--gold-light); }
.ev-time { font: 400 2rem/1 var(--serif); }
.ev-when i { width: 1px; height: 28px; background: var(--line); }
.ev-date { font: 500 11px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-align: left; }
.ev-venue { margin-top: 22px; font: 500 15px/1.5 var(--sans); color: var(--cream); }
.ev-addr { margin-top: 6px; font-size: 13.5px; color: var(--cream-muted); }
.ev-actions { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ev-actions .btn { position: relative; overflow: hidden; min-height: 50px; padding: 0 26px; font-size: 11.5px; transition: transform .35s var(--ease), box-shadow .35s, background .35s, color .35s; }
.ev-actions .btn svg { width: 17px; height: 17px; }
.ev-actions .btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  animation: btnshine 3.6s ease-in-out infinite;
}
.ev-go { background: var(--gold-grad); border-color: transparent; color: var(--wine-deep); font-weight: 600; animation: btnglow 2.4s ease-in-out infinite; }
.ev-go svg { animation: pinhop 1.6s ease-in-out infinite; }
.ev-save { border-color: var(--gold); color: var(--gold-light); background: rgba(255, 255, 255, .1); }
.ev-save::after { animation-delay: 1.8s; }
.ev-save svg { transform-origin: 50% 20%; animation: calswing 2.4s ease-in-out infinite; }
.ev-actions .btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(255, 255, 255, .55); }
.ev-save:hover { background: var(--gold); color: var(--wine-deep); }
@keyframes btnshine { 0%, 55% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
@keyframes btnglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55), 0 10px 24px -12px rgba(0, 0, 0, .6); } 50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0), 0 10px 24px -12px rgba(0, 0, 0, .6); } }
@keyframes pinhop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes calswing { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-12deg); } 86% { transform: rotate(10deg); } 94% { transform: rotate(-4deg); } }

/* =========================================================
   9. ALBUM
   ========================================================= */
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; margin: 0 auto 34px; border: 1px solid var(--line); border-radius: 999px; }
.tab {
  min-height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--cream-muted);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.tab:hover { color: var(--gold-light); }
.tab[aria-selected="true"] { background: var(--gold-grad); color: var(--wine-deep); font-weight: 600; }
.tab small { margin-left: 6px; font-size: 10px; opacity: .75; letter-spacing: .05em; }
.masonry { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8px; text-align: left; }
.masonry li { break-inside: avoid; margin-bottom: 8px; opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.masonry li.is-in { opacity: 1; transform: none; }
.masonry button { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--wine-panel); }
.masonry button::before { content: ""; position: absolute; inset: 6px; z-index: 1; border: 1px solid rgba(255, 255, 255, 0); transition: border-color .5s var(--ease), inset .5s var(--ease); pointer-events: none; }
.masonry img { width: 100%; height: auto; transition: transform 1.2s var(--ease), filter .6s; }
.masonry button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(42, 0, 14, .6)); opacity: 0; transition: opacity .5s var(--ease); }
.masonry button:hover img, .masonry button:focus-visible img { transform: scale(1.06); }
.masonry button:hover::after, .masonry button:focus-visible::after { opacity: 1; }
.masonry button:hover::before, .masonry button:focus-visible::before { border-color: rgba(255, 255, 255, .8); inset: 10px; }
.masonry button:focus-visible { outline-offset: -3px; }
.more-wrap { margin-top: 34px; }

.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(26, 0, 9, .96); animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 12px 24px; max-width: 100%; }
.lb-img { max-width: min(92vw, 1200px); max-height: calc(100svh - 150px); object-fit: contain; box-shadow: 0 30px 60px rgba(0, 0, 0, .6); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.lb-img.is-loading { opacity: .25; transform: scale(.98); }
.lb-caption { color: var(--gold-light); font: 400 12px/1 var(--sans); letter-spacing: .3em; }
.lb-btn { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(65, 0, 22, .7); color: var(--gold-light); border: 1px solid var(--line); transition: background .3s; }
.lb-btn:hover { background: var(--wine-glow); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lb-prev, .lb-next { bottom: 20px; }
.lb-prev { left: calc(50% - 60px); }
.lb-next { right: calc(50% - 60px); }

/* =========================================================
   10. FORM (RSVP + LỜI CHÚC)
   ========================================================= */
.rsvp .panel .sec-head { margin-bottom: 34px; }
.form { text-align: left; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { padding: 0; font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.field legend { margin-bottom: 10px; }
.opt { text-transform: none; letter-spacing: 0; color: var(--cream-muted); font-weight: 400; }
.field input[type="text"], .field textarea, .select select {
  width: 100%; padding: 13px 15px;
  background: rgba(26, 0, 9, .35); border: 1px solid var(--line); border-radius: 2px;
  font-size: 16px; line-height: 1.5; color: var(--cream);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .42); }
.field input:focus, .field textarea:focus, .select select:focus { outline: none; border-color: var(--gold-light); background: rgba(26, 0, 9, .5); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #F0A0A8; }
.field-error { font-size: 13px; color: #F4B7BD; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select select option { background: var(--wine-deep); color: var(--cream); }
.select select:disabled { opacity: .45; cursor: not-allowed; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; pointer-events: none; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1px solid var(--line); background: rgba(26, 0, 9, .35); color: var(--cream);
  font: 400 14.5px/1.5 var(--sans); letter-spacing: 0; text-transform: none;
  transition: border-color .25s, background .25s;
}
.choice span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--gold); transition: box-shadow .25s, background .25s; }
.choice input:checked + span { border-color: var(--gold-light); background: rgba(255, 255, 255, .12); }
.choice input:checked + span::before { background: var(--gold); box-shadow: inset 0 0 0 3px var(--wine-panel); }
.choice input:focus-visible + span { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.form-status { min-height: 1.5em; font: italic 400 1.15rem/1.5 var(--serif); color: var(--gold-light); text-align: center; }
.form-status.is-error { color: #F4B7BD; }
.char-count { justify-self: end; font-size: 12px; color: var(--cream-muted); }

.wishes-layout { display: grid; grid-template-columns: 1fr; gap: 36px; text-align: left; }
.wish-form { padding: 30px clamp(20px, 4vw, 32px); align-self: start; }
.wish-count { font: 500 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.wish-list { list-style: none; margin: 0; padding: 0 6px 0 0; display: grid; gap: 14px; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent; }
.wish-list.is-auto {
  scrollbar-width: none; padding: 30px 0;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.wish-list.is-auto::-webkit-scrollbar { display: none; }
.wish { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; background: rgba(76, 7, 32, .65); border: 1px solid var(--line-soft); border-left: 2px solid var(--gold); }
.wish.is-new { animation: rise .7s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.wish-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--wine-deep); font: 600 1.15rem/1 var(--serif); }
.wish-name { font: 600 14px/1.4 var(--sans); color: var(--gold-light); }
.wish-time { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--cream-muted); }
.wish-text { margin-top: 6px; font: italic 400 1.15rem/1.55 var(--serif); color: var(--cream); overflow-wrap: anywhere; }

/* =========================================================
   11. HẸN GẶP + FOOTER
   ========================================================= */
.closing-title { margin-top: 40px; }
.closing-text { margin-top: 8px; font: italic 400 1.25rem/1.6 var(--serif); color: var(--cream-muted); }
.footer { padding: 80px var(--gutter) calc(90px + env(safe-area-inset-bottom)); text-align: center; background: radial-gradient(80% 60% at 50% 0%, rgba(106, 20, 50, .35), transparent 60%), var(--wine); border-top: 1px solid var(--line-soft); }
.footer-mono { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); box-shadow: inset 0 0 0 4px var(--wine), inset 0 0 0 5px var(--line-soft); font: 400 2.2rem/1 var(--script); color: var(--gold-light); }
.footer-mono span + span { margin-left: -.1em; transform: translateY(.15em); }
.footer-names { margin-top: 20px; padding: 0 .4em; font: 400 clamp(2.6rem, 10vw, 3.8rem)/1.3 var(--script); display: flex; flex-direction: column; align-items: center; }
.footer-names em { font-style: normal; font-size: .7em; line-height: 1; }
.footer-date { margin-top: 10px; font: 400 13px/1 var(--sans); letter-spacing: .4em; color: var(--gold); }
.footer-thanks { margin-top: 22px; font: italic 400 1.15rem/1.5 var(--serif); color: var(--cream-muted); }
.footer-top { display: inline-block; margin-top: 34px; padding-bottom: 4px; font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--cream-muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-top:hover { color: var(--gold-light); }

/* =========================================================
   HIỆN DẦN KHI CUỘN
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="photo"] { opacity: 1; transform: none; }
[data-reveal="photo"] > .arch-photo, [data-reveal="photo"] .wp-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease-io); }
[data-reveal="photo"].is-in > .arch-photo, [data-reveal="photo"].is-in .wp-img { clip-path: inset(0 round 50%); }
[data-reveal="photo"].is-in > .arch-photo { clip-path: inset(0); }
[data-reveal="photo"] img { transform: scale(1.2); transition: transform 2.2s var(--ease), clip-path 1.6s var(--ease-io); }
[data-reveal="photo"].is-in img { transform: none; }
.sec-title { clip-path: inset(-40% 100% -40% -40%); transition: clip-path 1.8s var(--ease-io) .25s; }
.is-in .sec-title, .sec-title.is-in { clip-path: inset(-40% -40% -40% -40%); }

.nav-names { display: none; }
/* ≥ 480px */
@media (min-width: 480px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 760px) {
  .nav-names { display: inline; }
}
/* ≥ 560px */
@media (min-width: 560px) {
  .families { grid-template-columns: 1fr 1fr; gap: 24px; }
}
/* ≥ 640px */
@media (min-width: 640px) {
  :root { --gutter: 32px; --nav-h: 72px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
  .masonry { columns: 3; column-gap: 10px; }
  .masonry li { margin-bottom: 10px; }
  .footer-names { flex-direction: row; justify-content: center; align-items: baseline; gap: .25em; }
  .footer-names em { font-size: .9em; }
  .lb-prev, .lb-next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lb-prev { left: 20px; }
  .lb-next { right: 20px; }
  .lb-figure { padding: 64px 90px 30px; }
}
/* ≥ 760px */
@media (min-width: 760px) {
  .couple-grid { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
  .heart-amp { font-size: 5.4rem; }
}
/* ≥ 600px: Chương trình thành hàng ngang */
@media (min-width: 600px) {
  .program-wrap { max-width: 1000px; }
  .program-line { left: 10%; right: 10%; top: 32px; bottom: auto; width: auto; height: 1px; translate: none; }
  .program-line i { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .program-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .program-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .pg-icon { width: 64px; height: 64px; }
  .pg-time { align-self: center; margin-top: 14px; font-size: 1.7rem; }
  .pg-title { align-self: center; margin-top: 6px; font-size: 10.5px; letter-spacing: .16em; }
}
@media (min-width: 960px) {
  .program-line { top: 40px; }
  .pg-icon { width: 80px; height: 80px; }
  .pg-icon svg { width: 38px; height: 38px; }
  .pg-time { font-size: 2rem; }
  .pg-title { font-size: 12px; letter-spacing: .24em; }
}
/* ≥ 960px */
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 5vw; }
  .hero-visual { order: 2; width: min(100%, 440px, calc((100svh - 240px) * .667)); justify-self: center; }
  .hero-text { text-align: left; justify-self: start; }
  .hero-names { align-items: flex-start; font-size: clamp(6.1rem, 9.03vw, 9.27rem); }
  .hero-names em { margin-left: 1.2em; }
  .hero-names .hn:last-child { margin-left: .6em; }
  .hero-rule { margin-left: 0; }
  .hero-date, .hero-actions { justify-content: flex-start; }
  .badge { left: -60px; }
  .invite-layout { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; align-items: center; max-width: 1180px; }
  .invite-photo { width: 100%; margin: 0; }
  .invite-panel.ornate { padding: 44px 40px 40px; }
  .details-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .masonry { columns: 4; column-gap: 12px; }
  .masonry li { margin-bottom: 12px; }
  .wishes-layout { grid-template-columns: 380px 1fr; gap: 48px; }
  .chapter { grid-template-columns: 1fr 1fr; gap: 72px; }
  .chapter .ch-photo { margin: 0 0 0 auto; }
  .chapter .ch-body { margin: 0; text-align: left; }
  .chapter:nth-child(even) .ch-photo { order: 2; margin: 0 auto 0 0; }
  .chapter:nth-child(even) .ch-body { order: 1; margin-left: auto; text-align: right; }
}
/* Menu đầy đủ chỉ khi đủ chỗ cho 8 mục trên một hàng; hẹp hơn thì dùng nút ☰ */
@media (min-width: 1400px) {
  .nav-links { display: flex; gap: 20px; margin-right: 8px; }
  .nav-toggle { display: none; }
}
/* 1400–1699px: chỉ giữ chữ lồng, ẩn tên để menu không chật */
@media (min-width: 1400px) and (max-width: 1699px) {
  .nav-names { display: none; }
}

/* Chuyện tình cuộn ngang (JS bật class is-pinned trên máy tính) */
.story.is-pinned { height: var(--story-h, 400vh); }
.story.is-pinned .story-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden; padding: calc(var(--nav-h) + 24px) 0 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.story.is-pinned .story-head { margin-bottom: 4vh; }
.story.is-pinned .story-head .sec-title { font-size: clamp(1.6rem, 2.4vw, 2.3rem); }
.story.is-pinned .chapters { display: flex; gap: 10vw; width: max-content; max-width: none; margin: 0; padding: 0 12vw; will-change: transform; }
.story.is-pinned .chapter { width: min(68vw, 900px); grid-template-columns: auto minmax(0, 1fr); gap: 56px; }
.story.is-pinned .chapter .ch-photo { order: 0; width: auto; height: min(56vh, 520px); aspect-ratio: var(--ar, 4 / 5); margin: 0; }
.story.is-pinned .frame-polaroid .ch-photo { --ar: .72; display: flex; flex-direction: column; }
.story.is-pinned .frame-polaroid .ch-frame { flex: 1; aspect-ratio: auto; }

.story.is-pinned .chapter .ch-body { order: 1; margin: 0; text-align: left; }
.story.is-pinned .story-progress { display: block; position: absolute; left: 12vw; right: 12vw; bottom: 34px; height: 1px; background: var(--line-soft); }
.story.is-pinned .story-progress i { position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* =========================================================
   HOẠ TIẾT NÉT VÀNG
   ========================================================= */
.orn { display: inline-block; line-height: 0; color: #FFFFFF; pointer-events: none; }
.orn svg { width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.orn .dot { fill: currentColor; stroke: none; }
.orn .fill-soft { fill: rgba(255, 255, 255, .14); }
body.is-open .hero .draw { stroke-dashoffset: 0; transition-delay: 1.6s; transition-duration: 3s; }
body.is-open .hero .draw-fill { opacity: 1; transition-delay: 3s; }

/* Cành lá quanh khung ảnh bìa */
.hero-sprig { position: absolute; z-index: 5; width: 46%; right: -18%; top: 6%; transform: rotate(-24deg); }
.hero-lily { position: absolute; z-index: 5; width: 24%; right: -24%; bottom: 10%; }

/* Hoa trang trí góc phần Lời mời */
.deco { position: absolute; opacity: .35; z-index: 0; }
.deco-tl { width: clamp(70px, 12vw, 130px); top: 40px; left: 3%; transform: rotate(-18deg); }
.deco-br { width: clamp(60px, 10vw, 110px); bottom: 40px; right: 3%; transform: scaleX(-1) rotate(-8deg); }

/* Bồ câu + vô cực giữa cô dâu & chú rể */
.heart-doves { width: 150px; animation: float 4s ease-in-out infinite; }
.heart-infinity { width: 110px; margin-top: 4px; }
.heart-infinity .runner { stroke: #FFFFFF; stroke-width: 2.4; stroke-dasharray: .1 .9; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)); animation: runner 4.5s linear infinite; }
@keyframes runner { to { stroke-dashoffset: -1; } }
.heart-amp { line-height: .8; }

/* D-day: chuông + ruy băng */
.dday { display: flex; flex-direction: column; align-items: center; margin-bottom: 26px; }
.dday-bells { width: 120px; transform-origin: 50% 18%; animation: swing 3.2s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.ribbon { position: relative; width: min(330px, 86vw); margin-top: 6px; }
.ribbon .orn { width: 100%; }
.ribbon-text {
  position: absolute; inset: 0 0 6% 0; display: grid; place-items: center;
  font: 500 clamp(1.5rem, 6vw, 2rem)/1 var(--serif); letter-spacing: .14em; color: var(--gold-light);
}
.dday-sub { margin-top: 12px; font: italic 400 1.15rem/1.4 var(--serif); color: var(--cream-muted); }

/* Xe hoa chạy tới nhà */
@keyframes bounce { 50% { transform: translateY(-6px); } }

/* Trang phục */
.section.dress { padding: clamp(56px, 8vw, 84px) 0; }
.dress .sec-head { margin-bottom: 24px; }
.dress-body { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dress-figures { display: flex; gap: 26px; }
.dress-figures .orn { width: 70px; }
.dress-note { max-width: 520px; font: italic 400 1.25rem/1.6 var(--serif); color: var(--cream-muted); }
.swatches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 22px; }
.swatches li { display: flex; flex-direction: column; align-items: center; gap: 10px; white-space: nowrap; font: 500 10.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream); }
.swatches i {
  width: 58px; height: 58px; border-radius: 50%; background: var(--c);
  box-shadow: 0 0 0 4px var(--wine-deep), 0 0 0 5px var(--line), 0 10px 20px -8px rgba(0, 0, 0, .7);
  transition: transform .4s var(--ease);
}
.swatches li:hover i { transform: translateY(-4px) scale(1.05); }

/* RSVP + mừng cưới */
.rsvp-toast { display: block; width: 74px; margin: 0 auto 8px; animation: float 4.5s ease-in-out infinite; }
/* Hộp mừng cưới online */
.giftbox { display: flex; flex-direction: column; align-items: center; }
.giftbox-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--gold-light);
}
.giftbox-art { width: clamp(150px, 40vw, 190px); overflow: visible; }
.gb-line { fill: none; stroke: var(--gold); stroke-width: 1.2; }
.gb-ribbon { fill: #FFFFFF; }
.gb-bow { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linejoin: round; }
.gb-knot { fill: #FFFFFF; }
.gb-glow circle { fill: url(#gold-grad); opacity: 0; filter: blur(18px); transition: opacity .8s var(--ease); }
.gb-sparks path { fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; opacity: 0; }
.gb-lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .9s cubic-bezier(.34, 1.4, .5, 1); }
.giftbox:not(.is-open) .giftbox-btn:hover .gb-lid { transform: translateY(-4px) rotate(-2deg); }
.giftbox:not(.is-open) .giftbox-art { animation: nudge 3.6s ease-in-out infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-4deg); } 82% { transform: rotate(4deg); } 88% { transform: rotate(-2deg); } }
.giftbox.is-open .gb-lid { transform: translate(-10px, -34px) rotate(-22deg); }
.giftbox.is-open .gb-glow circle { opacity: .35; }
.giftbox.is-open .gb-sparks path { animation: sparks 1.2s var(--ease) .2s both; }
@keyframes sparks { 0% { opacity: 0; stroke-dasharray: 0 20; } 40% { opacity: 1; } 100% { opacity: 0; stroke-dasharray: 20 0; } }
.giftbox-label {
  display: inline-flex; min-height: 46px; align-items: center; padding: 0 26px; border-radius: 999px;
  border: 1px solid var(--gold); font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  transition: background .35s, color .35s;
}
.giftbox-btn:hover .giftbox-label { background: var(--gold); color: var(--wine-deep); }
.gl-open, .giftbox.is-open .gl-closed { display: none; }
.giftbox.is-open .gl-open { display: inline; }

.gift-panel { display: grid; grid-template-rows: 0fr; width: 100%; transition: grid-template-rows .9s var(--ease-io); }
.giftbox.is-open .gift-panel { grid-template-rows: 1fr; }
.gift-panel-inner { overflow: hidden; min-height: 0; }
.giftbox.is-open .gift-panel-inner { padding-top: 30px; }
.gift-tabs { display: flex; justify-content: center; gap: 6px; padding: 5px; margin: 0 auto 18px; width: max-content; max-width: 100%; border: 1px solid var(--line); border-radius: 999px; }
.gift-tab {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cream-muted);
}
.gift-tab[aria-selected="true"] { background: var(--gold-grad); color: var(--wine-deep); font-weight: 600; }
.gift-card {
  position: relative; max-width: 440px; margin: 0 auto; padding: 32px 22px 28px; text-align: center;
  border: 1px solid var(--line); background: radial-gradient(90% 60% at 50% 0%, rgba(106, 20, 50, .5), transparent 70%), var(--wine-panel);
}
.gift-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-soft); pointer-events: none; }
.gift-card.swap { animation: rise .6s var(--ease); }
.sample-badge {
  position: absolute; top: -12px; left: 50%; translate: -50% 0; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--gold-grad); color: var(--wine-deep); font: 600 9.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.qr-frame {
  width: 220px; height: 220px; margin: 6px auto 0; padding: 10px; background: #fff; border-radius: 6px;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px var(--wine-panel), 0 0 0 8px var(--line), 0 20px 40px -18px rgba(0, 0, 0, .8);
  display: grid; place-items: center; color: var(--wine);
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.gc-owner { margin-top: 20px; font: 400 2.1rem/1.2 var(--script); color: var(--gold-light); }
.gc-info { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px auto 0; max-width: 340px; text-align: left; }
.gc-info dt { font: 500 10px/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.gc-info dd { margin: 0; font-size: 14px; color: var(--cream); overflow-wrap: anywhere; text-wrap: balance; }
.gc-info dd.acc { font: 500 clamp(1.05rem, 4.6vw, 1.3rem)/1.3 var(--serif); letter-spacing: .06em; white-space: nowrap; overflow-wrap: normal; }
.gc-actions { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gc-actions .btn { min-height: 42px; font-size: 10.5px; padding: 0 18px; }
.gc-actions .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Hẹn gặp: nến, chia sẻ, liên hệ */
.closing-stage { display: flex; align-items: flex-end; justify-content: center; gap: clamp(64px, 17vw, 120px); padding-top: 40px; }
.candle {
  position: relative; flex: none; width: 18px; height: 92px; margin-bottom: 4px; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #FFFFFF, #F7EFDF 45%, #FFFFFF);
  box-shadow: inset 0 -6px 0 var(--gold-dark), 0 0 40px rgba(255, 255, 255, .12);
}
.candle-tall { height: 126px; }
.candle::before { content: ""; position: absolute; left: 50%; top: -7px; width: 1.5px; height: 8px; margin-left: -.75px; background: #3A2A20; }
.candle::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -4px; height: 5px; border-radius: 3px; background: var(--gold-grad); }
.flame {
  position: absolute; left: 50%; bottom: calc(100% + 4px); width: 13px; height: 28px; margin-left: -6.5px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 72%, #FFFBEA 0 18%, #FFFFFF 36%, #FFFFFF 64%, rgba(255, 255, 255, 0) 72%);
  transform-origin: 50% 92%; animation: flicker 2.6s ease-in-out infinite;
}
.flame::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 65%); animation: glow 2.6s ease-in-out infinite;
}
.candle-tall .flame, .candle-tall .flame::after { animation-delay: -1.1s; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  20% { transform: scale(1.05, .94) rotate(2deg); }
  45% { transform: scale(.94, 1.08) rotate(-2deg); }
  70% { transform: scale(1.03, .97) rotate(1deg); }
}
@keyframes glow { 50% { opacity: .65; transform: scale(.9); } }
.closing-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.share-status { min-height: 1.4em; margin-top: 10px; font: italic 400 1.1rem/1.4 var(--serif); color: var(--gold-light); }
.contacts { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* Vòng hoa quanh chữ lồng ở chân trang */
.footer-crest { position: relative; width: 150px; height: 150px; margin: 0 auto; display: grid; place-items: center; }
.footer-wreath { position: absolute; inset: 0; }
.footer-wreath svg { width: 100%; height: 100%; }

@media (min-width: 640px) {
  .swatches { grid-template-columns: repeat(4, auto); gap: 18px 28px; }
  .dress-figures .orn { width: 84px; }
}

/* =========================================================
   HAI NHÀ: nhãn, ngày hai cột, bản đồ chuyển nhà
   ========================================================= */
.ev-side, .db-tag {
  display: inline-block; align-self: center; padding: 6px 16px; border-radius: 999px;
  font: 400 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  background: var(--gold-grad); color: var(--wine-deep);
}
.event-gai .ev-side, .db-col:first-child .db-tag, .db-tag.is-gai { background: linear-gradient(135deg, #C9667E, #F2C2CC 45%, #D9879B); color: #3A0012; }
.event-gai { border-color: rgba(233, 160, 178, .55); }
.ev-side + .ev-title { margin-top: 8px; }
.ev-time.tbd { font-size: 1.05rem; letter-spacing: .04em; }
.ev-lunar { margin-top: 10px; font-size: 13px; color: var(--cream-muted); }
.program-note { margin-top: 14px; font: 400 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }

.date-block.is-dual { gap: 14px; }
.db-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 0; width: min(460px, 100%); }
.db-col { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 10px; }
.db-col + .db-col { border-left: 1px solid var(--line); }
.db-col .db-day { font: 300 clamp(3.4rem, 14vw, 4.6rem)/1 var(--serif); }
.db-wd { font: 400 12px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); }
.db-time { font: 400 1.05rem/1.3 var(--serif); color: var(--gold-light); }
.db-col .db-lunar { margin: 0; font-size: 12.5px; }
.db-venue { font: 400 12.5px/1.45 var(--sans); color: var(--cream-muted); text-wrap: balance; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  [data-reveal], .hero-anim, .masonry li { transform: none !important; }
  .slide img, .hero-names .ch { transform: none !important; filter: none !important; }
  .marquee-track { animation: none !important; }
  .sec-title, .ch-frame, .portrait-frame, [data-reveal="photo"] > *, .wp-img { clip-path: none !important; }
  .draw { stroke-dashoffset: 0 !important; }
  .draw-fill { opacity: 1 !important; }
  .crest-art, .cover-tag, .cover-names, .cover-date, .cover-invite, .cover-seal, .cover-lock::before, .key-btn { animation: none !important; }
}
