/* ==========================================================
   TAZ Invitation — Quỳnh Như  |  Tông hồng sang
   Màu & icon từ TAZ-Gruation2-KhanhLinh
   ========================================================== */
:root {
  --paper: #F7E4EC;
  --card:  #FDF5F7;
  --blush: #F0C9D6;
  --rose:  #E2A1B8;
  --wine:  #7A2A44;
  --wine-soft: #96476A;
  --text:  #5E2D40;
  --gold:  #A9844F;
  --gold-light: #E3CB9C;
  --gold-line: rgba(169,132,79,.55);
  --shadow: 0 18px 36px -22px rgba(122,42,68,.5);

  --font-caps: "Playfair Display", Georgia, serif;
  --font-body: "Cormorant Garamond", Georgia, serif;
  --font-sign: "Allison", cursive;
  --font-name: "Great Vibes", cursive;

  --page-w: 480px; /* mobile/tablet default; overridden for desktop below */
  --gutter: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, #F7DCE6, transparent 42%),
    radial-gradient(circle at 88% 82%, #F4D4E0, transparent 46%),
    #EBC5D0;
  color: var(--text);
  font: 500 1.2rem/1.7 var(--font-body);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  padding: 8px 14px; border-radius: 999px; background: var(--wine); color: var(--card);
}
.skip-link:focus { top: 12px; }
[data-guest-name], [data-field] { overflow-wrap: anywhere; text-wrap: balance; }

/* Page shell */
.page {
  position: relative;
  max-width: var(--page-w); min-height: 100vh; margin: 0 auto;
  overflow-x: clip;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .48 0 0 0 0 .18 0 0 0 0 .28 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--paper);
  text-align: center;
}
.section { padding: 64px var(--gutter); overflow-x: clip; }

.script-title {
  color: var(--wine); font-family: var(--font-sign); font-weight: 400;
  font-size: clamp(3.4rem,15vw,4.4rem); line-height: 1;
}
.section-lead { max-width: 30ch; margin: 10px auto 0; color: var(--wine-soft); font-style: italic; }

/* Đường chỉ vàng */
.ornament {
  display: flex; align-items: center; gap: 26px;
  width: 190px; height: 14px; margin: 26px auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l5 9-5 9-5-9z' fill='%23A9844F'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 30px;
  border: 1px solid var(--wine); border-radius: 999px;
  background: var(--wine); color: var(--card);
  font-family: var(--font-caps); font-size: .85rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.text-button {
  margin-top: 18px; padding: 8px 4px;
  border: 0; border-bottom: 1px solid currentColor; background: none;
  color: var(--wine); font-weight: 600; cursor: pointer;
}

/* ==========================================================
   COVER — phong bì hồng
   ========================================================== */
.cover {
  --env-w: min(84vw, 380px, 46vh);
  --env-h: calc(var(--env-w) / 1.42);
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(14px,3.2vh,30px);
  padding: 24px var(--gutter) 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255,240,248,.6), transparent 58%),
    linear-gradient(180deg, #F5C4D0 0%, #EDAFBF 55%, #F4C2D0 100%);
  text-align: center;
}

