/* ══════════════════════════════════════════════════════════
   李耀康 & 鄭玉平 婚禮邀請函
   手機優先・香檳金／米白／酒紅
   ══════════════════════════════════════════════════════════ */

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

:root {
  --paper: #F5EDE1;
  --paper-hi: #FDFAF3;
  --card: #FCF7EE;
  --ink: #3B2E27;
  --ink-2: #6B574C;
  --ink-3: #9C8676;
  --gold: #AE8A4E;
  --gold-hi: #DCC08A;
  --gold-soft: rgba(174, 138, 78, .30);
  --wine: #8C3A3A;
  --wine-soft: rgba(140, 58, 58, .08);
  --rose: #D3A199;
  --shadow-s: 0 6px 18px -10px rgba(84, 58, 40, .30);
  --shadow-l: 0 26px 60px -28px rgba(84, 58, 40, .40);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ff: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --ff-sans: "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --ff-num: "Cormorant Garamond", "Noto Serif TC", serif;
  --gutter: clamp(16px, 5vw, 40px);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip }

body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

/* 溫暖紙感底紋 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(115% 70% at 50% -10%, rgba(255, 253, 248, .95), transparent 58%),
    radial-gradient(80% 55% at 105% 100%, rgba(211, 161, 153, .18), transparent 62%),
    radial-gradient(70% 50% at -5% 42%, rgba(220, 192, 138, .22), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block }
button { font: inherit; color: inherit; cursor: pointer }
a { color: inherit; text-decoration: none }
h1, h2, h3 { margin: 0; font-family: var(--ff); font-weight: 500; letter-spacing: .1em; line-height: 1.5 }
p { margin: 0 }
ol, ul { margin: 0; padding: 0; list-style: none }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px }

.num { font-family: var(--ff-num); font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden }

#petals {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
body.opened #petals { opacity: 1 }

/* ══════════════════════════ 封面 ══════════════════════════ */
.cover {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: #2E211C;
  transition: opacity 1.05s var(--ease), visibility 1.05s;
}
.cover__texture {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 8%, rgba(220, 192, 138, .30), transparent 62%),
    radial-gradient(70% 55% at 12% 92%, rgba(140, 58, 58, .55), transparent 65%),
    radial-gradient(70% 55% at 92% 82%, rgba(211, 161, 153, .30), transparent 65%),
    linear-gradient(160deg, #4A322A, #2A1D19 55%, #3A2620);
}
.cover__glow {
  position: absolute;
  inset: -30%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(220, 192, 138, .16) 72%, transparent 84%);
  animation: sweep 22s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg) } }

