:root {
    --ink: #191512;
    --ink-soft: #3a312b;
    --ivory: #f7f3eb;
    --paper: #fffdf8;
    --sand: #e8dfd0;
    --gold: #b4935f;
    --gold-deep: #8d6d40;
    --blush: #c8a8a0;
    --wine: #3b2024;
    --line: rgba(72, 54, 41, 0.18);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Manrope", "Segoe UI", sans-serif;
    --shadow: 0 30px 80px rgba(31, 23, 17, 0.16);
    --page-width: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ivory);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.gate-active {
    overflow: hidden;
}

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

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

a {
    color: inherit;
}

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

::selection {
    color: var(--paper);
    background: var(--wine);
}

.section {
    position: relative;
    padding: 120px clamp(24px, 5vw, 80px);
}

.section--paper {
    background: var(--paper);
}

.section--dark {
    color: var(--paper);
    background: var(--ink);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-deep);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    line-height: 1.5;
    text-transform: uppercase;
}

.eyebrow--light {
    color: #dfc18d;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 1px solid transparent;
    padding: 13px 28px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 240ms ease, background-color 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.nav-links a:focus-visible,
.music-control:focus-visible,
.gallery-item:focus-visible,
.film-toggle:focus-visible,
.text-button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.button--glass {
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    backdrop-filter: blur(8px);
    background: rgba(20, 15, 12, 0.16);
}

.button--glass:hover {
    background: rgba(255, 255, 255, 0.16);
}

.button--dark {
    color: #fff;
    background: var(--ink);
}

.button--dark:hover {
    background: var(--wine);
}

.button--outline {
    border-color: var(--ink);
}

.button--outline:hover {
    color: #fff;
    background: var(--ink);
}

.button--full {
    width: 100%;
}

.monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-deep);
    font-family: var(--serif);
    font-size: 3.25rem;
    font-weight: 500;
    letter-spacing: -0.08em;
    line-height: 1;
}

.monogram i {
    margin: 0 -0.08em;
    font-size: 0.44em;
    font-weight: 400;
    opacity: 0.86;
}

.monogram--light {
    color: #f1d49f;
}

/* Opening gate */
.invitation-gate {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    background: #15110f;
    transition: visibility 900ms step-end, opacity 900ms ease, transform 1100ms cubic-bezier(0.7, 0, 0.2, 1);
}

.invitation-gate.is-open {
    visibility: hidden;
    opacity: 0;
    transform: scale(1.035);
}

.gate-image,
.gate-shade,
.gate-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gate-image {
    object-fit: cover;
    object-position: center 42%;
    animation: gateDrift 14s ease-out both;
}

.gate-shade {
    background:
        linear-gradient(180deg, rgba(12, 8, 6, 0.42), rgba(12, 8, 6, 0.15) 45%, rgba(12, 8, 6, 0.6)),
        linear-gradient(90deg, rgba(12, 8, 6, 0.18), transparent 45%, rgba(12, 8, 6, 0.1));
}

.gate-frame {
    inset: 22px;
    width: auto;
    height: auto;
    border: 1px solid rgba(243, 218, 173, 0.52);
    pointer-events: none;
}

.gate-frame::before,
.gate-frame::after {
    position: absolute;
    left: 50%;
    width: 52px;
    height: 1px;
    background: rgba(243, 218, 173, 0.8);
    content: "";
    transform: translateX(-50%);
}

.gate-frame::before { top: -1px; }
.gate-frame::after { bottom: -1px; }

.gate-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 720px);
    padding: 54px 24px;
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.gate-content h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4.2rem, 11vw, 8.6rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.82;
}

.gate-content h1 em {
    display: inline-block;
    margin: 0 -0.02em;
    color: #efd4a3;
    font-size: 0.42em;
    font-weight: 400;
}

.gate-guest {
    width: fit-content;
    min-width: min(86vw, 320px);
    margin: 0 auto 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.58);
    padding: 0 24px 8px;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-style: italic;
    line-height: 1.25;
}

