/* 子晴 & 立恩 · wedding invitation
   No CSS transitions or keyframe animations on purpose: every motion is drawn by main.js
   (scroll position or requestAnimationFrame time), so the page records frame-exactly. */

@font-face { font-family: "ZL Serif TC"; src: url(fonts/NotoSerifTC-sub.woff) format("woff"); font-weight: 200 900; font-display: block; }
@font-face { font-family: "ZL Sans TC"; src: url(fonts/NotoSansTC-sub.woff) format("woff"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Regular.ttf) format("truetype"); font-weight: 400; font-display: block; }
@font-face { font-family: "ZL Italic"; src: url(fonts/PlayfairDisplay-Italic.ttf) format("truetype"); font-weight: 400 900; font-display: block; }
@font-face { font-family: "Inter"; src: url(fonts/Inter.ttf) format("truetype"); font-weight: 100 900; font-display: block; }

:root {
  --paper: #FBF7F1;      /* 米白 */
  --cream: #F4EADB;      /* 奶油 */
  --blush: #EFD3CC;      /* 腮紅粉 */
  --blush-deep: #C98579;
  --ink: #3A2E2A;
  --ink-soft: #6E5F58;
  --muted: #9A8A80;
  --gold: #B48A4E;
  --gold-soft: #D9BE8C;
  --lime: #D6EE5C;
  --lime-ink: #263010;
  --sage: #A9B596;       /* tuned to rsvp-paper.jpg's background in main.js */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .28 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --serif: "ZL Serif TC", "Noto Serif TC", serif;
  --sans: "Inter", "ZL Sans TC", "Noto Sans TC", system-ui, sans-serif;
  --italic: "ZL Italic", "Instrument Serif", Georgia, serif;
  --display: "Instrument Serif", "ZL Serif TC", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3, figure, ol { margin: 0; padding: 0; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* until main.js has the fonts and photos, keep animated copy hidden (no flash) */
html:not(.is-ready) .hero-copy, html:not(.is-ready) .hero-meta, html:not(.is-ready) .hero-top { opacity: 0; }

.script-line {
  font-family: var(--italic);
  font-style: normal;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--gold);
  line-height: 1.2;
}

.ornament { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 0; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .55; }
.ornament i { width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- 1. HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #2b1d14; color: #FFF8EF; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 46% at 50% 34%, rgba(40,22,10,.38), rgba(40,22,10,0) 70%),
    linear-gradient(to bottom, rgba(30,16,8,.45) 0%, rgba(30,16,8,0) 26%, rgba(30,16,8,0) 58%, rgba(30,16,8,.55) 100%);
}
.hero-top {
  position: absolute; top: 28px; left: 40px; right: 40px; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,248,239,.82);
}
.mono { font-family: var(--display); font-size: 22px; letter-spacing: .12em; text-transform: none; }
.mono i { font-family: var(--italic); font-style: normal; color: var(--gold-soft); }
.hero-copy { position: absolute; left: 0; right: 0; top: 17%; text-align: center; will-change: transform, opacity; }
.hero-script { font-family: var(--italic); font-size: 30px; color: #FCEBD6; letter-spacing: .02em; text-shadow: 0 1px 18px rgba(30,14,4,.45); }
.hero-script span { display: inline-block; }
.hero-names {
  margin-top: 10px;
  font-family: var(--serif); font-weight: 400; font-size: 128px; line-height: 1.12; letter-spacing: .06em;
  color: #FFF9F1; text-shadow: 0 2px 40px rgba(30,14,4,.45);
}
.hero-names .ch { display: inline-block; will-change: transform, opacity; }
.hero-names .amp { font-family: var(--italic); font-weight: 400; color: var(--gold-soft); font-size: .62em; margin: 0 .22em 0 .14em; transform-origin: 50% 70%; vertical-align: .14em; }
.hero-sub { margin-top: 18px; display: inline-flex; align-items: center; gap: 16px; font-family: var(--serif); font-size: 17px; letter-spacing: .32em; color: rgba(255,246,234,.92); text-shadow: 0 1px 12px rgba(30,14,4,.5); }
.hero-sub .rule { width: 56px; height: 1px; background: rgba(255,240,220,.6); }
.hero-meta { position: absolute; right: 48px; bottom: 44px; text-align: right; will-change: transform, opacity; }
.hm-date { font-family: var(--serif); font-size: 17px; letter-spacing: .12em; }
.hm-date .num { font-family: var(--display); font-size: 30px; letter-spacing: .04em; margin-right: 8px; }
.hm-place { font-family: var(--serif); font-size: 15px; letter-spacing: .3em; color: rgba(255,246,234,.85); margin: 2px 0 16px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px;
  font-family: var(--serif); font-size: 15px; letter-spacing: .14em; text-decoration: none;
}
.btn-pill .en { font-family: var(--italic); letter-spacing: .02em; font-size: 15px; opacity: .85; }
.btn-pill .arr { font-family: var(--sans); }
.btn-light { color: var(--ink); background: rgba(255,250,243,.94); box-shadow: 0 6px 24px rgba(20,10,4,.25); }
.btn-light:hover, .btn-light:focus-visible { background: var(--blush); outline: none; }
.hero-scroll { position: absolute; left: 48px; bottom: 44px; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,246,234,.78); }
.hero-scroll i { display: block; width: 64px; height: 1px; background: rgba(255,246,234,.35); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--s, .3)); transform-origin: left; }