.cover__card {
  position: relative;
  text-align: center;
  color: #F7EEE1;
  animation: coverIn 1.5s var(--ease-out) both;
}
@keyframes coverIn {
  from { opacity: 0; transform: translateY(26px) scale(.97) }
  to { opacity: 1; transform: none }
}
.cover__seal {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 192, 138, .7);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(220, 192, 138, .12), inset 0 0 22px rgba(220, 192, 138, .18);
  animation: breathe 4.5s ease-in-out infinite;
}
.cover__seal span {
  font-family: var(--ff);
  font-size: 27px;
  color: var(--gold-hi);
  letter-spacing: 0;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 5px rgba(220,192,138,.12), inset 0 0 22px rgba(220,192,138,.18) }
  50% { transform: scale(1.045); box-shadow: 0 0 0 9px rgba(220,192,138,.07), inset 0 0 26px rgba(220,192,138,.28) }
}
.cover .eyebrow { color: rgba(247, 238, 225, .72) }
.cover__names {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4.5vw, 26px);
  margin: 4px 0 18px;
  font-family: var(--ff);
  font-weight: 600;
  color: #FBF3E7;
  text-shadow: 0 2px 26px rgba(0, 0, 0, .45);
}
.vstack {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(30px, 8.6vw, 40px);
  letter-spacing: .2em;
  line-height: 1.15;
}
.amp {
  font-family: var(--ff-num);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 6vw, 30px);
  color: var(--gold-hi);
  margin-bottom: 2.6em;
}
.cover__rule { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 20px; max-width: 260px }
.cover__rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(220, 192, 138, .6)) }
.cover__rule i + i { background: linear-gradient(90deg, rgba(220, 192, 138, .6), transparent) }
.cover__rule b { color: var(--gold-hi); font-size: 11px }
.cover__date { font-size: clamp(16px, 4.6vw, 19px); letter-spacing: .16em; color: #F7EEE1 }
.cover__date .num { font-size: 1.32em; color: var(--gold-hi) }
.cover__lunar { font-size: 13px; letter-spacing: .3em; color: rgba(247, 238, 225, .62); margin-top: 4px }
.cover__lead {
  font-family: var(--ff);
  font-size: clamp(14px, 3.9vw, 16px);
  line-height: 2.15;
  letter-spacing: .1em;
  color: rgba(247, 238, 225, .86);
  margin: 26px 0 30px;
}
.btn-open {
  position: relative;
  overflow: hidden;
  display: block;
  margin: 0 auto;
  padding: 15px 42px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, #C79E5C, #E7CFA0 46%, #B98C4C);
  color: #3A2519;
  box-shadow: 0 14px 34px -14px rgba(199, 158, 92, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .75) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: shine 3.4s ease-in-out infinite;
}
@keyframes shine { 0% { transform: translateX(-120%) } 55%, 100% { transform: translateX(120%) } }
.btn-open:active { transform: scale(.97) }
.btn-open__label { display: block; font-family: var(--ff); font-size: 17px; font-weight: 600; letter-spacing: .34em; text-indent: .34em }
.btn-open__hint { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .12em; opacity: .72 }

.cover.is-open { opacity: 0; visibility: hidden; pointer-events: none }
.cover.is-open .cover__card { animation: coverOut .8s var(--ease) both }
@keyframes coverOut {
  to { opacity: 0; transform: translateY(-40px) scale(1.06); filter: blur(6px) }
}

/* ══════════════════════════ 工具列 ══════════════════════════ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 8px) var(--gutter) 8px;
  background: linear-gradient(180deg, rgba(252, 247, 238, .94), rgba(252, 247, 238, .68));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(174, 138, 78, .22);
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.topbar.show { opacity: 1; transform: none }
.topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0 }
.topbar__mono {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  font-family: var(--ff);
  font-size: 14px;
  color: var(--wine);
  background: var(--wine-soft);
}
.topbar__txt {
  font-family: var(--ff);
  font-size: 14px;
  letter-spacing: .18em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__txt i { font-family: var(--ff-num); font-style: italic; color: var(--gold); padding: 0 2px }
.topbar__actions { display: flex; align-items: center; gap: 8px }

.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  color: var(--gold);
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round }
.icon-btn:active { transform: scale(.92) }

#musicBtn { position: relative; gap: 0 }
.disc {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #F3E3C6 0 15%, transparent 15.5%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .16) 0 .8px, transparent .8px 2.2px),
    linear-gradient(140deg, #4B3A32, #241914);
  box-shadow: inset 0 0 0 1px rgba(220, 192, 138, .45);
  display: grid;
  place-items: center;
  animation: spin 3.6s linear infinite;
  animation-play-state: paused;
}
.disc__hole { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-hi) }
@keyframes spin { to { transform: rotate(360deg) } }
#musicBtn .eq { position: absolute; right: 5px; bottom: 5px; display: flex; align-items: flex-end; gap: 1.5px; height: 9px; opacity: 0 }
#musicBtn .eq i { width: 2px; height: 4px; background: var(--wine); border-radius: 1px; transform-origin: bottom }
#musicBtn.playing { border-color: var(--wine); color: var(--wine); background: var(--wine-soft) }
#musicBtn.playing .disc { animation-play-state: running }
#musicBtn.playing .eq { opacity: 1 }
#musicBtn.playing .eq i { animation: eq .9s ease-in-out infinite }
#musicBtn.playing .eq i:nth-child(2) { animation-delay: .3s }
#musicBtn.playing .eq i:nth-child(3) { animation-delay: .55s }
@keyframes eq { 0%, 100% { transform: scaleY(.4) } 50% { transform: scaleY(2) } }

.yt-holder { position: fixed; top: -9999px; left: -9999px; width: 400px; height: 225px; opacity: 0; pointer-events: none }
body.lb-open { overflow: hidden }

/* ══════════════════════════ 共用 ══════════════════════════ */
.invite { position: relative; z-index: 2 }
.invite[aria-hidden="true"] { visibility: hidden }
body.opened .invite { visibility: visible }

section { position: relative; padding: clamp(56px, 15vw, 104px) var(--gutter) }

.eyebrow {
  font-family: var(--ff-num);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.sec-head { text-align: center; margin-bottom: clamp(28px, 7vw, 46px) }
.sec-title {
  font-size: clamp(23px, 6.4vw, 32px);
  font-weight: 600;
  letter-spacing: .24em;
  text-indent: .24em;
  color: var(--ink);
}
.sec-title--left { text-align: left; text-indent: 0; letter-spacing: .14em; line-height: 1.75 }
.sec-note { font-size: 13.5px; color: var(--ink-2); margin-top: 14px; line-height: 1.95 }
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 0; max-width: 210px }
.rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)) }
.rule i + i { background: linear-gradient(90deg, var(--gold-soft), transparent) }
.rule b { color: var(--gold); font-size: 9px }
.rule--sm { max-width: 130px; margin-top: 18px }
.sub-title { font-size: clamp(17px, 4.6vw, 20px); letter-spacing: .2em; text-indent: .2em; text-align: center; color: var(--ink); margin-bottom: 22px; font-weight: 600 }
.prose { font-size: 15px; line-height: 2.2; color: var(--ink-2); letter-spacing: .04em }