/* Scene lily flou */
.cover-scene { position: absolute; inset: 0; pointer-events: none; }
.scene-lily {
  position: absolute; width: min(92vw,560px); opacity: .7;
  filter: blur(6px) saturate(1.05);
  animation: scene-sway 18s ease-in-out infinite alternate;
}
.scene-lily-1 { left: -30%; top: -10%; rotate: -18deg; }
.scene-lily-2 { right: -34%; top: 24%; width: min(84vw,500px); rotate: 32deg; animation-duration: 22s; animation-delay: -6s; }
.scene-lily-3 { left: -4%; bottom: -18%; width: min(80vw,480px); rotate: 150deg; opacity: .55; animation-duration: 20s; animation-delay: -11s; }
.scene-sparkles { position: absolute; inset: 0; }
.sparkle, .droplet, .star { position: absolute; display: block; }
.sparkle {
  width: var(--s,14px); aspect-ratio: 1;
  background: #fff;
  clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
  filter: drop-shadow(0 0 6px #fff);
  animation: twinkle var(--d,3s) ease-in-out var(--delay,0s) infinite;
}
.droplet {
  width: var(--s,10px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.95) 0 16%, rgba(255,255,255,.28) 38%, rgba(255,255,255,.06) 70%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset -1px -2px 3px rgba(155,63,92,.18), 0 1px 2px rgba(155,63,92,.15);
}
.star {
  width: var(--s,18px); aspect-ratio: 1;
  background: var(--c,#F5B6C6);
  clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
  animation: star-drift var(--d,9s) ease-in-out var(--delay,0s) infinite alternate;
}

/* Tiêu đề cover */
.cover-title {
  position: relative; z-index: 3; display: grid; line-height: 1;
  transition: transform .9s cubic-bezier(.3,.7,.2,1);
}
.cover-title-script {
  color: var(--wine); font-family: var(--font-name); font-weight: 400;
  font-size: clamp(3.4rem,17vw,5.6rem); line-height: 1.05;
  text-shadow: 0 2px 10px rgba(255,247,248,.8);
  rotate: -4deg;
}
.cover-title-caps {
  margin-top: -.12em;
  color: var(--wine); font-family: var(--font-caps); font-weight: 500;
  font-size: clamp(1.9rem,9.2vw,3rem); letter-spacing: .1em; text-transform: uppercase;
}

/* Phong bì */
.envelope {
  position: relative; z-index: 3;
  width: var(--env-w); height: var(--env-h);
  perspective: 1400px;
  transition: transform .9s cubic-bezier(.3,.7,.2,1);
}
.env-back {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(180deg, #D97391, #E68BA4);
  box-shadow: 0 26px 40px -22px rgba(116,48,74,.6);
}
.env-pocket {
  position: absolute; inset: 0; z-index: 3;
  border-radius: 10px;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(155,63,92,.16) 50%, transparent calc(50% + 1px)) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(155,63,92,.16) 50%, transparent calc(50% + 1px)) right bottom / 50% 100% no-repeat,
    linear-gradient(165deg, #F4B3C4, #EC98AE 60%, #E58AA2);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.env-address {
  position: absolute; left: 8%; right: 8%; bottom: 6%;
  display: flex; justify-content: center; align-items: baseline; gap: 6px;
  color: var(--wine); font-size: .85rem; font-style: italic; white-space: nowrap;
}
.env-address strong {
  overflow: hidden; text-overflow: ellipsis;
  font-family: var(--font-name); font-size: 1.55rem; font-style: normal; font-weight: 400;
}
.env-flap {
  position: absolute; left: 0; top: 0; z-index: 4;
  width: 100%; height: 58%;
  background: linear-gradient(180deg, #F7C2D0, #EDA0B5 70%, #E492A9);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform .75s cubic-bezier(.5,0,.3,1) .35s, z-index 0s linear .72s;
}
.env-letter {
  --hide: inset(0 0 calc(100% - var(--env-h) * .86) 0);
  position: absolute; left: 6%; top: 8%; z-index: 1;
  width: 88%;
  clip-path: var(--hide);
  filter: drop-shadow(0 10px 14px rgba(116,48,74,.25));
}
.letter-paper {
  position: relative;
  display: grid; justify-items: center; gap: 2px;
  padding: 26px 18px 24px;
  background: #FFFBF8;
  color: var(--wine);
  -webkit-mask: radial-gradient(circle 5px, transparent 97%, #000) -7px -7px / 14px 14px, linear-gradient(#000,#000) center / calc(100% - 12px) calc(100% - 12px) no-repeat;
  mask: radial-gradient(circle 5px, transparent 97%, #000) -7px -7px / 14px 14px, linear-gradient(#000,#000) center / calc(100% - 12px) calc(100% - 12px) no-repeat;
}
.letter-clip {
  position: absolute; z-index: 1; left: 14px; top: -14px; width: 20px;
  stroke: #C9748C; rotate: -12deg;
}
.letter-eyebrow { font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; }
.letter-guest, .letter-grad {
  max-width: 100%;
  font-family: var(--font-name); font-weight: 400; line-height: 1.1;
  overflow-wrap: anywhere; text-wrap: balance;
}
.letter-guest { font-size: clamp(2.2rem,10.5vw,2.9rem); }
.letter-to { margin-top: 2px; font-size: .92rem; font-style: italic; }
.letter-grad { font-size: clamp(1.9rem,9vw,2.5rem); }
.letter-date { margin-top: 4px; font-size: .85rem; letter-spacing: .24em; }

/* Con dấu sáp */
.wax-seal {
  position: absolute; left: 50%; top: 58%; z-index: 5;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  padding: 0; border: 0; border-radius: 50%;
  background: radial-gradient(circle, #D86082 0%, #B84060 100%);
  cursor: pointer;
  animation: seal-breathe 2s ease-in-out infinite;
}
.wax-seal::after {
  content: ""; position: absolute; inset: 2px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.9);
  animation: seal-ring 2s ease-out infinite;
  pointer-events: none;
}
.wax-seal img { width: 100%; height: auto; filter: drop-shadow(0 5px 6px rgba(116,48,74,.45)); }
.wax-seal:focus-visible { outline: 2px dashed var(--wine); outline-offset: 4px; }

/* Gợi ý mở */
.cover-hint {
  position: relative; z-index: 3;
  color: var(--wine); font-size: .98rem; font-style: italic;
  animation: hint-glow 2.4s ease-in-out infinite;
}

/* Cover polaroid */
.cover-polaroid {
  --pol-w: clamp(108px,29vw,150px);
  position: absolute; z-index: 7;
  left: max(3vw, calc(50% - var(--env-w) / 2 - 24px)); bottom: clamp(56px,10vh,120px);
  width: var(--pol-w); margin: 0; padding: 8px 8px 30px;
  background: #fff; box-shadow: 0 16px 26px -12px rgba(116,48,74,.55);
  opacity: 0; transform: translate(-40vw,30vh) rotate(-30deg);
  pointer-events: none;
}
.cover-polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 25%; }
@media (min-width: 760px) {
  .cover-polaroid { left: calc(50% - var(--env-w) / 2 - var(--pol-w) - 28px); bottom: auto; top: 50%; }
}
@media (max-width: 759px) {
  .cover-polaroid {
    --pol-w: clamp(64px,19vw,96px);
    left: 4vw; right: auto; bottom: auto; top: clamp(12px,3vh,36px);
    padding: 6px 6px 22px;
    transform: translate(-40vw,-30vh) rotate(-30deg);
  }
  .cover .cover-polaroid figcaption { bottom: 2px; padding-inline: 0; font-size: .72rem; }
  body.is-opening .cover-polaroid { animation-name: polaroid-in-top; }
}
@keyframes polaroid-in-top {
  from { opacity: 0; transform: translate(-40vw,-30vh) rotate(-30deg); }
  to   { opacity: 1; transform: translate(0,0) rotate(-8deg); }
}
.cover-polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 3px;
  padding-inline: 6px;
  color: var(--wine); font-family: var(--font-name); font-size: 1.2rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cover-swan {
  position: absolute; z-index: 2; left: 1%; bottom: 1%;
  width: clamp(84px,23vw,140px); pointer-events: none;
  filter: drop-shadow(0 10px 12px rgba(116,48,74,.2));
  animation: pearl-bob 4s ease-in-out infinite alternate;
}
.cover-lily {
  position: absolute; z-index: 2; right: -6%; bottom: 2%;
  width: clamp(120px,34vw,190px); rotate: -14deg; pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(116,48,74,.25));
  animation: pearl-bob 5s ease-in-out -2s infinite alternate;
}
.cover-continue {
  position: absolute; z-index: 8; left: 0; right: 0; bottom: 16px;
  color: var(--wine); font-size: .95rem; font-style: italic;
  opacity: 0; pointer-events: none;
}

/* Mở phong bì — body states */
body.is-opening .wax-seal { animation: seal-break .5s cubic-bezier(.5,0,.7,.4) forwards; pointer-events: none; }
body.is-opening .wax-seal::after { animation: none; opacity: 0; }
body.is-opening .cover-hint { opacity: 0; animation: none; transition: opacity .3s; }
body.is-opening .env-flap { transform: rotateX(180deg); z-index: 0; }
body.is-opening .env-letter { animation: letter-out 1.7s cubic-bezier(.45,0,.25,1) .95s forwards; }
body.is-opening .envelope { transform: translateY(var(--env-drop,9vh)); transition-delay: 1.75s; }
body.is-opening .cover-title { transform: translateY(-6vh) scale(.8); transition-delay: 1.5s; }
body.is-opening .cover-polaroid { animation: polaroid-in .9s cubic-bezier(.2,1.2,.4,1) 2.4s forwards; }
body.is-revealing .cover { cursor: pointer; }
body.is-revealing .cover-continue { opacity: 1; animation: hint-glow 2.4s ease-in-out .4s infinite both; }
body.is-leaving .cover { animation: cover-away .8s cubic-bezier(.5,0,.6,1) forwards; }

@keyframes letter-out {
  0%  { transform: translateY(0); z-index: 1; clip-path: var(--hide); }
  52% { transform: translateY(-80%); z-index: 1; clip-path: var(--hide); }
  53% { transform: translateY(-80%); z-index: 6; clip-path: inset(-30%); }
  100%{ transform: translateY(-50%) scale(1.08); z-index: 6; clip-path: inset(-30%); }
}
@keyframes seal-break { 30% { transform: scale(1.18); } 100% { transform: scale(.2) rotate(40deg); opacity: 0; } }
@keyframes polaroid-in { from { opacity: 0; transform: translate(-40vw,30vh) rotate(-30deg); } to { opacity: 1; transform: translate(0,0) rotate(-8deg); } }
@keyframes seal-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes seal-ring { from { transform: scale(.85); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes hint-glow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes twinkle { 0%,100% { opacity: .15; transform: scale(.5) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes star-drift { from { transform: translateY(0) rotate(0deg); opacity: .5; } to { transform: translateY(-18px) rotate(40deg); opacity: .95; } }
@keyframes scene-sway { from { transform: translate(0,0) scale(1); } to { transform: translate(14px,-18px) scale(1.06); } }
@keyframes pearl-bob { to { transform: translateY(-6px); } }
@keyframes cover-away { 0% { opacity: 1; transform: scale(1); filter: blur(0); } 100% { opacity: 0; transform: scale(1.18); filter: blur(10px); visibility: hidden; } }
body.is-leaving .page, body.is-open .page { animation: page-in 1.1s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes page-in { from { opacity: 0; transform: scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* Hiệu ứng bùng sáng */
.burst-layer { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; }
.cover .burst-layer { z-index: 5; }
.burst-item { position: absolute; display: block; will-change: transform, opacity; }
.burst-glint, .burst-spark, .glitter-bit.is-star {
  clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
}
.burst-glint { width: 22px; height: 22px; background: linear-gradient(135deg, #FFF3D6, #D8B271 45%, #A9844F 70%, #F2DDB0); filter: drop-shadow(0 0 5px rgba(255,230,170,.95)); }
.burst-spark { width: 16px; height: 16px; background: #fff; filter: drop-shadow(0 0 6px #fff); }
.burst-petal { width: 13px; height: 19px; border-radius: 80% 0 80% 0; background: linear-gradient(135deg, var(--card), var(--rose) 70%, #C9768F); }
.burst-pearl { width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--card) 40%, #E8D6DA); box-shadow: 0 1px 2px rgba(116,48,74,.25); }
.glitter-rain { position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; }
.glitter-bit {
  position: absolute; top: 0; display: block;
  width: var(--size,6px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF6DC, #D9B574 55%, #A9844F);
  box-shadow: 0 0 6px rgba(255,226,160,.9);
}
.glitter-bit.is-star { border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 4px rgba(255,230,170,.95)); }

/* ==========================================================
   DESKTOP PANEL (ảnh lớn trái, từ 900px)
   ========================================================== */
.desk-panel { display: none; }
@media (min-width: 900px) {
  :root { --page-w: clamp(480px, 44vw, 620px); }
  .desk-panel {
    position: fixed; inset: 0 var(--page-w) 0 0; z-index: 0;
    display: grid; grid-template-columns: 46% 54%;
    align-items: center; overflow: hidden; color: #fff;
    background: #3A0818;
  }
  /* Ảnh background */
  .dp-bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 50% 15%;
    opacity: .55; filter: saturate(.9) brightness(.85);
  }
  /* Overlay gradient nhẹ để chữ vẫn đọc được */
  .desk-panel::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(135deg, rgba(40,6,18,.72) 0%, rgba(80,16,36,.58) 50%, rgba(100,28,52,.48) 100%);
  }
  .dp-content {
    position: relative; z-index: 2;
    display: grid; justify-items: center; gap: 2px;
    padding: 60px clamp(16px, 3vw, 48px);
    text-align: center; text-shadow: 0 2px 14px rgba(60,12,30,.55);
  }
  .dp-script { font-family: var(--font-name); font-size: clamp(3.6rem,6vw,6rem); line-height: 1; rotate: -4deg; }
  .dp-caps { margin-top: -.1em; font-family: var(--font-caps); font-size: clamp(1.6rem,2.4vw,2.4rem); letter-spacing: .16em; text-transform: uppercase; }
  .dp-ornament {
    display: flex; align-items: center; gap: 26px; width: 200px; height: 14px; margin: 18px 0 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l5 9-5 9-5-9z' fill='%23E3CB9C'/%3E%3C/svg%3E") center / 13px no-repeat;
  }
  .dp-ornament::before, .dp-ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-light)); }
  .dp-ornament::after { background: linear-gradient(90deg, var(--gold-light), transparent); }
  .dp-kicker { color: var(--gold-light); font-family: var(--font-caps); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; }
  .dp-guest { font-family: var(--font-name); font-size: clamp(2.2rem,3.2vw,3.2rem); line-height: 1.2; margin-bottom: 8px; }
  .dp-name { font-family: var(--font-name); font-size: clamp(3rem,4.6vw,4.6rem); line-height: 1.1; }
  .dp-date { display: flex; gap: 18px; white-space: nowrap; margin-top: 14px; font-family: var(--font-caps); font-size: 1.2rem; letter-spacing: .22em; }
  .dp-time { padding-left: 18px; border-left: 1px solid var(--gold-light); }
  .dp-venue { margin-top: 6px; font-size: 1.1rem; font-style: italic; }
  .dp-swan { position: absolute; z-index: 2; left: 2%; bottom: 2%; width: clamp(90px,7vw,120px); filter: drop-shadow(0 10px 14px rgba(40,8,20,.35)); }
  .dp-lily { position: absolute; z-index: 2; right: -2%; bottom: -3%; width: clamp(140px,12vw,200px); rotate: -16deg; filter: drop-shadow(0 10px 14px rgba(40,8,20,.3)); }
  /* Scattered photos */
  .dp-scatter {
    position: relative; height: 100%;
    display: flex; align-items: center; justify-content: center;
  }
  .dp-scat {
    position: absolute;
    width: clamp(140px, 20vw, 240px);
    border-radius: 4px; overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,.55);
  }
  .dp-scat img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; display: block; }
  .dp-scat-1 { rotate: -5deg; translate: -16px 8px; z-index: 3; }
  .dp-scat-2 { rotate: 7deg;  translate: 60px -40px; z-index: 1; opacity: .88; }
  .dp-scat-3 { rotate: -9deg; translate: 55px 55px;  z-index: 2; opacity: .82; }

  .dp-swan { position: absolute; z-index: 4; left: 2%; bottom: 2%; width: clamp(90px,7vw,120px); filter: drop-shadow(0 10px 14px rgba(40,8,20,.35)); }
  .dp-lily { position: absolute; z-index: 2; right: -2%; bottom: -3%; width: clamp(140px,12vw,200px); rotate: -16deg; filter: drop-shadow(0 10px 14px rgba(40,8,20,.3)); }
  .page { margin: 0 0 0 auto; box-shadow: -30px 0 60px -30px rgba(90,22,46,.5); }
  .float-controls { right: 24px; bottom: 24px; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero { padding: 56px var(--gutter) 34px; }
.hero-title { display: grid; justify-items: center; gap: 4px; font-weight: 400; }
.hero-title:focus { outline: none; }
.hero-kicker { color: var(--gold); font-family: var(--font-caps); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; }
.hero-guest { max-width: 100%; color: var(--wine); font-family: var(--font-name); font-weight: 400; font-size: clamp(2.8rem,13vw,3.7rem); line-height: 1.15; }
.hero-line { color: var(--wine-soft); font-family: var(--font-caps); font-size: .95rem; letter-spacing: .2em; text-transform: uppercase; }

.polaroid {
  position: relative; display: inline-block; margin-top: 26px;
  padding: 10px 10px 36px; background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  max-width: 220px;
}
.polaroid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 15%; display: block; min-height: 160px; background: var(--blush); }
.polaroid-caption {
  position: absolute; left: 0; right: 0; bottom: 3px;
  padding-inline: 8px;
  color: var(--wine); font-family: var(--font-name); font-size: 1.3rem; line-height: 1.3; text-align: center;
}
.scroll-cue {
  display: inline-block; margin-top: 20px;
  color: var(--wine); font-family: var(--font-caps); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
}
.cue-arrow {
  width: 14px; height: 14px; margin-left: 4px; vertical-align: -2px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  animation: cue-bob 1.8s ease-in-out infinite;
}
@keyframes cue-bob { 50% { transform: translateY(3px); } }

.hero-datestamp {
  display: flex; align-items: center; gap: 12px;
  margin: 28px var(--gutter) 4px;
}
.hero-datestamp__line {
  flex: 1; height: 1px; background: var(--gold); opacity: .5;
}
.hero-datestamp__body {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--font-caps); letter-spacing: .18em;
  font-size: clamp(1.3rem, 5.5vw, 1.8rem); font-weight: 300;
  color: var(--wine); white-space: nowrap;
}
.hero-datestamp__dot { color: var(--gold); font-weight: 400; }

/* ==========================================================
   CLIPBOARD CARD
   ========================================================== */
.clip-card {
  position: relative;
  margin: 0 var(--gutter);
  padding: 36px 24px 40px;
  background: linear-gradient(160deg, var(--card) 0%, #FFF0F6 100%);
  border: 2px solid var(--blush); border-radius: 12px;
  box-shadow: var(--shadow);
}
.clip-card::before, .clip-card::after { display: none; }
.clip-grad-title { font: 700 clamp(2rem,8vw,2.4rem) var(--font-caps); letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
.clip-name { font: 400 clamp(2.4rem,10vw,3rem) var(--font-name); color: var(--wine); line-height: 1; margin-top: 4px; }
.clip-invite-line { font: 400 1rem var(--font-name); color: var(--wine-soft); margin-bottom: 2px; }
.clip-guest-span { font-size: 1.15rem; color: var(--wine); }
.clip-quote { font-style: italic; color: var(--wine-soft); font-size: .95rem; margin: 16px auto 20px; max-width: 28ch; }

.info-cols { display: flex; gap: 0; border-top: 1px solid var(--blush); border-bottom: 1px solid var(--blush); margin: 20px 0; overflow: hidden; border-radius: 8px; }
.info-col { flex: 1; padding: 12px 10px; text-align: center; background: rgba(255,255,255,.6); }
.info-col:not(:last-child) { border-right: 1px solid var(--blush); }
.info-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.info-value { font-size: .95rem; color: var(--wine); font-weight: 600; }

.date-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 20px auto 8px; padding: 10px 24px;
  border-top: 1px solid var(--blush); border-bottom: 1px solid var(--blush);
}
.date-bar__num { font: 700 2rem var(--font-caps); color: var(--wine); line-height: 1; min-width: 2ch; text-align: center; }
.date-bar__sep { font: 300 1.6rem var(--font-caps); color: var(--gold); line-height: 1; }

.clip-meta { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 16px; }
.clip-meta-row { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--wine); }
.clip-meta-icon { font-size: 1.1rem; }
.clip-meta-svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold); stroke: var(--gold); }
.clip-university { font-weight: 700; }
.clip-address { font-size: .88rem; color: var(--wine-soft); }
.map-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 10px 24px; border: 1.5px solid var(--wine); border-radius: 999px;
  background: transparent; cursor: pointer; text-decoration: none;
  font-size: .9rem; letter-spacing: .08em; color: var(--wine);
  transition: background .2s, color .2s;
}
.map-btn:hover { background: var(--wine); color: #fff; }

/* ==========================================================
   LETTER CARD — đôi lời gửi bạn
   ========================================================== */
.letter-sec { padding-top: 40px; }
.letter-card {
  margin-top: 22px; padding: 38px 26px 34px;
  border-radius: 4px;
  background: var(--card);
  box-shadow: inset 0 0 0 7px var(--card), inset 0 0 0 8px var(--gold-line), var(--shadow);
  text-align: left;
}
.letter-greeting { color: var(--wine); font-family: var(--font-name); font-size: 2rem; line-height: 1.3; }
.letter-body { margin-top: 10px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.8; }
.letter-sign { margin-top: 22px; font-style: italic; }
.letter-name { color: var(--wine); font-family: var(--font-name); font-size: 2.4rem; line-height: 1.2; text-align: right; }

/* ==========================================================
   STORY
   ========================================================== */
.story-grid { display: flex; flex-direction: column; gap: 36px; margin-top: 32px; text-align: left; }
.story-block {
  display: grid; gap: 16px;
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.story-block.is-in { opacity: 1; transform: none; }
.story-num {
  font: 700 .78rem var(--font-caps); letter-spacing: .2em; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.story-num::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: .4; }
.story-heading { font: 700 1.3rem var(--font-caps); color: var(--wine); margin-top: 2px; }
.story-photo { width: 100%; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--blush); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-body { color: var(--text); font-size: 1rem; line-height: 1.8; }
.story-quote {
  font-style: italic; text-align: center; color: var(--wine);
  font-size: 1.05rem; margin-top: 8px; border-left: 2px solid var(--gold); padding-left: 14px;
}

/* ==========================================================
   CALENDAR
   ========================================================== */
.calendar-wrap {
  background: rgba(255,255,255,.75); border-radius: 14px;
  padding: 20px; margin-top: 28px;
  box-shadow: 0 4px 16px rgba(122,41,67,.08); border: 1px solid var(--blush);
}
.cal-month-script { font: 400 2.4rem var(--font-name); color: var(--wine); text-align: center; margin-bottom: 8px; }
.cal-card { background: rgba(255,255,255,.85); border-radius: 20px; padding: 20px; border: 1px solid var(--blush); box-shadow: 0 4px 16px rgba(122,41,67,.08); }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; text-align: center; }
.cal-day-name { font: 600 .72rem var(--font-caps); color: var(--gold); padding: 4px 0; letter-spacing: .06em; }
.cal-day { padding: 4px 2px; font-size: .92rem; border-radius: 50%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--wine); }
.cal-day.empty { background: none; }
.cal-day--sun { color: var(--wine-soft); }
.cal-day--sat { color: var(--wine-soft); }
.cal-day--event {
  position: relative; display: grid; place-items: center;
  aspect-ratio: auto; background: none;
  animation: cal-pulse 2s ease-in-out infinite;
}
.cal-heart {
  width: 2.6em; height: 2.4em; color: #F2AABF;
  grid-area: 1/1; /* cùng vị trí với số */
}
.cal-day__num {
  grid-area: 1/1; /* chồng lên trái tim */
  font: 700 .82rem var(--font-caps); color: var(--wine); line-height: 1;
  position: relative; top: .05em;
}
@keyframes cal-pulse { 0%,100% { filter: drop-shadow(0 2px 6px rgba(242,170,191,.5)); } 50% { filter: drop-shadow(0 2px 14px rgba(242,170,191,.9)); } }

/* ==========================================================
   PARALLAX QUOTE
   ========================================================== */
.parallax-quote {
  position: relative; height: clamp(260px,50vw,480px); overflow: hidden;
  margin: 0; display: flex; align-items: center; justify-content: center;
}
.parallax-quote__bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%; display: block;
}
.parallax-quote__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(60,0,20,.35) 0%, rgba(80,10,30,.55) 100%);
}
.parallax-quote__text {
  position: relative; z-index: 1; text-align: center; padding: 0 24px;
  color: #fff;
}
.parallax-quote__sub { font-size: clamp(.9rem,2.5vw,1.1rem); font-style: italic; opacity: .88; margin-bottom: 10px; }
.parallax-quote__main { font: 400 clamp(1.6rem,5vw,2.2rem) var(--font-name); line-height: 1.3; }

/* ==========================================================
   TIMELINE
   ========================================================== */
.timeline-list { margin-top: 28px; display: flex; flex-direction: column; position: relative; padding-left: 32px; }
.timeline-list::before {
  content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--blush), var(--wine), var(--blush)); border-radius: 1px;
}
.timeline-item {
  position: relative; padding: 0 0 28px 24px;
  opacity: 0; transform: translateX(-20px);
  transition: opacity .5s ease, transform .5s ease;
}
.timeline-item.is-in { opacity: 1; transform: none; }
.timeline-item::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--wine); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--blush);
}
.tl-time { font: 700 .88rem var(--font-caps); color: var(--gold); letter-spacing: .08em; margin-bottom: 2px; }
.tl-label { font: 700 1.05rem var(--font-caps); color: var(--wine); }
.tl-detail { font-size: .9rem; color: var(--wine-soft); margin-top: 2px; }