/* ---------- 2. ARCH ---------- */
.arch { position: relative; height: 230vh; background: var(--paper); }
.arch-stage { background: var(--grain), var(--paper); }
.arch-kicker { position: absolute; top: 5.5vh; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); }
.arch-window { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.arch-window img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; will-change: transform; }
.arch-shade { position: absolute; inset: 0; background: radial-gradient(ellipse 46% 30% at 50% 50%, rgba(255,250,246,.62), rgba(255,250,246,0) 72%); opacity: 0; }
.arch-copy { position: absolute; left: 0; right: 0; top: 50%; text-align: center; transform: translateY(-50%); }
.arch-copy .script-line { font-size: 30px; color: #9C5E55; }
.arch-title { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: 56px; letter-spacing: .12em; color: #4A2C27; text-shadow: 0 0 30px rgba(255,248,244,.95), 0 0 6px rgba(255,248,244,.8); }

/* ---------- 3. STORY / FILM ---------- */
.story { position: relative; background: var(--paper); /* height set by main.js */ height: 360vh; }
.story-stage { background: var(--grain), var(--paper); }
.story-head { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 440px; padding: 0 24px 0 64px; display: flex; flex-direction: column; justify-content: center; }
.story-head .script-line { font-size: 26px; }
.story-title { margin-top: 8px; font-family: var(--serif); font-weight: 500; font-size: 46px; letter-spacing: .06em; line-height: 1.25; white-space: nowrap; }
.story-lede { margin-top: 18px; font-family: var(--serif); font-size: 17px; line-height: 1.9; color: var(--ink-soft); letter-spacing: .06em; }
.story-count { margin-top: 30px; display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 22px; color: var(--ink-soft); }
.story-count i { display: block; width: 70px; height: 1px; background: var(--gold-soft); position: relative; }
.story-count i::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--gold); transform: scaleX(var(--p, 0)); transform-origin: left; }
#storyNow { color: var(--ink); }

