@font-face {
  font-family: "KM Numerals";
  src: url("./assets/linux-libertine-numerals-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 599;
  font-display: swap;
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: "KM Numerals";
  src: url("./assets/linux-libertine-numerals-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0030-0039;
}

@font-face {
  font-family: "KM Ampersand 04";
  src: url("./assets/wedding-ampersand-04.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0026;
}

:root {
  --navy: #0f2b4a;
  --navy-soft: #183d61;
  --ink: #25374d;
  --body: #4d5660;
  --gold: #b58b50;
  --gold-soft: #d2b27b;
  --paper: #f6f3ed;
  --paper-bright: #fbfaf7;
  --line: rgba(181, 139, 80, 0.55);
  --nav-height: 78px;
  --serif: "KM Numerals", "Noto Serif TC", "Songti TC", serif;
  --roman: "KM Numerals", "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
main { display: block; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--nav-height);
  padding: 0 clamp(24px, 4.5vw, 82px);
  border-bottom: 1px solid rgba(19, 43, 68, 0.08);
  background: rgba(249, 247, 243, 0.94);
  box-shadow: 0 7px 25px rgba(17, 39, 62, 0.03);
  backdrop-filter: blur(13px);
}

.brand {
  flex: 0 0 auto;
  color: var(--navy);
  font-family: var(--roman);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(26px, 3.8vw, 70px);
}
.desktop-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 16px;
  letter-spacing: 0.24em;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav a::after {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a.active::after { width: 34px; }

.menu-button,
.mobile-nav { display: none; }

.chapter {
  position: relative;
  min-height: 100svh;
  margin: 0;
  padding-top: 0;
  overflow: hidden;
  scroll-margin-top: 0;
}

.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.8), transparent 30%),
    repeating-linear-gradient(8deg, rgba(20,43,68,0.012) 0, rgba(20,43,68,0.012) 1px, transparent 1px, transparent 4px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--navy);
  font-family: var(--roman);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.46em;
  line-height: 1.3;
}
.eyebrow.gold { color: var(--gold); }
.eyebrow.light { color: #fff; }

h1, h2, h3, p, figure, blockquote { margin-top: 0; }
h1, h2, h3 { font-weight: 500; }
h2 {
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(38px, 3.7vw, 67px);
  letter-spacing: 0.07em;
  line-height: 1.3;
}
.section-lead {
  color: var(--body);
  font-size: clamp(16px, 1.28vw, 21px);
  letter-spacing: 0.12em;
}
.gold-rule {
  display: block;
  width: 54px;
  height: 1px;
  margin: 26px 0 30px;
  background: var(--gold);
}
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 9px 34px;
  border: 1px solid var(--gold);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--roman);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.outline-button:hover { color: #fff; background: var(--navy); }

/* 01 — Home */
.hero { background: #0b1f34; }
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  object-fit: cover;
  object-position: center;
  animation: slow-focus 13s ease-out both;
}
.hero-shade {
  background:
    linear-gradient(180deg, rgba(10, 28, 47, 0.03) 25%, rgba(7, 25, 45, 0.3) 59%, rgba(5, 22, 40, 0.94) 100%),
    linear-gradient(90deg, rgba(6,22,40,0.22), transparent 55%);
}
.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(34px, 6.2vw, 116px);
  bottom: clamp(80px, 10vh, 112px);
  color: #fff;
}
.hero h1 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--roman);
  font-size: clamp(72px, 8.3vw, 148px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.hero-date {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #e4be82;
  font-family: var(--roman);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.35em;
}
.hero-date span { width: 72px; height: 2px; background: #e4be82; }
.hero-vow {
  margin: 24px 0 0;
  color: #eee7de;
  font-size: clamp(17px, 1.45vw, 24px);
  letter-spacing: 0.22em;
}
@keyframes slow-focus { from { transform: scale(1.035); } to { transform: scale(1); } }

/* 02 — Countdown */
.countdown {
  display: grid;
  place-items: center;
  background: #d3c1ad;
}
.countdown-image,
.countdown-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.countdown-image { object-fit: cover; object-position: center 16%; }
.countdown-veil {
  background: rgba(255,255,255,0.56);
}
.countdown-panel {
  position: relative;
  z-index: 2;
  width: min(82vw, 1280px);
  margin: calc(var(--nav-height) * 0.55) auto 0;
  padding: 0;
  text-align: center;
}
.countdown-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(34px, 3vw, 54px);
  white-space: nowrap;
}
.countdown-panel .section-lead { margin-bottom: clamp(28px, 4vh, 44px); }
.countdown-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(26px, 3vw, 54px);
  padding: clamp(28px, 3.8vh, 46px) clamp(28px, 3.6vw, 58px);
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 22px;
  background: rgba(250, 248, 245, 0.78);
  box-shadow: 0 24px 70px rgba(22, 41, 61, 0.12);
  backdrop-filter: blur(11px);
}
.countdown-group { min-width: 0; }
.countdown-label {
  margin: 0 0 24px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
  font-family: var(--roman);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.36em;
}
.countdown-label i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 11px 3px 6px;
  border-radius: 50%;
  background: var(--gold);
}
.countdown-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.countdown-values div { min-width: 0; }
.countdown-values strong {
  display: block;
  color: var(--navy);
  font-family: var(--roman);
  font-size: clamp(49px, 4.4vw, 76px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}
.countdown-values span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.22em;
}
.countdown-separator { width: 1px; height: 100%; margin: 0; background: var(--line); }