/* ==========================================================
   COUNTDOWN
   ========================================================== */
.moment { position: relative; isolation: isolate; display: grid; place-items: center; min-height: 540px; padding: 60px var(--gutter) 72px; overflow: hidden; }
.moment-bg-wrap { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.moment-bg { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(.85) brightness(1.05); transform: scale(1.03); }
.moment::after { content: ""; position: absolute; inset: 0; background: rgba(30,6,16,.52); z-index: -1; }
.moment-inner { width: 100%; display: flex; flex-direction: column; align-items: center; }
.moment .script-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.moment-photo {
  width: clamp(180px, 42vw, 300px); margin: 20px auto 24px;
  box-shadow: 0 8px 32px rgba(90,22,46,.28);
  border-radius: 8px; overflow: hidden;
}
.moment-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center 15%; display: block; }
.countdown { display: flex; gap: 20px; justify-content: center; margin: 8px auto 0; }
.countdown p { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.countdown b { font-family: var(--font-caps); font-size: 2.4rem; font-weight: 600; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.countdown span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,220,200,.8); }
.countdown-note { margin-top: 16px; font-style: italic; color: rgba(255,235,225,.85); }
.moment-quote { margin-top: 24px; font-size: 1.1rem; font-style: italic; color: rgba(255,235,225,.85); }

