:root {
    --ink: #171411;
    --ink-soft: #25211d;
    --paper: #f5f4f0;
    --paper-bright: #fbfaf7;
    --red: #92251c;
    --metal: #b5a17d;
    --muted: #716d67;
    --line: rgba(23, 20, 17, 0.18);
    --line-light: rgba(255, 255, 255, 0.2);
    --font-serif: "Bodoni 72", Didot, "Songti SC", STSong, "Noto Serif CJK SC", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
    --page-gutter: 40px;
    --section-space: 120px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.75;
    overflow-wrap: break-word;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

.container {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding-inline: var(--page-gutter);
}

.section {
    padding-block: var(--section-space);
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
}

.section-kicker span:first-child {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--font-serif);
}

.section-kicker.light {
    color: rgba(255, 255, 255, 0.62);
}

.editorial-heading h2,
.gallery-heading h2,
.venue-content h2 {
    font-family: var(--font-serif);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.18;
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 800ms ease, transform 800ms ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

main {
    position: relative;
    isolation: isolate;
}

main > section {
    position: relative;
    z-index: 1;
}

.petal-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.petal {
    position: absolute;
    top: var(--petal-y);
    left: var(--petal-x);
    width: var(--petal-width);
    height: var(--petal-height);
    border-radius: 88% 18% 82% 22% / 78% 24% 76% 28%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 190, 188, 0.74) 58%, rgba(147, 52, 47, 0.42));
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.72), 0 5px 12px rgba(78, 34, 30, 0.12);
    opacity: var(--petal-opacity);
    transform-origin: 35% 70%;
    will-change: transform;
    animation: petalDrift var(--petal-duration) var(--petal-delay) linear infinite;
}

.petal::after {
    position: absolute;
    top: 13%;
    bottom: 12%;
    left: 49%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(133, 71, 67, 0.32), transparent);
    content: "";
    transform: rotate(8deg);
}

.petal-variant-2 {
    border-radius: 22% 84% 24% 78% / 30% 74% 28% 72%;
    background: linear-gradient(155deg, rgba(255, 252, 245, 0.9), rgba(221, 202, 170, 0.72) 62%, rgba(154, 118, 74, 0.34));
}

.petal-variant-3 {
    filter: blur(0.25px);
}

/* Music */
.top-floating-controls {
    position: fixed;
    top: calc(22px + env(safe-area-inset-top));
    right: calc(24px + env(safe-area-inset-right));
    z-index: 100;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(28, 28, 30, 0.42);
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
}

.music-player {
    position: relative;
    flex: 0 0 auto;
}

.music-btn {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: visible;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 250ms ease, color 250ms ease, transform 250ms ease;
}

.music-btn:hover {
    transform: scale(1.04);
    background: rgba(255, 255, 255, 0.1);
}

.music-icon {
    width: 18px;
    height: 18px;
}

.music-rings {
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    opacity: 0;
}

.music-player.playing .music-icon {
    animation: musicFloat 1.8s ease-in-out infinite;
}

.music-player.playing .music-rings {
    animation: musicRing 2s ease-out infinite;
}

.module-indicator {
    position: relative;
    display: grid;
    width: 130px;
    min-height: 38px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 1fr 1px;
    align-items: center;
    gap: 3px 10px;
    padding: 1px 12px 1px 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    pointer-events: none;
}

.module-name {
    overflow: hidden;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.module-index {
    color: rgba(255, 255, 255, 0.52);
    font-family: var(--font-sans);
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1;
}

.module-progress {
    grid-column: 1 / -1;
    height: 1px;
    margin-top: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.14);
}

.module-progress i {
    display: block;
    width: 20%;
    height: 100%;
    background: rgba(255, 255, 255, 0.72);
    transition: width 380ms ease;
}

.page-scroll-guide {
    position: fixed;
    z-index: 90;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    min-width: 76px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(23, 20, 17, 0.66);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(20, 15, 12, 0.16);
    transform: translateX(-50%);
    transition: opacity 250ms ease, transform 250ms ease, visibility 250ms ease;
}