/* 03 — Story */
.story { padding: calc(var(--nav-height) + 50px) clamp(36px, 5.6vw, 104px) 92px; }
.story-heading { position: relative; z-index: 3; max-width: 430px; }
.story-heading h2 { margin-bottom: 0; }
.story-watermark {
  position: absolute;
  z-index: 0;
  top: 28%;
  color: rgba(21, 47, 75, 0.055);
  font-family: var(--roman);
  font-size: clamp(260px, 33vw, 600px);
  line-height: 0.7;
  user-select: none;
}
.story-k { left: 3%; }
.story-m { right: -1%; }
.story-grid {
  position: absolute;
  z-index: 2;
  top: 155px;
  right: 6vw;
  bottom: 135px;
  left: 12.5vw;
  display: grid;
  grid-template-columns: minmax(150px, .85fr) minmax(220px, 1.05fr) 78px minmax(220px, 1.05fr) minmax(150px, .85fr);
  align-items: center;
  gap: clamp(18px, 2.2vw, 40px);
}
.portrait-block { display: contents; }
.portrait-block figure {
  height: min(57vh, 570px);
  margin: 0;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(28,45,61,0.08);
}
.portrait-block img { width: 100%; height: 100%; object-fit: cover; }
.portrait-kuan img { object-position: 51% 44%; }
.portrait-min img {
  object-position: 82% 52%;
  transform: translateY(-5.6%) scale(1.28);
  transform-origin: 50% 56%;
}
.portrait-copy {
  align-self: center;
  color: var(--body);
  font-size: clamp(14px, 1.02vw, 18px);
  letter-spacing: 0.08em;
}
.portrait-copy .mini-title {
  width: max-content;
  margin-bottom: 13px;
  padding-top: 15px;
  border-top: 1px solid var(--gold);
  color: var(--navy);
  font-family: var(--roman);
  font-weight: 600;
  letter-spacing: 0.38em;
}
.portrait-copy h3 {
  margin-top: 36px;
  color: var(--navy);
  font-size: clamp(20px, 1.45vw, 27px);
  letter-spacing: 0.08em;
}
.portrait-kuan .portrait-copy { text-align: right; }
.portrait-kuan .mini-title { margin-left: auto; }
.story-ampersand {
  color: #d8c58f;
  font-family: "KM Ampersand 04", var(--roman);
  font-size: 72px;
  font-style: italic;
  text-align: center;
}
.story-quote {
  position: absolute;
  z-index: 4;
  right: 19vw;
  bottom: 36px;
  width: min(700px, 52vw);
  margin: 0;
  color: var(--navy);
  font-size: clamp(17px, 1.5vw, 25px);
  letter-spacing: 0.16em;
  line-height: 1.9;
  text-align: center;
}

