/* ========== KHUNG CHUNG ========== */
.invite { opacity: 0; transition: opacity .8s var(--ease); }
.invite.is-shown { opacity: 1; }

.sec {
  padding: var(--sec-pad) var(--gutter);
  text-align: center;
}
.sec > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.sec + .sec.paper { padding-top: calc(var(--sec-pad) * .6); }

.sec__title { font-size: clamp(44px, 12vw, 58px); margin-bottom: 18px; }

.sec--dark {
  position: relative;
  background: var(--brown-dark);
  color: var(--ivory);
}
.sec--dark::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain); opacity: .12; mix-blend-mode: soft-light; pointer-events: none;
}
.sec--dark > * { position: relative; }
.sec--dark .sec__title, .sec--dark .script { color: var(--cream); }
.sec--dark .eyebrow { color: var(--beige); }

/* Dải viền hoa văn */
.divider { width: 180px; height: 22px; margin-top: 26px; color: var(--brown-light); }
.divider svg { width: 100%; height: 100%; }

/* Khung chữ nhật viền đôi */
.card-frame {
  padding: 40px 24px;
  border: 1px solid var(--beige);
  outline: 1px solid var(--beige);
  outline-offset: -8px;
  background: rgba(239, 230, 216, .45);
}

/* Khung ren viền vỏ sò */
.frame-lace {
  --r: 6px;
  margin: 0;
  padding: 14px;
  background:
    radial-gradient(circle, rgba(255,255,255,.85) 1.1px, transparent 1.6px) 0 0 / 7px 7px,
    var(--cream);
  -webkit-mask:
    radial-gradient(var(--r), #000 96%, transparent) 0 0 / calc(var(--r) * 2) calc(var(--r) * 2) round,
    linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
          mask:
    radial-gradient(var(--r), #000 96%, transparent) 0 0 / calc(var(--r) * 2) calc(var(--r) * 2) round,
    linear-gradient(#000 0 0) center / calc(100% - var(--r) * 2) calc(100% - var(--r) * 2) no-repeat;
  filter: drop-shadow(0 6px 10px rgba(74, 52, 38, .12));
}
.frame-lace img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  outline: 1px solid rgba(166, 132, 95, .5); outline-offset: 3px;
  cursor: zoom-in;
}

/* Khung oval */
.frame-oval {
  width: min(72vw, 300px);
  margin: 0 auto;
  padding: 10px;
  border-radius: 50%;
  border: 1px solid var(--beige);
  background: var(--cream);
  box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--beige);
}
.frame-oval img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 50%;
  cursor: zoom-in;
}

/* ========== 1. ĐẦU THIỆP (giống lá thư) ========== */
.sec--head {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px var(--gutter);
}
.sec--head::after { /* viền ren quanh trang */
  content: ""; position: absolute; inset: 12px;
  background: var(--lace-brown) 0 0 / 22px 22px;
  padding: 14px;
  -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);
  opacity: .75; pointer-events: none;
}
.sec--head > .head__inner { position: static; }
.head__inner { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.head__inner .bow { width: 120px; height: 96px; margin-bottom: 6px; }
.head__names { font-size: clamp(56px, 16vw, 84px); margin: 6px 0; }
.head__date { font-size: 13px; letter-spacing: .4em; color: var(--brown); margin-top: 4px; }
.head__scroll { position: absolute; bottom: 34px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center;
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--brown); animation: pulse 2.4s ease-in-out infinite; }
.head__scroll span { font-size: 17px; line-height: 1; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* Nơ trên khung lời mời */
.card-frame--bow { position: relative; padding-top: 52px; }
.card-frame__bow { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); }

/* ========== 2. LỜI MỜI ========== */
.invite__line { font-size: 16px; }
.invite__guest { font-size: clamp(34px, 9vw, 44px); margin: 8px 0; overflow-wrap: anywhere; }
.invite__couple { margin-top: 24px; display: flex; flex-direction: column; align-items: center; }
.invite__couple .script { font-size: clamp(44px, 12vw, 56px); }
.invite__amp { font-size: 17px; font-style: italic; color: var(--brown-light); }