/* ==========================================================
   GALLERY — coverflow 3D
   ========================================================== */
.photobook { margin-top: 20px; }

.photobook-strip {
  position: relative;
  height: clamp(300px, 80vw, 440px);
  perspective: 900px;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}
.photobook-strip:active { cursor: grabbing; }

.gallery-card {
  position: absolute;
  left: 50%; top: 50%;
  width: clamp(160px, 52vw, 240px);
  aspect-ratio: 3/4;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, opacity;
  transition: transform .45s cubic-bezier(.25,.8,.25,1), opacity .45s ease, box-shadow .45s ease;
  box-shadow: 0 16px 40px -8px rgba(90,22,46,.35);
  user-select: none; -webkit-user-select: none;
}
.gallery-card img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 20%;
  display: block; pointer-events: none;
}
.gallery-card.is-active {
  box-shadow: 0 28px 56px -8px rgba(90,22,46,.55);
  cursor: zoom-in;
}

/* Chấm chỉ trang */
.photobook-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 16px;
}
.photobook-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blush); border: 0; padding: 0;
  transition: background .25s, transform .25s; flex-shrink: 0;
}
.photobook-dot.is-active { background: var(--wine); transform: scale(1.4); }

@keyframes kb-drift { from { transform: scale(1.1) translate(-3%,1%); } to { transform: scale(1.1) translate(3%,-1%); } }