/* 04 — Ceremony */
.ceremony { padding: calc(var(--nav-height) + 44px) clamp(42px, 7.2vw, 130px) 62px; }
.ceremony-layout {
  display: grid;
  grid-template-columns: 1.16fr 1px 0.84fr;
  gap: clamp(48px, 6vw, 105px);
  min-height: calc(100svh - var(--nav-height) - 108px);
}
.ceremony-layout::before {
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 92%;
  align-self: center;
  content: "";
  background: var(--gold-soft);
}
.ceremony-intro { grid-column: 1; grid-row: 1; }
.ceremony-intro h2 { max-width: 770px; }
.ceremony-copy,
.ceremony-invite {
  color: var(--body);
  font-size: clamp(17px, 1.25vw, 22px);
  letter-spacing: 0.12em;
  line-height: 1.9;
}
.ceremony-invite { margin: 20px 0 26px; }
.ceremony-photo {
  width: min(100%, 700px);
  height: min(35vh, 340px);
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}
.ceremony-photo img { width: 100%; height: 100%; object-fit: cover; }
.event-card {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
  max-width: 620px;
  align-self: center;
  justify-self: center;
  padding: clamp(28px, 3.2vw, 52px) clamp(30px, 4vw, 66px);
  border: 1px solid var(--gold-soft);
  background: rgba(251,250,247,0.72);
  box-shadow: 0 16px 35px rgba(28,44,58,0.12);
  text-align: center;
}
.event-date-number {
  color: var(--navy);
  font-family: var(--roman);
  font-size: clamp(76px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.8;
}
.event-month {
  margin: 16px 0;
  color: var(--navy);
  font-family: var(--roman);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.29em;
  line-height: 1.7;
}
.event-rule { display: block; width: 160px; height: 1px; margin: 14px auto 24px; background: var(--gold); }
.event-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(25px, 2.2vw, 37px);
  letter-spacing: 0.2em;
}
.event-time,
.event-card address {
  margin: 8px 0;
  color: var(--navy);
  font-size: clamp(14px, 1.1vw, 19px);
  font-style: normal;
  letter-spacing: 0.14em;
}
.map-preview { display: block; margin: 18px 0 14px; overflow: hidden; }
.map-preview img { width: 100%; aspect-ratio: 1.75; object-fit: cover; filter: saturate(0.66) contrast(0.94); transition: transform 0.35s ease; }
.map-preview:hover img { transform: scale(1.025); }