/* ========== 3. NGÀY & GIỜ ========== */
.calendar {
  max-width: 340px;
  padding: 22px 18px 16px;
  border: 1px solid var(--beige);
  background: rgba(239, 230, 216, .45);
}
.calendar__head { display: flex; justify-content: center; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.calendar__month { font-size: 11.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--brown); }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px 0; font-size: 13.5px; }
.calendar__dow { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--brown); padding-bottom: 6px; border-bottom: 1px solid var(--beige); margin-bottom: 4px; }
.calendar__day { line-height: 36px; position: relative; }
.calendar__day--mark { color: var(--ivory); font-weight: 500; }
.calendar__day--mark::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 34px; height: 34px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--brown); z-index: -1;
  box-shadow: 0 0 0 3px var(--ivory), 0 0 0 4px var(--brown-light);
}
.calendar__day--mark { z-index: 0; }
.date__line { margin-top: 26px; font-size: 17px; font-weight: 500; letter-spacing: .06em; }
.date__sep { color: var(--brown-light); margin: 0 6px; }
.date__times { display: flex; justify-content: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.date__time {
  display: flex; flex-direction: column; align-items: center;
  min-width: 132px; padding: 10px 16px;
  border: 1px solid var(--beige); outline: 1px solid var(--beige); outline-offset: -5px;
  background: rgba(239, 230, 216, .45);
}
.date__time-label { font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--brown); }
.date__time-value { font-size: 30px; font-weight: 500; line-height: 1.2; color: var(--brown-dark); }

/* ========== 4. LỄ VOWS & TIỆC TỐI ========== */
.sec--events { padding-top: calc(var(--sec-pad) * .6); }
.events { display: grid; gap: 58px; margin-top: 40px; }
.event {
  position: relative;
  padding: 0 22px 26px;
  border: 1px solid var(--beige);
  background: linear-gradient(rgba(239,230,216,.55), rgba(239,230,216,.25));
}
.event::after { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(217,199,174,.7); pointer-events: none; }
.event .tag { margin-top: -26px; margin-bottom: 18px; }
.event__note { font-style: italic; font-size: 14px; color: var(--text-soft); margin-bottom: 14px; }
.event__row { display: flex; align-items: baseline; justify-content: center; gap: 14px; padding: 8px 0; }
.event__row + .event__row { border-top: 1px dashed rgba(166,132,95,.45); }
.event__time { font-size: 28px; font-weight: 500; min-width: 74px; text-align: right; color: var(--brown-dark); }
.event__label { font-size: 15px; text-align: left; min-width: 150px; }
.event__place { margin-top: 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); }

.venue { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 56px; }
.venue__name { font-size: clamp(46px, 13vw, 62px); }
.venue__addr { font-size: 15px; margin-bottom: 18px; max-width: 320px; }

/* ========== 5. TÊN & NGÀY ========== */
.sec--hero { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__names { font-size: clamp(40px, 11vw, 54px); margin-top: 26px; }

/* ========== 6. LỊCH TRÌNH ========== */
.sec--schedule, .sec--rsvp { padding-top: calc(var(--sec-pad) + 10px); padding-bottom: calc(var(--sec-pad) + 10px); }
.schedule { max-width: 360px; }
.schedule__item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; }
.schedule__group { margin: 8px 0 4px; font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--beige); }
.schedule__icon { width: 34px; height: 34px; color: var(--beige); margin-bottom: 4px; }
.schedule__label { font-family: var(--font-script); font-size: 36px; line-height: 1.15; color: var(--cream); }
.schedule__time { font-size: 26px; font-weight: 500; letter-spacing: .08em; color: var(--ivory); }
.schedule__orn { width: 120px; height: 14px; margin: 12px auto; color: var(--brown-light); }
.schedule__orn svg { width: 100%; height: 100%; }

/* ========== 7. TRANG PHỤC ========== */
.dress__intro { font-size: 15px; max-width: 380px; }
.swatches {
  list-style: none; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 8px;
  margin: 26px auto 36px;
}
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 56px; }
@media (max-width: 360px) { .swatch { width: 50px; } .swatch__dot { width: 36px; height: 36px; } }
.swatch__dot {
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(74, 52, 38, .25), 0 0 0 4px var(--ivory), 0 0 0 5px var(--beige);
}
.swatch__dot--icon { display: grid; place-items: center; background: var(--ivory); color: var(--brown); }
.swatch__dot--icon svg { width: 26px; height: 26px; }
.swatch__name { font-size: 13px; font-weight: 500; }