.page-scroll-guide span {
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-sans);
    font-size: 12px;
    font-style: normal;
    line-height: 1;
}

.page-scroll-guide i {
    font-size: 16px;
    font-style: normal;
    line-height: 1;
    animation: scrollGuideBounce 1.8s ease-in-out infinite;
}

.page-scroll-guide:hover {
    background: rgba(23, 20, 17, 0.86);
    transform: translateX(-50%) translateY(-2px);
}

.page-scroll-guide.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
}

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--ink);
    color: #fff;
}

@supports (min-height: 100dvh) {
    .hero-section {
        min-height: 100dvh;
    }
}

.hero-media,
.hero-media img,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    z-index: 0;
}

.hero-media-primary {
    position: absolute;
    inset: 0;
    display: block;
}

.hero-media-secondary {
    display: none;
}

.hero-media img {
    object-fit: cover;
    object-position: center 45%;
    animation: heroReveal 1.4s ease both;
}

.hero-shade {
    z-index: 1;
    background: rgba(15, 10, 8, 0.24);
}

.hero-masthead {
    position: absolute;
    z-index: 3;
    top: calc(28px + env(safe-area-inset-top));
    left: var(--page-gutter);
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 12px;
    text-transform: uppercase;
}

.hero-masthead .monogram {
    font-family: var(--font-serif);
    font-size: 19px;
}

.hero-masthead span {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    color: rgba(255, 255, 255, 0.74);
}

.hero-content {
    position: absolute;
    z-index: 2;
    right: var(--page-gutter);
    bottom: 92px;
    left: var(--page-gutter);
    max-width: 1120px;
    animation: contentReveal 1s 300ms ease both;
}

.hero-eyebrow {
    margin-bottom: 12px;
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
}

.couple-names {
    display: flex;
    align-items: baseline;
    gap: 24px;
    font-family: var(--font-serif);
    font-size: 94px;
    font-weight: 400;
    line-height: 1;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.28);
}

.name-connector {
    font-size: 32px;
    font-style: italic;
    font-weight: 400;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 28px;
    font-size: 14px;
}

.hero-meta span {
    padding-left: 24px;
    border-left: 1px solid rgba(255, 255, 255, 0.5);
}

/* Invitation */
.invitation-section {
    background: var(--paper);
}

.invitation-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
    gap: 100px;
}

.heading-date {
    margin-top: 44px;
    color: var(--red);
    font-family: var(--font-serif);
    font-size: 20px;
}

.invitation-copy {
    max-width: 650px;
    padding-top: 56px;
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 2.05;
}

.invitation-copy p + p {
    margin-top: 16px;
}

.invitation-lead {
    color: var(--red);
}

.invitation-announcement {
    font-size: 25px;
    line-height: 1.45;
}

.invitation-copy blockquote {
    margin-top: 42px;
    padding: 18px 0 18px 30px;
    border-left: 2px solid var(--red);
    font-size: 22px;
}

.invitation-signature {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 46px;
    font-size: 24px;
}

.invitation-signature i {
    color: var(--red);
    font-size: 18px;
}

.countdown-wrap {
    display: grid;
    grid-template-columns: minmax(220px, 0.6fr) minmax(540px, 1.4fr);
    align-items: stretch;
    margin-top: 110px;
}

.countdown-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-block: 1px solid var(--line);
}

.countdown-intro p {
    font-family: var(--font-serif);
    font-size: 24px;
}

.countdown-intro span {
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 13px;
    font-style: italic;
}