.paper-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(30px, 7.5vw, 46px) clamp(18px, 5.2vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .34)),
    var(--card);
  box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(174, 138, 78, .16);
  border-radius: 3px;
}
.paper-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(174, 138, 78, .26);
  pointer-events: none;
  border-radius: 2px;
}
.paper-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(174, 138, 78, .12);
  pointer-events: none;
}
.paper-card--rose { background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 246, 242, .4)), var(--card) }

/* 捲動揭露 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease) }
.reveal.in { opacity: 1; transform: none }
.reveal[data-d="1"] { transition-delay: .12s }
.reveal[data-d="2"] { transition-delay: .24s }
.reveal[data-d="3"] { transition-delay: .36s }
.reveal[data-d="4"] { transition-delay: .48s }
.reveal[data-d="5"] { transition-delay: .6s }

/* ══════════════════════════ 主視覺 ══════════════════════════ */
.hero {
  display: grid;
  place-items: end center;
  min-height: 100svh;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42% }
.ken { animation: ken 26s ease-in-out infinite alternate; will-change: transform }
@keyframes ken {
  from { transform: scale(1.06) translate3d(0, 0, 0) }
  to { transform: scale(1.18) translate3d(-1.5%, -1.5%, 0) }
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(41, 28, 22, .86) 0%, rgba(41, 28, 22, .42) 30%, rgba(41, 28, 22, .05) 55%, rgba(41, 28, 22, .34) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(140, 58, 58, .28), transparent 60%);
}
.hero__frame {
  position: absolute;
  inset: clamp(14px, 4vw, 30px);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: frameIn 1.6s var(--ease) 1.1s forwards;
}
@keyframes frameIn { to { opacity: 1 } }
.hero__frame i { position: absolute; width: 34px; height: 34px; border: 1px solid rgba(220, 192, 138, .55) }
.hero__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0 }
.hero__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0 }
.hero__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0 }
.hero__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0 }

.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  padding: 0 24px calc(clamp(48px, 12vh, 96px));
  text-align: center;
  color: #FBF4EA;
}
.hero .eyebrow { color: rgba(220, 192, 138, .92) }
.hero__names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 14px;
  font-size: clamp(31px, 9.2vw, 54px);
  font-weight: 600;
  letter-spacing: .14em;
  text-shadow: 0 3px 30px rgba(0, 0, 0, .55);
  margin-bottom: 22px;
}
.hero__names span { display: block }
.hero__amp { font-family: var(--ff-num); font-style: italic; font-weight: 300; font-size: .62em; color: var(--gold-hi); letter-spacing: 0; padding: 0 4px }
.hero__meta { display: grid; gap: 6px }
.hero__date { font-size: 15px; letter-spacing: .1em; color: #F7EEE1 }
.hero__date .num { font-size: 1.75em; color: var(--gold-hi); padding: 0 1px }
.hero__date i { font-style: normal; font-size: .82em; padding: 0 2px; opacity: .85 }
.hero__sub { font-size: 12.5px; letter-spacing: .22em; color: rgba(247, 238, 225, .74) }
.hero__place { font-family: var(--ff); font-size: 13px; letter-spacing: .12em; color: rgba(247, 238, 225, .82); margin-top: 8px }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(220, 192, 138, .85));
  overflow: hidden;
}
.hero__cue span { position: absolute; left: -1px; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-hi); animation: cue 2.4s var(--ease) infinite }
@keyframes cue { 0% { top: -4px; opacity: 0 } 30% { opacity: 1 } 100% { top: 46px; opacity: 0 } }