.gate-date {
    margin: 34px 0 30px;
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.42em;
}

.gate-note {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@keyframes gateDrift {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

/* Navigation and music */
.site-nav {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 4.5vw, 72px);
    border-bottom: 1px solid transparent;
    color: #fff;
    transition: color 300ms ease, background-color 300ms ease, border-color 300ms ease, height 300ms ease;
}

.site-nav.is-scrolled {
    height: 64px;
    border-color: var(--line);
    color: var(--ink);
    background: rgba(247, 243, 235, 0.94);
    backdrop-filter: blur(18px);
}

.nav-mark {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.08em;
    text-decoration: none;
}

.nav-mark span {
    color: var(--gold);
    font-size: 0.6em;
}

.nav-links {
    display: flex;
    gap: clamp(18px, 3vw, 42px);
}

.nav-links a {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
}

.music-control {
    position: fixed;
    z-index: 120;
    right: 22px;
    bottom: 22px;
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(180, 147, 95, 0.45);
    border-radius: 999px;
    padding: 8px 16px 8px 12px;
    color: var(--paper);
    background: rgba(25, 21, 18, 0.91);
    box-shadow: 0 8px 30px rgba(20, 15, 12, 0.22);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 300ms ease, transform 300ms ease, background-color 200ms ease;
}

.music-control.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.music-control:hover {
    background: var(--wine);
}

.music-label {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.music-bars {
    display: flex;
    width: 19px;
    height: 20px;
    align-items: center;
    justify-content: space-between;
}

.music-bars i {
    width: 2px;
    border-radius: 4px;
    background: var(--gold);
    animation: musicBar 900ms ease-in-out infinite alternate;
}

.music-bars i:nth-child(1) { height: 7px; animation-delay: -400ms; }
.music-bars i:nth-child(2) { height: 17px; animation-delay: -200ms; }
.music-bars i:nth-child(3) { height: 11px; animation-delay: -600ms; }
.music-bars i:nth-child(4) { height: 15px; animation-delay: -100ms; }
.music-control.is-paused .music-bars i { height: 3px; animation-play-state: paused; }

@keyframes musicBar {
    to { height: 4px; }
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(14, 10, 8, 0.28), transparent 35%, rgba(14, 10, 8, 0.64)),
        radial-gradient(circle at center, transparent 20%, rgba(14, 10, 8, 0.2));
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 90px 24px 140px;
    text-align: center;
}

.hero-copy h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(5.3rem, 14vw, 12rem);
    font-weight: 400;
    letter-spacing: -0.07em;
    line-height: 0.78;
    text-shadow: 0 8px 45px rgba(0, 0, 0, 0.24);
}

.hero-copy h1 span {
    color: #efd4a3;
    font-size: 0.42em;
    font-style: italic;
}

.hero-date {
    margin: 40px 0 0;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.27em;
    text-transform: uppercase;
}

.scroll-cue {
    position: absolute;
    z-index: 2;
    bottom: 26px;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-decoration: none;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.scroll-cue i {
    display: block;
    width: 1px;
    height: 38px;
    margin-top: 10px;
    background: linear-gradient(#fff, transparent);
}

/* Welcome */
.welcome {
    display: flex;
    min-height: 620px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.ornament {
    margin-bottom: 34px;
    color: var(--gold);
    font-size: 1rem;
}

.sutta {
    max-width: 880px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 5.5vw, 5.4rem);
    font-style: italic;
    line-height: 1.03;
}

.attribution {
    margin: 30px 0 0;
    color: var(--gold-deep);
    font-size: 0.63rem;
    font-weight: 600;
    letter-spacing: 0.28em;
}

.welcome-rule {
    width: 1px;
    height: 70px;
    margin: 42px auto;
    background: var(--gold);
}

.welcome-intro {
    max-width: 620px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
    letter-spacing: 0.025em;
}

/* Couple */
.couple-grid {
    display: grid;
    width: min(100%, var(--page-width));
    margin: 0 auto;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
}

.person-card {
    text-align: center;
}

.portrait-wrap {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto 38px;
}

.portrait-wrap::before {
    position: absolute;
    z-index: 2;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    content: "";
    pointer-events: none;
}

.portrait-wrap img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.84) contrast(0.96);
}