.dress__photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; max-width: var(--maxw); }
.dress__photos .frame-lace { grid-column: span 3; }
.dress__photos .frame-lace:nth-child(3) { grid-column: 2 / span 4; }
.dress__photos .frame-lace:nth-child(3) img { aspect-ratio: 4 / 3; }

/* ========== 8. OUR STORY ========== */
.sec--story { display: flex; flex-direction: column; align-items: center; }
.sec--story .divider { margin: 0 0 24px; }
.story__tagline { max-width: 320px; line-height: 1.8; }
.story { display: flex; flex-direction: column; gap: 34px; margin-top: 36px; width: 100%; }
.story__item { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; text-align: left; }
.story__item:nth-child(even) .story__photo { order: 2; }
.story__item:nth-child(even) { text-align: right; }
.story__quote { font-style: italic; font-size: 14.5px; line-height: 1.55; color: var(--text-soft); }
.story__photo.frame-oval { width: 100%; padding: 6px; box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--beige); }
.story__item--solo { grid-template-columns: 1fr; justify-items: center; }
.story__item--solo .frame-lace { width: min(78vw, 360px); }
.story__item--solo .frame-lace img { aspect-ratio: 4 / 3; }

/* ========== 9. ALBUM ========== */
.album { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 720px; }
.album__item {
  padding: 0; border: 0; background: var(--cream);
  cursor: zoom-in; overflow: hidden;
  aspect-ratio: 3 / 4;
  outline: 1px solid var(--beige); outline-offset: 3px;
}
.album__item:nth-child(5n + 1) { grid-column: span 2; aspect-ratio: 4 / 3; }
.album__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.album__item:hover img { transform: scale(1.04); }
@media (min-width: 720px) {
  .album { grid-template-columns: repeat(3, 1fr); }
  .album__item:nth-child(5n + 1) { grid-column: auto; aspect-ratio: 3 / 4; }
}