/* ══════════════════════════ 喜帖正文 ══════════════════════════ */
.formal { padding-top: clamp(48px, 13vw, 92px) }
.vertical-wrap { display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; margin: 6px 0 4px }
.vertical-wrap::-webkit-scrollbar { display: none }
.vertical { display: block; text-align: center; margin: 0 auto }
.v-line {
  margin: 0;
  font-family: var(--ff);
  font-size: clamp(15.5px, 4.3vw, 18px);
  font-weight: 400;
  letter-spacing: .18em;
  text-indent: .18em;
  line-height: 2.1;
  color: var(--ink);
}
.v-open { color: var(--gold); font-size: .84em; letter-spacing: .5em; text-indent: .5em }
.v-date { font-weight: 500 }
.v-gap { color: var(--ink-3); font-size: .8em; letter-spacing: .46em; text-indent: .46em; margin: .55em 0 }
.v-name { font-weight: 600; font-size: 1.1em; color: var(--wine) }
.v-strong { font-weight: 600; font-size: 1.14em; color: var(--wine); letter-spacing: .3em; text-indent: .3em; margin: .2em 0 .35em }
.v-end { font-weight: 600; font-size: 1.42em; color: var(--wine); letter-spacing: .52em; text-indent: .52em; line-height: 1.85 }

.formal__times { display: flex; justify-content: center; gap: 12px; margin-top: clamp(24px, 6vw, 34px); flex-wrap: wrap }
.time-chip {
  position: relative;
  min-width: 128px;
  padding: 12px 20px 11px;
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  background: linear-gradient(180deg, #FFFDF8, #FBF3E6);
  display: grid;
  gap: 1px;
  text-align: center;
  box-shadow: var(--shadow-s);
}
.time-chip__t { font-family: var(--ff); font-size: 16px; font-weight: 600; letter-spacing: .18em; color: var(--wine) }
.time-chip__l { font-size: 11px; letter-spacing: .3em; color: var(--ink-3) }
.time-chip__n { font-size: 13px; color: var(--gold); margin-top: 3px; letter-spacing: .06em }

.seal {
  position: absolute;
  right: clamp(16px, 5vw, 30px);
  bottom: clamp(16px, 5vw, 28px);
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(140, 58, 58, .72);
  border-radius: 4px;
  background: rgba(140, 58, 58, .05);
  color: rgba(140, 58, 58, .85);
  font-family: var(--ff);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: center;
  transform: rotate(-8deg);
  mix-blend-mode: multiply;
  opacity: 0;
}
.seal.in { animation: stamp .9s var(--ease-out) .35s forwards }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-8deg) scale(2.1); filter: blur(3px) }
  60% { opacity: 1; transform: rotate(-8deg) scale(.94); filter: blur(0) }
  80% { transform: rotate(-8deg) scale(1.04) }
  100% { opacity: 1; transform: rotate(-8deg) scale(1) }
}