.person-card h2 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(2.5rem, 4.5vw, 4.2rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 0.94;
}

.person-card > p:last-child {
    margin: 0;
    color: #64574e;
    font-size: 0.84rem;
    line-height: 1.75;
}

.person-card strong {
    color: var(--ink);
    font-weight: 500;
}

.couple-ampersand {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 5rem;
    font-style: italic;
    text-align: center;
}

/* Story */
.section-heading {
    width: min(100%, 720px);
    margin: 0 auto 72px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(3.8rem, 7vw, 6.8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.88;
}

.section-heading > p:last-child {
    max-width: 590px;
    margin: 0 auto;
    color: #685b51;
    font-size: 0.92rem;
}

.section-heading--light > p:last-child {
    color: rgba(255, 255, 255, 0.66);
}

.story {
    overflow: hidden;
}

.story-visual {
    position: relative;
    width: min(100%, 1080px);
    margin: 0 auto 110px;
}

.story-visual::before {
    position: absolute;
    top: -28px;
    right: -28px;
    width: 42%;
    height: 56%;
    border: 1px solid var(--gold);
    content: "";
}

.story-visual img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.story-visual-caption {
    position: absolute;
    right: 24px;
    bottom: -34px;
    padding: 15px 24px;
    color: #fff;
    background: var(--wine);
    font-family: var(--serif);
    font-size: 1.25rem;
    font-style: italic;
}

.timeline {
    position: relative;
    display: grid;
    width: min(100%, 1000px);
    margin: 0 auto;
    gap: 80px;
}

.timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 108px;
    width: 1px;
    background: linear-gradient(var(--gold), var(--line));
    content: "";
}

.timeline-item {
    position: relative;
    display: grid;
    align-items: start;
    gap: 58px;
    grid-template-columns: 170px 1fr;
}

.timeline-date {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 150px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid var(--gold);
    color: var(--ink);
    background: var(--ivory);
}

.timeline-date span {
    font-family: var(--serif);
    font-size: 4.3rem;
    line-height: 0.8;
}

.timeline-date small {
    margin-top: 18px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.timeline-copy {
    max-width: 650px;
    padding-top: 14px;
}

.timeline-copy h3 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: clamp(2.15rem, 4vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1;
}

.timeline-copy > p:last-child {
    margin: 0;
    color: #62564e;
    font-size: 0.9rem;
}

.timeline-item--image {
    display: block;
    width: calc(100% - 110px);
    margin-left: 110px;
}

.timeline-item--image img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
}

.timeline-item--final .timeline-date {
    color: #fff;
    background: var(--wine);
}

/* Film */
.film {
    overflow: hidden;
}

.film::before {
    position: absolute;
    top: -220px;
    left: 50%;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(180, 147, 95, 0.18);
    border-radius: 50%;
    content: "";
    transform: translateX(-50%);
}

.film-frame {
    position: relative;
    width: min(100%, 1100px);
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.film-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

.film-frame::after {
    position: absolute;
    inset: 0;
    background: rgba(18, 13, 10, 0.28);
    content: "";
    pointer-events: none;
    transition: opacity 300ms ease;
}

.film-frame.is-playing::after {
    opacity: 0;
}

.film-toggle {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: flex;
    width: 112px;
    height: 112px;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 13, 10, 0.24);
    backdrop-filter: blur(5px);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 200ms ease, background-color 200ms ease;
}

.film-toggle:hover {
    background: rgba(18, 13, 10, 0.5);
}

.film-toggle span {
    margin-left: 4px;
    font-size: 1.25rem;
}