/* ========== 10. XÁC NHẬN THAM DỰ ========== */
.reply {
  --w: 230px;
  position: relative; display: block;
  width: var(--w); height: calc(var(--w) * .66);
  margin: 40px auto 34px;
}
.reply > span { position: absolute; display: block; }
.reply__back { inset: 0; background: linear-gradient(#66141A, #570F13); border-radius: 2px; box-shadow: 0 0 0 1px rgba(217,199,174,.35); }
.reply__card {
  left: 7%; right: 7%; top: -34%; height: 92%;
  padding: 14px 10px;
  background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(166,132,95,.3);
  display: flex; flex-direction: column; align-items: center;
  transform: rotate(-3deg);
}
.reply__title { font-size: 34px; color: var(--brown) !important; }
.reply__sub { font-size: 11.5px; letter-spacing: .12em; color: var(--brown); }
.reply__pocket {
  inset: 0;
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(to top right, transparent 49.5%, rgba(166,132,95,.25) 50%, transparent 50.5%) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left, transparent 49.5%, rgba(166,132,95,.25) 50%, transparent 50.5%) right bottom / 50% 100% no-repeat,
    var(--grain),
    linear-gradient(160deg, #8A2228, #66141A);
  background-size: 50% 100%, 50% 100%, 160px 160px, auto;
}
.reply .seal { top: 52%; z-index: 3; min-width: 40px; min-height: 50px; }

.rsvp__deadline { font-size: 15px; }
.rsvp__deadline strong { color: var(--cream); font-weight: 500; }
.rsvp__intro { font-size: 14px; font-style: italic; color: var(--beige); margin-top: 8px; max-width: 400px; }
.rsvp__late { margin-top: 14px; font-size: 13.5px; color: var(--cream); border: 1px dashed rgba(217,199,174,.6); padding: 8px 12px; }

.rsvp { max-width: 420px; margin-top: 34px; text-align: left; display: flex; flex-direction: column; gap: 22px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: 11.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--beige);
}
.field input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(217, 199, 174, .5);
  border-radius: 2px;
  background: rgba(248, 243, 234, .06);
  color: var(--ivory);
  font: 400 15px var(--font-serif);
}
.field input[type="text"]::placeholder { color: rgba(217, 199, 174, .6); }
.field input[type="text"]:focus { outline: none; border-color: var(--cream); background: rgba(248, 243, 234, .1); }
.field.has-error input[type="text"] { border-color: #E3B5A0; }
.field__err { margin-top: 6px; font-size: 13px; color: #F0C9B8; }

.choice { display: grid; gap: 8px; }
.choice label {
  display: flex; align-items: center; gap: 12px; margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(217, 199, 174, .4); border-radius: 2px;
  font-size: 14.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ivory);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.choice input { appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--beige); display: grid; place-items: center; }
.choice input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); transform: scale(0); transition: transform .2s var(--ease); }
.choice input:checked::after { transform: scale(1); }
.choice label:has(input:checked) { border-color: var(--cream); background: rgba(248, 243, 234, .08); }
.choice input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rsvp .btn { align-self: center; margin-top: 6px; padding: 13px 44px; }
.rsvp__status { text-align: center; font-size: 13.5px; color: var(--cream); }
.rsvp__status.is-error { color: #F0C9B8; }

.rsvp__thanks { max-width: 400px; margin-top: 30px; padding: 30px 22px; border: 1px solid rgba(217,199,174,.5); }
.rsvp__thanks-title { font-size: 46px; }
.rsvp__thanks p:last-child { margin-top: 8px; font-size: 14.5px; }

/* ========== 11. LỜI KẾT ========== */
.sec--closing { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: calc(var(--sec-pad) * 1.2); }
.closing__line { font-size: clamp(36px, 10vw, 48px); max-width: 360px; }
.closing__body { font-size: 14.5px; max-width: 440px; }
.closing__sign { margin-top: 6px; }
.frame-lace--wide { width: min(84vw, 380px); margin-top: 18px; }
.closing__names { font-size: 40px; margin-top: 10px; }

/* ========== 12. NHẠC ========== */
.music {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
}
.music__label {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(248, 243, 234, .94); box-shadow: 0 2px 8px rgba(74,52,38,.15);
  font-size: 12.5px; font-style: italic; color: var(--brown-dark);
  transition: opacity .6s, transform .6s var(--ease);
}
.music__label.is-hidden { opacity: 0; transform: translateX(8px); pointer-events: none; }
.music__btn {
  width: 46px; height: 46px; padding: 11px;
  border: 1px solid var(--beige); border-radius: 50%;
  background: var(--ivory); color: var(--brown);
  box-shadow: 0 3px 10px rgba(74,52,38,.2);
  cursor: pointer;
}
.music__btn svg { width: 100%; height: 100%; }
.music__btn.is-playing { animation: spin 6s linear infinite; }
.music__btn:not(.is-playing) { opacity: .7; }
.music__btn:not(.is-playing)::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1.5px;
  background: currentColor; transform: rotate(-45deg);
}
.music__btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .music__btn.is-playing { animation: none; } }

/* ===== Sửa chồng lấn (2026-12-01) ===== */
.event .tag { z-index: 2; }
.event::after { z-index: 1; }
.date__times { display: grid; grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; gap: 12px; }
.date__time { min-width: 0; }
.calendar__day--mark::before { box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--brown-light); width: 30px; height: 30px; }
.calendar__grid { gap: 6px 0; }

/* Số giờ, ngày dùng font Qerginas như thiệp cũ */
.date__time-value, .event__time, .schedule__time, .date__line, .head__date, .letter__date { font-family: var(--font-number); font-weight: 400; }
.date__time-value { font-size: 30px; }
.event__time { font-size: 26px; }
.schedule__time { font-size: 24px; }
.intro__names, .head__names, .letter__names, .hero__names, .closing__names { letter-spacing: 0; }

/* ===== Khung chữ nền nâu: lịch, giờ, Lễ Vows, Tiệc tối, thẻ tiêu đề (2026-12-01) ===== */
.calendar, .date__time, .event, .tag {
  background:
    linear-gradient(rgba(255,255,255,.05), rgba(0,0,0,.08)),
    var(--brown-dark);
  border-color: rgba(217, 199, 174, .55);
  color: var(--ivory);
  box-shadow: 0 10px 22px -12px rgba(46, 31, 21, .55);
}
.date__time { outline-color: rgba(217, 199, 174, .45); }
.event::after, .tag::before { border-color: rgba(217, 199, 174, .45); }