.lightbox { width: min(94vw,900px); max-height: 92vh; padding: 0; border: 0; border-radius: 6px; background: var(--card); overflow: hidden; }
.lightbox::backdrop { background: rgba(58,18,32,.82); }
.lightbox img { width: 100%; max-height: 92vh; object-fit: contain; }
.lightbox-close, .lightbox-nav {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(253,245,246,.92); color: var(--wine);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox-close { top: 10px; right: 10px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ==========================================================
   WISHES
   ========================================================== */
.wish-form {
  display: grid; gap: 8px; margin-top: 26px; padding: 28px 22px 22px;
  border-radius: 4px; background: var(--card);
  box-shadow: inset 0 0 0 7px var(--card), inset 0 0 0 8px var(--gold-line), var(--shadow);
  text-align: left;
}
.wish-form label { margin-top: 6px; color: var(--wine); font-size: 1.2rem; font-weight: 600; font-style: italic; }
.wish-form input, .wish-form textarea, .wish-form button { width: 100%; }
.wish-form input, .wish-form textarea {
  padding: 11px 14px; border: 1px solid var(--blush); border-radius: 8px;
  background: #fff; color: var(--text); font-size: 1.1rem;
}
.wish-form textarea { resize: vertical; min-height: 120px; }
.wish-form input:focus, .wish-form textarea:focus { outline: 2px solid var(--blush); border-color: var(--wine); }
.wish-form .button { margin-top: 10px; border-color: var(--blush); background: var(--blush); color: var(--wine); letter-spacing: .08em; text-transform: none; font-size: 1rem; }
.wish-form .button:hover { background: var(--rose); border-color: var(--rose); }
.rsvp-select {
  width: 100%; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--blush); background: rgba(255,255,255,.85);
  cursor: pointer; text-align: center; font-size: .95rem; color: var(--wine-soft);
  transition: border-color .2s, box-shadow .2s;
  color: var(--wine); font-size: .95rem; cursor: pointer; appearance: auto;
}
.rsvp-select:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(122,41,67,.12); }
.field-note { color: var(--wine-soft); font-size: .95rem; text-align: right; }
.form-status { min-height: 1.5em; font-size: 1.05rem; }
.form-status.is-error, .form-status.error { color: #8A2A3A; }
.form-status.success { color: #27ae60; }
.wish-board { margin-top: 30px; text-align: left; }
.wish-board-status { color: var(--wine-soft); font-style: italic; text-align: center; }
.wish-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.wish-item { padding: 16px 18px; border: 1px solid var(--gold-line); border-radius: 4px; background: rgba(253,245,246,.8); animation: wish-in .7s cubic-bezier(.2,.75,.2,1) both; animation-delay: calc(var(--i,0) * 70ms); }
.wish-item p { white-space: pre-line; overflow-wrap: anywhere; }
.wish-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 8px; font-size: .95rem; }
.wish-meta strong, .wish-name { color: var(--wine); font-family: var(--font-name); font-size: 1.7rem; font-weight: 400; overflow-wrap: anywhere; }
.wish-meta time, .wish-time { color: var(--gold); font-family: var(--font-caps); font-size: .75rem; letter-spacing: .12em; }
.wish-msg { font-size: .95rem; color: var(--text); line-height: 1.65; }
.wish-board .text-button { display: block; margin-inline: auto; }
@keyframes wish-in { from { opacity: 0; transform: translateY(16px); } }

/* ==========================================================
   FOOTER
   ========================================================== */
.closing { padding-bottom: 90px; }
.closing-thanks { color: var(--wine); font-family: var(--font-sign); font-size: clamp(4rem,18vw,5.2rem); line-height: 1; }
.closing-text { max-width: 30ch; margin: 12px auto 0; }
.guest-inline { color: var(--wine); font-weight: 700; }
.closing-name { margin-top: 10px; color: var(--wine); font-family: var(--font-name); font-size: 2.4rem; line-height: 1.2; }
.closing-mark { margin-top: 30px; color: var(--gold); font-family: var(--font-caps); font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; }

/* ==========================================================
   FALLING PETALS
   ========================================================== */
#petals-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 5;
}