.film-toggle small {
    margin-top: 8px;
    font-size: 0.53rem;
    font-weight: 600;
    letter-spacing: 0.14em;
}

.film-frame.is-playing .film-toggle {
    opacity: 0;
}

.film-frame.is-playing:hover .film-toggle {
    opacity: 1;
}

/* Events */
.event-grid {
    display: grid;
    width: min(100%, 1100px);
    margin: 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-grid--single {
    max-width: 600px;
    grid-template-columns: 1fr;
}

.event-card {
    position: relative;
    min-height: 660px;
    border: 1px solid var(--line);
    padding: clamp(48px, 6vw, 76px);
    background: var(--ivory);
}

.event-card--accent {
    border-color: var(--ink);
    color: #fff;
    background: var(--ink);
}

.event-number {
    position: absolute;
    top: 20px;
    right: 28px;
    margin: 0;
    color: rgba(180, 147, 95, 0.42);
    font-family: var(--serif);
    font-size: 4.5rem;
    line-height: 1;
}

.event-card h3 {
    margin: 38px 0 28px;
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 4.3rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.event-time {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.event-time strong {
    font-size: 1.05rem;
    font-weight: 500;
}

.event-rule {
    width: 48px;
    height: 1px;
    margin: 34px 0;
    background: var(--gold);
}

.event-card > p:not(.event-number):not(.eyebrow):not(.event-time):not(.attire) {
    font-size: 0.84rem;
}

.event-actions {
    display: flex;
    margin-top: 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.text-link,
.text-button {
    border: 0;
    border-bottom: 1px solid currentColor;
    padding: 0 0 4px;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
}

.attire {
    position: absolute;
    right: clamp(48px, 6vw, 76px);
    bottom: 42px;
    left: clamp(48px, 6vw, 76px);
    margin: 0;
    color: #81736a;
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
}

.event-card--accent .attire {
    color: rgba(255, 255, 255, 0.58);
}

/* Countdown */
.countdown {
    display: grid;
    min-height: 670px;
    place-items: center;
    overflow: hidden;
    color: #fff;
}

.countdown-image,
.countdown-overlay {
    position: absolute;
    inset: 0;
}

.countdown-image {
    background: url("../images/mountain-formal.webp") center 44% / cover no-repeat;
    background-attachment: fixed;
}

.countdown-overlay {
    background: rgba(20, 14, 11, 0.57);
}

.countdown-content {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
    text-align: center;
}

.countdown-content h2 {
    margin: 0 0 56px;
    font-family: var(--serif);
    font-size: clamp(4.3rem, 8vw, 7.6rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.85;
}

.countdown-clock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.countdown-clock > div {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.countdown-clock > div:not(:last-child)::after {
    position: absolute;
    top: 8px;
    right: 0;
    width: 1px;
    height: 70px;
    background: rgba(255, 255, 255, 0.32);
    content: "";
}

.countdown-clock strong {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
}

.countdown-clock span {
    margin-top: 12px;
    color: #ead8b8;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Gallery */
.gallery {
    background: var(--ivory);
}

.gallery-grid {
    display: grid;
    width: min(100%, var(--page-width));
    margin: 0 auto;
    grid-auto-rows: 250px;
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: #d6cabb;
    cursor: zoom-in;
}

.gallery-item--1 { grid-column: span 2; grid-row: span 2; }
.gallery-item--2 { grid-column: span 1; grid-row: span 2; }
.gallery-item--3 { grid-column: span 1; grid-row: span 1; }
.gallery-item--4 { grid-column: span 1; grid-row: span 1; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88);
    transition: filter 500ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-item:hover img {
    filter: saturate(1);
    transform: scale(1.035);
}

.gallery-item span {
    position: absolute;
    right: 16px;
    bottom: 14px;
    padding: 5px 9px;
    color: #fff;
    background: rgba(19, 14, 11, 0.52);
    font-size: 0.52rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    opacity: 0;
    text-transform: uppercase;
    transition: opacity 250ms ease;
}

.gallery-item:hover span {
    opacity: 1;
}

/* RSVP */
.rsvp-layout {
    display: grid;
    width: min(100%, 1050px);
    margin: 0 auto;
    align-items: start;
    gap: 40px;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
}

.rsvp-form,
.extra-card {
    border: 1px solid var(--line);
    padding: clamp(30px, 5vw, 54px);
    background: var(--ivory);
}

.field {
    margin-bottom: 26px;
}

.field label {
    display: flex;
    margin-bottom: 9px;
    justify-content: space-between;
    color: var(--ink);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.field label span {
    color: #8f8177;
    font-weight: 400;
}

.field-static,
.field select,
.field textarea {
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #b9ab9e;
    border-radius: 0;
    padding: 12px 2px;
    color: var(--ink);
    background: transparent;
    outline: none;
}

.field-static {
    font-family: var(--serif);
    font-size: 1.75rem;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field select:focus,
.field textarea:focus {
    border-color: var(--gold-deep);
    box-shadow: 0 1px 0 var(--gold-deep);
}

.private-extras {
    display: grid;
    gap: 24px;
}

.extra-card h3 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1;
}

.extra-card > p:not(.eyebrow) {
    color: #6e6158;
    font-size: 0.8rem;
}

.bank-detail {
    display: flex;
    margin: 24px 0 14px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    flex-direction: column;
}

.bank-detail small {
    color: var(--gold-deep);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.bank-detail strong {
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.bank-detail span {
    color: #70645b;
    font-size: 0.75rem;
}

.notice {
    width: min(100%, 1050px);
    margin: -34px auto 40px;
    border-left: 3px solid var(--gold);
    padding: 16px 20px;
    background: #f3ede2;
    font-size: 0.84rem;
}

.notice--success {
    border-color: #64785f;
    background: #edf2e9;
}

.notice--error {
    border-color: #8f3d45;
    background: #f6e9e8;
}

.rsvp-closed {
    border-left: 3px solid var(--gold);
    padding-left: 16px;
    color: #695d54;
    font-size: 0.82rem;
}

/* Closing */
.closing {
    display: grid;
    min-height: 900px;
    padding: 0;
    place-items: center;
    overflow: hidden;
    color: #fff;
}

.closing > img,
.closing-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.closing > img {
    object-fit: cover;
}

.closing-overlay {
    background: linear-gradient(180deg, rgba(15, 10, 8, 0.18), rgba(15, 10, 8, 0.58));
}

.closing-copy {
    position: relative;
    z-index: 1;
    margin-top: 300px;
    text-align: center;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.closing-copy > p:first-of-type {
    margin: 22px 0 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-style: italic;
}

.closing-copy h2 {
    margin: 10px 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 9vw, 8rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.9;
}

.closing-date {
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.34em;
}

.site-footer {
    padding: 24px;
    color: #c7aa79;
    background: var(--ink);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    padding: 40px;
    place-items: center;
    background: rgba(13, 10, 8, 0.96);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: min(94vw, 1400px);
    max-height: 88vh;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    border: 0;
    padding: 6px 12px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 2.5rem;
}

/* Reveal */
.js .reveal,
html:not(.no-js) .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 900ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

html:not(.no-js) .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Error page */
.error-page {
    display: grid;
    min-height: 100svh;
    padding: 24px;
    place-items: center;
    background:
        linear-gradient(rgba(247, 243, 235, 0.92), rgba(247, 243, 235, 0.92)),
        url("../images/mountain-close.webp") center / cover;
}

.error-card {
    width: min(100%, 560px);
    border: 1px solid var(--gold);
    padding: clamp(38px, 8vw, 80px);
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow);
    text-align: center;
}

.error-card h1 {
    margin: 8px 0 16px;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 500;
    line-height: 0.95;
}

.error-card p:not(.eyebrow) {
    margin: 0 0 30px;
    color: #6f6258;
}

@media (max-width: 900px) {
    .section {
        padding-top: 92px;
        padding-bottom: 92px;
    }

    .couple-grid {
        gap: 56px;
        grid-template-columns: 1fr;
    }

    .portrait-wrap {
        max-width: 500px;
    }

    .couple-ampersand {
        margin: -28px 0;
    }

    .event-grid {
        max-width: 620px;
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .rsvp-layout {
        max-width: 620px;
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-auto-rows: 220px;
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item--1 { grid-column: span 2; }
    .gallery-item--2 { grid-column: span 1; }

    .countdown-image {
        background-attachment: scroll;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    .gate-frame {
        inset: 12px;
    }

    .gate-content {
        padding-right: 28px;
        padding-left: 28px;
    }

    .gate-content .monogram {
        margin-bottom: 18px;
        font-size: 2.75rem;
    }

    .gate-content h1 {
        font-size: clamp(4rem, 20vw, 6.5rem);
    }

    .gate-guest {
        margin-bottom: 28px;
        font-size: 1.45rem;
    }

    .site-nav {
        height: 62px;
        padding: 0 18px;
    }

    .nav-links {
        max-width: calc(100vw - 82px);
        gap: 17px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar { display: none; }

    .nav-links a {
        flex: 0 0 auto;
        font-size: 0.55rem;
    }

    .hero {
        min-height: 92svh;
    }

    .hero-image {
        object-position: 53% center;
    }

    .hero-copy h1 {
        font-size: clamp(4.7rem, 25vw, 7rem);
    }

    .hero-date {
        font-size: 0.63rem;
        letter-spacing: 0.18em;
    }

    .welcome {
        min-height: 560px;
    }

    .sutta {
        font-size: 2.7rem;
    }

    .story-visual {
        margin-bottom: 88px;
    }

    .story-visual::before {
        top: -14px;
        right: -14px;
    }

    .story-visual img {
        aspect-ratio: 4 / 5;
    }

    .story-visual-caption {
        right: 12px;
        bottom: -28px;
        padding: 11px 15px;
        font-size: 1rem;
    }

    .timeline {
        gap: 58px;
    }

    .timeline::before {
        left: 34px;
    }

    .timeline-item {
        gap: 24px;
        grid-template-columns: 68px 1fr;
    }

    .timeline-date {
        min-height: 94px;
    }

    .timeline-date span {
        font-size: 2.6rem;
    }

    .timeline-date small {
        margin-top: 10px;
        font-size: 0.42rem;
        letter-spacing: 0.09em;
        text-align: center;
    }

    .timeline-copy {
        padding-top: 2px;
    }

    .timeline-copy h3 {
        font-size: 2rem;
    }

    .timeline-copy > p:last-child {
        font-size: 0.82rem;
        line-height: 1.7;
    }

    .timeline-item--image {
        width: calc(100% - 35px);
        margin-left: 35px;
    }

    .film-frame {
        width: calc(100% + 48px);
        margin-left: -24px;
    }

    .film-toggle {
        width: 88px;
        height: 88px;
    }

    .event-card {
        min-height: 620px;
        padding: 48px 30px 90px;
    }

    .attire {
        right: 30px;
        bottom: 34px;
        left: 30px;
    }

    .countdown {
        min-height: 590px;
    }

    .countdown-clock > div:not(:last-child)::after {
        height: 50px;
    }

    .countdown-clock strong {
        font-size: 2.6rem;
    }

    .countdown-clock span {
        font-size: 0.45rem;
        letter-spacing: 0.12em;
    }

    .gallery-grid {
        width: calc(100% + 48px);
        margin-left: -24px;
        grid-auto-rows: 180px;
    }

    .gallery-item span {
        display: none;
    }

    .rsvp-form,
    .extra-card {
        padding: 30px 24px;
    }

    .closing {
        min-height: 740px;
    }

    .closing > img {
        object-position: 58% center;
    }

    .closing-copy {
        margin-top: 280px;
    }

    .music-control {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

