:root {
  --ink: #222;
  --muted: #777;
  --line: #eaeaea;
  --bg: #fff;
  --soft: #f7f6f4;
  --serif-en: 'Cormorant Garamond', serif;
  --serif-zh: 'Noto Serif TC', serif;
  --gutter: 6vw;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: 'Noto Sans TC', sans-serif; font-weight: 300;
  line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gutter); background: rgba(255,255,255,.94); backdrop-filter: blur(6px); }
.logo { font-family: var(--serif-en); font-size: 24px; letter-spacing: .14em; line-height: 1.1; }
.logo small { display: block; font-family: var(--serif-zh); font-size: 11px; letter-spacing: .5em; color: var(--muted); }
.nav ul { display: flex; gap: 32px; list-style: none; font-size: 14px; letter-spacing: .12em; }
.nav ul a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav ul a:hover, .nav ul a.on { border-color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: 14px; letter-spacing: .1em; cursor: pointer; }

/* hero */
.hero { position: relative; margin: 0 var(--gutter); height: 76vh; min-height: 420px; overflow: hidden; background: var(--soft); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity 1.6s ease; }
.hero img.on { opacity: 1; }
.hero .cap { position: absolute; left: 0; bottom: -1px; z-index: 2; background: var(--bg); padding: 26px 40px 0 0; max-width: 520px; }
.hero h1 { font-family: var(--serif-zh); font-weight: 500; font-size: clamp(24px, 3.2vw, 40px); letter-spacing: .12em; line-height: 1.4; }
.hero .cap p { font-family: var(--serif-en); font-style: italic; font-size: 18px; color: var(--muted); }

/* sections */
section { padding: 110px var(--gutter) 0; }
.head { text-align: center; margin-bottom: 56px; }
.head h2 { font-family: var(--serif-en); font-weight: 400; font-size: 34px; letter-spacing: .24em; line-height: 1.2; }
.head p { font-family: var(--serif-zh); color: var(--muted); font-size: 14px; letter-spacing: .3em; margin-top: 8px; }
.lead { max-width: 640px; margin: 0 auto; text-align: center; color: #555; font-size: 15px; line-height: 2.2; }

/* work cards */
/* masonry (columns built in app.js) so every cover shows uncropped at its own ratio */
.works, .gallery { display: flex; align-items: flex-start; }
.works { gap: 28px; }
.works .col, .gallery .col { flex: 1; min-width: 0; }
.card { display: block; margin-bottom: 48px; }
.card .ph { overflow: hidden; background: var(--soft); }
.card img { width: 100%; height: auto; transition: transform 1.2s ease; }
.card:hover img { transform: scale(1.03); }
.card h3 { font-family: var(--serif-zh); font-weight: 500; font-size: 18px; letter-spacing: .12em; margin-top: 16px; }
.card .meta { font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.more { text-align: center; margin-top: 64px; }
.btn { display: inline-block; padding: 12px 40px; border: 1px solid var(--ink); font-size: 14px; letter-spacing: .2em; transition: background .25s, color .25s; }
.btn:hover { background: var(--ink); color: #fff; }

/* about */
.about { display: grid; grid-template-columns: 5fr 6fr; gap: 6vw; align-items: center; }
.about img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about .head { text-align: left; margin-bottom: 28px; }
.about p { color: #555; font-size: 15px; line-height: 2.2; margin-bottom: 16px; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc { border: 1px solid var(--line); padding: 40px 32px; }
.svc h3 { font-family: var(--serif-zh); font-weight: 500; font-size: 19px; letter-spacing: .14em; }
.svc .en { font-family: var(--serif-en); font-style: italic; color: var(--muted); }
.svc ul { list-style: none; margin: 22px 0 0; font-size: 14px; color: #555; }
.svc li { padding: 8px 0; border-top: 1px solid var(--line); }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }

/* contact */
.contact { text-align: center; padding-bottom: 110px; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
footer { border-top: 1px solid var(--line); padding: 32px var(--gutter); text-align: center; font-size: 12px; color: #999; letter-spacing: .1em; }

/* wedding page */
.w-head { padding: 70px var(--gutter) 48px; text-align: center; }
.w-head .date { font-family: var(--serif-en); letter-spacing: .3em; color: var(--muted); }
.w-head h1 { font-family: var(--serif-zh); font-weight: 500; font-size: clamp(26px, 3.4vw, 42px); letter-spacing: .14em; }
.w-head .venue { font-size: 14px; letter-spacing: .2em; color: #555; }
.gallery { gap: 12px; padding: 0 var(--gutter); }
.gallery a { display: block; margin-bottom: 12px; background: var(--soft); cursor: zoom-in; }
.gallery img { width: 100%; height: auto; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 80px var(--gutter) 100px; font-size: 14px; letter-spacing: .1em; }
.pager a { color: #555; }
.pager a:hover { color: var(--ink); }
.pager b { display: block; font-family: var(--serif-zh); font-weight: 500; color: var(--ink); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(255,255,255,.97); display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: calc(100vw - 160px); max-height: calc(100vh - 100px); object-fit: contain; user-select: none; }
.lb button { position: absolute; background: none; border: 0; cursor: pointer; color: var(--ink); font-family: var(--serif-en); font-size: 40px; line-height: 1; padding: 16px; }
.lb .x { top: 12px; right: 18px; font-size: 34px; }
.lb .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb .count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--muted); }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .menu-btn { display: block; }
  .nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav ul.open { display: flex; }
  .nav ul a { display: block; padding: 12px 0; }
  .hero { height: auto; min-height: 0; aspect-ratio: 3 / 2; }  /* landscape on phones so faces at the sides aren't cropped */
  .hero .cap { padding: 18px 24px 0 0; }
  section { padding-top: 80px; }
  .card { margin-bottom: 40px; }
  .services { grid-template-columns: 1fr; gap: 40px; }
  .lb img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .lb .prev, .lb .next { top: auto; bottom: 4px; transform: none; }
}

/* visually hidden, kept for search engines and screen readers */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.about .who { font-family: var(--serif-zh); font-weight: 500; color: var(--ink); letter-spacing: .14em; margin-bottom: 22px; }
.about .sign { font-family: var(--serif-zh); color: var(--ink); margin-top: 8px; }
.services.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .services.two { grid-template-columns: 1fr; } }
.services.two { max-width: 900px; }
.svc h4 { font-family: var(--serif-zh); font-weight: 500; font-size: 15px; letter-spacing: .14em; margin-top: 28px; }
.svc h4 + ul { margin-top: 10px; }
.logo .sep { margin: 0 .5em; color: var(--muted); font-weight: 300; }
.logo .tag { font-family: var(--serif-zh); font-size: .62em; letter-spacing: .2em; vertical-align: .12em; }
@media (max-width: 640px) { .logo { font-size: 20px; } }