/* ══════════════════════════ 我們 ══════════════════════════ */
.couple { display: grid; gap: clamp(26px, 7vw, 40px); max-width: 1080px; margin: 0 auto }
.couple__media { position: relative; padding: 9px 9px 9px; background: #FFFDF8; box-shadow: var(--shadow-l) }
.couple__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(1.04) contrast(1.02) }
.couple__polaroid {
  position: absolute;
  right: 12px;
  bottom: -13px;
  left: 20px;
  height: 40%;
  background: #FFFDF8;
  box-shadow: var(--shadow-s);
  border: 1px solid rgba(174, 138, 78, .18);
  transform: rotate(1.5deg);
  z-index: -1;
}
.couple__body { text-align: center }
.couple .sec-title--left { text-align: center; letter-spacing: .16em }
.couple .prose { text-align: center }
.names-plate {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: clamp(26px, 6vw, 36px);
  padding-top: clamp(22px, 5vw, 30px);
  border-top: 1px solid rgba(174, 138, 78, .22);
}
.names-plate__col { text-align: center }
.names-plate__role { font-size: 11px; letter-spacing: .26em; color: var(--gold); margin-bottom: 6px }
.names-plate__name { font-family: var(--ff); font-size: clamp(19px, 5.4vw, 25px); font-weight: 600; letter-spacing: .14em; color: var(--ink) }
.names-plate__en { font-size: 11px; letter-spacing: .2em; color: var(--ink-3); margin-top: 6px }
.names-plate__amp { font-family: var(--ff-num); font-style: italic; font-size: 26px; color: var(--gold) }

/* ══════════════════════════ 時間與地點 ══════════════════════════ */
.when { background: linear-gradient(180deg, transparent, rgba(220, 192, 138, .10), transparent) }
.when > * { max-width: 620px; margin-left: auto; margin-right: auto }

.date-card {
  max-width: 420px;
  padding: 0 0 clamp(20px, 5vw, 26px);
  background: #FFFDF8;
  border: 1px solid var(--gold-soft);
  border-radius: 3px;
  box-shadow: var(--shadow-l);
  overflow: hidden;
}
.date-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px clamp(18px, 5vw, 26px);
  background: linear-gradient(90deg, var(--wine), #A24A44);
  color: #FBF1E6;
}
.date-card__y { font-size: 17px; letter-spacing: .16em }
.date-card__sep { flex: 1; height: 1px; margin: 0 14px; background: repeating-linear-gradient(90deg, rgba(251, 241, 230, .5) 0 4px, transparent 4px 8px) }
.date-card__md { font-size: 30px; font-weight: 600; letter-spacing: .02em }
.date-card__slash { padding: 0 3px; opacity: .7 }
.date-card__week { font-family: var(--ff); font-size: 15px; letter-spacing: .34em; text-indent: .34em; color: var(--wine); text-align: center; padding: 16px 0 4px }
.date-card__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 12px; background: rgba(174, 138, 78, .18) }
.date-card__grid > div { background: #FFFDF8; padding: 13px 14px; text-align: center }
.date-card__grid .k { font-size: 11px; letter-spacing: .2em; color: var(--gold) }
.date-card__grid .v { font-family: var(--ff); font-size: 14.5px; color: var(--ink); margin-top: 4px; letter-spacing: .06em }

.countdown { max-width: 420px; margin-top: clamp(30px, 7vw, 42px) }
.countdown__label { text-align: center; font-family: var(--ff); font-size: 14px; letter-spacing: .22em; color: var(--ink-2); margin-bottom: 14px }
.countdown__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px }
.cd {
  display: grid;
  gap: 2px;
  justify-items: center;
  padding: 12px 4px 9px;
  background: linear-gradient(180deg, #FFFDF8, #FAF2E4);
  border: 1px solid rgba(174, 138, 78, .24);
  border-radius: 2px;
  box-shadow: var(--shadow-s);
}
.cd__n { font-size: clamp(23px, 6.6vw, 30px); font-weight: 600; color: var(--wine); line-height: 1.15; font-variant-numeric: tabular-nums }
.cd__l { font-size: 10.5px; letter-spacing: .18em; color: var(--ink-3) }
.cd__n.tick { animation: tick .5s var(--ease) }
@keyframes tick { 0% { transform: translateY(-4px); opacity: .35 } 100% { transform: none; opacity: 1 } }

.venue { max-width: 420px; margin-top: clamp(34px, 8vw, 50px); text-align: center }
.venue__icon { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold-soft); background: linear-gradient(150deg, #FFF9EE, #F6E8D2); box-shadow: var(--shadow-s) }
.venue__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round }
.venue__name { font-family: var(--ff); font-size: clamp(19px, 5.2vw, 23px); font-weight: 600; letter-spacing: .12em }
.venue__addr { font-size: 14px; line-height: 2.05; color: var(--ink-2); margin-top: 8px; letter-spacing: .06em }
.venue__addr span { color: var(--wine); font-family: var(--ff); letter-spacing: .1em }
.venue__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px }