.countdown-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.countdown-unit {
    display: flex;
    min-width: 0;
    min-height: 142px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.countdown-unit .number {
    font-family: var(--font-serif);
    font-size: 50px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.countdown-unit .label {
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
}

/* Our Story */
.story-section {
    min-height: 100vh;
    min-height: 100svh;
    background: #571d18;
    color: #fff;
}

.story-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.story-heading .section-kicker {
    margin-bottom: 0;
}

.story-heading h2 {
    font-family: var(--font-serif);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.1;
}

.story-video-frame {
    position: relative;
    width: min(100%, 960px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: #160e0c;
    box-shadow: 0 34px 80px rgba(25, 7, 5, 0.28);
}

.story-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.story-video-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(18, 9, 8, 0.18);
    pointer-events: none;
    transition: opacity 300ms ease;
}

.story-video-copy {
    display: grid;
    max-width: 960px;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: end;
    gap: 72px;
    margin: 0 auto 30px;
}

.story-copy-en {
    font-family: "Avenir Next", "Helvetica Neue", var(--font-sans);
    font-size: clamp(20px, 1.65vw, 26px);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.005em;
}

.story-copy-zh {
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.8;
}

.story-video-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    width: 108px;
    min-height: 108px;
    padding: 8px 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 11px;
    border: 0;
    border-radius: 0;
    appearance: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    box-shadow: none;
    transform: translate(-50%, -50%);
    transition: opacity 250ms ease, transform 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.story-video-play:hover {
    background: transparent;
}

.story-video-play:hover .story-video-play-icon {
    background: rgba(55, 31, 27, 0.9);
    transform: scale(1.04);
}

.story-video-play:active {
    transform: translate(-50%, calc(-50% + 2px));
}

.story-video-play:active .story-video-play-icon {
    box-shadow: 0 5px 14px rgba(7, 3, 2, 0.34), 0 1px 0 rgba(7, 3, 2, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.96);
}

.story-video-play:focus-visible {
    outline: none;
}

.story-video-play:focus-visible .story-video-play-icon {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

.story-video-play-icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: rgba(35, 20, 18, 0.76);
    box-shadow: 0 10px 24px rgba(7, 3, 2, 0.34), 0 3px 0 rgba(7, 3, 2, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.story-video-play svg {
    width: 28px;
    height: 28px;
    transform: translateX(1px);
}

.story-video-play-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.12em;
    text-shadow: 0 2px 8px rgba(7, 3, 2, 0.7);
    white-space: nowrap;
}

.story-video-frame.is-playing .story-video-shade,
.story-video-frame.is-playing .story-video-play {
    opacity: 0;
    pointer-events: none;
}

/* Gallery */
.gallery-section {
    background: var(--ink);
    color: #fff;
}

.gallery-heading {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(400px, 1.1fr);
    gap: 100px;
    align-items: end;
}

.gallery-heading .section-kicker {
    grid-column: 1 / -1;
    margin-bottom: -48px;
}

.gallery-heading p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-serif);
    font-size: 17px;
}

.gallery-carousel {
    margin-top: 76px;
}

.gallery-stage-wrap {
    position: relative;
}

.gallery-stage {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0e0d0c;
    color: #fff;
    cursor: zoom-in;
}

.gallery-stage-backdrop,
.gallery-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gallery-stage-backdrop {
    object-fit: cover;
    filter: blur(24px) brightness(0.42) saturate(0.72);
    transform: scale(1.1);
}

.gallery-main-image {
    z-index: 1;
    object-fit: contain;
    transition: opacity 320ms ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-stage:hover .gallery-main-image {
    transform: scale(1.018);
}

.gallery-main-image.is-changing {
    opacity: 0.48;
}

.gallery-stage-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 9, 8, 0.58), transparent 34%);
    pointer-events: none;
    z-index: 2;
}

.gallery-stage-meta {
    position: absolute;
    right: 24px;
    bottom: 0;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-family: var(--font-serif);
    font-size: 14px;
    letter-spacing: 0.04em;
    pointer-events: none;
    z-index: 3;
}

.gallery-stage-meta b {
    color: var(--metal);
    font-weight: 400;
}

.gallery-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: rgba(16, 14, 13, 0.34);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 250ms ease, transform 250ms ease;
}