.calendar__month, .calendar__dow { color: var(--beige); }
.calendar__dow { border-bottom-color: rgba(217, 199, 174, .35); }
.calendar__day { color: var(--ivory); }
.calendar__day--mark { color: var(--brown-dark); }
.calendar__day--mark::before { background: var(--cream); box-shadow: 0 0 0 2px var(--brown-dark), 0 0 0 3px var(--beige); }

.date__time-label { color: var(--beige); }
.date__time-value { color: var(--ivory); }

.event__note { color: var(--beige); }
.event__time { color: var(--cream); }
.event__label { color: var(--ivory); }
.event__row + .event__row { border-top-color: rgba(217, 199, 174, .35); }
.event__place { color: var(--beige); }

.tag .tag__en { color: var(--beige); }
.tag .tag__vi, .sec--dark .tag .tag__vi { color: var(--cream); }
/* thẻ nằm trên thẻ sự kiện cùng màu → viền sáng để tách lớp */
.event .tag { box-shadow: 0 0 0 1px rgba(217,199,174,.6), 0 12px 20px -10px rgba(0,0,0,.6); }

/* ===== Khung ren oval (ghi đè kiểu oval cũ) ===== */
.sec .frame-oval, .sec .story__photo.frame-oval { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; aspect-ratio: 674 / 883; }
.sec .frame-oval img { position: absolute; left: 12.5%; top: 9.5%; width: 75%; height: 81%; aspect-ratio: auto; border-radius: 50%; object-fit: cover; }

/* ===== Căn nơ: nút thắt (≈29% chiều cao ảnh nơ) nằm đúng trên mép trên của khung ===== */
.sec .tag .tag__bow { top: 0; transform: translate(-50%, -29%); }
.sec .card-frame__bow { top: 0; transform: translate(-50%, -29%); }
.sec .frame3d .frame3d__bow { top: 0; transform: translate(-50%, -29%) !important; z-index: 3; }
.sec .card-frame--bow { padding-top: 56px; }
.sec .tag { padding-top: 40px; }
.doodle--flower { width: 64px; height: 90px; opacity: .95; }
.sec .tag { padding-top: 50px; }

/* ===== Khung vòm kem ở phần địa điểm (thay khung gỗ) ===== */
.arch-frame {
  position: relative;
  width: min(74vw, 300px);
  aspect-ratio: 600 / 920;
  margin: 58px auto 0;
  filter: drop-shadow(0 14px 18px rgba(74, 52, 38, .22)) drop-shadow(0 2px 3px rgba(74, 52, 38, .18));
}
.arch-frame__panel, .arch-frame__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arch-frame__photo {
  position: absolute; left: 9%; top: 6.4%; width: 82%; height: 87.2%;
  object-fit: cover;
  -webkit-clip-path: url(#arch-clip); clip-path: url(#arch-clip);
  cursor: zoom-in;
}
.arch-frame__line { z-index: 1; }
.sec .arch-frame .arch-frame__bow {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: 112px; height: 113px;
  transform: translate(-50%, -29%);
}

/* Khung vòm giấy trắng viền ép kim vàng: ảnh nằm sát trong viền vàng */
.arch-frame__photo { left: 6.2%; top: 4.1%; width: 87.6%; height: 91.8%; }
.arch-frame::after { /* vân giấy */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: .05;
  -webkit-clip-path: url(#arch-clip); clip-path: url(#arch-clip);
}

/* Khung vòm to vừa khoảng từ nút "Xem bản đồ" tới tên cặp đôi */
.sec--hero { padding-top: 8px; }
.sec .arch-frame { width: min(88vw, 400px); max-width: none; margin-top: 44px; }
.sec--hero .hero__names { margin-top: 18px; }
.sec--events { padding-bottom: 16px; }
.sec .arch-frame { margin-top: 40px; }

/* ===== Nơ nét vẽ nâu (thay nơ ngắn) — 2026-12-01 ===== */
.bow, .head__inner .bow.bow--full { background-image: url("/assets/img/bow-line.png"); filter: none; }
.bow { width: 120px; height: 65px; }
.bow--sm { width: 96px; height: 52px; }
.letter__inner .bow { width: 58px; height: 31px; }
.head__inner .bow.bow--full { width: 140px; height: 76px; margin-bottom: 4px; }
.sec .tag .tag__bow, .sec .card-frame__bow { transform: translate(-50%, -35%); }
.sec .frame3d .frame3d__bow { width: 150px; height: 81px; transform: translate(-50%, -35%) !important; }
.sec .arch-frame .arch-frame__bow { width: 150px; height: 81px; transform: translate(-50%, -35%); }

/* ===== Ảnh cuối thiệp: khung ren chữ nhật ===== */
.lace-rect-frame { position: relative; width: min(86vw, 380px); aspect-ratio: 440 / 587; margin: 40px auto 0; }
.lace-rect-frame img { position: absolute; left: 12%; top: 9.8%; width: 76%; height: 80.9%; object-fit: cover; cursor: zoom-in; }
.lace-rect-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/lace-rect.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 1px 1px rgba(74, 52, 38, .45)) drop-shadow(0 6px 10px rgba(74, 52, 38, .18));
}
.sec .lace-rect-frame .lace-rect-frame__bow {
  position: absolute; left: 50%; top: 4%; z-index: 2;
  width: 150px; height: 81px; transform: translate(-50%, -35%);
}