.btn-line {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  background: transparent;
  color: var(--gold);
  font-family: var(--ff);
  font-size: 13.5px;
  letter-spacing: .16em;
  text-indent: .16em;
  transition: background .4s var(--ease), color .4s var(--ease), transform .3s var(--ease);
}
.btn-line:hover { background: var(--gold); color: #FFFDF8 }
.btn-line:active { transform: scale(.97) }
.btn-line--ghost { border-color: var(--gold-soft); color: var(--ink-2) }
.btn-line--ghost:hover { background: rgba(174, 138, 78, .12); color: var(--wine) }

.program { max-width: 420px; margin-top: clamp(38px, 9vw, 56px) }
.program__list { display: grid; gap: 2px; position: relative; margin-top: 6px }
.program__list li { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: start; padding: 15px 4px; border-bottom: 1px dashed rgba(174, 138, 78, .26) }
.program__list li:last-child { border-bottom: 0 }
.program__list li > span { font-size: 17px; color: var(--wine); letter-spacing: .02em; padding-top: 1px; text-align: right }
.p-t { font-family: var(--ff); font-size: 15.5px; font-weight: 600; letter-spacing: .1em; color: var(--ink) }
.p-d { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.85 }
.program__note { margin-top: 18px; text-align: center; font-size: 12.5px; line-height: 1.9; letter-spacing: .06em; color: var(--ink-3) }
.program__note b { font-family: var(--ff); font-weight: 600; color: var(--wine) }

/* ══════════════════════════ 照片牆 ══════════════════════════ */
.gallery { max-width: 1000px; margin: 0 auto }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(8px, 2.4vw, 14px) }
.ph {
  position: relative;
  margin: 0;
  padding: 6px;
  background: #FFFDF8;
  border: 1px solid rgba(174, 138, 78, .2);
  box-shadow: var(--shadow-s);
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 2px;
}
.ph picture, .ph img { display: block; width: 100%; height: 100% }
.ph img { aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease), filter 1s var(--ease); filter: saturate(1.03) }
.ph:hover img { transform: scale(1.06); filter: saturate(1.12) }
.ph--wide, .ph--tall { grid-column: span 2 }
.ph--wide img { aspect-ratio: 3 / 2 }
.ph--tall img { aspect-ratio: 3 / 2 }
.ph figcaption {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 22px 12px 9px;
  font-family: var(--ff);
  font-size: 12px;
  letter-spacing: .2em;
  color: #FBF3E7;
  background: linear-gradient(to top, rgba(41, 28, 22, .74), transparent);
  opacity: .92;
  transform: translateY(4px);
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.ph:hover figcaption { transform: none; opacity: 1 }
.gallery__hint { text-align: center; font-size: 11.5px; letter-spacing: .18em; color: var(--ink-3); margin-top: 16px }

.lb {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  padding: 20px;
  background: rgba(30, 21, 17, .95);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.lb.show { opacity: 1 }
.lb[hidden] { display: none }
.lb__fig { margin: 0; max-width: min(92vw, 720px); text-align: center }
.lb__fig img { max-height: 74svh; width: auto; margin: 0 auto; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); border: 5px solid #FFFDF8 }
.lb__fig figcaption { font-family: var(--ff); font-size: 13.5px; letter-spacing: .12em; color: rgba(251, 243, 231, .86); margin-top: 16px }
.lb__close, .lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220, 192, 138, .4);
  border-radius: 50%;
  background: rgba(255, 253, 248, .07);
  color: #F7EEE1;
  font-size: 22px;
  line-height: 1;
  transition: background .3s, transform .3s;
}
.lb__close { top: calc(env(safe-area-inset-top) + 16px); right: 16px; width: 42px; height: 42px }
.lb__nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 26px }
.lb__nav--prev { left: 10px }
.lb__nav--next { right: 10px }
.lb__close:hover, .lb__nav:hover { background: rgba(220, 192, 138, .26) }