.gallery-nav:hover {
    background: rgba(16, 14, 13, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.gallery-prev {
    left: 24px;
}

.gallery-next {
    right: 24px;
}

.gallery-thumbs {
    display: grid;
    grid-auto-columns: 118px;
    grid-auto-flow: column;
    gap: 10px;
    margin-top: 16px;
    padding: 2px 2px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: rgba(255, 255, 255, 0.34) transparent;
    scrollbar-width: thin;
}

.gallery-thumb {
    position: relative;
    width: 118px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0e0d0c;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.gallery-thumb::after {
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    content: "";
    pointer-events: none;
    transition: border-color 250ms ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    opacity: 1;
    transform: translateY(-2px);
}

.gallery-thumb.is-active {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.gallery-thumb.is-active::after {
    border-color: var(--metal);
}

/* Schedule */
.schedule-section {
    background: var(--paper-bright);
}

.schedule-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(520px, 1.25fr);
    gap: 100px;
}

.schedule-date {
    margin-top: 42px;
    color: var(--red);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.5;
}

.schedule-list {
    list-style: none;
    border-top: 1px solid var(--line);
}

.schedule-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.schedule-item time {
    color: var(--red);
    font-family: var(--font-serif);
    font-size: 30px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.schedule-item h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
}

.schedule-item div > span {
    display: block;
    margin-top: 3px;
    color: #625d56;
    font-family: var(--font-serif);
    font-size: 13px;
    font-style: italic;
}

.schedule-item p {
    max-width: 520px;
    margin-top: 12px;
    color: #625d56;
    font-size: 14px;
}

/* Venue */
.venue-section {
    display: grid;
    min-height: 760px;
    grid-template-columns: minmax(0, 1.3fr) minmax(420px, 0.7fr);
    background: var(--paper);
}

.venue-media {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--ink);
}

.venue-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.venue-media > span {
    position: absolute;
    right: 24px;
    bottom: 20px;
    padding: 6px 10px;
    background: rgba(15, 13, 12, 0.58);
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--font-serif);
    font-size: 12px;
}

.venue-content {
    display: flex;
    padding: 90px 64px;
    flex-direction: column;
    justify-content: center;
}

.venue-label {
    margin-bottom: 10px;
    color: var(--red);
    font-family: var(--font-serif);
    font-size: 16px;
}

.venue-content h2 {
    font-size: 48px;
}

.venue-details {
    margin-top: 48px;
    border-top: 1px solid var(--line);
}

.venue-details > div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.venue-details dt {
    color: var(--muted);
    font-size: 13px;
}

.venue-details dd {
    font-family: var(--font-serif);
    font-size: 16px;
}

.address-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.copy-address {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--red);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12px;
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
}

.copy-address:hover,
.copy-address.is-copied {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
}

.travel-note {
    margin-top: 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.travel-note strong {
    color: var(--red);
    font-weight: 600;
}

.map-links {
    display: flex;
    gap: 10px;
    margin-top: 34px;
    flex-wrap: wrap;
}

.map-links a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 14px;
    border: 1px solid var(--ink);
    font-size: 13px;
    transition: background 250ms ease, color 250ms ease;
}

.map-links a:hover {
    background: var(--ink);
    color: #fff;
}

.map-links .map-primary {
    background: var(--ink);
    color: #fff;
}