/* 05 — Dinner */
.dinner { padding: calc(var(--nav-height) + 66px) clamp(36px, 4vw, 74px) 72px 0; }
.dinner-layout {
  display: grid;
  grid-template-columns: minmax(520px, 0.96fr) 1.04fr;
  align-items: center;
  min-height: calc(100svh - var(--nav-height) - 138px);
  gap: clamp(65px, 8vw, 145px);
}
.dinner-photo {
  position: relative;
  width: 100%;
  height: min(64vh, 615px);
  margin: 0;
  padding: 61px 0 55px clamp(36px, 3.5vw, 65px);
}
.dinner-photo::before {
  position: absolute;
  z-index: 0;
  inset: 0 28% 0 0;
  content: "";
  background: linear-gradient(145deg, #163d62, #0f2c4b);
}
.dinner-photo::after {
  position: absolute;
  z-index: 2;
  right: 42%;
  bottom: -38px;
  width: 1px;
  height: 72px;
  content: "";
  background: var(--gold);
}
.dinner-photo img {
  position: relative;
  z-index: 1;
  width: 87%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 20px 40px rgba(17,41,63,0.12);
}
.dinner-content { padding-right: clamp(0px, 2vw, 35px); }
.dinner-content h2 { max-width: 760px; }
.dinner-details {
  display: grid;
  grid-template-columns: minmax(205px, 0.8fr) minmax(210px, 1fr) minmax(180px, 0.8fr);
  align-items: stretch;
  gap: 20px;
  margin-top: 54px;
}
.dinner-date,
.venue-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dinner-date {
  display: grid;
  grid-template-columns: 63px 1fr;
  align-content: center;
  column-gap: 13px;
}
.dinner-date strong {
  grid-row: 1;
  color: var(--navy);
  font-family: var(--roman);
  font-size: 71px;
  font-weight: 400;
  line-height: 0.9;
}
.dinner-date p {
  grid-row: 1;
  align-self: center;
  margin: 0;
  color: var(--navy);
  font-family: var(--roman);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
}
.dinner-date p span { letter-spacing: 0.26em; }
.dinner-date time,
.dinner-date b {
  grid-column: 1 / -1;
  padding: 18px 6px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.venue-photo { margin: 0; overflow: hidden; }
.venue-photo img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.venue-copy { padding: 22px 10px; }
.venue-copy h3 { margin-bottom: 18px; color: var(--navy); font-size: 20px; letter-spacing: 0.08em; }
.venue-copy > span { width: 44px; height: 1px; margin-bottom: 18px; background: var(--gold); }
.venue-copy address { color: var(--navy); font-size: 15px; font-style: normal; letter-spacing: 0.1em; }
.venue-copy a,
.hualien-details a { width: max-content; margin-top: 12px; color: var(--gold); font-size: 14px; letter-spacing: 0.16em; text-underline-offset: 5px; }

/* 06 — Hualien */
.hualien { padding-bottom: 52px; }
.hualien-banner {
  width: 100%;
  height: clamp(230px, 37vh, 370px);
  margin: 0;
  overflow: hidden;
}
.hualien-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hualien-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.04fr 0.62fr 1fr;
  align-items: center;
  gap: clamp(36px, 4.8vw, 80px);
  padding: 38px clamp(44px, 7vw, 128px) 74px;
}
.hualien-copy { padding-right: 24px; }
.hualien-copy h2 { font-size: clamp(38px, 3.3vw, 59px); }
.hualien-copy > p:last-child { color: var(--body); font-size: clamp(15px, 1.12vw, 19px); letter-spacing: 0.08em; }
.hualien-details {
  min-width: 265px;
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid var(--gold-soft);
}
.compact-date { display: flex; align-items: center; gap: 19px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.compact-date strong { color: var(--navy); font-family: var(--roman); font-size: 68px; font-weight: 400; line-height: 1; }
.compact-date p { margin: 0; color: var(--navy); font-family: var(--roman); font-size: 14px; font-weight: 600; letter-spacing: 0.12em; line-height: 1.45; }
.compact-date span { letter-spacing: 0.24em; }
.hualien-details time,
.hualien-details b {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.hualien-details h3 { margin: 18px 0 5px; color: var(--navy-soft); font-size: 20px; letter-spacing: 0.1em; }
.hualien-details address { color: var(--body); font-size: 14px; font-style: normal; letter-spacing: 0.08em; }
.hualien-photo {
  height: min(38vh, 370px);
  margin: 0;
  padding: 12px;
  background: #fff;
  box-shadow: 0 13px 34px rgba(20,42,63,0.11);
  transform: rotate(0.7deg);
}
.hualien-photo img { width: 100%; height: 100%; object-fit: cover; }
.hualien-watermark {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: -34px;
  color: rgba(24,61,97,0.065);
  font-family: var(--roman);
  font-size: clamp(100px, 14vw, 250px);
  line-height: 1;
  pointer-events: none;
}

/* 07 — LINE */
.line { min-height: 100svh; background: #b4d7e7; }
.line-background,
.line-wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.line-background { object-fit: cover; object-position: center 50%; }
.line-wash {
  background:
    linear-gradient(180deg, rgba(249,247,242,0.8) 5%, rgba(249,247,242,0.58) 24%, rgba(249,247,242,0) 44%),
    linear-gradient(180deg, rgba(15,43,74,0) 68%, rgba(15,43,74,0.93) 100%);
}
.line-intro {
  position: absolute;
  z-index: 2;
  top: calc(var(--nav-height) + clamp(12px, 2.2vh, 24px));
  left: 50%;
  width: min(660px, 58vw);
  text-align: center;
  transform: translateX(-50%);
}
.line-logo {
  width: clamp(106px, 8vw, 148px);
  height: auto;
  margin: 0 auto 6px;
  overflow: visible;
  pointer-events: none;
  transform: translateY(-12px);
}
.line-logo img { width: 100%; max-width: 100%; }
.line-copy .eyebrow { margin-bottom: 6px; color: var(--navy); font-size: clamp(13px, 1vw, 17px); }
.line-copy h2 { margin-bottom: 5px; font-size: clamp(38px, 3.2vw, 58px); line-height: 1.22; }
.line-copy p:last-child { margin-bottom: 0; color: var(--navy-soft); font-size: clamp(15px, 1vw, 18px); letter-spacing: 0.07em; }
.line-card {
  position: absolute;
  z-index: 3;
  top: calc(var(--nav-height) + clamp(10px, 1.8vh, 18px));
  left: 86%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--navy);
  text-align: center;
  text-decoration: none;
  transform: translateX(-50%);
}
.line-qr-frame {
  position: relative;
  display: grid;
  width: clamp(104px, 7.4vw, 140px);
  aspect-ratio: 1;
  place-items: center;
  background:
    linear-gradient(var(--gold), var(--gold)) left top / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left top / 2px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right top / 2px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left bottom / 2px 22px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 22px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right bottom / 2px 22px no-repeat,
    rgba(251,250,247,0.52);
}
.line-card img { width: 73%; aspect-ratio: 1; border: 8px solid rgba(251,250,247,0.82); box-shadow: none; }
.line-card > span:last-child {
  max-width: 180px;
  margin-top: 7px;
  font-size: clamp(12px, 0.72vw, 13px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  white-space: normal;
}
.line-farewell {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(24px, 5.3vh, 58px);
  display: grid;
  grid-template-columns: minmax(70px, 150px) auto minmax(70px, 150px);
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
  width: min(850px, 68vw);
  color: rgba(255,255,255,0.94);
  transform: translateX(-50%);
}
.line-farewell span { height: 1px; background: rgba(255,255,255,0.58); }
.line-farewell p { margin: 0; font-size: clamp(15px, 1.2vw, 20px); letter-spacing: 0.2em; text-align: center; white-space: nowrap; }
.line-intro.reveal,
.line-card.reveal,
.line-farewell.reveal { transform: translate(-50%, 18px); }
.line-intro.reveal.visible,
.line-card.reveal.visible,
.line-farewell.reveal.visible { transform: translate(-50%, 0); }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1280px) {
  :root { --nav-height: 72px; }
  .desktop-nav { gap: 28px; }
  .desktop-nav a { font-size: 15px; }
  .countdown-panel { width: 52vw; margin-right: 3vw; }
  .story { padding-left: 50px; }
  .story-grid { left: 8vw; right: 4vw; }
  .dinner-layout { grid-template-columns: minmax(460px, .9fr) 1.1fr; gap: 58px; }
  .dinner-details { grid-template-columns: 1fr 0.9fr; }
  .venue-copy { grid-column: 1 / -1; min-height: auto; flex-direction: row; align-items: center; gap: 22px; padding: 15px 0; }
  .venue-copy h3, .venue-copy address { margin: 0; }
  .venue-copy > span { display: none; }
}

@media (max-width: 980px) {
  :root { --nav-height: 68px; }
  .site-header { padding: 0 24px; }
  .desktop-nav { display: none; }
  .menu-button {
    display: grid;
    width: 48px;
    height: 48px;
    padding: 14px 10px;
    border: 0;
    background: transparent;
    place-content: center;
    gap: 7px;
  }
  .menu-button span:not(.sr-only) { display: block; width: 25px; height: 1px; background: var(--navy); transition: transform 0.2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .mobile-nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(16,43,73,0.08);
    background: rgba(249,247,243,0.98);
    box-shadow: 0 18px 30px rgba(13,35,58,0.12);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 12px 8px; color: var(--navy); letter-spacing: 0.18em; text-decoration: none; }

  .chapter { min-height: auto; }

  .hero { min-height: 100svh; }
  .hero-image,
  .hero-shade { height: 100%; }
  .hero-image { object-position: 63% center; }
  .hero-copy { left: 28px; right: 28px; bottom: 88px; }
  .hero h1 { font-size: clamp(62px, 14vw, 104px); }

  .countdown { min-height: 100svh; padding: calc(var(--nav-height) + 40px) 22px 72px; }
  .countdown-image,
  .countdown-veil { height: 100%; }
  .countdown-panel { width: min(880px, 92vw); margin: 0; padding: 0; }
  .countdown-panel h2 { white-space: normal; }

  .story { padding: calc(var(--nav-height) + 45px) 28px 100px; }
  .story-heading { margin-bottom: 35px; }
  .story-grid {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: 1fr 52px 1fr;
    gap: 18px;
  }
  .portrait-block { display: flex; flex-direction: column; }
  .portrait-kuan { grid-column: 1; }
  .portrait-min { grid-column: 3; }
  .portrait-block figure { order: 1; width: 100%; height: 48vw; max-height: 490px; }
  .portrait-copy { order: 2; margin-top: 20px; text-align: left !important; }
  .portrait-kuan .mini-title { margin-left: 0; }
  .story-ampersand { grid-column: 2; grid-row: 1; align-self: center; font-size: 50px; }
  .story-quote { position: relative; right: auto; bottom: auto; width: 100%; margin: 54px auto 0; }

  .ceremony { padding: calc(var(--nav-height) + 48px) 30px 95px; }
  .ceremony-layout { grid-template-columns: 1fr; gap: 45px; min-height: auto; }
  .ceremony-layout::before { display: none; }
  .ceremony-intro,
  .event-card { grid-column: 1; grid-row: auto; }
  .ceremony-photo { height: 40vw; min-height: 250px; }
  .event-card { max-width: 650px; }

  .dinner { padding: calc(var(--nav-height) + 42px) 0 95px; }
  .dinner-layout { display: flex; min-height: auto; flex-direction: column; gap: 55px; }
  .dinner-photo { width: 92%; height: min(61vw, 550px); align-self: flex-start; }
  .dinner-content { width: 100%; padding: 0 30px; }
  .dinner-details { grid-template-columns: repeat(2, 1fr); }

  .hualien { padding-bottom: 86px; }
  .hualien-body { grid-template-columns: 1fr 1fr; padding: 40px 30px 65px; }
  .hualien-photo { grid-column: 1 / -1; width: min(720px, 100%); height: 50vw; max-height: 460px; justify-self: center; }

  .line { min-height: 920px; }
  .line-intro { left: 48%; width: min(520px, 55vw); }
  .line-card { top: calc(var(--nav-height) + 12px); left: 84%; }
  .line-qr-frame { width: 104px; }
  .line-card > span:last-child { width: 150px; }
  .line-farewell { width: min(760px, 76vw); }
}

@media (max-width: 820px) {
  .countdown-groups { grid-template-columns: 1fr; gap: 0; }
  .countdown-separator { width: 100%; height: 1px; margin: 25px 0 22px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand { font-size: 26px; }
  .eyebrow { margin-bottom: 14px; font-size: 14px; letter-spacing: 0.32em; }
  h2 { font-size: clamp(34px, 10.8vw, 46px); letter-spacing: 0.04em; }
  .gold-rule { margin: 20px 0 24px; }

  .hero-image { object-position: 68% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,25,45,0.02) 17%, rgba(7,25,45,0.82) 100%); }
  .hero-copy { left: 22px; right: 18px; bottom: 88px; }
  .hero h1 { font-size: 17.5vw; }
  .hero-date { gap: 14px; font-size: 15px; letter-spacing: 0.25em; }
  .hero-date span { width: 42px; }
  .hero-vow { max-width: 340px; font-size: 16px; letter-spacing: 0.13em; }

  .countdown { padding: calc(var(--nav-height) + 22px) 13px 65px; }
  .countdown-image { object-position: 53% center; }
  .countdown-panel { width: 100%; padding: 0; }
  .countdown-panel h2 { font-size: 30px; }
  .countdown-panel .section-lead { margin-bottom: 28px; font-size: 15px; }
  .countdown-groups { padding: 26px 14px; border-radius: 18px; background: rgba(250,248,245,0.88); }
  .countdown-label { margin-bottom: 15px; font-size: 14px; letter-spacing: 0.2em; }
  .countdown-values { gap: 7px; }
  .countdown-values strong { font-size: clamp(39px, 12.5vw, 57px); }
  .countdown-values span { font-size: 13px; }
  .countdown-separator { margin: 25px 0 21px; }

  .story { padding-right: 18px; padding-left: 18px; }
  .story-grid { grid-template-columns: 1fr 30px 1fr; gap: 10px; }
  .portrait-block figure { height: 63vw; }
  .portrait-copy { font-size: 13px; }
  .portrait-copy .mini-title { width: auto; font-size: 12px; letter-spacing: 0.18em; }
  .portrait-copy h3 { margin-top: 18px; font-size: 17px; }
  .story-ampersand { font-size: 33px; }
  .story-quote { font-size: 16px; letter-spacing: 0.08em; }

  .ceremony { padding-right: 18px; padding-left: 18px; }
  .ceremony-copy,
  .ceremony-invite { font-size: 16px; letter-spacing: 0.05em; }
  .ceremony-photo { height: 58vw; min-height: 210px; }
  .event-card { padding: 34px 18px; }
  .event-card address { letter-spacing: 0.05em; }

  .dinner-photo { width: 96%; height: 72vw; max-height: 460px; padding: 35px 0 33px 18px; }
  .dinner-photo img { width: 94%; }
  .dinner-content { padding: 0 18px; }
  .dinner-details { grid-template-columns: 1fr; margin-top: 38px; }
  .dinner-date { min-height: 220px; }
  .venue-photo img { min-height: 240px; }
  .venue-copy { grid-column: auto; flex-direction: column; align-items: flex-start; }

  .hualien-banner { height: 220px; }
  .hualien-body { grid-template-columns: 1fr; gap: 35px; padding: 35px 18px 75px; }
  .hualien-copy { padding-right: 0; }
  .hualien-copy h2 { font-size: 38px; }
  .hualien-details { padding-left: 20px; }
  .hualien-photo { grid-column: auto; height: 64vw; }
  .hualien-watermark { font-size: 24vw; bottom: 5px; }

  .line { min-height: 980px; }
  .line-background { object-position: 50% center; }
  .line-wash {
    background:
      linear-gradient(180deg, rgba(249,247,242,0.9) 0%, rgba(249,247,242,0.73) 35%, rgba(249,247,242,0.08) 58%),
      linear-gradient(180deg, rgba(15,43,74,0) 68%, rgba(15,43,74,0.92) 100%);
  }
  .line-intro { top: calc(var(--nav-height) + 16px); left: 34%; width: 68vw; }
  .line-logo { width: 86px; margin-bottom: 0; transform: translateY(-10px); }
  .line-copy .eyebrow { margin-bottom: 5px; font-size: 12px; }
  .line-copy h2 { margin-bottom: 5px; font-size: clamp(21px, 6.5vw, 27px); line-height: 1.25; letter-spacing: 0.02em; white-space: nowrap; }
  .line-copy p:last-child { max-width: 230px; margin-inline: auto; font-size: 13px; line-height: 1.65; }
  .line-card { top: calc(var(--nav-height) + 116px); left: 82%; }
  .line-qr-frame { width: 82px; }
  .line-card img { border-width: 5px; }
  .line-card > span:last-child { width: 112px; margin-top: 6px; font-size: 11px; line-height: 1.5; white-space: normal; }
  .line-farewell { bottom: 66px; grid-template-columns: 42px auto 42px; gap: 12px; width: calc(100% - 36px); }
  .line-farewell p { font-size: 14px; letter-spacing: 0.08em; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line-intro.reveal,
  .line-card.reveal,
  .line-farewell.reveal { transform: translateX(-50%); }
}