/* ══════════════════════════ RSVP ══════════════════════════ */
.rsvp { padding-bottom: clamp(48px, 12vw, 80px) }
.rsvp-form { display: grid; gap: clamp(18px, 4.6vw, 24px); margin-top: 6px }
.rsvp-form[hidden] { display: none }
.field { border: 0; margin: 0; padding: 0 }
.lbl { display: block; font-family: var(--ff); font-size: 14px; font-weight: 500; letter-spacing: .14em; color: var(--ink); margin-bottom: 9px; padding: 0 }
.lbl b { color: var(--wine); font-weight: 400 }
.lbl__opt { font-size: 11px; color: var(--ink-3); letter-spacing: .1em; font-family: var(--ff-sans) }
.inp {
  width: 100%;
  padding: 13px 15px;
  min-height: 48px;
  border: 1px solid rgba(174, 138, 78, .3);
  border-radius: 3px;
  background: #FFFDF8;
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: .04em;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s;
  -webkit-appearance: none;
  appearance: none;
}
.inp::placeholder { color: #BCA894; font-size: 14.5px }
.inp:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(174, 138, 78, .15); background: #fff }
.inp--area { resize: vertical; line-height: 1.9; min-height: 88px }
.inp.bad { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(140, 58, 58, .12) }
.err { font-size: 12px; color: var(--wine); margin-top: 7px; letter-spacing: .06em }
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 8px; letter-spacing: .04em }

.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px }
.seg__opt { display: block; cursor: pointer }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px }
.seg__box {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 15px 8px 13px;
  border: 1px solid rgba(174, 138, 78, .3);
  border-radius: 3px;
  background: #FFFDF8;
  text-align: center;
  transition: all .4s var(--ease);
}
.seg__mark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  font-size: 12px;
  font-style: normal;
  color: var(--gold);
  margin-bottom: 5px;
  transition: all .4s var(--ease);
}
.seg__box b { font-family: var(--ff); font-size: 15px; font-weight: 600; letter-spacing: .12em; color: var(--ink) }
.seg__box small { font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em }
.seg__opt input:checked + .seg__box {
  border-color: var(--wine);
  background: linear-gradient(180deg, #FFF6F1, #FBEDE6);
  box-shadow: 0 10px 24px -14px rgba(140, 58, 58, .55);
}
.seg__opt input:checked + .seg__box .seg__mark { background: var(--wine); border-color: var(--wine); color: #FBF1E6 }
.seg__opt input:focus-visible + .seg__box { outline: 2px solid var(--gold); outline-offset: 2px }

.stepper { display: flex; align-items: center; gap: 10px }
.stepper__btn {
  width: 46px;
  height: 46px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: #FFFDF8;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  transition: background .3s var(--ease), transform .2s var(--ease), opacity .3s;
}
.stepper__btn:hover { background: #F6E8D2 }
.stepper__btn:active { transform: scale(.92) }
.stepper__btn[disabled] { opacity: .35; cursor: default }
.stepper__val { min-width: 34px; text-align: center; font-size: 27px; font-weight: 600; color: var(--wine) }
.stepper__unit { font-size: 13px; color: var(--ink-3); margin-right: auto }

.btn-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, #A2494A, #8C3A3A 45%, #7A3232);
  color: #FBF1E6;
  font-family: var(--ff);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  box-shadow: 0 18px 34px -18px rgba(140, 58, 58, .8);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), opacity .3s;
}
.btn-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, .3) 50%, transparent 66%);
  transform: translateX(-120%);
  animation: shine 4.2s ease-in-out infinite;
}
.btn-submit:active { transform: scale(.985) }
.btn-submit[disabled] { opacity: .6; pointer-events: none }
.form-status { min-height: 22px; font-size: 12.5px; text-align: center; letter-spacing: .08em; color: var(--wine); margin-top: -6px }
.form-status.ok { color: var(--gold) }

