:root {
  color-scheme: light;
  --cream: #f7f8f1;
  --paper: #fffef9;
  --sage: #88a88a;
  --sage-light: #dce8db;
  --sage-pale: #edf3e9;
  --forest: #284d3e;
  --ink: #40594b;
  --muted: #708477;
  --line: #d9e1d5;
  --rose: #bb8586;
  --shadow: 0 18px 48px rgba(32, 70, 46, .11);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid #bd9770; outline-offset: 4px; }
.serif { font-family: "Songti SC", "STSong", "SimSun", serif; }
.eyebrow { color: var(--sage); font-size: 11px; font-weight: 700; letter-spacing: .23em; }
.shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.topbar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; padding: calc(13px + env(safe-area-inset-top)) 18px 12px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.topbar a, .topbar button { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--forest); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-shadow: 0 1px 8px var(--cream); }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--sage); border-radius: 50%; font-family: Georgia, serif; font-style: italic; font-size: 18px; background: rgba(247,248,241,.9); }
.music-toggle { display: inline-flex; align-items: center; gap: 5px; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid rgba(87,125,90,.3); border-radius: 24px; background: rgba(255,254,249,.92); color: var(--forest); box-shadow: 0 4px 14px rgba(37,65,43,.08); cursor: pointer; }
.music-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.music-toggle span { font-size: 10px; letter-spacing: .08em; }
.music-toggle[data-state="playing"] svg { animation: music-pulse 2s ease-in-out infinite; }
@keyframes music-pulse { 50% { transform: rotate(15deg) scale(1.12); } }
.welcome { position: relative; min-height: 100svh; display: grid; align-items: center; padding: calc(90px + env(safe-area-inset-top)) 0 calc(44px + env(safe-area-inset-bottom)); overflow: hidden; background: var(--sage-pale); }
.welcome-grid { position: relative; z-index: 1; display: grid; gap: 30px; align-items: center; }
.welcome-copy { text-align: center; }
.welcome-copy .eyebrow { display: block; margin-bottom: 20px; }
.welcome h1 { margin: 0; color: var(--forest); font-size: clamp(43px, 10vw, 69px); line-height: 1.28; font-weight: 400; letter-spacing: .09em; }
.welcome h1 em { font-style: normal; color: #587d5e; }
.welcome-sub { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; letter-spacing: .05em; }
.welcome-names { margin: 26px 0 0; color: var(--forest); font-size: 17px; letter-spacing: .15em; }
.welcome-names span { padding-inline: 6px; color: var(--sage); font-family: Georgia, serif; font-size: 20px; }
.welcome-dates { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px; margin-top: 21px; color: var(--sage); font-family: Georgia, serif; letter-spacing: .1em; }
.welcome-dates .old { font-size: 12px; }
.welcome-dates .dash { width: 22px; height: 1px; align-self: center; background: var(--sage); }
.welcome-dates .wedding-day { flex-basis: 100%; margin-top: 2px; color: var(--forest); font-size: clamp(27px, 7vw, 41px); letter-spacing: .12em; }
.cover-gallery { --orbit-radius: 270px; position: relative; width: 100%; height: min(45vh, 360px); min-height: 280px; overflow: hidden; perspective: 1050px; perspective-origin: 50% 45%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 87%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 87%, transparent); }
.cover-gallery-inner { position: absolute; inset: 0; transform-style: preserve-3d; animation: cover-rise 7s ease-in-out infinite alternate; }
.cover-orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; animation: cover-turn 34s linear infinite; }
.cover-card { position: absolute; width: 120px; height: 170px; margin-left: -60px; margin-top: -85px; transform: rotateY(var(--angle)) translateZ(var(--orbit-radius)) translateY(var(--lift)); backface-visibility: hidden; }
.cover-card-inner { width: 100%; height: 100%; padding: 5px; background: var(--paper); box-shadow: 0 10px 22px rgba(33, 60, 43, .24); animation: cover-card-float 5.5s ease-in-out infinite alternate; }
.cover-card:nth-child(3n) .cover-card-inner { animation-delay: -2.3s; }
.cover-card:nth-child(3n + 1) .cover-card-inner { animation-delay: -4s; }
.cover-card img { display: block; width: 100%; height: 100%; object-fit: cover; background: #e8e7e1; }
@keyframes cover-turn { to { transform: rotateY(-360deg); } }
@keyframes cover-rise { to { transform: translateY(-23px); } }
@keyframes cover-card-float { to { transform: translateY(-13px); } }
.welcome-action { text-align: center; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 11px 28px; border-radius: 26px; border: 1px solid var(--forest); background: var(--forest); color: white; cursor: pointer; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .1em; transition: transform .2s, background .2s; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); background: #3a6b50; }
.secondary-button { min-height: 42px; border-color: var(--sage); background: transparent; color: var(--forest); font-size: 12px; }
.secondary-button:hover { background: var(--sage-pale); }
.welcome-action p { margin: 11px 0 0; color: var(--muted); font-size: 10px; }
.story-intro { padding: 91px 0 67px; text-align: center; }
.story-flight { position: relative; display: grid; place-items: center; overflow: hidden; }
.story-intro-copy { position: relative; z-index: 1; }
.story-intro h2 { margin: 15px 0; color: var(--forest); font-size: clamp(31px, 7vw, 46px); font-weight: 400; letter-spacing: .09em; }
.story-flight h2 { font-size: clamp(25px, 5vw, 43px); letter-spacing: .04em; }
.story-intro p { margin: 0; color: var(--muted); font-size: 13px; line-height: 2; }
.story-line-flower { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; color: var(--sage); }
.story-line-flower::before, .story-line-flower::after { content: ""; width: 30px; height: 1px; background: var(--line); }
.timeline { position: relative; padding-left: 29px; padding-bottom: 40px; }
.timeline-line { position: absolute; z-index: 0; top: 11px; bottom: 80px; left: 10px; width: 2px; background: var(--line); }
.timeline-line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: var(--timeline-progress, 0%); background: var(--sage); transition: height .13s linear; }
.story-node { position: relative; padding: 0 0 80px 14px; scroll-margin-top: 85px; }
.story-node:last-child { padding-bottom: 0; }
.story-node-intro { position: relative; max-width: 700px; }
.story-node--featured .story-node-intro { margin: -16px 0 23px -18px; padding: 17px 22px 20px 18px; border: 1px solid #d9e5d5; border-radius: 6px 15px 7px 5px; background: linear-gradient(150deg, rgba(237,246,231,.82), rgba(255,254,249,.76) 82%); box-shadow: 0 12px 27px rgba(51,91,62,.06); }
.story-node--featured .story-node-intro::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; background: linear-gradient(45deg, #d6e5d2 48%, var(--cream) 50%); clip-path: polygon(0 0, 100% 100%, 0 100%); opacity: .75; }
.story-node--featured .story-date { margin-bottom: 8px; }
.node-marker { position: absolute; z-index: 1; top: 3px; left: -29px; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--cream); border-radius: 50%; background: var(--cream); color: var(--sage); box-shadow: 0 0 0 1px var(--sage); }
.node-marker.dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.node-marker.icon { width: 31px; height: 31px; left: -34px; top: -1px; }
.node-marker svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.story-node.is-current .node-marker { color: var(--forest); box-shadow: 0 0 0 2px var(--sage); }
.story-date { margin: 0 0 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; color: var(--forest); font-family: Georgia, serif; font-size: clamp(19px, 5vw, 25px); font-weight: 400; letter-spacing: .025em; line-height: 1.4; }
.story-place { display: inline-flex; align-items: center; gap: 5px; color: var(--forest); font-family: "YouYuan", "幼圆", "Yuanti SC", "Microsoft YaHei", sans-serif; font-size: .9em; white-space: nowrap; }
.place-pin { display: inline-flex; width: 25px; height: 27px; color: var(--forest); }
.place-pin svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.story-text { max-width: 680px; margin: 0; color: var(--ink); font-family: "YouYuan", "幼圆", "Yuanti SC", "Hiragino Maru Gothic ProN", "Microsoft YaHei", sans-serif; font-size: 14px; line-height: 1.95; letter-spacing: .025em; overflow-wrap: anywhere; }
.story-node--text-only .story-text { position: relative; max-width: 700px; padding: 34px 34px 30px 47px; border: 1px solid #cbdcc9; border-left: 4px solid var(--sage); border-radius: 9px 26px 9px 9px; background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(135,170,140,.075) 32px), var(--paper); box-shadow: 0 14px 31px rgba(35,75,52,.08); }
.story-node--text-only .story-text::before { content: "“"; position: absolute; top: -15px; left: 11px; color: #acc6a9; font-family: "Songti SC", SimSun, serif; font-size: 61px; line-height: 1; }
.story-node--text-only .story-text::after { content: ""; position: absolute; top: 0; right: 0; width: 25px; height: 25px; border-bottom-left-radius: 5px; background: linear-gradient(45deg, #d8e7d4 49%, var(--cream) 51%); box-shadow: -2px 2px 4px rgba(50,83,60,.07); }
.story-media { position: relative; max-width: 700px; margin-top: 24px; }
.story-node--taped .story-media::before, .story-node--taped .story-media::after { content: ""; position: absolute; z-index: 2; top: -6px; width: 62px; height: 17px; background: rgba(195,215,187,.62); clip-path: polygon(0 8%, 100% 0, 96% 100%, 3% 93%); pointer-events: none; box-shadow: 0 2px 3px rgba(38,69,49,.09); }
.story-node--taped .story-media::before { left: 20px; transform: rotate(-8deg); }
.story-node--taped .story-media::after { right: 22px; transform: rotate(7deg); }
.photo-single { position: relative; overflow: hidden; height: min(78vw, 380px); border-radius: 7px; background: var(--sage-pale); box-shadow: 0 12px 29px rgba(35,75,52,.07); }
.photo-single button { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-single img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.photo-single--portrait { width: min(100%, 430px); height: auto; aspect-ratio: 3 / 4; }
.photo-single--portrait img { width: 100%; height: 100%; max-width: none; max-height: none; }
.photo-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; aspect-ratio: 1.4; }
.photo-tile { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: var(--sage-pale); box-shadow: 0 7px 18px rgba(35,75,52,.08); cursor: zoom-in; }
.photo-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-count-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); aspect-ratio: 2.1; }
.photo-count-5 .photo-tile:nth-child(5) { grid-column: 3; grid-row: 1 / 3; }
.photo-count-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); aspect-ratio: 2; }
.photo-layout-mixed { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; aspect-ratio: 2.5; }
.photo-layout-mixed .photo-tile:nth-child(3) { grid-column: 1; grid-row: 1 / 3; }
.photo-layout-mixed .photo-tile:nth-child(6) { grid-column: 4; grid-row: 1 / 3; }
.photo-layout-proposal { grid-template-columns: 4fr 3fr; grid-template-rows: repeat(3, minmax(0, 1fr)); aspect-ratio: 7 / 6; }
.photo-layout-proposal .photo-tile:nth-child(2) { grid-column: 1; grid-row: 1 / 4; }
.photo-layout-proposal .photo-tile:nth-child(1) { grid-column: 2; grid-row: 1; }
.photo-layout-proposal .photo-tile:nth-child(3) { grid-column: 2; grid-row: 2; }
.photo-layout-proposal .photo-tile:nth-child(4) { grid-column: 2; grid-row: 3; }
.photo-layout-proposal .photo-tile:nth-child(3) img { object-position: 42% center; }
.photo-tile:hover img { transform: scale(1.025); }
.media-caption { margin-top: 4px; color: var(--muted); font-size: 11px; text-align: right; letter-spacing: .04em; }
.video-box { position: relative; overflow: hidden; border-radius: 7px; background: #17372d; box-shadow: var(--shadow); }
.video-box video { display: block; width: 100%; max-height: 650px; background: #17372d; object-fit: contain; }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background-color: #17372d; background-position: center; background-repeat: no-repeat; background-size: contain; color: white; cursor: pointer; }
.video-play[hidden], .video-close[hidden] { display: none; }
.play-disc { display: grid; place-items: center; width: 65px; height: 65px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(31,66,47,.52); font-size: 21px; padding-left: 4px; transition: transform .2s; }
.video-play:hover .play-disc { transform: scale(1.08); }
.video-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(20,46,32,.8); color: white; cursor: pointer; font-size: 22px; line-height: 1; }
.video-error { padding: 12px; color: white; background: var(--forest); font-size: 12px; }
.video-error[hidden] { display: none; }
.invitation { position: relative; margin-top: 65px; padding: 83px 0 55px; background: linear-gradient(160deg, #e7efe4, #f3f6ed 60%, #e9f0e6); text-align: center; }
.invitation::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 70px; height: 1px; background: var(--sage); }
.invitation h2 { margin: 15px 0 8px; color: var(--forest); font-size: clamp(34px, 8vw, 58px); font-weight: 400; letter-spacing: .12em; }
.invitation-names { margin: 45px 0 4px; color: var(--forest); font-size: clamp(22px, 6vw, 31px); letter-spacing: .15em; }
.invitation-names span { color: var(--sage); font-family: Georgia, serif; padding-inline: 8px; }
.invitation-date { margin: 22px 0 3px; color: var(--forest); font-family: Georgia, serif; font-size: clamp(30px, 8vw, 51px); letter-spacing: .12em; }
.invitation-time { margin: 0; color: var(--muted); font-size: 12px; }
.venue-card { max-width: 550px; margin: 35px auto 0; padding: 26px 20px; border: 1px solid #d4e2d1; border-radius: 8px; background: rgba(255,255,255,.62); }
.venue-card strong { display: block; color: var(--forest); font-size: 17px; font-weight: 500; }
.venue-card address { margin: 12px 0 20px; color: var(--ink); font-size: 13px; font-style: normal; line-height: 1.8; }
.copy-address-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 19px; border: 2px solid var(--forest); border-radius: 8px; background: var(--forest); color: white; box-shadow: 0 7px 0 #9bb59a, 0 12px 20px rgba(35,75,52,.15); cursor: pointer; font-size: 13px; font-weight: 650; letter-spacing: .03em; transition: transform .18s, box-shadow .18s, background .18s; }
.copy-address-button svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.copy-address-arrow { font-size: 18px; line-height: 1; transition: transform .18s; }
.copy-address-button:hover { transform: translateY(-2px); background: #376b50; box-shadow: 0 9px 0 #9bb59a, 0 15px 23px rgba(35,75,52,.18); }
.copy-address-button:hover .copy-address-arrow { transform: translate(2px,-2px); }
.copy-address-button:active { transform: translateY(5px); box-shadow: 0 2px 0 #9bb59a; }
.copy-address-button[data-copied="true"] { background: #4b8061; }
.venue-image { display: block; width: 100%; max-height: 320px; margin-top: 25px; border-radius: 4px; object-fit: cover; }
.venue-image[hidden] { display: none; }
.ending { position: relative; overflow: hidden; min-height: 440px; padding: 68px 24px 200px; background: linear-gradient(180deg, #edf3e9 0%, #f2f6ee 55%, #f7f8f1 100%); text-align: center; }
.ending-landscape { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ending-cloud { fill: #f7faf4; stroke: #d3e3d3; stroke-width: 2; opacity: .5; }
.ending-mountain-far { fill: #e1ece0; stroke: #c2d9c4; stroke-width: 2; }
.ending-mountain-near { fill: #d9eadb; stroke: #b8d1ba; stroke-width: 2; }
.ending-lake { fill: #d3e8df; opacity: .73; }
.ending-water { fill: none; stroke: #a9cdbd; stroke-width: 1.6; opacity: .62; stroke-linecap: round; }
.ending-grass { fill: #e3eee0; }
.ending-blades { fill: none; stroke: #9fbea6; stroke-width: 1.5; opacity: .6; stroke-linecap: round; }
.ending-content { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.ending-copy { margin: 0; color: #365d49; font-family: "Songti SC", "STSong", "SimSun", serif; font-size: clamp(27px, 3vw, 35px); font-weight: 600; letter-spacing: .085em; line-height: 1.85; }
.ending-sequel { display: block; margin-top: 22px; color: #678c71; font-size: 13px; letter-spacing: .26em; }
.lightbox { position: fixed; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: calc(40px + env(safe-area-inset-top)) 8px calc(28px + env(safe-area-inset-bottom)); border: 0; background: rgba(13,32,23,.97); color: white; }
.lightbox::backdrop { background: rgba(13,32,23,.97); }
.lightbox-layout { display: grid; grid-template-columns: 43px minmax(0,1fr) 43px; grid-template-rows: minmax(0,1fr) 28px; align-items: center; width: 100%; height: 100%; }
.lightbox img { grid-column: 2; grid-row: 1; max-width: 100%; max-height: calc(100dvh - 125px); width: auto; height: auto; margin: auto; object-fit: contain; }
.lightbox button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(255,255,255,.08); color: white; cursor: pointer; font-size: 23px; }
.lightbox .prev { grid-column: 1; grid-row: 1; }
.lightbox .next { grid-column: 3; grid-row: 1; }
.lightbox .close { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top)); right: 13px; }
.lightbox-counter { grid-column: 1 / -1; grid-row: 2; text-align: center; font-family: Georgia, serif; font-size: 12px; letter-spacing: .2em; }
.heart { position: fixed; z-index: 3; pointer-events: none; color: #eab9b4; font-size: 20px; animation: float-heart .95s ease-out forwards; }
@keyframes float-heart { from { opacity: .95; transform: translateY(0) scale(.7); } to { opacity: 0; transform: translateY(-65px) scale(1.15); } }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100vw - 40px); padding: 11px 17px; border-radius: 24px; background: var(--forest); color: white; font-size: 12px; text-align: center; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }
@media (max-width: 759px) {
  .welcome { padding-top: calc(69px + env(safe-area-inset-top)); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .welcome-grid { gap: 12px; }
  .welcome-sub { margin-top: 10px; }
  .welcome-names { margin-top: 13px; }
  .welcome-dates { margin-top: 10px; }
  .cover-gallery { height: 265px; min-height: 265px; }
  .welcome-action { position: relative; z-index: 2; margin-top: -5px; }
}
@media (min-width: 760px) {
  .shell { width: min(1120px, calc(100% - 80px)); }
  .topbar { padding-inline: 40px; }
  .welcome-grid { grid-template-columns: .95fr 1fr; gap: 6%; }
  .welcome-copy { text-align: left; }
  .welcome h1 { font-size: clamp(59px, 5.4vw, 84px); }
  .welcome-dates { justify-content: flex-start; }
  .welcome-dates .wedding-day { flex-basis: auto; margin-left: 12px; }
  .cover-gallery { --orbit-radius: 380px; height: min(59vh, 580px); min-height: 440px; }
  .cover-card { width: 150px; height: 214px; margin-left: -75px; margin-top: -107px; }
  .welcome-action { grid-column: 1 / -1; margin-top: -12px; }
  .story-intro { padding-block: 115px 83px; }
  .timeline { padding-left: 110px; }
  .timeline-line { left: 38px; }
  .story-node { padding-left: 0; padding-bottom: 120px; }
  .node-marker { left: -82px; }
  .node-marker.icon { left: -87px; }
  .story-date { font-size: clamp(25px, 2.6vw, 32px); }
  .story-place { font-size: .84em; }
  .story-text { font-size: 16px; }
  .story-media { margin-top: 31px; }
  .photo-mosaic { gap: 10px; }
  .photo-single:not(.photo-single--portrait) { height: 460px; }
}
@media (max-width: 380px) {
  .welcome h1 { font-size: 40px; }
  .welcome-sub { font-size: 12px; }
  .cover-gallery { --orbit-radius: 238px; min-height: 260px; }
  .cover-card { width: 105px; height: 150px; margin-left: -52px; margin-top: -75px; }
  .story-date { font-size: 18px; }
  .story-text { font-size: 13px; }
}
@media (max-width: 600px) {
  .invitation { padding-top: 68px; padding-bottom: 39px; }
  .invitation h2 { font-size: 28px; letter-spacing: .07em; }
  .invitation-names { margin-top: 40px; }
  .ending { min-height: 420px; padding: 58px 24px 210px; }
  .ending-copy { font-size: clamp(21px, 5.7vw, 25px); letter-spacing: .04em; line-height: 1.9; }
  .ending-copy span { display: block; }
  .ending-sequel { margin-top: 17px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .cover-orbit { transform: rotateY(-24deg); }
  .story-intro-copy { opacity: 1; clip-path: none; }
}

/* Approved cover: rotating, rising photo backdrop with centered invitation text. */
.welcome { padding: calc(72px + env(safe-area-inset-top)) 0 calc(30px + env(safe-area-inset-bottom)); background: #edf3e9; isolation: isolate; }
.welcome::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(ellipse 52% 55% at 50% 49%, rgba(237,243,233,.72), rgba(237,243,233,.31) 66%, transparent 100%); }
.welcome-grid { z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: calc(100svh - 132px); text-align: center; }
.welcome-copy { text-align: center; }
.welcome h1, .welcome h1 em { color: #4c6b59; }
.welcome h1 { font-family: SimSun, "Songti SC", STSong, serif; font-size: clamp(51px, 7.1vw, 103px); font-weight: 700; line-height: 1.43; letter-spacing: .075em; text-shadow: 0 2px 16px rgba(237,243,233,.55); }
.welcome-names { margin: 18px 0 0; color: #4c6b59; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; font-size: clamp(22px, 2.6vw, 37px); font-weight: 700; letter-spacing: .11em; text-shadow: 0 2px 12px #edf3e9; }
.welcome-names span { color: inherit; font-family: inherit; font-size: inherit; font-weight: inherit; }
.welcome-dates { justify-content: center; margin-top: 21px; }
.welcome-dates .wedding-day { flex-basis: auto; margin: 0; color: #4c6b59; font-size: clamp(36px, 4.3vw, 61px); font-weight: 700; letter-spacing: .09em; text-shadow: 0 2px 12px #edf3e9; }
.cover-gallery { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; overflow: hidden; perspective: 900px; -webkit-mask-image: none; mask-image: none; pointer-events: none; }
.cover-orbit { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; animation: none; transform-style: preserve-3d; }
.cover-card { position: absolute; left: var(--x); top: 0; width: clamp(112px, 12vw, 195px); height: clamp(158px, 17vw, 276px); margin: 0; transform-origin: center; backface-visibility: visible; animation: photo-ascent 38s linear infinite; animation-delay: var(--start); }
.cover-card-inner { padding: clamp(5px, .6vw, 9px); background: #fffefa; box-shadow: 9px 12px 0 rgba(82,104,78,.16), 0 14px 24px rgba(43,71,55,.12); animation: none; }
.cover-card:nth-child(3n) .cover-card-inner, .cover-card:nth-child(3n + 1) .cover-card-inner { animation: none; }
.cover-card img { object-position: center; }
@keyframes photo-ascent {
  0% { opacity: 0; transform: translate3d(-50%, 112svh, -100px) rotateZ(var(--tilt)) rotateY(-52deg) scale(var(--depth)); }
  6% { opacity: 1; }
  48% { transform: translate3d(calc(-50% + 55px), 4svh, 70px) rotateZ(var(--tilt)) rotateY(8deg) scale(var(--depth)); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc(-50% - 45px), -50svh, -95px) rotateZ(var(--tilt)) rotateY(55deg) scale(var(--depth)); }
}
.welcome-action { position: relative; z-index: 3; margin-top: 39px; }
.story-entry-button { position: relative; min-width: 432px; min-height: 82px; gap: 72px; padding: 11px 30px 11px 50px; border: 3px solid #4b6a58; border-radius: 0; background: rgba(237,243,233,.80); color: #4b6a58; font-size: clamp(21px, 2vw, 30px); font-weight: 700; letter-spacing: .025em; box-shadow: none; }
.story-entry-button::before, .story-entry-button::after { content: ""; position: absolute; width: 6px; height: 6px; background: #4b6a58; }
.story-entry-button::before { left: -4px; bottom: -4px; }
.story-entry-button::after { right: -4px; top: -4px; }
.story-entry-button:hover { background: rgba(237,243,233,.94); color: #284d3e; transform: translateY(-2px); }
.story-entry-label { display: inline-flex; align-items: baseline; column-gap: .12em; white-space: nowrap; }
.wave-letter { display: inline-block; animation: letter-wave 3s ease-in-out infinite; animation-delay: calc(var(--wave-index) * .14s); }
.story-entry-icon { display: grid; place-items: center; width: 50px; height: 50px; border: 2px solid currentColor; border-radius: 50%; font-size: 29px; font-weight: 400; line-height: 1; transition: transform .25s; }
.story-entry-button:hover .story-entry-icon { transform: translate(3px, -3px); }
@keyframes letter-wave { 0%, 100% { transform: translate3d(0,0,0); } 30% { transform: translate3d(3px,-7px,0); } 58% { transform: translate3d(-3px,4px,0); } 82% { transform: translate3d(1px,-2px,0); } }

/* The arc exists only in the motion calculation; no trajectory is drawn. */
.story-flight { min-height: 76svh; padding: 0; background: linear-gradient(to bottom, #edf3e9 0%, #e8f1e9 72%, #f7f8f1 100%); }
.story-flight::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, rgba(247,248,241,.76)); pointer-events: none; }
.flight-landscape { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 77%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 77%, transparent 100%); }
.landscape-far { fill: #9fbf9b; fill-opacity: .17; stroke: #709b75; stroke-opacity: .15; stroke-width: 2; }
.landscape-near { fill: #75ab7f; fill-opacity: .15; stroke: #5b8e68; stroke-opacity: .13; stroke-width: 2; }
.landscape-lake { fill: #badacb; fill-opacity: .31; }
.landscape-waterline { fill: none; stroke: #6fa895; stroke-opacity: .29; stroke-width: 2; stroke-linecap: round; }
.landscape-grass { fill: #88b982; fill-opacity: .19; }
.landscape-blades { fill: none; stroke: #77aa7a; stroke-opacity: .31; stroke-width: 2; stroke-linecap: round; }
.flight-cloud { position: absolute; z-index: 0; width: clamp(135px, 21vw, 265px); height: auto; fill: rgba(255,255,255,.65); stroke: rgba(124,164,153,.22); stroke-width: 2; opacity: .43; pointer-events: none; animation: cloud-drift 15s ease-in-out infinite alternate; }
.flight-cloud--left { left: 7%; top: 29%; }
.flight-cloud--right { right: 8%; top: 38%; width: clamp(115px, 18vw, 235px); animation-delay: -7s; }
.flight-cloud--low { left: 45%; top: 61%; width: clamp(90px, 13vw, 170px); opacity: .27; animation-delay: -10s; }
@keyframes cloud-drift { from { transform: translateX(-9px); } to { transform: translateX(17px); } }
.story-intro-copy { --title-reveal: 100%; position: absolute; z-index: 1; top: clamp(65px, 9svh, 110px); left: 50%; width: min(100%, 1120px); padding: 0 16px; transform: translateX(-50%); opacity: 1; clip-path: inset(0 var(--title-reveal) 0 0); }
.story-flight h2 { margin: 0; color: #446350; font-family: "Noto Serif SC", "Songti SC", SimSun, serif; font-size: clamp(29px, 4.2vw, 51px); font-weight: 500; letter-spacing: .07em; }
.flight-year { position: absolute; z-index: 1; bottom: 20%; color: #375f49; font: 700 clamp(31px, 3.7vw, 53px)/1 "Times New Roman", serif; letter-spacing: .01em; }
.flight-year::before { content: ""; position: absolute; top: -24px; left: 35%; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.flight-year::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 2px; background: #81a48b; }
.flight-year--start { left: max(3%, 14px); }
.flight-year--end { right: max(3%, 14px); transform-origin: center bottom; transition: color .45s, text-shadow .45s, transform .45s; }
.flight-year--end.has-arrived { color: #2f6244; text-shadow: 0 0 18px rgba(66,146,91,.50); transform: scale(1.06); }
.flight-paper-plane { position: absolute; z-index: 2; top: 0; left: 0; width: clamp(84px, 10.4vw, 150px); height: auto; overflow: visible; opacity: 0; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(75,90,77,.13)); will-change: transform; }
.flight-plane-body { fill: #d24142; stroke: #973034; stroke-width: 4; stroke-linejoin: round; }
.flight-plane-upper { fill: #ea5c57; }
.flight-plane-fold { fill: #b93037; }
.flight-plane-crease { fill: none; stroke: #a52c31; stroke-width: 2.5; stroke-linecap: round; }
.flight-plane-highlight { fill: none; stroke: rgba(255,192,168,.55); stroke-width: 3; stroke-linecap: round; }
@media (max-width: 759px) {
  .welcome { padding-top: calc(68px + env(safe-area-inset-top)); padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .welcome-grid { min-height: calc(100svh - 100px); }
  .welcome h1 { font-size: clamp(43px, 10.8vw, 67px); line-height: 1.48; }
  .welcome-names { margin-top: 18px; font-size: clamp(19px, 5.2vw, 29px); }
  .welcome-dates { margin-top: 19px; }
  .welcome-dates .wedding-day { font-size: clamp(34px, 8vw, 48px); }
  .cover-gallery { height: 100%; min-height: 0; }
  .cover-card { width: clamp(105px, 37vw, 155px); height: clamp(147px, 52vw, 220px); }
  .welcome-action { margin-top: 36px; }
  .story-entry-button { min-width: min(100%, 335px); min-height: 68px; gap: 23px; padding: 9px 16px 9px 22px; font-size: clamp(18px, 5.5vw, 23px); }
  .story-entry-icon { width: 41px; height: 41px; font-size: 23px; flex-shrink: 0; }
  .story-flight { min-height: 66svh; }
  .story-flight h2 { font-size: clamp(24px, 6.4vw, 34px); }
  .flight-year { bottom: 18%; }
  .flight-cloud--low { display: none; }
  .story-node--featured .story-node-intro { margin-left: -9px; padding-inline: 12px; }
  .story-node--text-only .story-text { padding: 33px 21px 27px 37px; }
  .story-node--taped .story-media::before, .story-node--taped .story-media::after { width: 43px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cover-card { animation: none; opacity: .5; transform: translate3d(-50%, 22svh, 0) rotateZ(var(--tilt)) scale(var(--depth)); }
  .cover-card:nth-child(even) { transform: translate3d(-50%, 62svh, 0) rotateZ(var(--tilt)) scale(var(--depth)); }
  .wave-letter { animation: none; }
  .flight-cloud { animation: none; }
  .story-intro-copy { clip-path: none; }
  .flight-paper-plane { display: none; }
}