/* ==========================================================
   FLOATING CONTROLS (music + autoscroll)
   ========================================================== */
.float-controls {
  position: fixed; bottom: 24px; right: max(14px, calc(50% - var(--page-w) / 2 + 14px)); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.float-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; position: relative;
  border: 1px solid var(--gold-line); border-radius: 50%;
  background: rgba(253,245,246,.92); color: var(--wine);
  cursor: pointer; box-shadow: var(--shadow);
  transition: background .2s, color .2s;
}
.float-btn:hover { background: var(--paper); }
.float-btn__icon { width: 16px; height: 16px; }

/* Autoscroll active state */
#autoscroll-btn[aria-pressed="true"] { background: var(--wine); color: #fff; border-color: var(--wine); }
#autoscroll-btn[aria-pressed="true"] .as-play { display: none; }
#autoscroll-btn[aria-pressed="true"] .as-pause { display: block !important; }

/* Music waveform bars */
.music-bars {
  display: flex; align-items: flex-end; gap: 2.5px; height: 16px;
}
.bar {
  width: 3px; border-radius: 2px; background: currentColor;
  transform-origin: bottom center;
}
.bar-1 { height: 8px; }
.bar-2 { height: 14px; }
.bar-3 { height: 10px; }
.bar-4 { height: 6px; }