.film { position: absolute; left: 440px; right: 0; top: 50%; transform: translateY(-50%); height: 640px; background: #FFFDF9; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 90px); mask-image: linear-gradient(to right, transparent 0, #000 90px); }
.film-bar { position: absolute; left: 0; right: 0; height: 40px; background: #2C2421; overflow: hidden; }
.film-bar.top { top: 0; } .film-bar.bottom { bottom: 0; }
.film-holes { position: absolute; top: 0; bottom: 0; left: -68px; right: -68px; will-change: transform; }
/* perforations: one rounded hole per 34px tile */
.film-holes::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='16'%3E%3Crect x='8' y='0' width='18' height='16' rx='3.5' fill='%23F7F0E6'/%3E%3C/svg%3E");
  background-size: 34px 16px; background-repeat: repeat-x; }
.film-marks { position: absolute; top: 0; left: 0; height: 12px; display: flex; gap: 0; font-family: var(--sans); font-size: 8px; line-height: 12px; letter-spacing: .2em; color: #E3A35C; will-change: transform; }
.film-marks span { width: 380px; flex: none; padding-left: 40px; }
.film-track { position: absolute; top: 40px; bottom: 40px; left: 0; display: flex; align-items: center; gap: 36px; padding-left: 70px; padding-right: 64px; will-change: transform; }
.frame { flex: none; width: 344px; }
.frame-img { position: relative; width: 344px; height: 430px; overflow: hidden; background: var(--cream); }
.frame-img img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.frame figcaption { display: block; padding-top: 14px; }
.f-date { display: block; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; color: var(--gold); }
.f-line { display: block; margin-top: 2px; font-family: var(--serif); font-size: 17px; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.end-card { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--blush); }
.end-card .script-line { color: #9C5E55; font-size: 24px; }
.end-big { margin-top: 10px; font-family: var(--serif); font-size: 34px; line-height: 1.5; letter-spacing: .14em; color: #4A2C27; }
.end-date { margin-top: 16px; font-family: var(--display); font-size: 24px; letter-spacing: .12em; color: #7C4E46; }

/* ---------- 4. RSVP ---------- */
.rsvp { position: relative; background: var(--sage); overflow: hidden; padding: 0; }
.rsvp-stage { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 0; }
.paper { position: relative; width: var(--pw, 1120px); height: var(--ph, 840px); flex: none; will-change: transform; }
.paper-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.bouquet { position: absolute; z-index: 4; width: var(--bw, 250px); right: var(--br, 14%); bottom: var(--bb, 10%); pointer-events: none; will-change: transform; filter: drop-shadow(0 8px 10px rgba(60,40,20,.18)); }
.bouquet.multiply { mix-blend-mode: multiply; filter: none; }
.paper-inner { position: absolute; z-index: 3; left: var(--il, 22%); right: var(--ir, 22%); top: var(--it, 17%); bottom: var(--ib, 17%); display: flex; flex-direction: column; justify-content: center; }

.rsvp-form { width: 100%; }
.rf-head { text-align: center; margin-bottom: 18px; }
.rf-head .script-line { font-size: 24px; color: var(--blush-deep); }
.rf-title { margin-top: 4px; font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: .08em; line-height: 1.3; color: var(--ink); }
.rf-note { margin-top: 6px; font-family: var(--serif); font-size: 13px; letter-spacing: .08em; color: var(--ink-soft); }
.rf-note b { font-weight: 600; color: var(--ink); }
.rf-row { margin-top: 12px; }
.rf-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.field { display: block; position: relative; }
.f-label { display: block; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 4px; }
.f-label em { font-family: var(--italic); font-style: normal; letter-spacing: .02em; color: var(--muted); margin-left: 4px; }
.field input[type=text], .field input[type=email], .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(58,46,42,.32); background: rgba(255,255,255,.28);
  padding: 7px 10px; font-family: var(--serif); font-size: 16px; letter-spacing: .04em; color: var(--ink); border-radius: 4px 4px 0 0; outline: none;
}
.field textarea { resize: none; line-height: 1.55; height: 60px; display: block; }
.field input::placeholder, .field textarea::placeholder { color: rgba(110,95,88,.55); }
.field input:hover, .field textarea:hover { background: rgba(255,255,255,.45); }
.field input:focus, .field textarea:focus { border-bottom-color: var(--gold); background: rgba(255,255,255,.6); }
.field.invalid input { border-bottom-color: #C0564A; }
.field[role=radiogroup] { display: inline-block; min-width: 50%; }
.f-err { position: absolute; right: 0; top: 0; font-size: 12px; font-family: var(--serif); color: #B4473B; letter-spacing: .06em; }

.pills { display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 20px; border-radius: 999px;
  border: 1px solid rgba(58,46,42,.35); background: rgba(255,255,255,.35); font-family: var(--serif); font-size: 15px; letter-spacing: .1em; color: var(--ink);
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(58,46,42,.5); }
.pill:hover { background: rgba(239,211,204,.6); border-color: var(--blush-deep); }
.pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pill[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #FFF7EE; }
.pill[aria-checked="true"] .dot { background: var(--gold-soft); border-color: var(--gold-soft); }
.pills.small .pill { padding: 7px 16px; font-size: 14px; }
.field.invalid .pill { border-color: #C0564A; }

.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(58,46,42,.35); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.35); }
.step { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--ink); }
.step:hover { background: var(--blush); }
.step:focus-visible { outline: 2px solid var(--gold); }
.stepper input { width: 40px; border: 0; background: transparent; text-align: center; font-family: var(--display); font-size: 22px; padding: 0; outline: none; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-unit { font-family: var(--serif); font-size: 13px; color: var(--ink-soft); margin-right: 6px; }
#rowGuests.off { opacity: .38; pointer-events: none; }

.rf-actions { margin-top: 18px; text-align: center; }
.btn-send {
  display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 12px 34px;
  background: var(--ink); color: #FFF7EE; font-family: var(--serif); font-size: 16px; letter-spacing: .2em; box-shadow: 0 8px 20px rgba(58,46,42,.22);
}
.btn-send .en { font-family: var(--italic); letter-spacing: .02em; color: var(--gold-soft); font-size: 15px; }
.btn-send:hover, .btn-send:focus-visible { background: #5A3F37; outline: none; }

.thanks { text-align: center; }
.thanks[hidden] { display: none; }
.thanks .script-line { font-size: 26px; color: var(--blush-deep); }
.th-title { margin-top: 2px; font-family: var(--serif); font-weight: 500; font-size: 40px; letter-spacing: .08em; color: var(--ink); }
.th-sub { margin-top: 4px; font-family: var(--serif); font-size: 15px; letter-spacing: .1em; color: var(--ink-soft); }
.qr-wrap { position: relative; width: 196px; height: 196px; margin: 18px auto 0; padding: 12px; background: rgba(255,253,248,.85); border-radius: 6px; }
.qr-wrap canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.qr-corner { position: absolute; width: 16px; height: 16px; border: 0 solid var(--gold); }
.qr-corner.tl { left: -6px; top: -6px; border-left-width: 1.5px; border-top-width: 1.5px; }
.qr-corner.tr { right: -6px; top: -6px; border-right-width: 1.5px; border-top-width: 1.5px; }
.qr-corner.bl { left: -6px; bottom: -6px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.qr-corner.br { right: -6px; bottom: -6px; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.th-hint { margin-top: 16px; font-family: var(--serif); font-size: 16px; letter-spacing: .14em; color: var(--ink); }
.th-code { margin-top: 2px; font-family: var(--display); font-size: 15px; letter-spacing: .14em; color: var(--muted); }
.th-edit { margin-top: 10px; border: 0; background: none; font-family: var(--serif); font-size: 13px; letter-spacing: .14em; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.th-edit:hover { color: var(--blush-deep); }
.thanks.declined .qr-wrap, .thanks.declined .th-hint, .thanks.declined .th-code { display: none; }

/* ---------- 6. VENUE ---------- */
.venue { background: var(--grain), var(--paper); padding: 96px 0 104px; }
.wrap { width: min(1280px, calc(100% - 96px)); margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .script-line { font-size: 26px; }
.sec-title { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 46px; letter-spacing: .14em; }
.venue-grid { display: grid; grid-template-columns: 1.18fr 1fr; gap: 64px; align-items: start; }
.map-card { background: #FAF2E4; border-radius: 20px; padding: 22px 26px 14px; box-shadow: inset 0 0 0 1px rgba(180,138,78,.25), 0 18px 40px -24px rgba(90,60,30,.35); }
.map-label { font-family: var(--serif); font-size: 14px; letter-spacing: .2em; color: var(--ink-soft); }
.map-label em { font-family: var(--italic); font-style: normal; letter-spacing: .02em; color: var(--gold); margin-left: 6px; }
.map { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.m-ground { fill: #F5ECD9; stroke: #6B5A4E; stroke-width: 1.6; }
.m-trees circle { fill: #C6CDA8; stroke: #7C8560; stroke-width: 1.3; }
.m-lawn { fill: #E2EAC9; stroke: #8C9A66; stroke-width: 1.5; }
.m-chairs path { stroke: #A7926F; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: .1 8; fill: none; }
.m-arch { fill: none; stroke: #8E6E50; stroke-width: 3; }
.m-flowers circle { fill: #EBB5AA; stroke: #C98579; stroke-width: 1; }
.m-tent { fill: #FFF9F0; stroke: #6B5A4E; stroke-width: 1.6; stroke-linejoin: round; }
.m-line { fill: none; stroke: #6B5A4E; stroke-width: 1.4; stroke-linecap: round; }
.m-lights { fill: none; stroke: #D9A74A; stroke-width: 2.4; stroke-dasharray: .1 7; stroke-linecap: round; }
.m-frame { fill: none; stroke: #8E6E50; stroke-width: 2; }
.m-park { fill: #EDE4D2; stroke: #6B5A4E; stroke-width: 1.5; }
.m-gate { fill: none; stroke: #6B5A4E; stroke-width: 2.4; stroke-linecap: round; }
.m-walk { fill: none; stroke: #B48A4E; stroke-width: 2.4; stroke-dasharray: 6 6; stroke-linecap: round; }
.mp-draw { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; }
.m-n { font-family: var(--display); font-size: 16px; fill: #6B5A4E; text-anchor: middle; }
.m-lab { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .08em; fill: var(--ink); paint-order: stroke; stroke: #F5ECD9; stroke-width: 5px; stroke-linejoin: round; }
.m-en { font-family: var(--italic); font-weight: 400; font-size: 12px; fill: var(--gold); letter-spacing: .02em; }

.timeline { list-style: none; position: relative; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 14px; bottom: 14px; width: 1px; background: var(--gold-soft); }
.timeline li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 30px; padding: 9px 0; }
.timeline li::before { content: ""; position: absolute; left: 92px; top: 23px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold); }
.t-time { font-family: var(--display); font-size: 34px; line-height: 1.1; color: var(--ink); letter-spacing: .02em; }
.t-name { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .1em; }
.t-name em { font-family: var(--italic); font-style: normal; font-weight: 400; font-size: 15px; color: var(--gold); letter-spacing: .02em; margin-left: 6px; }
.t-desc { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); letter-spacing: .06em; }
.getting { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(180,138,78,.35); display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; font-family: var(--serif); font-size: 14px; line-height: 1.75; letter-spacing: .04em; color: var(--ink); }
.getting p + p { margin-top: 4px; }
.g-h { font-size: 15px; font-weight: 600; letter-spacing: .14em; margin-bottom: 4px; }
.g-h em { font-family: var(--italic); font-style: normal; font-weight: 400; color: var(--gold); letter-spacing: .02em; margin-left: 4px; }
.getting b { font-weight: 600; color: var(--blush-deep); margin-right: .8em; }
.muted { color: var(--muted); }

/* ---------- 7. COUNTDOWN ---------- */
.countdown { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--lime); color: var(--lime-ink); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cd-inner { text-align: center; width: 100%; }
.cd-script { font-size: 34px; color: #4B5A16; }
.cd-title { margin-top: 6px; font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: .4em; text-indent: .4em; }
.cd-row { margin-top: 34px; display: flex; justify-content: center; gap: 56px; }
.cd-group { text-align: center; }
.cd-num { display: flex; justify-content: center; font-family: var(--display); font-size: 232px; line-height: 1; letter-spacing: 0; }
.cd-digit { position: relative; display: block; width: .52em; height: .8em; overflow: hidden; }
.cd-digit span { position: absolute; left: 0; right: 0; top: -.07em; line-height: 1; text-align: center; will-change: transform, opacity; }
.cd-lab { margin-top: 14px; font-family: var(--serif); font-size: 20px; letter-spacing: .3em; }
.cd-lab em { font-family: var(--italic); font-style: normal; font-size: 16px; letter-spacing: .04em; opacity: .7; margin-left: 4px; }
.cd-group + .cd-group { position: relative; }
.cd-group + .cd-group::before { content: ""; position: absolute; left: -29px; top: 20px; height: 140px; width: 1px; background: rgba(38,48,16,.25); }
.cd-foot { margin-top: 40px; font-family: var(--serif); font-size: 16px; letter-spacing: .28em; }

/* ---------- 8. END ---------- */
.end { background: var(--grain), var(--paper); padding: 150px 24px 160px; text-align: center; }
.end .script-line { font-size: 26px; }
.end-names { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: 76px; letter-spacing: .1em; line-height: 1.2; }
.end-names i { font-family: var(--italic); font-style: normal; color: var(--gold); font-size: .6em; vertical-align: .12em; margin: 0 .1em; }
.end-meta { margin-top: 14px; font-family: var(--serif); font-size: 18px; letter-spacing: .34em; color: var(--ink-soft); }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .hero-top { left: 20px; right: 20px; top: 18px; font-size: 10px; letter-spacing: .2em; }
  .hero-copy { top: 20%; padding: 0 16px; }
  .hero-script { font-size: 22px; }
  .hero-names { font-size: 54px; }
  .hero-sub { font-size: 13px; letter-spacing: .16em; gap: 10px; }
  .hero-sub .rule { width: 22px; }
  .hero-meta { left: 20px; right: 20px; bottom: 28px; text-align: center; }
  .hm-date { font-size: 14px; } .hm-date .num { font-size: 24px; }
  .hm-place { font-size: 13px; }
  .hero-scroll { display: none; }

  .arch-title { font-size: 27px; padding: 0 16px; }
  .arch-copy .script-line { font-size: 22px; }

  .story-head { width: auto; right: 0; bottom: auto; padding: 9vh 20px 0; background: none; display: block; }
  .story-head .script-line { font-size: 20px; }
  .story-title { font-size: 30px; }
  .story-lede { display: none; }
  .story-count { margin-top: 10px; font-size: 18px; }
  .film { left: 0; top: auto; bottom: 7vh; transform: none; height: 470px; -webkit-mask-image: none; mask-image: none; }
  .film-bar { height: 30px; }
  .film-holes::before { top: 8px; height: 14px; }
  .film-track { top: 30px; bottom: 30px; gap: 20px; padding-left: 20px; padding-right: 20px; }
  .frame, .frame-img { width: 240px; }
  .frame-img { height: 300px; }
  .f-line { font-size: 14px; white-space: normal; }
  .end-big { font-size: 24px; }

  .rsvp-stage { padding: 56px 12px; }
  .paper { width: 100% !important; height: auto !important; border-radius: 4px; box-shadow: 0 16px 40px -18px rgba(40,50,20,.5); }
  .paper-bg { object-fit: cover; object-position: 50% 50%; transform: scale(1.6); }
  .paper { overflow: hidden; }
  .paper-inner { position: relative; left: auto; right: auto; top: auto; bottom: auto; padding: 40px 20px 120px; }
  .rf-title { font-size: 21px; letter-spacing: .04em; }
  .rf-row.two { grid-template-columns: 1fr; gap: 12px; }
  .bouquet { width: 130px !important; right: 8px !important; bottom: 6px !important; }
  .th-title { font-size: 28px; }

  .venue { padding: 72px 0; }
  .wrap { width: calc(100% - 32px); }
  .sec-title { font-size: 32px; }
  .venue-grid { grid-template-columns: 1fr; gap: 36px; }
  .map-card { padding: 16px 12px 8px; }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 70px 1fr; gap: 22px; }
  .timeline li::before { left: 66px; }
  .t-time { font-size: 26px; }
  .getting { grid-template-columns: 1fr; gap: 16px; }

  .cd-script { font-size: 22px; }
  .cd-title { font-size: 24px; }
  .cd-row { flex-wrap: wrap; gap: 26px 24px; padding: 0 16px; }
  .cd-group { width: calc(50% - 12px); }
  .cd-num { font-size: 96px; }
  .cd-group + .cd-group::before { display: none; }
  .cd-lab { font-size: 15px; margin-top: 6px; }
  .cd-foot { font-size: 12px; letter-spacing: .14em; padding: 0 16px; }

  .end { padding: 100px 16px 110px; }
  .end-names { font-size: 44px; }
  .end-meta { font-size: 14px; letter-spacing: .22em; }
}