/* ===================== TÔNG THIỆP CŨ: TIMELINE, BO GÓC, HIỆU ỨNG (2026-12-01) ===================== */
/* Timeline gộp kiểu thiệp cũ */
.tl {
  position: relative;
  width: min(94vw, 470px); aspect-ratio: 1117 / 1438;
  margin: 0 auto;
  padding-top: 31%;
  background: url("/assets/img/old/timeline_bg.png") center / 100% 100% no-repeat;
  display: flex; flex-direction: column; align-items: center;
}
.tl__title { font-size: clamp(38px, 10.5vw, 52px); color: #5E0D10; margin-bottom: 5%; }
.tl__items { display: flex; flex-direction: column; align-items: center; gap: clamp(14px, 4.4vw, 24px); }
.tl__item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tl__icon { height: clamp(18px, 5.6vw, 26px); width: auto; }
.tl__text { font-size: clamp(11px, 3.2vw, 13.5px); letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.tl__text b { font-weight: 700; }

/* Bo tròn các khung */
.card-frame, .calendar, .date__time, .tag, .rsvp__thanks, .rsvp__late, .card-frame::before { border-radius: 18px; }
.date__time { border-radius: 14px; }
.tag { border-radius: 16px; }
.tag::before { border-radius: 12px; }
.field input[type="text"], .choice label { border-radius: 12px; }
.letter { border-radius: 8px; }
.reply__card { border-radius: 6px; }
.envelope__back { border-radius: 8px; }

/* ===== Hiệu ứng chữ & ảnh như thiệp cũ ===== */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(6px);
  transition: opacity 1s cubic-bezier(.25,.46,.45,.94), transform 1s cubic-bezier(.25,.46,.45,.94), filter 1s ease;
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }
.reveal--left  { transform: translateX(80px);  filter: none; }
.reveal--right { transform: translateX(-80px); filter: none; }
.reveal--zoom  { transform: scale(.9); }
.reveal--flip  { transform: perspective(600px) rotateY(-180deg) scale(.8); filter: none;
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(.34,1.56,.64,1); }
/* tiêu đề viết tay: hiện dần từ trái sang phải như đang viết (mặt nạ trượt) */
.reveal--write {
  transform: none; filter: none;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
  transition: -webkit-mask-position 1.8s cubic-bezier(.65,0,.35,1), mask-position 1.8s cubic-bezier(.65,0,.35,1), opacity .4s linear;
}
.reveal--write.is-visible { -webkit-mask-position: 0 0; mask-position: 0 0; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.is-visible .bow, .bow.is-float { animation: floaty 4s ease-in-out 1.2s infinite; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--left, .reveal--right, .reveal--zoom, .reveal--flip { transform: none; filter: none; transition: opacity .3s linear; }
  .reveal--write { -webkit-mask-image: none; mask-image: none; }
  .is-visible .bow { animation: none; }
}
/* giữ bóng đổ của các khung khi đã hiện */
.arch-frame.reveal.is-visible { filter: drop-shadow(0 14px 18px rgba(94, 13, 16, .18)) drop-shadow(0 2px 3px rgba(94, 13, 16, .15)); }
.tl.reveal.is-visible, .lace-rect-frame.reveal.is-visible { filter: none; }
.tl { padding-top: 35%; }
.tl { padding-top: 41%; }
.tl__title { margin-bottom: 3%; }
.tl__items { gap: clamp(12px, 3.6vw, 20px); }

/* ===== Lịch trên tấm vải lanh viền ren (như ảnh mẫu) ===== */
.sec .calendar {
  position: relative;
  width: min(86vw, 360px); max-width: none; aspect-ratio: 495 / 691;
  margin-left: auto; margin-right: auto;
  padding: 24% 13% 12%;
  border: 0; border-radius: 0; box-shadow: none;
  background: url("/assets/img/calendar-lace.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 2px 2px rgba(94, 13, 16, .22)) drop-shadow(0 10px 16px rgba(94, 13, 16, .14));
  color: var(--text);
}
.sec .calendar.reveal.is-visible { filter: drop-shadow(0 2px 2px rgba(94, 13, 16, .22)) drop-shadow(0 10px 16px rgba(94, 13, 16, .14)); }
.sec .calendar .calendar__head { margin-bottom: 9%; }
.sec .calendar .calendar__month {
  font-family: var(--font-script); font-size: clamp(30px, 9vw, 42px); font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--brown);
}
.sec .calendar .calendar__grid { gap: 0; row-gap: clamp(6px, 2.2vw, 12px); }
.sec .calendar .calendar__dow {
  border: 0; padding-bottom: 6px; margin-bottom: 2px;
  font-family: var(--font-number); font-size: clamp(10px, 2.8vw, 12px); font-weight: 400; letter-spacing: .06em; color: #4A3B3A;
}
.sec .calendar .calendar__day { font-family: var(--font-number); font-size: clamp(14px, 4vw, 17px); line-height: 2; color: #3A2E2E; }
.sec .calendar .calendar__day--mark { color: var(--ivory); }
.sec .calendar .calendar__day--mark::before {
  width: 2.1em; height: 2.1em; background: var(--brown-dark);
  box-shadow: 0 0 0 2px #F3EDE3, 0 0 0 3px var(--brown-light);
}
.sec .calendar { padding: 19% 13% 12%; display: flex; flex-direction: column; justify-content: center; }

/* ===== Trang đầu: ảnh chú rể hôn tay cô dâu như thiệp cũ ===== */
.sec.sec--cover {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 0 var(--gutter);
  display: flex; align-items: flex-start; justify-content: center;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.82) 0%, rgba(255,255,255,.35) 22%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 78%, var(--ivory) 100%),
    var(--cover) center 62% / cover no-repeat,
    var(--ivory);
}
.sec--cover::before, .sec--cover::after { display: none; }
.sec--cover > .head__inner { position: relative; padding-top: max(7svh, 44px); gap: 4px; }
.head__main {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(64px, 20vw, 104px); line-height: 1; letter-spacing: .01em;
  color: var(--text);
}
.sec--cover .divider { margin: 2px auto 8px; width: 120px; }
.sec--cover .head__names { font-size: clamp(30px, 8.5vw, 44px); margin: 0; color: var(--brown-dark); }
.sec--cover .head__date { font-family: var(--font-serif); font-size: 12.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--text); }
.sec--cover .head__scroll { position: absolute; bottom: 22px; left: 0; right: 0; color: var(--brown-dark); }