/* Animated when playing */
.float-btn--music[aria-pressed="true"] .bar-1 { animation: bar-dance 0.9s ease-in-out infinite; }
.float-btn--music[aria-pressed="true"] .bar-2 { animation: bar-dance 0.7s ease-in-out infinite .15s; }
.float-btn--music[aria-pressed="true"] .bar-3 { animation: bar-dance 0.8s ease-in-out infinite .05s; }
.float-btn--music[aria-pressed="true"] .bar-4 { animation: bar-dance 1s ease-in-out infinite .25s; }
/* Muted indicator line when paused */
.float-btn--music[aria-pressed="false"]::after { content: ""; position: absolute; width: 24px; height: 1.5px; background: currentColor; rotate: -45deg; border-radius: 2px; }

@keyframes bar-dance {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.35); }
}

/* ==========================================================
   SCROLL ANIMATIONS (.is-in từ scroll-effects.js)
   ========================================================== */
.js-ready [data-anim] {
  transition: opacity .9s ease var(--delay,0s), transform 1s cubic-bezier(.2,.75,.2,1) var(--delay,0s), filter .9s ease var(--delay,0s);
}
.js-ready [data-anim]:not(.is-in) { opacity: 0; }
.js-ready [data-anim="rise"]:not(.is-in) { transform: translateY(40px); }
.js-ready [data-anim="rise"][data-from="above"]:not(.is-in) { transform: translateY(-40px); }
.js-ready [data-anim="left"]:not(.is-in) { transform: translate(-50px,20px); }
.js-ready [data-anim="right"]:not(.is-in) { transform: translate(50px,20px); }
.js-ready [data-anim="zoom"]:not(.is-in) { transform: scale(.85); filter: blur(6px); }
.js-ready [data-anim="pop"]:not(.is-in) { transform: scale(.6); }
.js-ready [data-anim="flip"]:not(.is-in) { transform: perspective(1000px) rotateY(-75deg) scale(.9); }
.js-ready [data-anim="unfold"] { transform-origin: 50% 0; }
.js-ready [data-anim="unfold"]:not(.is-in) { transform: perspective(1200px) rotateX(-70deg); }
.js-ready .countdown p { transition: opacity .6s ease, transform .7s cubic-bezier(.3,1.4,.5,1); }
.js-ready .countdown:not(.is-in) p { opacity: 0; transform: translateY(18px); }
.countdown p:nth-child(2) { transition-delay: .15s; }
.countdown p:nth-child(3) { transition-delay: .3s; }
.countdown p:nth-child(4) { transition-delay: .45s; }
[data-parallax] { translate: 0 var(--parallax,0px); will-change: translate; }

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .page { margin-block: 0; box-shadow: 0 0 0 1px rgba(169,132,79,.25), 0 30px 80px -30px rgba(122,41,67,.55); }
  .gallery-card { width: clamp(180px, 32vw, 260px); }
  .photobook-strip { height: clamp(340px, 55vw, 480px); }
  .story-block { grid-template-columns: 1fr 1fr; align-items: start; }
  .story-block:nth-child(even) .story-photo { order: 2; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js-ready [data-anim] { opacity: 1; transform: none; filter: none; }
  .js-ready .countdown p { opacity: 1; transform: none !important; }
  .gallery-item img { transition: none; }
  [data-parallax] { translate: none; }
  .story-block { opacity: 1; transform: none; }
  .timeline-item { opacity: 1; transform: none; }
}
