:root{
  --paper:#f4f3ef; --paper2:#eceae3; --ink:#1a1a18; --muted:#6f7268;
  --sage:#68745f; --line:#d9d6cc; --white:#fff;
  --serif:"Cormorant Garamond","Noto Serif TC",serif;
  --serif-tc:"LXGW WenKai TC","Noto Serif TC","Cormorant Garamond",serif;
  --sans:"Noto Sans TC",system-ui,-apple-system,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);font-weight:300;line-height:1.75;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit}
h2{font-family:var(--serif-tc);font-weight:500;font-size:clamp(2rem,4.5vw,3.2rem);line-height:1.2;letter-spacing:.02em}
.section-label{font-size:.72rem;letter-spacing:.42em;text-transform:uppercase;color:var(--sage);margin-bottom:1rem;font-weight:500}
.muted{color:var(--muted)} .center{text-align:center}

/* header */
header{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;align-items:center;gap:1.5rem;
  padding:1rem clamp(1rem,4vw,3rem);transition:background .3s,box-shadow .3s;color:#fff}
header.scrolled{background:rgba(244,243,239,.96);color:var(--ink);box-shadow:0 1px 0 var(--line);backdrop-filter:blur(8px)}
.brand{font-family:var(--serif);font-size:1.5rem;letter-spacing:.18em;text-decoration:none;font-weight:600}
.brand span{color:#c9c2ae} header.scrolled .brand span{color:var(--sage)}
nav{display:flex;gap:1.6rem;margin-left:auto}
nav a{text-decoration:none;font-size:.86rem;letter-spacing:.14em}
nav a:hover{text-decoration:underline;text-underline-offset:5px}
.lang-switch{display:flex;border:1px solid currentColor;border-radius:999px;overflow:hidden}
.lang-switch button{background:transparent;border:0;color:inherit;padding:.32rem .75rem;cursor:pointer;font:inherit;font-size:.8rem}
.lang-switch button.active{background:var(--ink);color:#fff}
header:not(.scrolled) .lang-switch button.active{background:#fff;color:var(--ink)}
.menu-btn{display:none;background:none;border:0;color:inherit;font-size:1.4rem;cursor:pointer;margin-left:auto}

/* hero */
.hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:#222}
.hero picture,.hero picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:68% 22%}
.hero-shade{position:absolute;inset:0;background:linear-gradient(to top,rgba(12,14,10,.72) 0%,rgba(12,14,10,.18) 46%,rgba(12,14,10,.22) 100%)}
.hero-text{position:relative;z-index:2;color:#fff;padding:7rem clamp(1.2rem,5vw,4rem) 5.5rem;max-width:900px}
.eyebrow{letter-spacing:.38em;font-size:.72rem;font-weight:500}
.hero-zh-names{font-family:var(--serif-tc);letter-spacing:.35em;margin-top:1.2rem;font-size:.95rem}
.hero-text h1{font-family:var(--serif);font-weight:500;font-size:clamp(4rem,13vw,9.5rem);line-height:.95;letter-spacing:.01em}
.hero-text h1 em,.closing-text em{font-style:italic;font-weight:400;color:#d8d2bd}
.hero-sub{font-family:var(--serif-tc);font-size:clamp(1.05rem,2.4vw,1.35rem);margin-top:1rem}
.hero-meta{margin:1.4rem 0 2rem;font-size:.92rem;letter-spacing:.12em;display:flex;flex-wrap:wrap;gap:.6rem}
.btn-light,.btn-dark,.btn-outline,.btn-disabled{display:inline-block;text-decoration:none;padding:.85rem 1.9rem;letter-spacing:.18em;font-size:.85rem;border-radius:2px}
.btn-light{border:1px solid #fff;color:#fff}.btn-light:hover{background:#fff;color:var(--ink)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem}
.btn-light.solid{background:#fff;color:var(--ink)}
.btn-light.solid:hover{background:transparent;color:#fff}
.btn-dark{background:var(--ink);color:#fff}.btn-outline{border:1px solid var(--ink)}
.btn-disabled{border:1px solid var(--line);background:var(--paper2);color:var(--muted);cursor:not-allowed}
.scroll-cue{position:absolute;right:2rem;bottom:2rem;z-index:2;width:1px;height:64px;background:rgba(255,255,255,.35);overflow:hidden}
.scroll-cue span{display:block;width:100%;height:24px;background:#fff;animation:cue 2s infinite}
@keyframes cue{0%{transform:translateY(-24px)}100%{transform:translateY(64px)}}

/* countdown */
.countdown{padding:3.5rem 1rem;text-align:center;border-bottom:1px solid var(--line)}
.count-grid{display:flex;justify-content:center;gap:clamp(1.2rem,6vw,4.5rem);margin-top:1rem}
.count-grid strong{font-family:var(--serif);font-size:clamp(2.4rem,6vw,4rem);font-weight:500;display:block;line-height:1}
.count-grid small{letter-spacing:.3em;color:var(--muted);font-size:.72rem}

/* sections */
.section{padding:clamp(4rem,9vw,7.5rem) clamp(1.2rem,6vw,5rem);max-width:1280px;margin:0 auto}
.invitation{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,5rem);align-items:stretch}
.inv-photo img{width:100%;height:100%;object-fit:cover;object-position:32% center}
.inv-photo picture{display:block;width:100%;height:100%}
.inv-side-photo img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.inv-wide{grid-column:1/-1}
.inv-wide img{width:100%;aspect-ratio:16/10;object-fit:cover;object-position:center 35%}
.inv-text p{max-width:34rem}
.names-serif{font-family:var(--serif-tc);font-size:1.35rem;margin:1.2rem 0}
.names-serif span{font-family:var(--serif);font-style:italic;color:var(--sage)}
.inv-details{margin:2rem 0;border-top:1px solid var(--line)}
.inv-details div{display:grid;grid-template-columns:90px 1fr;gap:1rem;padding:.85rem 0;border-bottom:1px solid var(--line)}
.inv-details dt{color:var(--sage);font-size:.82rem;letter-spacing:.2em;padding-top:.2rem}
.inv-side-photo{display:block;width:min(380px,100%);aspect-ratio:3/4;margin-top:1rem}

/* schedule */
.schedule-head{max-width:640px}
.timeline{margin-top:3rem;border-left:1px solid var(--line);max-width:760px}
.tl-item{display:grid;grid-template-columns:110px 1fr;gap:1.5rem;padding:0 0 2.4rem 2rem;position:relative}
.tl-item::before{content:"";position:absolute;left:-5px;top:.55rem;width:9px;height:9px;border-radius:50%;background:var(--sage)}
.tl-item time{font-family:var(--serif);font-size:1.7rem;line-height:1.2}
.tl-item h3{font-family:var(--serif-tc);font-weight:500;font-size:1.25rem;margin-bottom:.3rem}
.muted-item{opacity:.62}.muted-item::before{background:var(--line)}
.schedule-photo img{width:100%;max-height:520px;object-fit:cover;object-position:center 35%;margin-top:1rem}

/* gallery */
.gallery-grid{columns:3;column-gap:1rem;margin-top:2.5rem}
.gallery-grid img{width:100%;margin-bottom:1rem;cursor:zoom-in;transition:opacity .25s}
.gallery-grid img:hover{opacity:.88}
.gallery .muted{margin-top:1rem}

/* venue */
.venue-en{letter-spacing:.35em;color:var(--muted);font-size:.75rem;margin:.6rem 0 2.5rem}
.venue-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
.venue-grid>div>img{width:100%;aspect-ratio:4/3;object-fit:cover}
.venue-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.5rem}
.transport article{padding:1.4rem 0;border-bottom:1px solid var(--line)}
.transport article:first-child{padding-top:0}
.transport h3{font-family:var(--serif-tc);font-weight:500;margin-bottom:.35rem}
.map-wrap{margin-top:1.6rem;border:1px solid var(--line)}
.map-wrap iframe{width:100%;height:320px;border:0;display:block;filter:grayscale(.25)}

/* rsvp / closing / footer */
.rsvp{text-align:center}
.rsvp p{max-width:560px;margin:0 auto 1.8rem;color:var(--muted)}
.closing{position:relative;min-height:78svh;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.closing img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%}
.closing-shade{position:absolute;inset:0;background:rgba(20,22,18,.42)}
.closing-text{position:relative;color:#fff;padding:2rem}
.closing-text p:first-child{font-family:var(--serif-tc);letter-spacing:.3em}
.closing-text h2{font-family:var(--serif);font-size:clamp(3rem,9vw,6rem);color:#fff}
footer{text-align:center;padding:3rem 1rem;color:var(--muted);font-size:.88rem;letter-spacing:.12em}
footer p:first-child{font-family:var(--serif);font-size:1.15rem;color:var(--ink);letter-spacing:.2em}

/* lightbox */
.lightbox{position:fixed;inset:0;z-index:100;background:rgba(10,10,10,.94);display:flex;align-items:center;justify-content:center}
.lightbox[hidden]{display:none}
.lightbox img{max-width:94vw;max-height:90vh;object-fit:contain}
.lightbox button{position:absolute;top:1rem;right:1.2rem;background:none;border:0;color:#fff;font-size:1.6rem;cursor:pointer}

/* reveal */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease,transform .8s ease}
.reveal.visible{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none} html{scroll-behavior:auto}}

/* mobile */
@media(max-width:820px){
  nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;padding:.5rem 1.2rem 1rem;background:rgba(244,243,239,.98);color:var(--ink)}
  nav.open{display:flex} nav a{padding:.7rem 0;border-bottom:1px solid var(--line)}
  .menu-btn{display:block}.lang-switch{margin-left:0}
  .invitation,.venue-grid{grid-template-columns:1fr}
  .closing-text{transform:translateY(11vh)}
  .inv-photo picture{height:auto}
  .inv-photo img{aspect-ratio:4/3;height:auto}
  .inv-wide img{aspect-ratio:4/3}
  .gallery-grid{columns:2}
  .tl-item{grid-template-columns:82px 1fr;padding-left:1.4rem;gap:1rem}
  .hero-text{padding-bottom:6rem}
  .scroll-cue{display:none}
}
@media(max-width:480px){.gallery-grid{columns:2;column-gap:.6rem}.gallery-grid img{margin-bottom:.6rem}
  .eyebrow{letter-spacing:.22em;font-size:.66rem}
  .hero-zh-names{letter-spacing:.22em;font-size:.88rem}
  .hero-meta{font-size:.82rem;letter-spacing:.06em}
  .hero-text h1{font-size:clamp(3.2rem,17vw,4.5rem)}}

/* --- Hero: full-bleed SMV00495, title top-left over the empty wall (never over faces) --- */
.hero{align-items:flex-start;background:#e9e6dd}
.hero-shade{background:linear-gradient(to bottom,rgba(250,248,240,.82) 0%,rgba(250,248,240,.5) 34%,rgba(250,248,240,.06) 60%,rgba(30,30,25,.08) 100%)}
.hero-text{color:var(--ink);padding-top:clamp(5rem,11vh,7.5rem);text-shadow:0 0 14px rgba(252,250,243,.95),0 0 5px rgba(252,250,243,.9),0 1px 2px rgba(252,250,243,.85)}
.hero-text h1{font-size:clamp(3.6rem,8.5vw,7rem)}
.hero-text h1 em{color:var(--sage)}
.hero-text .eyebrow,.hero-text .hero-zh-names{color:#45483e}
.hero .btn-light{border-color:var(--ink);color:var(--ink)}
.hero .btn-light:hover{background:var(--ink);color:#fff}
.hero .btn-light.solid{background:var(--ink);color:#fff}
.hero .btn-light.solid:hover{background:transparent;color:var(--ink)}
.scroll-cue{background:rgba(0,0,0,.16)} .scroll-cue span{background:var(--ink)}
header:not(.scrolled){color:var(--ink)}
header:not(.scrolled) .lang-switch button.active{background:var(--ink);color:#fff}
@media(max-width:820px){
  .hero-text{padding-top:4.4rem;padding-bottom:2rem;flex:1;display:flex;flex-direction:column;min-height:100svh}
  .hero-text .hero-sub{margin-top:.55rem}
  .hero-meta{margin:.9rem 0 1.15rem}
  .hero-zh-names{margin-top:.8rem}
  .hero-actions{margin-top:auto}
  .hero picture img{object-position:55% 22%}
}