/* ===================== KHOẢNG CÁCH ĐỒNG BỘ (2026-12-02) =====================
   Nhịp dọc: giữa các phần = --gap-sec (trên + dưới bằng nhau),
   tiêu đề → nội dung = --gap-title, giữa các khối trong một phần = --gap-block. */
:root { --gap-sec: clamp(44px, 12vw, 72px); --gap-title: 20px; --gap-block: 28px; }

.sec, .sec + .sec.paper, .sec--events, .sec--hero, .sec--rsvp {
  padding-top: var(--gap-sec); padding-bottom: var(--gap-sec);
}
.sec.sec--cover { padding-top: 0; padding-bottom: 0; }
.sec--rsvp { padding-top: calc(var(--gap-sec) + 12px); padding-bottom: calc(var(--gap-sec) + 12px); } /* chừa dải ren */

/* tiêu đề */
.sec__title, .tag { margin-bottom: var(--gap-title); }
.sec--dress > .tag:first-child, .sec--album > .tag:first-child { margin-top: 18px; } /* chừa nơ trên thẻ */

/* lời mời */
.sec--invite { padding-top: calc(var(--gap-sec) + 10px); }

/* ngày & giờ */
.date__line { margin-top: var(--gap-block); }
.date__times { margin-top: 14px; }