.map-links .map-primary:hover {
    background: var(--red);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    padding: calc(70px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0e0c0b;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms ease, visibility 300ms ease;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: calc(18px + env(safe-area-inset-top));
    right: calc(24px + env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 300;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 50%;
    background: rgba(20, 17, 15, 0.48);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: calc(24px + env(safe-area-inset-left));
}

.lightbox-next {
    right: calc(24px + env(safe-area-inset-right));
}

body.modal-open .top-floating-controls,
body.modal-open .page-scroll-guide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lightbox-content {
    width: auto;
    max-width: min(100%, 1100px);
    max-height: calc(100svh - 150px);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-family: var(--font-serif);
    font-size: 14px;
}

/* Footer */
.footer {
    display: grid;
    min-height: 300px;
    padding: 64px var(--page-gutter) calc(48px + env(safe-area-inset-bottom));
    place-items: center;
    background: var(--red);
    color: #fff;
    text-align: center;
}

.footer-monogram {
    font-family: var(--font-serif);
    font-size: 54px;
    line-height: 1;
}

.footer p {
    font-family: var(--font-serif);
    font-size: 20px;
}

.footer time,
.footer a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

/* Motion */
@keyframes heroReveal {
    from { opacity: 0; transform: scale(1.025); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes contentReveal {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollGuideBounce {
    0%, 100% { transform: translateY(-1px); opacity: 0.68; }
    50% { transform: translateY(3px); opacity: 1; }
}

@keyframes petalDrift {
    0% {
        transform: translate3d(0, -110px, 0) rotate(-35deg) rotateX(12deg);
    }
    45% {
        transform: translate3d(var(--petal-sway), 145px, 0) rotate(170deg) rotateX(155deg);
    }
    100% {
        transform: translate3d(var(--petal-drift), 390px, 0) rotate(var(--petal-turn)) rotateX(320deg);
    }
}

@keyframes musicFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes musicRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.42); opacity: 0; }
}

@media (max-width: 1100px) {
    :root {
        --section-space: 96px;
    }

    .couple-names {
        font-size: 76px;
    }

    .editorial-heading h2,
    .gallery-heading h2,
    .story-heading h2 {
        font-size: 52px;
    }

    .invitation-layout,
    .schedule-layout {
        gap: 64px;
    }

    .venue-content {
        padding: 72px 44px;
    }

    .venue-content h2 {
        font-size: 42px;
    }

}

@media (max-width: 820px) {
    :root {
        --page-gutter: 24px;
        --section-space: 80px;
    }

    .invitation-layout,
    .schedule-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .invitation-copy {
        max-width: none;
        padding-top: 0;
    }

    .countdown-wrap {
        grid-template-columns: 1fr;
    }

    .countdown-intro {
        padding: 22px 0;
    }

    .countdown-container {
        border-left: 0;
    }

    .gallery-heading {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .gallery-heading .section-kicker {
        grid-column: auto;
        margin-bottom: 0;
    }

    .venue-section {
        grid-template-columns: 1fr;
    }

    .venue-media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .venue-content {
        padding: 80px var(--page-gutter);
    }

}

@media (max-width: 700px) {
    :root {
        --page-gutter: 20px;
        --section-space: 72px;
    }

    .section-kicker {
        margin-bottom: 24px;
    }

    .editorial-heading h2,
    .gallery-heading h2,
    .venue-content h2 {
        font-size: 42px;
    }

    .top-floating-controls {
        top: calc(16px + env(safe-area-inset-top));
        right: calc(16px + env(safe-area-inset-right));
        gap: 0;
        padding: 4px;
    }

    .music-btn {
        width: 44px;
        height: 44px;
    }

    .module-indicator {
        width: 112px;
        min-height: 36px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 3px 7px;
        padding: 1px 9px;
    }

    .module-name {
        font-size: 11px;
    }

    .module-index {
        font-size: 8px;
    }

    .page-scroll-guide {
        bottom: calc(16px + env(safe-area-inset-bottom));
        left: 50%;
    }

    .hero-media {
        display: grid;
        grid-template-rows: 62% 38%;
    }

    .hero-media-primary,
    .hero-media-secondary {
        position: relative;
        inset: auto;
        display: block;
        min-height: 0;
        overflow: hidden;
    }

    .hero-media-primary img,
    .hero-media-secondary img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-media-primary img {
        object-position: center 26%;
    }

    .hero-media-secondary img {
        object-position: center 62%;
    }

    .hero-media-secondary::before {
        position: absolute;
        z-index: 1;
        inset: 0;
        background: linear-gradient(to bottom, rgba(24, 10, 8, 0.1), rgba(15, 8, 6, 0.46));
        content: "";
    }

    .hero-shade {
        background: linear-gradient(to bottom, rgba(15, 10, 8, 0.1) 25%, rgba(15, 10, 8, 0.06) 54%, rgba(15, 10, 8, 0.58) 100%);
    }

    .hero-masthead {
        top: calc(22px + env(safe-area-inset-top));
        left: var(--page-gutter);
    }

    .hero-masthead span {
        display: none;
    }

    .hero-content {
        right: var(--page-gutter);
        bottom: 80px;
        left: var(--page-gutter);
    }

    .hero-eyebrow {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .couple-names {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        font-size: 52px;
        line-height: 1.06;
    }

    .name-connector {
        padding-left: 42px;
        font-size: 22px;
        line-height: 1;
    }

    .hero-meta {
        align-items: flex-start;
        gap: 6px;
        margin-top: 22px;
        flex-direction: column;
        font-size: 13px;
    }

    .hero-meta span {
        padding-left: 0;
        border-left: 0;
    }

    .heading-date {
        margin-top: 28px;
    }

    .invitation-copy {
        font-size: 17px;
        line-height: 2;
    }

    .invitation-announcement {
        font-size: 22px;
        line-height: 1.45;
    }

    .invitation-copy blockquote {
        margin-top: 32px;
        padding-left: 20px;
        font-size: 19px;
    }

    .invitation-signature {
        margin-top: 34px;
        font-size: 21px;
    }

    .countdown-wrap {
        margin-top: 72px;
    }

    .countdown-unit {
        min-height: 100px;
    }

    .countdown-unit .number {
        font-size: 34px;
    }

    .countdown-unit .label {
        font-size: 9px;
    }

    .gallery-heading p {
        font-size: 15px;
    }

    .story-section {
        min-height: 100svh;
    }

    .story-heading {
        display: block;
        margin-bottom: 22px;
    }

    .story-heading .section-kicker {
        margin-bottom: 22px;
    }

    .story-heading h2 {
        font-size: 42px;
    }

    .story-video-frame {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .story-video-frame video {
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .story-video-copy {
        display: block;
        margin-bottom: 22px;
    }

    .story-copy-en {
        font-size: 17px;
        font-weight: 300;
        line-height: 1.38;
    }

    .story-copy-zh {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.7;
    }

    .story-video-play {
        top: 50%;
        width: 96px;
        min-height: 98px;
        padding: 6px 2px;
        gap: 8px;
        border-radius: 0;
        box-shadow: none;
    }

    .story-video-play-icon {
        width: 60px;
        height: 60px;
        box-shadow: 0 9px 20px rgba(7, 3, 2, 0.4), 0 3px 0 rgba(7, 3, 2, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    }

    .story-video-play svg {
        width: 24px;
        height: 24px;
    }

    .story-video-play-label {
        font-size: 12px;
        font-weight: 500;
    }

    .gallery-section {
        min-height: 100svh;
    }

    .gallery-carousel {
        margin-top: 48px;
    }

    .gallery-stage {
        aspect-ratio: 4 / 3;
    }

    .gallery-stage-meta {
        right: 14px;
        left: 14px;
        padding-block: 14px;
        font-size: 12px;
    }

    .gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 17px;
    }

    .gallery-prev {
        left: 12px;
    }

    .gallery-next {
        right: 12px;
    }

    .gallery-thumbs {
        display: none;
    }

    .schedule-item {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 16px;
        padding: 24px 0;
    }

    .schedule-item time {
        font-size: 25px;
    }

    .schedule-item h3 {
        font-size: 21px;
    }

    .schedule-item div > span {
        font-size: 14px;
    }

    .venue-content {
        padding-block: 72px;
    }

    .venue-details {
        margin-top: 36px;
    }

    .map-links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .map-links a {
        min-height: 48px;
    }

    .address-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .copy-address {
        min-height: 44px;
        padding-inline: 14px;
    }

    .lightbox {
        padding-inline: 16px;
    }

    .lightbox-content {
        max-width: 100%;
        max-height: calc(100svh - 130px);
    }

    .lightbox-nav {
        top: auto;
        bottom: calc(24px + env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
        transform: none;
    }

    .lightbox-prev {
        left: calc(20px + env(safe-area-inset-left));
    }

    .lightbox-next {
        right: calc(20px + env(safe-area-inset-right));
    }

    .lightbox-caption {
        margin-bottom: 58px;
    }

    .footer {
        min-height: 280px;
    }
}

@media (max-width: 380px) {
    .couple-names {
        font-size: 46px;
    }

    .countdown-unit .number {
        font-size: 29px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