.rsvp-done { text-align: center; padding: clamp(18px, 5vw, 30px) 0 6px }
.rsvp-done__seal {
  width: 106px;
  height: 106px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(140, 58, 58, .7);
  border-radius: 50%;
  color: rgba(140, 58, 58, .9);
  background: rgba(140, 58, 58, .05);
  font-family: var(--ff);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-8deg);
  animation: stamp .95s var(--ease-out) both;
}
.rsvp-done__title { font-size: clamp(20px, 5.6vw, 25px); font-weight: 600; letter-spacing: .16em; color: var(--wine) }
.rsvp-done__txt { font-size: 14.5px; line-height: 2.1; color: var(--ink-2); margin: 12px 0 22px; letter-spacing: .04em }
.rsvp-done__txt b { font-family: var(--ff); color: var(--ink); font-weight: 600 }
.rsvp-foot { text-align: center; font-size: 11px; color: var(--ink-3); letter-spacing: .06em; margin-top: clamp(22px, 5vw, 30px); padding-top: 16px; border-top: 1px solid rgba(174, 138, 78, .16) }

/* ══════════════════════════ 頁尾 ══════════════════════════ */
.foot { padding: clamp(44px, 11vw, 70px) var(--gutter) calc(clamp(40px, 10vw, 64px) + env(safe-area-inset-bottom)); text-align: center; background: linear-gradient(180deg, transparent, rgba(140, 58, 58, .07)) }
.foot__mono { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 18px; border: 1px solid var(--gold-soft); border-radius: 50%; font-family: var(--ff); font-size: 20px; color: var(--wine); background: var(--wine-soft) }
.foot__names { font-family: var(--ff); font-size: clamp(20px, 5.6vw, 26px); font-weight: 600; letter-spacing: .2em; text-indent: .2em; color: var(--ink) }
.foot__line { font-family: var(--ff); font-size: 14px; letter-spacing: .5em; text-indent: .5em; color: var(--gold); margin-top: 10px }
.foot__meta { font-size: 12.5px; color: var(--ink-2); letter-spacing: .08em; margin-top: 6px }
.foot__thanks { font-family: var(--ff); font-size: 13px; letter-spacing: .14em; color: var(--ink-2); margin-top: 20px }

/* ══════════════════════════ toast ══════════════════════════ */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom) + 26px);
  transform: translate(-50%, 20px);
  z-index: 80;
  max-width: min(88vw, 380px);
  padding: 11px 22px;
  border-radius: 100px;
  background: rgba(59, 46, 39, .94);
  color: #FBF3E7;
  font-size: 13px;
  letter-spacing: .1em;
  text-align: center;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) }
.toast[hidden] { display: none }

/* ══════════════════════════ 中以上螢幕 ══════════════════════════ */
@media (min-width: 720px) {
  .vertical {
    writing-mode: vertical-rl;
    text-align: center;
    height: clamp(320px, 52vw, 460px);
    padding: 0 4px;
  }
  .v-line { font-size: clamp(16px, 2.5vw, 18px); line-height: 1.95; letter-spacing: .2em; text-indent: 0 }
  .v-open, .v-gap { letter-spacing: .42em; text-indent: 0 }
  .v-end { letter-spacing: .5em; text-indent: 0 }
  .v-strong { letter-spacing: .28em; text-indent: 0 }
  .formal .paper-card { max-width: 700px; padding: clamp(34px, 5vw, 54px) clamp(28px, 4vw, 48px) }
}

@media (min-width: 760px) {
  .hero__names { gap: 8px 22px }
  .couple { grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(34px, 5vw, 62px) }
  .couple__body { text-align: left }
  .couple .sec-title--left, .couple .prose { text-align: left }
  .couple .eyebrow { text-indent: 0 }
  .grid { grid-template-columns: repeat(3, 1fr) }
  .ph--wide { grid-column: span 2 }
  .ph img, .ph--wide img, .ph--tall img { aspect-ratio: 4 / 5 }
  .ph--wide img { aspect-ratio: 16 / 10 }
  .when { padding-left: max(var(--gutter), calc(50vw - 300px)); padding-right: max(var(--gutter), calc(50vw - 300px)) }
  .venue__btns { gap: 10px }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr) }
  .ph--wide { grid-column: span 2 }
  .ph--tall { grid-column: span 2 }
  .rsvp .paper-card { max-width: 620px }
}

/* ══════════════════════════ 無動效偏好 ══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important }
  .reveal { opacity: 1; transform: none }
  .ken { animation: none; transform: scale(1.02) }
  #petals { display: none }
  .seal { opacity: 1 }
}