/* timeline → địa điểm (ảnh khung có sẵn khoảng trắng dưới) */
.venue { margin-top: 8px; gap: 6px; }
.venue__addr { margin-bottom: 14px; }

/* ảnh vòm → tên */
.sec--hero { padding-top: calc(var(--gap-sec) - 8px); }
.sec .arch-frame { margin-top: 30px; }
.sec--hero .hero__names { margin-top: var(--gap-title); }

/* trang phục */
.dress__intro { margin-top: 0; }
.swatches { margin: var(--gap-block) auto var(--gap-block); }

/* our story */
.sec--story .divider { margin: 0 auto 12px; }
.story__tagline { margin-bottom: 0; }
.story { margin-top: var(--gap-block); gap: var(--gap-block); }

/* album */
.album { margin-top: 0; }

/* xác nhận */
.reply { margin: 8px auto var(--gap-block); }
.rsvp { margin-top: var(--gap-block); }

/* lời kết */
.sec--closing { gap: 14px; }
.lace-rect-frame { margin-top: 30px; }
.closing__names { margin-top: 6px; }

/* ===================== CHỈNH 2026-12-02 (b) ===================== */
/* Timeline: không rộng hơn phần nội dung → luôn nằm chính giữa */
.tl { width: min(100%, 470px); margin-left: auto; margin-right: auto; box-sizing: border-box; }
/* chữ nhỏ lại, gom vào giữa để không chạm dải nơ hai bên */
.tl__title { font-size: clamp(32px, 9vw, 46px); }
.tl__items { max-width: 64%; gap: clamp(10px, 3vw, 16px); }
.tl__icon { height: clamp(16px, 4.8vw, 22px); }
.tl__text { font-size: clamp(9px, 2.6vw, 11.5px); letter-spacing: .03em; text-align: center; line-height: 1.35; }

/* Các phần xích lại gần nhau */
:root { --gap-sec: clamp(18px, 5vw, 32px); --gap-title: 16px; --gap-block: 20px; }
.sec--rsvp { padding-top: calc(var(--gap-sec) + 14px); padding-bottom: calc(var(--gap-sec) + 14px); }
.sec--invite { padding-top: var(--gap-sec); }
.sec--hero { padding-top: 0; }
.sec .arch-frame { margin-top: 24px; } /* chỉ đủ chỗ cho nơ */
.sec--dress > .tag:first-child, .sec--album > .tag:first-child { margin-top: 14px; }
.venue__addr { margin-bottom: 8px; }
.lace-rect-frame { margin-top: 20px; }
/* Tên hai bạn luôn chung một dòng ở trang đầu */
.intro__names, .sec--cover .head__names, .letter__names { white-space: nowrap; }
.intro__names { font-size: clamp(26px, 8.4vw, 50px); }
.sec--cover .head__names { font-size: clamp(26px, 8.4vw, 44px); }
/* Lịch nằm chính giữa tấm vải ren (lề trên = lề dưới) */
.sec .calendar { padding: 12% 11%; }
/* Icon áo dài dạng hình bóng */
.swatch__dot--icon { display: grid; place-items: center; }
.swatch__aodai { width: 84%; height: 84%; object-fit: contain; display: block; }
/* Chữ trong khung thẻ (Dress code, Gallery…) nằm đúng tâm khung */
.sec .tag { padding: 27px 30px 29px; justify-content: center; text-align: center; transform: none; gap: 2px; }
.sec .tag .tag__vi { line-height: 1.05; padding: 0 4px; }
